there was an #include directive missing
[openmpi-llc.git] / configure
blobf122d26d9aae885f2fc740f31dfc1fab75ece231
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Open MPI 1.1.2.
5 # Report bugs to <http://www.open-mpi.org/community/help/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563 esac
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
586 exit 0
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
604 done
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
628 done
629 IFS="$lt_save_ifs"
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
677 prev="$cmd"
678 done
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 # Initializations.
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='Open MPI'
730 PACKAGE_TARNAME='openmpi'
731 PACKAGE_VERSION='1.1.2'
732 PACKAGE_STRING='Open MPI 1.1.2'
733 PACKAGE_BUGREPORT='http://www.open-mpi.org/community/help/'
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 # include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 # include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 CONFIGURE_DEPENDENCIES
830 OMPI_CONFIGURE_USER
831 OMPI_CONFIGURE_HOST
832 OMPI_CONFIGURE_DATE
833 OMPI_MAJOR_VERSION
834 OMPI_MINOR_VERSION
835 OMPI_RELEASE_VERSION
836 OMPI_GREEK_VERSION
837 OMPI_WANT_SVN
838 OMPI_SVN_R
839 OMPI_VERSION
840 ORTE_MAJOR_VERSION
841 ORTE_MINOR_VERSION
842 ORTE_RELEASE_VERSION
843 ORTE_GREEK_VERSION
844 ORTE_WANT_SVN
845 ORTE_SVN_R
846 ORTE_VERSION
847 OPAL_MAJOR_VERSION
848 OPAL_MINOR_VERSION
849 OPAL_RELEASE_VERSION
850 OPAL_GREEK_VERSION
851 OPAL_WANT_SVN
852 OPAL_SVN_R
853 OPAL_VERSION
854 OMPI_TOP_BUILDDIR
855 OMPI_TOP_SRCDIR
856 CLEANFILES
857 build
858 build_cpu
859 build_vendor
860 build_os
861 host
862 host_cpu
863 host_vendor
864 host_os
865 ac_prefix_program
866 top_ompi_srcdir
867 top_ompi_builddir
868 OMPI_WANT_BUILD_F90_TRIVIAL_TRUE
869 OMPI_WANT_BUILD_F90_TRIVIAL_FALSE
870 OMPI_WANT_BUILD_F90_SMALL_TRUE
871 OMPI_WANT_BUILD_F90_SMALL_FALSE
872 OMPI_WANT_BUILD_F90_MEDIUM_TRUE
873 OMPI_WANT_BUILD_F90_MEDIUM_FALSE
874 OMPI_WANT_BUILD_F90_LARGE_TRUE
875 OMPI_WANT_BUILD_F90_LARGE_FALSE
876 OMPI_F90_BUILD_SIZE
877 MPIF_H_PMPI_W_FUNCS
878 WANT_INSTALL_HEADERS_TRUE
879 WANT_INSTALL_HEADERS_FALSE
880 WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE
881 WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE
882 WANT_PERUSE_TRUE
883 WANT_PERUSE_FALSE
884 OMPI_FORTRAN_MAX_ARRAY_RANK
886 CFLAGS
887 LDFLAGS
888 CPPFLAGS
889 ac_ct_CC
890 EXEEXT
891 OBJEXT
892 DEPDIR
893 am__include
894 am__quote
895 AMDEP_TRUE
896 AMDEP_FALSE
897 AMDEPBACKSLASH
898 CCDEPMODE
899 am__fastdepCC_TRUE
900 am__fastdepCC_FALSE
901 OMPI_CC_ABSOLUTE
902 OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE
903 OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE
905 GREP
906 EGREP
907 WANT_MPI_BINDINGS_LAYER_TRUE
908 WANT_MPI_BINDINGS_LAYER_FALSE
909 WANT_PMPI_BINDINGS_LAYER_TRUE
910 WANT_PMPI_BINDINGS_LAYER_FALSE
911 COMPILE_PROFILING_SEPARATELY_TRUE
912 COMPILE_PROFILING_SEPARATELY_FALSE
914 CXXFLAGS
915 ac_ct_CXX
916 CXXDEPMODE
917 am__fastdepCXX_TRUE
918 am__fastdepCXX_FALSE
919 CXXCPP
920 OMPI_CXX_ABSOLUTE
921 WANT_MPI_CXX_BINDINGS_TRUE
922 WANT_MPI_CXX_BINDINGS_FALSE
923 CCAS
924 CCASFLAGS
925 OMPI_ASM_TEXT
926 OMPI_AS_GLOBAL
927 OBJDUMP
928 OMPI_AS_LABEL_SUFFIX
929 OMPI_ASM_GSYM
930 OMPI_ASM_LSYM
931 OMPI_ASM_TYPE
932 OMPI_ASM_SUPPORT_64BIT
933 OMPI_ASSEMBLY_FORMAT
934 OMPI_ASSEMBLY_ARCH
935 FGREP
936 PERL
937 OMPI_HAVE_ASM_FILE_TRUE
938 OMPI_HAVE_ASM_FILE_FALSE
939 OMPI_ASM_FILE
941 FFLAGS
942 ac_ct_F77
943 OMPI_WANT_F77_BINDINGS_TRUE
944 OMPI_WANT_F77_BINDINGS_FALSE
945 OMPI_F77_ABSOLUTE
946 WANT_MPI_F77_BINDINGS_LAYER_TRUE
947 WANT_MPI_F77_BINDINGS_LAYER_FALSE
948 WANT_PMPI_F77_BINDINGS_LAYER_TRUE
949 WANT_PMPI_F77_BINDINGS_LAYER_FALSE
951 FCFLAGS
952 ac_ct_FC
953 FCFLAGS_f
954 FCFLAGS_f90
955 OMPI_WANT_F90_BINDINGS_TRUE
956 OMPI_WANT_F90_BINDINGS_FALSE
957 OMPI_F90_ABSOLUTE
958 OMPI_FC_MODULE_FLAG
959 OMPI_SIZEOF_F90_LOGICAL
960 OMPI_SIZEOF_F90_INTEGER
961 OMPI_SIZEOF_F90_INTEGER1
962 OMPI_SIZEOF_F90_INTEGER2
963 OMPI_SIZEOF_F90_INTEGER4
964 OMPI_SIZEOF_F90_INTEGER8
965 OMPI_SIZEOF_F90_INTEGER16
966 OMPI_SIZEOF_F90_REAL
967 OMPI_SIZEOF_F90_REAL4
968 OMPI_SIZEOF_F90_REAL8
969 OMPI_SIZEOF_F90_REAL16
970 OMPI_SIZEOF_F90_DOUBLE_PRECISION
971 OMPI_SIZEOF_F90_COMPLEX
972 OMPI_SIZEOF_F90_COMPLEX8
973 OMPI_SIZEOF_F90_COMPLEX16
974 OMPI_SIZEOF_F90_COMPLEX32
975 OMPI_SIZEOF_F90_DOUBLE_COMPLEX
976 OMPI_F90_IKINDS
977 OMPI_F90_RKINDS
978 OMPI_F90_CKINDS
979 OMPI_MPI_INTEGER_KIND
980 OMPI_MPI_ADDRESS_KIND
981 OMPI_MPI_OFFSET_KIND
982 OMPI_HAVE_POSIX_THREADS_TRUE
983 OMPI_HAVE_POSIX_THREADS_FALSE
984 OMPI_HAVE_SOLARIS_THREADS_TRUE
985 OMPI_HAVE_SOLARIS_THREADS_FALSE
986 LN_S
988 LEX_OUTPUT_ROOT
989 LEXLIB
990 CASE_SENSITIVE_FS_TRUE
991 CASE_SENSITIVE_FS_FALSE
992 OMPI_BUILD_maffinity_first_use_DSO_TRUE
993 OMPI_BUILD_maffinity_first_use_DSO_FALSE
994 maffinity_libnuma_CPPFLAGS
995 maffinity_libnuma_LDFLAGS
996 maffinity_libnuma_LIBS
997 OMPI_BUILD_maffinity_libnuma_DSO_TRUE
998 OMPI_BUILD_maffinity_libnuma_DSO_FALSE
999 MCA_maffinity_ALL_COMPONENTS
1000 MCA_maffinity_STATIC_COMPONENTS
1001 MCA_maffinity_DSO_COMPONENTS
1002 MCA_maffinity_STATIC_LTLIBS
1003 MCA_maffinity_ALL_SUBDIRS
1004 MCA_maffinity_STATIC_SUBDIRS
1005 MCA_maffinity_DSO_SUBDIRS
1006 MCA_memcpy_ALL_COMPONENTS
1007 MCA_memcpy_STATIC_COMPONENTS
1008 MCA_memcpy_DSO_COMPONENTS
1009 MCA_memcpy_STATIC_LTLIBS
1010 MCA_memcpy_ALL_SUBDIRS
1011 MCA_memcpy_STATIC_SUBDIRS
1012 MCA_memcpy_DSO_SUBDIRS
1013 OMPI_BUILD_memory_darwin_DSO_TRUE
1014 OMPI_BUILD_memory_darwin_DSO_FALSE
1015 memory_ptmalloc2_LIBS
1016 OMPI_BUILD_memory_ptmalloc2_DSO_TRUE
1017 OMPI_BUILD_memory_ptmalloc2_DSO_FALSE
1018 memory_malloc_hooks_LIBS
1019 OMPI_BUILD_memory_malloc_hooks_DSO_TRUE
1020 OMPI_BUILD_memory_malloc_hooks_DSO_FALSE
1021 MCA_memory_ALL_COMPONENTS
1022 MCA_memory_STATIC_COMPONENTS
1023 MCA_memory_DSO_COMPONENTS
1024 MCA_memory_STATIC_LTLIBS
1025 MCA_memory_ALL_SUBDIRS
1026 MCA_memory_STATIC_SUBDIRS
1027 MCA_memory_DSO_SUBDIRS
1028 OMPI_BUILD_paffinity_linux_DSO_TRUE
1029 OMPI_BUILD_paffinity_linux_DSO_FALSE
1030 OMPI_BUILD_paffinity_solaris_DSO_TRUE
1031 OMPI_BUILD_paffinity_solaris_DSO_FALSE
1032 OMPI_BUILD_paffinity_windows_DSO_TRUE
1033 OMPI_BUILD_paffinity_windows_DSO_FALSE
1034 MCA_paffinity_ALL_COMPONENTS
1035 MCA_paffinity_STATIC_COMPONENTS
1036 MCA_paffinity_DSO_COMPONENTS
1037 MCA_paffinity_STATIC_LTLIBS
1038 MCA_paffinity_ALL_SUBDIRS
1039 MCA_paffinity_STATIC_SUBDIRS
1040 MCA_paffinity_DSO_SUBDIRS
1041 timer_aix_LIBS
1042 OMPI_BUILD_timer_aix_DSO_TRUE
1043 OMPI_BUILD_timer_aix_DSO_FALSE
1044 OMPI_BUILD_timer_altix_DSO_TRUE
1045 OMPI_BUILD_timer_altix_DSO_FALSE
1046 OMPI_BUILD_timer_darwin_DSO_TRUE
1047 OMPI_BUILD_timer_darwin_DSO_FALSE
1048 OMPI_BUILD_timer_solaris_DSO_TRUE
1049 OMPI_BUILD_timer_solaris_DSO_FALSE
1050 OMPI_BUILD_timer_windows_DSO_TRUE
1051 OMPI_BUILD_timer_windows_DSO_FALSE
1052 OMPI_BUILD_timer_linux_DSO_TRUE
1053 OMPI_BUILD_timer_linux_DSO_FALSE
1054 MCA_timer_ALL_COMPONENTS
1055 MCA_timer_STATIC_COMPONENTS
1056 MCA_timer_DSO_COMPONENTS
1057 MCA_timer_STATIC_LTLIBS
1058 MCA_timer_ALL_SUBDIRS
1059 MCA_timer_STATIC_SUBDIRS
1060 MCA_timer_DSO_SUBDIRS
1061 MCA_opal_FRAMEWORKS
1062 MCA_opal_FRAMEWORKS_SUBDIRS
1063 MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS
1064 MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS
1065 MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
1066 MCA_opal_FRAMEWORK_LIBS
1067 MCA_errmgr_ALL_COMPONENTS
1068 MCA_errmgr_STATIC_COMPONENTS
1069 MCA_errmgr_DSO_COMPONENTS
1070 MCA_errmgr_STATIC_LTLIBS
1071 MCA_errmgr_ALL_SUBDIRS
1072 MCA_errmgr_STATIC_SUBDIRS
1073 MCA_errmgr_DSO_SUBDIRS
1074 OMPI_BUILD_gpr_null_DSO_TRUE
1075 OMPI_BUILD_gpr_null_DSO_FALSE
1076 OMPI_BUILD_gpr_proxy_DSO_TRUE
1077 OMPI_BUILD_gpr_proxy_DSO_FALSE
1078 OMPI_BUILD_gpr_replica_DSO_TRUE
1079 OMPI_BUILD_gpr_replica_DSO_FALSE
1080 MCA_gpr_ALL_COMPONENTS
1081 MCA_gpr_STATIC_COMPONENTS
1082 MCA_gpr_DSO_COMPONENTS
1083 MCA_gpr_STATIC_LTLIBS
1084 MCA_gpr_ALL_SUBDIRS
1085 MCA_gpr_STATIC_SUBDIRS
1086 MCA_gpr_DSO_SUBDIRS
1087 OMPI_BUILD_iof_proxy_DSO_TRUE
1088 OMPI_BUILD_iof_proxy_DSO_FALSE
1089 OMPI_BUILD_iof_svc_DSO_TRUE
1090 OMPI_BUILD_iof_svc_DSO_FALSE
1091 MCA_iof_ALL_COMPONENTS
1092 MCA_iof_STATIC_COMPONENTS
1093 MCA_iof_DSO_COMPONENTS
1094 MCA_iof_STATIC_LTLIBS
1095 MCA_iof_ALL_SUBDIRS
1096 MCA_iof_STATIC_SUBDIRS
1097 MCA_iof_DSO_SUBDIRS
1098 OMPI_BUILD_ns_proxy_DSO_TRUE
1099 OMPI_BUILD_ns_proxy_DSO_FALSE
1100 OMPI_BUILD_ns_replica_DSO_TRUE
1101 OMPI_BUILD_ns_replica_DSO_FALSE
1102 MCA_ns_ALL_COMPONENTS
1103 MCA_ns_STATIC_COMPONENTS
1104 MCA_ns_DSO_COMPONENTS
1105 MCA_ns_STATIC_LTLIBS
1106 MCA_ns_ALL_SUBDIRS
1107 MCA_ns_STATIC_SUBDIRS
1108 MCA_ns_DSO_SUBDIRS
1109 OMPI_BUILD_oob_tcp_DSO_TRUE
1110 OMPI_BUILD_oob_tcp_DSO_FALSE
1111 MCA_oob_ALL_COMPONENTS
1112 MCA_oob_STATIC_COMPONENTS
1113 MCA_oob_DSO_COMPONENTS
1114 MCA_oob_STATIC_LTLIBS
1115 MCA_oob_ALL_SUBDIRS
1116 MCA_oob_STATIC_SUBDIRS
1117 MCA_oob_DSO_SUBDIRS
1118 pls_bproc_CPPFLAGS
1119 pls_bproc_LDFLAGS
1120 pls_bproc_LIBS
1121 OMPI_BUILD_pls_bproc_DSO_TRUE
1122 OMPI_BUILD_pls_bproc_DSO_FALSE
1123 pls_bproc_orted_CPPFLAGS
1124 pls_bproc_orted_LDFLAGS
1125 pls_bproc_orted_LIBS
1126 OMPI_BUILD_pls_bproc_orted_DSO_TRUE
1127 OMPI_BUILD_pls_bproc_orted_DSO_FALSE
1128 OMPI_BUILD_pls_fork_DSO_TRUE
1129 OMPI_BUILD_pls_fork_DSO_FALSE
1130 OMPI_BUILD_pls_poe_DSO_TRUE
1131 OMPI_BUILD_pls_poe_DSO_FALSE
1132 OMPI_BUILD_pls_rsh_DSO_TRUE
1133 OMPI_BUILD_pls_rsh_DSO_FALSE
1134 pls_slurm_CPPFLAGS
1135 pls_slurm_LDFLAGS
1136 pls_slurm_LIBS
1137 OMPI_BUILD_pls_slurm_DSO_TRUE
1138 OMPI_BUILD_pls_slurm_DSO_FALSE
1139 pls_tm_CPPFLAGS
1140 pls_tm_LDFLAGS
1141 pls_tm_LIBS
1142 OMPI_BUILD_pls_tm_DSO_TRUE
1143 OMPI_BUILD_pls_tm_DSO_FALSE
1144 OBJC
1145 OBJCFLAGS
1146 ac_ct_OBJC
1147 OBJCDEPMODE
1148 am__fastdepOBJC_TRUE
1149 am__fastdepOBJC_FALSE
1150 pls_xgrid_OBJCFLAGS
1151 pls_xgrid_LDFLAGS
1152 OMPI_BUILD_pls_xgrid_DSO_TRUE
1153 OMPI_BUILD_pls_xgrid_DSO_FALSE
1154 MCA_pls_ALL_COMPONENTS
1155 MCA_pls_STATIC_COMPONENTS
1156 MCA_pls_DSO_COMPONENTS
1157 MCA_pls_STATIC_LTLIBS
1158 MCA_pls_ALL_SUBDIRS
1159 MCA_pls_STATIC_SUBDIRS
1160 MCA_pls_DSO_SUBDIRS
1161 OMPI_BUILD_ras_dash_host_DSO_TRUE
1162 OMPI_BUILD_ras_dash_host_DSO_FALSE
1163 OMPI_BUILD_ras_hostfile_DSO_TRUE
1164 OMPI_BUILD_ras_hostfile_DSO_FALSE
1165 OMPI_BUILD_ras_localhost_DSO_TRUE
1166 OMPI_BUILD_ras_localhost_DSO_FALSE
1167 ras_bjs_CPPFLAGS
1168 ras_bjs_LDFLAGS
1169 ras_bjs_LIBS
1170 OMPI_BUILD_ras_bjs_DSO_TRUE
1171 OMPI_BUILD_ras_bjs_DSO_FALSE
1172 ras_loadleveler_CPPFLAGS
1173 ras_loadleveler_LDFLAGS
1174 ras_loadleveler_LIBS
1175 OMPI_BUILD_ras_loadleveler_DSO_TRUE
1176 OMPI_BUILD_ras_loadleveler_DSO_FALSE
1177 ras_lsf_bproc_CPPFLAGS
1178 ras_lsf_bproc_LDFLAGS
1179 ras_lsf_bproc_LIBS
1180 OMPI_BUILD_ras_lsf_bproc_DSO_TRUE
1181 OMPI_BUILD_ras_lsf_bproc_DSO_FALSE
1182 OMPI_BUILD_ras_poe_DSO_TRUE
1183 OMPI_BUILD_ras_poe_DSO_FALSE
1184 ras_slurm_CPPFLAGS
1185 ras_slurm_LDFLAGS
1186 ras_slurm_LIBS
1187 OMPI_BUILD_ras_slurm_DSO_TRUE
1188 OMPI_BUILD_ras_slurm_DSO_FALSE
1189 ras_tm_CPPFLAGS
1190 ras_tm_LDFLAGS
1191 ras_tm_LIBS
1192 OMPI_BUILD_ras_tm_DSO_TRUE
1193 OMPI_BUILD_ras_tm_DSO_FALSE
1194 OMPI_BUILD_ras_xgrid_DSO_TRUE
1195 OMPI_BUILD_ras_xgrid_DSO_FALSE
1196 MCA_ras_ALL_COMPONENTS
1197 MCA_ras_STATIC_COMPONENTS
1198 MCA_ras_DSO_COMPONENTS
1199 MCA_ras_STATIC_LTLIBS
1200 MCA_ras_ALL_SUBDIRS
1201 MCA_ras_STATIC_SUBDIRS
1202 MCA_ras_DSO_SUBDIRS
1203 OMPI_BUILD_rds_hostfile_DSO_TRUE
1204 OMPI_BUILD_rds_hostfile_DSO_FALSE
1205 OMPI_BUILD_rds_resfile_DSO_TRUE
1206 OMPI_BUILD_rds_resfile_DSO_FALSE
1207 MCA_rds_ALL_COMPONENTS
1208 MCA_rds_STATIC_COMPONENTS
1209 MCA_rds_DSO_COMPONENTS
1210 MCA_rds_STATIC_LTLIBS
1211 MCA_rds_ALL_SUBDIRS
1212 MCA_rds_STATIC_SUBDIRS
1213 MCA_rds_DSO_SUBDIRS
1214 OMPI_BUILD_rmaps_round_robin_DSO_TRUE
1215 OMPI_BUILD_rmaps_round_robin_DSO_FALSE
1216 MCA_rmaps_ALL_COMPONENTS
1217 MCA_rmaps_STATIC_COMPONENTS
1218 MCA_rmaps_DSO_COMPONENTS
1219 MCA_rmaps_STATIC_LTLIBS
1220 MCA_rmaps_ALL_SUBDIRS
1221 MCA_rmaps_STATIC_SUBDIRS
1222 MCA_rmaps_DSO_SUBDIRS
1223 OMPI_BUILD_rmgr_proxy_DSO_TRUE
1224 OMPI_BUILD_rmgr_proxy_DSO_FALSE
1225 OMPI_BUILD_rmgr_urm_DSO_TRUE
1226 OMPI_BUILD_rmgr_urm_DSO_FALSE
1227 OMPI_BUILD_rmgr_cnos_DSO_TRUE
1228 OMPI_BUILD_rmgr_cnos_DSO_FALSE
1229 MCA_rmgr_ALL_COMPONENTS
1230 MCA_rmgr_STATIC_COMPONENTS
1231 MCA_rmgr_DSO_COMPONENTS
1232 MCA_rmgr_STATIC_LTLIBS
1233 MCA_rmgr_ALL_SUBDIRS
1234 MCA_rmgr_STATIC_SUBDIRS
1235 MCA_rmgr_DSO_SUBDIRS
1236 OMPI_BUILD_rml_oob_DSO_TRUE
1237 OMPI_BUILD_rml_oob_DSO_FALSE
1238 OMPI_BUILD_rml_cnos_DSO_TRUE
1239 OMPI_BUILD_rml_cnos_DSO_FALSE
1240 MCA_rml_ALL_COMPONENTS
1241 MCA_rml_STATIC_COMPONENTS
1242 MCA_rml_DSO_COMPONENTS
1243 MCA_rml_STATIC_LTLIBS
1244 MCA_rml_ALL_SUBDIRS
1245 MCA_rml_STATIC_SUBDIRS
1246 MCA_rml_DSO_SUBDIRS
1247 MCA_schema_ALL_COMPONENTS
1248 MCA_schema_STATIC_COMPONENTS
1249 MCA_schema_DSO_COMPONENTS
1250 MCA_schema_STATIC_LTLIBS
1251 MCA_schema_ALL_SUBDIRS
1252 MCA_schema_STATIC_SUBDIRS
1253 MCA_schema_DSO_SUBDIRS
1254 OMPI_BUILD_sds_env_DSO_TRUE
1255 OMPI_BUILD_sds_env_DSO_FALSE
1256 OMPI_BUILD_sds_seed_DSO_TRUE
1257 OMPI_BUILD_sds_seed_DSO_FALSE
1258 OMPI_BUILD_sds_singleton_DSO_TRUE
1259 OMPI_BUILD_sds_singleton_DSO_FALSE
1260 sds_bproc_CPPFLAGS
1261 sds_bproc_LDFLAGS
1262 sds_bproc_LIBS
1263 OMPI_BUILD_sds_bproc_DSO_TRUE
1264 OMPI_BUILD_sds_bproc_DSO_FALSE
1265 OMPI_BUILD_sds_cnos_DSO_TRUE
1266 OMPI_BUILD_sds_cnos_DSO_FALSE
1267 OMPI_BUILD_sds_pipe_DSO_TRUE
1268 OMPI_BUILD_sds_pipe_DSO_FALSE
1269 sds_portals_utcp_CPPFLAGS
1270 sds_portals_utcp_LDFLAGS
1271 sds_portals_utcp_LIBS
1272 OMPI_BUILD_sds_portals_utcp_DSO_TRUE
1273 OMPI_BUILD_sds_portals_utcp_DSO_FALSE
1274 sds_slurm_CPPFLAGS
1275 sds_slurm_LDFLAGS
1276 sds_slurm_LIBS
1277 OMPI_BUILD_sds_slurm_DSO_TRUE
1278 OMPI_BUILD_sds_slurm_DSO_FALSE
1279 MCA_sds_ALL_COMPONENTS
1280 MCA_sds_STATIC_COMPONENTS
1281 MCA_sds_DSO_COMPONENTS
1282 MCA_sds_STATIC_LTLIBS
1283 MCA_sds_ALL_SUBDIRS
1284 MCA_sds_STATIC_SUBDIRS
1285 MCA_sds_DSO_SUBDIRS
1286 soh_bproc_CPPFLAGS
1287 soh_bproc_LDFLAGS
1288 soh_bproc_LIBS
1289 OMPI_BUILD_soh_bproc_DSO_TRUE
1290 OMPI_BUILD_soh_bproc_DSO_FALSE
1291 MCA_soh_ALL_COMPONENTS
1292 MCA_soh_STATIC_COMPONENTS
1293 MCA_soh_DSO_COMPONENTS
1294 MCA_soh_STATIC_LTLIBS
1295 MCA_soh_ALL_SUBDIRS
1296 MCA_soh_STATIC_SUBDIRS
1297 MCA_soh_DSO_SUBDIRS
1298 MCA_orte_FRAMEWORKS
1299 MCA_orte_FRAMEWORKS_SUBDIRS
1300 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS
1301 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS
1302 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
1303 MCA_orte_FRAMEWORK_LIBS
1304 OMPI_BUILD_allocator_basic_DSO_TRUE
1305 OMPI_BUILD_allocator_basic_DSO_FALSE
1306 OMPI_BUILD_allocator_bucket_DSO_TRUE
1307 OMPI_BUILD_allocator_bucket_DSO_FALSE
1308 MCA_allocator_ALL_COMPONENTS
1309 MCA_allocator_STATIC_COMPONENTS
1310 MCA_allocator_DSO_COMPONENTS
1311 MCA_allocator_STATIC_LTLIBS
1312 MCA_allocator_ALL_SUBDIRS
1313 MCA_allocator_STATIC_SUBDIRS
1314 MCA_allocator_DSO_SUBDIRS
1315 OMPI_BUILD_bml_r2_DSO_TRUE
1316 OMPI_BUILD_bml_r2_DSO_FALSE
1317 MCA_bml_ALL_COMPONENTS
1318 MCA_bml_STATIC_COMPONENTS
1319 MCA_bml_DSO_COMPONENTS
1320 MCA_bml_STATIC_LTLIBS
1321 MCA_bml_ALL_SUBDIRS
1322 MCA_bml_STATIC_SUBDIRS
1323 MCA_bml_DSO_SUBDIRS
1324 OMPI_BUILD_btl_self_DSO_TRUE
1325 OMPI_BUILD_btl_self_DSO_FALSE
1326 OMPI_BUILD_btl_sm_DSO_TRUE
1327 OMPI_BUILD_btl_sm_DSO_FALSE
1328 btl_gm_CFLAGS
1329 btl_gm_CPPFLAGS
1330 btl_gm_LDFLAGS
1331 btl_gm_LIBS
1332 OMPI_BUILD_btl_gm_DSO_TRUE
1333 OMPI_BUILD_btl_gm_DSO_FALSE
1334 btl_mvapi_CFLAGS
1335 btl_mvapi_CPPFLAGS
1336 btl_mvapi_LDFLAGS
1337 btl_mvapi_LIBS
1338 OMPI_BUILD_btl_mvapi_DSO_TRUE
1339 OMPI_BUILD_btl_mvapi_DSO_FALSE
1340 btl_mx_CFLAGS
1341 btl_mx_CPPFLAGS
1342 btl_mx_LDFLAGS
1343 btl_mx_LIBS
1344 OMPI_BUILD_btl_mx_DSO_TRUE
1345 OMPI_BUILD_btl_mx_DSO_FALSE
1346 btl_openib_CFLAGS
1347 btl_openib_CPPFLAGS
1348 btl_openib_LDFLAGS
1349 btl_openib_LIBS
1350 OMPI_BUILD_btl_openib_DSO_TRUE
1351 OMPI_BUILD_btl_openib_DSO_FALSE
1352 btl_portals_CPPFLAGS
1353 btl_portals_LDFLAGS
1354 btl_portals_LIBS
1355 OMPI_BUILD_btl_portals_DSO_TRUE
1356 OMPI_BUILD_btl_portals_DSO_FALSE
1357 OMPI_BUILD_btl_tcp_DSO_TRUE
1358 OMPI_BUILD_btl_tcp_DSO_FALSE
1359 MCA_btl_ALL_COMPONENTS
1360 MCA_btl_STATIC_COMPONENTS
1361 MCA_btl_DSO_COMPONENTS
1362 MCA_btl_STATIC_LTLIBS
1363 MCA_btl_ALL_SUBDIRS
1364 MCA_btl_STATIC_SUBDIRS
1365 MCA_btl_DSO_SUBDIRS
1366 OMPI_BUILD_coll_basic_DSO_TRUE
1367 OMPI_BUILD_coll_basic_DSO_FALSE
1368 OMPI_BUILD_coll_hierarch_DSO_TRUE
1369 OMPI_BUILD_coll_hierarch_DSO_FALSE
1370 OMPI_BUILD_coll_self_DSO_TRUE
1371 OMPI_BUILD_coll_self_DSO_FALSE
1372 OMPI_BUILD_coll_sm_DSO_TRUE
1373 OMPI_BUILD_coll_sm_DSO_FALSE
1374 OMPI_BUILD_coll_tuned_DSO_TRUE
1375 OMPI_BUILD_coll_tuned_DSO_FALSE
1376 MCA_coll_ALL_COMPONENTS
1377 MCA_coll_STATIC_COMPONENTS
1378 MCA_coll_DSO_COMPONENTS
1379 MCA_coll_STATIC_LTLIBS
1380 MCA_coll_ALL_SUBDIRS
1381 MCA_coll_STATIC_SUBDIRS
1382 MCA_coll_DSO_SUBDIRS
1383 OMPI_BUILD_common_sm_DSO_TRUE
1384 OMPI_BUILD_common_sm_DSO_FALSE
1385 MCA_common_ALL_COMPONENTS
1386 MCA_common_STATIC_COMPONENTS
1387 MCA_common_DSO_COMPONENTS
1388 MCA_common_STATIC_LTLIBS
1389 MCA_common_ALL_SUBDIRS
1390 MCA_common_STATIC_SUBDIRS
1391 MCA_common_DSO_SUBDIRS
1392 OMPI_BUILD_io_romio_DSO_TRUE
1393 OMPI_BUILD_io_romio_DSO_FALSE
1394 MCA_io_ALL_COMPONENTS
1395 MCA_io_STATIC_COMPONENTS
1396 MCA_io_DSO_COMPONENTS
1397 MCA_io_STATIC_LTLIBS
1398 MCA_io_ALL_SUBDIRS
1399 MCA_io_STATIC_SUBDIRS
1400 MCA_io_DSO_SUBDIRS
1401 OMPI_BUILD_mpool_sm_DSO_TRUE
1402 OMPI_BUILD_mpool_sm_DSO_FALSE
1403 mpool_gm_CFLAGS
1404 mpool_gm_CPPFLAGS
1405 mpool_gm_LDFLAGS
1406 mpool_gm_LIBS
1407 OMPI_BUILD_mpool_gm_DSO_TRUE
1408 OMPI_BUILD_mpool_gm_DSO_FALSE
1409 mpool_mvapi_CFLAGS
1410 mpool_mvapi_CPPFLAGS
1411 mpool_mvapi_LDFLAGS
1412 mpool_mvapi_LIBS
1413 OMPI_BUILD_mpool_mvapi_DSO_TRUE
1414 OMPI_BUILD_mpool_mvapi_DSO_FALSE
1415 mpool_openib_CFLAGS
1416 mpool_openib_CPPFLAGS
1417 mpool_openib_LDFLAGS
1418 mpool_openib_LIBS
1419 OMPI_BUILD_mpool_openib_DSO_TRUE
1420 OMPI_BUILD_mpool_openib_DSO_FALSE
1421 MCA_mpool_ALL_COMPONENTS
1422 MCA_mpool_STATIC_COMPONENTS
1423 MCA_mpool_DSO_COMPONENTS
1424 MCA_mpool_STATIC_LTLIBS
1425 MCA_mpool_ALL_SUBDIRS
1426 MCA_mpool_STATIC_SUBDIRS
1427 MCA_mpool_DSO_SUBDIRS
1428 OMPI_BUILD_osc_pt2pt_DSO_TRUE
1429 OMPI_BUILD_osc_pt2pt_DSO_FALSE
1430 MCA_osc_ALL_COMPONENTS
1431 MCA_osc_STATIC_COMPONENTS
1432 MCA_osc_DSO_COMPONENTS
1433 MCA_osc_STATIC_LTLIBS
1434 MCA_osc_ALL_SUBDIRS
1435 MCA_osc_STATIC_SUBDIRS
1436 MCA_osc_DSO_SUBDIRS
1437 OMPI_BUILD_pml_ob1_DSO_TRUE
1438 OMPI_BUILD_pml_ob1_DSO_FALSE
1439 MCA_pml_ALL_COMPONENTS
1440 MCA_pml_STATIC_COMPONENTS
1441 MCA_pml_DSO_COMPONENTS
1442 MCA_pml_STATIC_LTLIBS
1443 MCA_pml_ALL_SUBDIRS
1444 MCA_pml_STATIC_SUBDIRS
1445 MCA_pml_DSO_SUBDIRS
1446 OMPI_BUILD_rcache_rb_DSO_TRUE
1447 OMPI_BUILD_rcache_rb_DSO_FALSE
1448 MCA_rcache_ALL_COMPONENTS
1449 MCA_rcache_STATIC_COMPONENTS
1450 MCA_rcache_DSO_COMPONENTS
1451 MCA_rcache_STATIC_LTLIBS
1452 MCA_rcache_ALL_SUBDIRS
1453 MCA_rcache_STATIC_SUBDIRS
1454 MCA_rcache_DSO_SUBDIRS
1455 OMPI_BUILD_topo_unity_DSO_TRUE
1456 OMPI_BUILD_topo_unity_DSO_FALSE
1457 MCA_topo_ALL_COMPONENTS
1458 MCA_topo_STATIC_COMPONENTS
1459 MCA_topo_DSO_COMPONENTS
1460 MCA_topo_STATIC_LTLIBS
1461 MCA_topo_ALL_SUBDIRS
1462 MCA_topo_STATIC_SUBDIRS
1463 MCA_topo_DSO_SUBDIRS
1464 MCA_ompi_FRAMEWORKS
1465 MCA_ompi_FRAMEWORKS_SUBDIRS
1466 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS
1467 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS
1468 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
1469 MCA_ompi_FRAMEWORK_LIBS
1470 MCA_pml_DIRECT_CALL_HEADER
1471 MCA_PROJECT_SUBDIRS
1472 OMPI_LIBEVENT_SOURCES
1473 LTDLINCL
1474 LIBLTDL
1475 ECHO
1477 RANLIB
1478 LIBTOOL
1479 LIBLTDL_SUBDIR
1480 LIBLTDL_LTLIB
1481 OPAL_LTDL_CPPFLAGS
1482 WANT_LIBLTDL_TRUE
1483 WANT_LIBLTDL_FALSE
1484 CFLAGS_WITHOUT_OPTFLAGS
1485 TOTALVIEW_DEBUG_FLAGS
1486 CXXCPPFLAGS
1487 OPAL_WRAPPER_EXTRA_CPPFLAGS
1488 OPAL_WRAPPER_EXTRA_CFLAGS
1489 OPAL_WRAPPER_EXTRA_CXXFLAGS
1490 OPAL_WRAPPER_EXTRA_LDFLAGS
1491 OPAL_WRAPPER_EXTRA_LIBS
1492 OPAL_WRAPPER_EXTRA_INCLUDES
1493 ORTE_WRAPPER_EXTRA_CPPFLAGS
1494 ORTE_WRAPPER_EXTRA_CFLAGS
1495 ORTE_WRAPPER_EXTRA_CXXFLAGS
1496 ORTE_WRAPPER_EXTRA_LDFLAGS
1497 ORTE_WRAPPER_EXTRA_LIBS
1498 ORTE_WRAPPER_EXTRA_INCLUDES
1499 OMPI_WRAPPER_EXTRA_CPPFLAGS
1500 OMPI_WRAPPER_EXTRA_CFLAGS
1501 OMPI_WRAPPER_EXTRA_CXXFLAGS
1502 OMPI_WRAPPER_EXTRA_FFLAGS
1503 OMPI_WRAPPER_EXTRA_FCFLAGS
1504 OMPI_WRAPPER_EXTRA_LDFLAGS
1505 OMPI_WRAPPER_EXTRA_LIBS
1506 OMPI_WRAPPER_EXTRA_INCLUDES
1507 OMPI_WRAPPER_CXX_LIB
1508 OMPI_WRAPPER_CXX_REQUIRED_FILE
1509 OMPI_WRAPPER_F77_REQUIRED_FILE
1510 OMPI_WRAPPER_F90_REQUIRED_FILE
1511 WRAPPER_EXTRA_CFLAGS
1512 WRAPPER_EXTRA_CXXFLAGS
1513 WRAPPER_EXTRA_FFLAGS
1514 WRAPPER_EXTRA_FCFLAGS
1515 WRAPPER_EXTRA_LDFLAGS
1516 WRAPPER_EXTRA_LIBS
1517 OPAL_PREFIX
1518 OPAL_EXEC_PREFIX
1519 OPAL_BINDIR
1520 OPAL_SBINDIR
1521 OPAL_LIBEXECDIR
1522 OPAL_DATADIR
1523 OPAL_SYSCONFDIR
1524 OPAL_SHAREDSTATEDIR
1525 OPAL_LOCALSTATEDIR
1526 OPAL_LIBDIR
1527 OPAL_INCLUDEDIR
1528 OPAL_INFODIR
1529 OPAL_MANDIR
1530 LIBOBJS
1531 LTLIBOBJS'
1532 ac_subst_files=''
1533 ac_precious_vars='build_alias
1534 host_alias
1535 target_alias
1537 CFLAGS
1538 LDFLAGS
1539 LIBS
1540 CPPFLAGS
1543 CXXFLAGS
1545 CXXCPP
1546 CCAS
1547 CCASFLAGS
1549 FFLAGS
1551 FCFLAGS
1552 OBJC
1553 OBJCFLAGS'
1556 # Initialize some variables set by options.
1557 ac_init_help=
1558 ac_init_version=false
1559 # The variables have the same names as the options, with
1560 # dashes changed to underlines.
1561 cache_file=/dev/null
1562 exec_prefix=NONE
1563 no_create=
1564 no_recursion=
1565 prefix=NONE
1566 program_prefix=NONE
1567 program_suffix=NONE
1568 program_transform_name=s,x,x,
1569 silent=
1570 site=
1571 srcdir=
1572 verbose=
1573 x_includes=NONE
1574 x_libraries=NONE
1576 # Installation directory options.
1577 # These are left unexpanded so users can "make install exec_prefix=/foo"
1578 # and all the variables that are supposed to be based on exec_prefix
1579 # by default will actually change.
1580 # Use braces instead of parens because sh, perl, etc. also accept them.
1581 # (The list follows the same order as the GNU Coding Standards.)
1582 bindir='${exec_prefix}/bin'
1583 sbindir='${exec_prefix}/sbin'
1584 libexecdir='${exec_prefix}/libexec'
1585 datarootdir='${prefix}/share'
1586 datadir='${datarootdir}'
1587 sysconfdir='${prefix}/etc'
1588 sharedstatedir='${prefix}/com'
1589 localstatedir='${prefix}/var'
1590 includedir='${prefix}/include'
1591 oldincludedir='/usr/include'
1592 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1593 infodir='${datarootdir}/info'
1594 htmldir='${docdir}'
1595 dvidir='${docdir}'
1596 pdfdir='${docdir}'
1597 psdir='${docdir}'
1598 libdir='${exec_prefix}/lib'
1599 localedir='${datarootdir}/locale'
1600 mandir='${datarootdir}/man'
1602 ac_prev=
1603 ac_dashdash=
1604 for ac_option
1606 # If the previous option needs an argument, assign it.
1607 if test -n "$ac_prev"; then
1608 eval $ac_prev=\$ac_option
1609 ac_prev=
1610 continue
1613 case $ac_option in
1614 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1615 *) ac_optarg=yes ;;
1616 esac
1618 # Accept the important Cygnus configure options, so we can diagnose typos.
1620 case $ac_dashdash$ac_option in
1622 ac_dashdash=yes ;;
1624 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1625 ac_prev=bindir ;;
1626 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1627 bindir=$ac_optarg ;;
1629 -build | --build | --buil | --bui | --bu)
1630 ac_prev=build_alias ;;
1631 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1632 build_alias=$ac_optarg ;;
1634 -cache-file | --cache-file | --cache-fil | --cache-fi \
1635 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1636 ac_prev=cache_file ;;
1637 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1638 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1639 cache_file=$ac_optarg ;;
1641 --config-cache | -C)
1642 cache_file=config.cache ;;
1644 -datadir | --datadir | --datadi | --datad)
1645 ac_prev=datadir ;;
1646 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1647 datadir=$ac_optarg ;;
1649 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1650 | --dataroo | --dataro | --datar)
1651 ac_prev=datarootdir ;;
1652 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1653 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1654 datarootdir=$ac_optarg ;;
1656 -disable-* | --disable-*)
1657 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1658 # Reject names that are not valid shell variable names.
1659 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1660 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1661 { (exit 1); exit 1; }; }
1662 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1663 eval enable_$ac_feature=no ;;
1665 -docdir | --docdir | --docdi | --doc | --do)
1666 ac_prev=docdir ;;
1667 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1668 docdir=$ac_optarg ;;
1670 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1671 ac_prev=dvidir ;;
1672 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1673 dvidir=$ac_optarg ;;
1675 -enable-* | --enable-*)
1676 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1677 # Reject names that are not valid shell variable names.
1678 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1679 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1680 { (exit 1); exit 1; }; }
1681 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1682 eval enable_$ac_feature=\$ac_optarg ;;
1684 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1685 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1686 | --exec | --exe | --ex)
1687 ac_prev=exec_prefix ;;
1688 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1689 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1690 | --exec=* | --exe=* | --ex=*)
1691 exec_prefix=$ac_optarg ;;
1693 -gas | --gas | --ga | --g)
1694 # Obsolete; use --with-gas.
1695 with_gas=yes ;;
1697 -help | --help | --hel | --he | -h)
1698 ac_init_help=long ;;
1699 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1700 ac_init_help=recursive ;;
1701 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1702 ac_init_help=short ;;
1704 -host | --host | --hos | --ho)
1705 ac_prev=host_alias ;;
1706 -host=* | --host=* | --hos=* | --ho=*)
1707 host_alias=$ac_optarg ;;
1709 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1710 ac_prev=htmldir ;;
1711 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1712 | --ht=*)
1713 htmldir=$ac_optarg ;;
1715 -includedir | --includedir | --includedi | --included | --include \
1716 | --includ | --inclu | --incl | --inc)
1717 ac_prev=includedir ;;
1718 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1719 | --includ=* | --inclu=* | --incl=* | --inc=*)
1720 includedir=$ac_optarg ;;
1722 -infodir | --infodir | --infodi | --infod | --info | --inf)
1723 ac_prev=infodir ;;
1724 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1725 infodir=$ac_optarg ;;
1727 -libdir | --libdir | --libdi | --libd)
1728 ac_prev=libdir ;;
1729 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1730 libdir=$ac_optarg ;;
1732 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1733 | --libexe | --libex | --libe)
1734 ac_prev=libexecdir ;;
1735 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1736 | --libexe=* | --libex=* | --libe=*)
1737 libexecdir=$ac_optarg ;;
1739 -localedir | --localedir | --localedi | --localed | --locale)
1740 ac_prev=localedir ;;
1741 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1742 localedir=$ac_optarg ;;
1744 -localstatedir | --localstatedir | --localstatedi | --localstated \
1745 | --localstate | --localstat | --localsta | --localst | --locals)
1746 ac_prev=localstatedir ;;
1747 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1748 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1749 localstatedir=$ac_optarg ;;
1751 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1752 ac_prev=mandir ;;
1753 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1754 mandir=$ac_optarg ;;
1756 -nfp | --nfp | --nf)
1757 # Obsolete; use --without-fp.
1758 with_fp=no ;;
1760 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1761 | --no-cr | --no-c | -n)
1762 no_create=yes ;;
1764 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1765 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1766 no_recursion=yes ;;
1768 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1769 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1770 | --oldin | --oldi | --old | --ol | --o)
1771 ac_prev=oldincludedir ;;
1772 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1773 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1774 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1775 oldincludedir=$ac_optarg ;;
1777 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1778 ac_prev=prefix ;;
1779 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1780 prefix=$ac_optarg ;;
1782 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1783 | --program-pre | --program-pr | --program-p)
1784 ac_prev=program_prefix ;;
1785 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1786 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1787 program_prefix=$ac_optarg ;;
1789 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1790 | --program-suf | --program-su | --program-s)
1791 ac_prev=program_suffix ;;
1792 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1793 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1794 program_suffix=$ac_optarg ;;
1796 -program-transform-name | --program-transform-name \
1797 | --program-transform-nam | --program-transform-na \
1798 | --program-transform-n | --program-transform- \
1799 | --program-transform | --program-transfor \
1800 | --program-transfo | --program-transf \
1801 | --program-trans | --program-tran \
1802 | --progr-tra | --program-tr | --program-t)
1803 ac_prev=program_transform_name ;;
1804 -program-transform-name=* | --program-transform-name=* \
1805 | --program-transform-nam=* | --program-transform-na=* \
1806 | --program-transform-n=* | --program-transform-=* \
1807 | --program-transform=* | --program-transfor=* \
1808 | --program-transfo=* | --program-transf=* \
1809 | --program-trans=* | --program-tran=* \
1810 | --progr-tra=* | --program-tr=* | --program-t=*)
1811 program_transform_name=$ac_optarg ;;
1813 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1814 ac_prev=pdfdir ;;
1815 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1816 pdfdir=$ac_optarg ;;
1818 -psdir | --psdir | --psdi | --psd | --ps)
1819 ac_prev=psdir ;;
1820 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1821 psdir=$ac_optarg ;;
1823 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1824 | -silent | --silent | --silen | --sile | --sil)
1825 silent=yes ;;
1827 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1828 ac_prev=sbindir ;;
1829 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1830 | --sbi=* | --sb=*)
1831 sbindir=$ac_optarg ;;
1833 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1834 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1835 | --sharedst | --shareds | --shared | --share | --shar \
1836 | --sha | --sh)
1837 ac_prev=sharedstatedir ;;
1838 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1839 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1840 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1841 | --sha=* | --sh=*)
1842 sharedstatedir=$ac_optarg ;;
1844 -site | --site | --sit)
1845 ac_prev=site ;;
1846 -site=* | --site=* | --sit=*)
1847 site=$ac_optarg ;;
1849 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1850 ac_prev=srcdir ;;
1851 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1852 srcdir=$ac_optarg ;;
1854 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1855 | --syscon | --sysco | --sysc | --sys | --sy)
1856 ac_prev=sysconfdir ;;
1857 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1858 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1859 sysconfdir=$ac_optarg ;;
1861 -target | --target | --targe | --targ | --tar | --ta | --t)
1862 ac_prev=target_alias ;;
1863 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1864 target_alias=$ac_optarg ;;
1866 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1867 verbose=yes ;;
1869 -version | --version | --versio | --versi | --vers | -V)
1870 ac_init_version=: ;;
1872 -with-* | --with-*)
1873 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1874 # Reject names that are not valid shell variable names.
1875 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1876 { echo "$as_me: error: invalid package name: $ac_package" >&2
1877 { (exit 1); exit 1; }; }
1878 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1879 eval with_$ac_package=\$ac_optarg ;;
1881 -without-* | --without-*)
1882 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1883 # Reject names that are not valid shell variable names.
1884 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1885 { echo "$as_me: error: invalid package name: $ac_package" >&2
1886 { (exit 1); exit 1; }; }
1887 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1888 eval with_$ac_package=no ;;
1890 --x)
1891 # Obsolete; use --with-x.
1892 with_x=yes ;;
1894 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1895 | --x-incl | --x-inc | --x-in | --x-i)
1896 ac_prev=x_includes ;;
1897 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1898 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1899 x_includes=$ac_optarg ;;
1901 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1902 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1903 ac_prev=x_libraries ;;
1904 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1905 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1906 x_libraries=$ac_optarg ;;
1908 -*) { echo "$as_me: error: unrecognized option: $ac_option
1909 Try \`$0 --help' for more information." >&2
1910 { (exit 1); exit 1; }; }
1913 *=*)
1914 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1915 # Reject names that are not valid shell variable names.
1916 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1917 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1918 { (exit 1); exit 1; }; }
1919 eval $ac_envvar=\$ac_optarg
1920 export $ac_envvar ;;
1923 # FIXME: should be removed in autoconf 3.0.
1924 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1925 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1926 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1927 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1930 esac
1931 done
1933 if test -n "$ac_prev"; then
1934 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1935 { echo "$as_me: error: missing argument to $ac_option" >&2
1936 { (exit 1); exit 1; }; }
1939 # Be sure to have absolute directory names.
1940 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1941 datadir sysconfdir sharedstatedir localstatedir includedir \
1942 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1943 libdir localedir mandir
1945 eval ac_val=\$$ac_var
1946 case $ac_val in
1947 [\\/$]* | ?:[\\/]* ) continue;;
1948 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1949 esac
1950 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1951 { (exit 1); exit 1; }; }
1952 done
1954 # There might be people who depend on the old broken behavior: `$host'
1955 # used to hold the argument of --host etc.
1956 # FIXME: To remove some day.
1957 build=$build_alias
1958 host=$host_alias
1959 target=$target_alias
1961 # FIXME: To remove some day.
1962 if test "x$host_alias" != x; then
1963 if test "x$build_alias" = x; then
1964 cross_compiling=maybe
1965 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1966 If a cross compiler is detected then cross compile mode will be used." >&2
1967 elif test "x$build_alias" != "x$host_alias"; then
1968 cross_compiling=yes
1972 ac_tool_prefix=
1973 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1975 test "$silent" = yes && exec 6>/dev/null
1978 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1979 ac_ls_di=`ls -di .` &&
1980 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1981 { echo "$as_me: error: Working directory cannot be determined" >&2
1982 { (exit 1); exit 1; }; }
1983 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1984 { echo "$as_me: error: pwd does not report name of working directory" >&2
1985 { (exit 1); exit 1; }; }
1988 # Find the source files, if location was not specified.
1989 if test -z "$srcdir"; then
1990 ac_srcdir_defaulted=yes
1991 # Try the directory containing this script, then the parent directory.
1992 ac_confdir=`$as_dirname -- "$0" ||
1993 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1994 X"$0" : 'X\(//\)[^/]' \| \
1995 X"$0" : 'X\(//\)$' \| \
1996 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1997 echo X"$0" |
1998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1999 s//\1/
2002 /^X\(\/\/\)[^/].*/{
2003 s//\1/
2006 /^X\(\/\/\)$/{
2007 s//\1/
2010 /^X\(\/\).*/{
2011 s//\1/
2014 s/.*/./; q'`
2015 srcdir=$ac_confdir
2016 if test ! -r "$srcdir/$ac_unique_file"; then
2017 srcdir=..
2019 else
2020 ac_srcdir_defaulted=no
2022 if test ! -r "$srcdir/$ac_unique_file"; then
2023 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2024 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
2025 { (exit 1); exit 1; }; }
2027 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2028 ac_abs_confdir=`(
2029 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
2030 { (exit 1); exit 1; }; }
2031 pwd)`
2032 # When building in place, set srcdir=.
2033 if test "$ac_abs_confdir" = "$ac_pwd"; then
2034 srcdir=.
2036 # Remove unnecessary trailing slashes from srcdir.
2037 # Double slashes in file names in object file debugging info
2038 # mess up M-x gdb in Emacs.
2039 case $srcdir in
2040 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2041 esac
2042 for ac_var in $ac_precious_vars; do
2043 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2044 eval ac_env_${ac_var}_value=\$${ac_var}
2045 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2046 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2047 done
2050 # Report the --help message.
2052 if test "$ac_init_help" = "long"; then
2053 # Omit some internal or obsolete options to make the list less imposing.
2054 # This message is too long to be a string in the A/UX 3.1 sh.
2055 cat <<_ACEOF
2056 \`configure' configures Open MPI 1.1.2 to adapt to many kinds of systems.
2058 Usage: $0 [OPTION]... [VAR=VALUE]...
2060 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2061 VAR=VALUE. See below for descriptions of some of the useful variables.
2063 Defaults for the options are specified in brackets.
2065 Configuration:
2066 -h, --help display this help and exit
2067 --help=short display options specific to this package
2068 --help=recursive display the short help of all the included packages
2069 -V, --version display version information and exit
2070 -q, --quiet, --silent do not print \`checking...' messages
2071 --cache-file=FILE cache test results in FILE [disabled]
2072 -C, --config-cache alias for \`--cache-file=config.cache'
2073 -n, --no-create do not create output files
2074 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2076 Installation directories:
2077 --prefix=PREFIX install architecture-independent files in PREFIX
2078 [$ac_default_prefix]
2079 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2080 [PREFIX]
2082 By default, \`make install' will install all the files in
2083 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2084 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2085 for instance \`--prefix=\$HOME'.
2087 For better control, use the options below.
2089 Fine tuning of the installation directories:
2090 --bindir=DIR user executables [EPREFIX/bin]
2091 --sbindir=DIR system admin executables [EPREFIX/sbin]
2092 --libexecdir=DIR program executables [EPREFIX/libexec]
2093 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2094 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2095 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2096 --libdir=DIR object code libraries [EPREFIX/lib]
2097 --includedir=DIR C header files [PREFIX/include]
2098 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2099 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2100 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2101 --infodir=DIR info documentation [DATAROOTDIR/info]
2102 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2103 --mandir=DIR man documentation [DATAROOTDIR/man]
2104 --docdir=DIR documentation root [DATAROOTDIR/doc/openmpi]
2105 --htmldir=DIR html documentation [DOCDIR]
2106 --dvidir=DIR dvi documentation [DOCDIR]
2107 --pdfdir=DIR pdf documentation [DOCDIR]
2108 --psdir=DIR ps documentation [DOCDIR]
2109 _ACEOF
2111 cat <<\_ACEOF
2113 Program names:
2114 --program-prefix=PREFIX prepend PREFIX to installed program names
2115 --program-suffix=SUFFIX append SUFFIX to installed program names
2116 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2118 System types:
2119 --build=BUILD configure for building on BUILD [guessed]
2120 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2121 _ACEOF
2124 if test -n "$ac_init_help"; then
2125 case $ac_init_help in
2126 short | recursive ) echo "Configuration of Open MPI 1.1.2:";;
2127 esac
2128 cat <<\_ACEOF
2130 Optional Features:
2131 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2132 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2133 --enable-dist guarantee that that the "dist" make target will be
2134 functional, although may not guarantee that any
2135 other make target will be functional.
2136 --enable-coverage enable code coverage files to be generated
2137 --enable-mem-debug enable memory debugging (debugging only) (default:
2138 disabled)
2139 --enable-mem-profile enable memory profiling (debugging only) (default:
2140 disabled)
2141 --enable-picky enable developer-level compiler pickyness when
2142 building Open MPI (default: disabled)
2143 --enable-debug enable developer-level debugging code (not for
2144 general MPI users!) (default: disabled)
2145 --enable-mpi-f77 enable f77 MPI bindings (default: enabled)
2146 --enable-mpi-f90 enable f90 MPI bindings (default: enabled)
2147 --enable-mpi-profile enable MPI profiling (default: enabled)
2148 --enable-mpi-cxx enable C++ MPI bindings (default: enabled)
2149 --enable-weak-symbols use weak symbols, if available (default: enabled)
2150 --enable-pretty-print-stacktrace
2151 Pretty print stacktrace on process signal
2152 --enable-deprecated-executable-names
2153 make sym links to deprecated OMPI executables (e.g.,
2154 hcc, hcp, hf77, wipe) (default: disabled)
2155 --enable-peruse Support PERUSE interface (default: disabled)
2156 --enable-pty-support Enable/disable PTY support for STDIO forwarding.
2157 default: enabled
2158 --enable-dlopen Whether build should attempt to use dlopen (or
2159 similar) to dynamically load components. Disabling
2160 dlopen implies --disable-mca-dso. (default: enabled)
2161 --enable-heterogeneous Enable features required for heterogeneous platform
2162 support (default: enabled)
2163 --enable-trace Enable internal tracing of OMPI/ORTE/OPAL calls --
2164 used only for developer debugging, not tracing of
2165 MPI applications (default: disabled)
2166 --enable-shared[=PKGS] build shared libraries [default=yes]
2167 --enable-static[=PKGS] build static libraries [default=no]
2168 --disable-dependency-tracking speeds up one-time build
2169 --enable-dependency-tracking do not reject slow dependency extractors
2170 --enable-cxx-exceptions enable support for C++ exceptions
2171 --enable-smp-locks enable smp locks in atomic ops. Do not disable if
2172 code will ever run in SMP or multi-threaded
2173 environment. (default: enabled)
2174 --enable-mpi-threads Enable threads for MPI applications (default:
2175 disabled)
2176 --enable-progress-threads
2177 Enable threads asynchronous communication progress
2178 (default: disabled)
2179 --enable-mca-no-build=LIST
2180 Comma-separated list of <type>-<component> pairs
2181 that will not be built. Example:
2182 "--enable-mca-no-build=maffinity-libnuma,btl-portals"
2183 will disable building both the "libnuma" maffinity
2184 and "portals" btl components.
2185 --enable-mca-dso=LIST Comma-separated list of types and/or type-component
2186 pairs that will be built as run-time loadable
2187 components (as opposed to statically linked in), if
2188 supported on this platform. The default is to build
2189 all components as DSOs.
2190 --enable-mca-static=LIST
2191 Comma-separated list of types and/or type-component
2192 pairs that will be built statically linked into the
2193 library. The default (if DSOs are supported) is to
2194 build all components as DSOs. Enabling a component
2195 as static disables it building as a DSO.
2196 --enable-mca-direct=LIST
2197 Comma-separated list of type-component pairs that
2198 will be hard coded as the one component to use for a
2199 given component type, saving the (small) overhead of
2200 the component architecture. LIST must not be empty
2201 and implies given component pairs are build as
2202 static components.
2203 --enable-ptmalloc2-opt-sbrk
2204 Only trigger callbacks when sbrk is used for small
2205 allocations, rather than every call to malloc/free.
2206 (default: enabled)
2207 --disable-io-romio Disable the ROMIO MPI-IO component
2208 --enable-fast-install[=PKGS]
2209 optimize for fast installation [default=yes]
2210 --disable-libtool-lock avoid locking (might break parallel builds)
2212 Optional Packages:
2213 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2214 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2215 --with-platform=FILE Load options for build from FILE. Options on the
2216 command line not in FILE are used. Options on the
2217 command line and in FILE are replaced by what is in
2218 FILE.
2219 --with-mpi-f90-size=SIZE
2220 specify the types of functions in the Fortran 90 MPI
2221 module, where size is one of: trivial (MPI-2
2222 F90-specific functions only), small (trivial + all
2223 MPI functions without choice buffers), medium (small
2224 + all MPI functions with one choice buffer)
2225 --with-mpi-param-check(=VALUE)
2226 behavior of MPI function parameter checking. Valid
2227 values are: always, never, runtime. If
2228 --with-mpi-param-check is specified with no VALUE
2229 argument, it is equivalent to a VALUE of "always";
2230 --without-mpi-param-check is equivalent to "never"
2231 (default: runtime).
2232 --with-devel-headers normal MPI users/applications do not need this
2233 (mpi.h and mpif.h are ALWAYS installed). Developer
2234 headers are only necessary for MCA module authors
2235 (default: disabled).
2236 --with-f90-max-array-dim=<DIM>
2237 The maximum array dimension supported in the F90 MPI
2238 bindings (default: $OMPI_FORTRAN_MAX_ARRAY_RANK).
2239 --with-cross=FILE Specify configure values that can not be determined
2240 in a cross-compilation environment. See the Open MPI
2241 FAQ.
2242 --with-wrapper-cflags Extra flags to add to CFLAGS when using mpicc
2243 --with-wrapper-cxxflags Extra flags to add to CXXFLAGS when using
2244 mpiCC/mpic++
2245 --with-wrapper-fflags Extra flags to add to FFLAGS when using mpif77
2246 --with-wrapper-fcflags Extra flags to add to FCFLAGS when using mpif90
2247 --with-wrapper-ldflags Extra flags to add to LDFLAGS when using wrapper
2248 compilers
2249 --with-wrapper-libs Extra flags to add to LIBS when using wrapper
2250 compilers
2251 --with-exflags Specify flags necessary to enable C++ exceptions
2252 --with-threads Set thread type (solaris / posix)
2253 --with-cs-fs Destination FS is case sensitive (default: set to
2254 value of the build FS's case sensitivity)
2255 --with-libnuma Directory where the libnuma software is installed
2256 --with-memory-manager=TYPE
2257 Use TYPE for intercepting memory management calls to
2258 control memory pinning.
2259 --with-timer=TYPE Build high resolution timer component TYPE
2260 --with-bproc Directory where the BProc software is installed
2261 --with-slurm Build SLURM scheduler component (default: yes)
2262 --with-tm Directory where the tm software is installed
2263 --with-xgrid Build support for the Apple Xgrid batch system
2264 (default: yes)
2265 --with-loadleveler Directory where the loadleveler software is
2266 installed
2267 --with-portals=DIR Specify the installation directory of PORTALS
2268 --with-portals-libs=LIBS
2269 Libraries to link with for portals
2270 --with-gm(=DIR) Build GM (Myrinet) support, searching for libraries
2271 in DIR
2272 --with-gm-libdir=DIR Search for GM (Myrinet) libraries in DIR
2273 --with-mvapi(=DIR) Build MVAPI (InfiniBand) support, searching for
2274 libraries in DIR
2275 --with-mvapi-libdir=DIR Search for MVAPI (InfiniBand) libraries in DIR
2276 --with-mx(=DIR) Build MX (Myrinet Express) support, searching for
2277 libraries in DIR
2278 --with-mx-libdir=DIR Search for MX (Myrinet Express) libraries in DIR
2279 --with-openib(=DIR) Build OpenIB (InfiniBand) support, searching for
2280 libraries in DIR
2281 --with-openib-libdir=DIR
2282 Search for OpenIB (InfiniBand) libraries in DIR
2283 --with-portals-config configuration to use for Portals support. One of
2284 "utcp", "redstorm". (default: utcp)
2285 --with-portals-libs=LIBS
2286 Libraries to link with for portals
2287 --with-io-romio-flags=FLAGS
2288 Pass FLAGS to the ROMIO distribution configuration
2289 script
2290 --with-event-rtsig compile with support for real time signals
2291 (experimental)
2292 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2293 --with-pic try to use only PIC/non-PIC objects [default=use
2294 both]
2295 --with-tags[=TAGS] include additional configurations [automatic]
2297 Some influential environment variables:
2298 CC C compiler command
2299 CFLAGS C compiler flags
2300 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2301 nonstandard directory <lib dir>
2302 LIBS libraries to pass to the linker, e.g. -l<library>
2303 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2304 you have headers in a nonstandard directory <include dir>
2305 CPP C preprocessor
2306 CXX C++ compiler command
2307 CXXFLAGS C++ compiler flags
2308 CXXCPP C++ preprocessor
2309 CCAS assembler compiler command (defaults to CC)
2310 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
2311 F77 Fortran 77 compiler command
2312 FFLAGS Fortran 77 compiler flags
2313 FC Fortran compiler command
2314 FCFLAGS Fortran compiler flags
2315 OBJC Objective C compiler command
2316 OBJCFLAGS Objective C compiler flags
2318 Use these variables to override the choices made by `configure' or to help
2319 it to find libraries and programs with nonstandard names/locations.
2321 Report bugs to <http://www.open-mpi.org/community/help/>.
2322 _ACEOF
2323 ac_status=$?
2326 if test "$ac_init_help" = "recursive"; then
2327 # If there are subdirs, report their specific --help.
2328 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2329 test -d "$ac_dir" || continue
2330 ac_builddir=.
2332 case "$ac_dir" in
2333 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2335 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2336 # A ".." for each directory in $ac_dir_suffix.
2337 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2338 case $ac_top_builddir_sub in
2339 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2340 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2341 esac ;;
2342 esac
2343 ac_abs_top_builddir=$ac_pwd
2344 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2345 # for backward compatibility:
2346 ac_top_builddir=$ac_top_build_prefix
2348 case $srcdir in
2349 .) # We are building in place.
2350 ac_srcdir=.
2351 ac_top_srcdir=$ac_top_builddir_sub
2352 ac_abs_top_srcdir=$ac_pwd ;;
2353 [\\/]* | ?:[\\/]* ) # Absolute name.
2354 ac_srcdir=$srcdir$ac_dir_suffix;
2355 ac_top_srcdir=$srcdir
2356 ac_abs_top_srcdir=$srcdir ;;
2357 *) # Relative name.
2358 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2359 ac_top_srcdir=$ac_top_build_prefix$srcdir
2360 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2361 esac
2362 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2364 cd "$ac_dir" || { ac_status=$?; continue; }
2365 # Check for guested configure.
2366 if test -f "$ac_srcdir/configure.gnu"; then
2367 echo &&
2368 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2369 elif test -f "$ac_srcdir/configure"; then
2370 echo &&
2371 $SHELL "$ac_srcdir/configure" --help=recursive
2372 else
2373 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2374 fi || ac_status=$?
2375 cd "$ac_pwd" || { ac_status=$?; break; }
2376 done
2379 test -n "$ac_init_help" && exit $ac_status
2380 if $ac_init_version; then
2381 cat <<\_ACEOF
2382 Open MPI configure 1.1.2
2383 generated by GNU Autoconf 2.61
2385 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2386 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2387 This configure script is free software; the Free Software Foundation
2388 gives unlimited permission to copy, distribute and modify it.
2389 _ACEOF
2390 exit
2392 cat >config.log <<_ACEOF
2393 This file contains any messages produced by compilers while
2394 running configure, to aid debugging if configure makes a mistake.
2396 It was created by Open MPI $as_me 1.1.2, which was
2397 generated by GNU Autoconf 2.61. Invocation command line was
2399 $ $0 $@
2401 _ACEOF
2402 exec 5>>config.log
2404 cat <<_ASUNAME
2405 ## --------- ##
2406 ## Platform. ##
2407 ## --------- ##
2409 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2410 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2411 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2412 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2413 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2415 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2416 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2418 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2419 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2420 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2421 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2422 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2423 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2424 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2426 _ASUNAME
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 echo "PATH: $as_dir"
2434 done
2435 IFS=$as_save_IFS
2437 } >&5
2439 cat >&5 <<_ACEOF
2442 ## ----------- ##
2443 ## Core tests. ##
2444 ## ----------- ##
2446 _ACEOF
2449 # Keep a trace of the command line.
2450 # Strip out --no-create and --no-recursion so they do not pile up.
2451 # Strip out --silent because we don't want to record it for future runs.
2452 # Also quote any args containing shell meta-characters.
2453 # Make two passes to allow for proper duplicate-argument suppression.
2454 ac_configure_args=
2455 ac_configure_args0=
2456 ac_configure_args1=
2457 ac_must_keep_next=false
2458 for ac_pass in 1 2
2460 for ac_arg
2462 case $ac_arg in
2463 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2465 | -silent | --silent | --silen | --sile | --sil)
2466 continue ;;
2467 *\'*)
2468 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2469 esac
2470 case $ac_pass in
2471 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2473 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2474 if test $ac_must_keep_next = true; then
2475 ac_must_keep_next=false # Got value, back to normal.
2476 else
2477 case $ac_arg in
2478 *=* | --config-cache | -C | -disable-* | --disable-* \
2479 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2480 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2481 | -with-* | --with-* | -without-* | --without-* | --x)
2482 case "$ac_configure_args0 " in
2483 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2484 esac
2486 -* ) ac_must_keep_next=true ;;
2487 esac
2489 ac_configure_args="$ac_configure_args '$ac_arg'"
2491 esac
2492 done
2493 done
2494 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2495 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2497 # When interrupted or exit'd, cleanup temporary files, and complete
2498 # config.log. We remove comments because anyway the quotes in there
2499 # would cause problems or look ugly.
2500 # WARNING: Use '\'' to represent an apostrophe within the trap.
2501 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2502 trap 'exit_status=$?
2503 # Save into config.log some information that might help in debugging.
2505 echo
2507 cat <<\_ASBOX
2508 ## ---------------- ##
2509 ## Cache variables. ##
2510 ## ---------------- ##
2511 _ASBOX
2512 echo
2513 # The following way of writing the cache mishandles newlines in values,
2515 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2516 eval ac_val=\$$ac_var
2517 case $ac_val in #(
2518 *${as_nl}*)
2519 case $ac_var in #(
2520 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2521 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2522 esac
2523 case $ac_var in #(
2524 _ | IFS | as_nl) ;; #(
2525 *) $as_unset $ac_var ;;
2526 esac ;;
2527 esac
2528 done
2529 (set) 2>&1 |
2530 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2531 *${as_nl}ac_space=\ *)
2532 sed -n \
2533 "s/'\''/'\''\\\\'\'''\''/g;
2534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2535 ;; #(
2537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2539 esac |
2540 sort
2542 echo
2544 cat <<\_ASBOX
2545 ## ----------------- ##
2546 ## Output variables. ##
2547 ## ----------------- ##
2548 _ASBOX
2549 echo
2550 for ac_var in $ac_subst_vars
2552 eval ac_val=\$$ac_var
2553 case $ac_val in
2554 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2555 esac
2556 echo "$ac_var='\''$ac_val'\''"
2557 done | sort
2558 echo
2560 if test -n "$ac_subst_files"; then
2561 cat <<\_ASBOX
2562 ## ------------------- ##
2563 ## File substitutions. ##
2564 ## ------------------- ##
2565 _ASBOX
2566 echo
2567 for ac_var in $ac_subst_files
2569 eval ac_val=\$$ac_var
2570 case $ac_val in
2571 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2572 esac
2573 echo "$ac_var='\''$ac_val'\''"
2574 done | sort
2575 echo
2578 if test -s confdefs.h; then
2579 cat <<\_ASBOX
2580 ## ----------- ##
2581 ## confdefs.h. ##
2582 ## ----------- ##
2583 _ASBOX
2584 echo
2585 cat confdefs.h
2586 echo
2588 test "$ac_signal" != 0 &&
2589 echo "$as_me: caught signal $ac_signal"
2590 echo "$as_me: exit $exit_status"
2591 } >&5
2592 rm -f core *.core core.conftest.* &&
2593 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2594 exit $exit_status
2596 for ac_signal in 1 2 13 15; do
2597 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2598 done
2599 ac_signal=0
2601 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2602 rm -f -r conftest* confdefs.h
2604 # Predefined preprocessor variables.
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_NAME "$PACKAGE_NAME"
2608 _ACEOF
2611 cat >>confdefs.h <<_ACEOF
2612 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2613 _ACEOF
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2618 _ACEOF
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_STRING "$PACKAGE_STRING"
2623 _ACEOF
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2628 _ACEOF
2631 # Let the site file select an alternate cache file if it wants to.
2632 # Prefer explicitly selected file to automatically selected ones.
2633 if test -n "$CONFIG_SITE"; then
2634 set x "$CONFIG_SITE"
2635 elif test "x$prefix" != xNONE; then
2636 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2637 else
2638 set x "$ac_default_prefix/share/config.site" \
2639 "$ac_default_prefix/etc/config.site"
2641 shift
2642 for ac_site_file
2644 if test -r "$ac_site_file"; then
2645 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2646 echo "$as_me: loading site script $ac_site_file" >&6;}
2647 sed 's/^/| /' "$ac_site_file" >&5
2648 . "$ac_site_file"
2650 done
2652 if test -r "$cache_file"; then
2653 # Some versions of bash will fail to source /dev/null (special
2654 # files actually), so we avoid doing that.
2655 if test -f "$cache_file"; then
2656 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2657 echo "$as_me: loading cache $cache_file" >&6;}
2658 case $cache_file in
2659 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2660 *) . "./$cache_file";;
2661 esac
2663 else
2664 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2665 echo "$as_me: creating cache $cache_file" >&6;}
2666 >$cache_file
2669 # Check that the precious variables saved in the cache have kept the same
2670 # value.
2671 ac_cache_corrupted=false
2672 for ac_var in $ac_precious_vars; do
2673 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2674 eval ac_new_set=\$ac_env_${ac_var}_set
2675 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2676 eval ac_new_val=\$ac_env_${ac_var}_value
2677 case $ac_old_set,$ac_new_set in
2678 set,)
2679 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2680 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2681 ac_cache_corrupted=: ;;
2682 ,set)
2683 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2684 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2685 ac_cache_corrupted=: ;;
2686 ,);;
2688 if test "x$ac_old_val" != "x$ac_new_val"; then
2689 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2690 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2691 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2692 echo "$as_me: former value: $ac_old_val" >&2;}
2693 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2694 echo "$as_me: current value: $ac_new_val" >&2;}
2695 ac_cache_corrupted=:
2696 fi;;
2697 esac
2698 # Pass precious variables to config.status.
2699 if test "$ac_new_set" = set; then
2700 case $ac_new_val in
2701 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2702 *) ac_arg=$ac_var=$ac_new_val ;;
2703 esac
2704 case " $ac_configure_args " in
2705 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2706 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2707 esac
2709 done
2710 if $ac_cache_corrupted; then
2711 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2712 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2713 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2714 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2715 { (exit 1); exit 1; }; }
2742 ac_ext=c
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750 ac_aux_dir=
2751 for ac_dir in ./config "$srcdir"/./config; do
2752 if test -f "$ac_dir/install-sh"; then
2753 ac_aux_dir=$ac_dir
2754 ac_install_sh="$ac_aux_dir/install-sh -c"
2755 break
2756 elif test -f "$ac_dir/install.sh"; then
2757 ac_aux_dir=$ac_dir
2758 ac_install_sh="$ac_aux_dir/install.sh -c"
2759 break
2760 elif test -f "$ac_dir/shtool"; then
2761 ac_aux_dir=$ac_dir
2762 ac_install_sh="$ac_aux_dir/shtool install -c"
2763 break
2765 done
2766 if test -z "$ac_aux_dir"; then
2767 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./config \"$srcdir\"/./config" >&5
2768 echo "$as_me: error: cannot find install-sh or install.sh in ./config \"$srcdir\"/./config" >&2;}
2769 { (exit 1); exit 1; }; }
2772 # These three variables are undocumented and unsupported,
2773 # and are intended to be withdrawn in a future Autoconf release.
2774 # They can cause serious problems if a builder's source tree is in a directory
2775 # whose full name contains unusual characters.
2776 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2777 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2778 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2783 # Get our platform support file. This has to be done very, very early
2784 # because it twiddles random bits of autoconf
2787 # Check whether --with-platform was given.
2788 if test "${with_platform+set}" = set; then
2789 withval=$with_platform;
2792 if test "$with_platform" = "yes" ; then
2793 { { echo "$as_me:$LINENO: error: --with-platform argument must include FILE option" >&5
2794 echo "$as_me: error: --with-platform argument must include FILE option" >&2;}
2795 { (exit 1); exit 1; }; }
2796 elif test "$with_platform" = "no" ; then
2797 { { echo "$as_me:$LINENO: error: --without-platform is not a valid argument" >&5
2798 echo "$as_me: error: --without-platform is not a valid argument" >&2;}
2799 { (exit 1); exit 1; }; }
2800 elif test "$with_platform" != "" ; then
2801 # if no path part, check in contrib/platform
2802 if test "`basename $with_platform`" = "$with_platform" ; then
2803 if test -r "${srcdir}/contrib/platform/$with_platform" ; then
2804 with_platform="${srcdir}/contrib/platform/$with_platform"
2808 # make sure file exists
2809 if test ! -r "$with_platform" ; then
2810 { { echo "$as_me:$LINENO: error: platform file $with_platform not found" >&5
2811 echo "$as_me: error: platform file $with_platform not found" >&2;}
2812 { (exit 1); exit 1; }; }
2815 # eval into environment
2817 # 1 is the message
2818 # 2 is whether to put a prefix or not
2819 if test -n ""; then
2820 echo "configure:2820: Loading environment file $with_platform, with contents below" >&5
2821 else
2822 echo Loading environment file $with_platform, with contents below >&5
2825 # 1 is the filename
2826 if test -n "$with_platform" -a -f "$with_platform"; then
2827 cat $with_platform >&5
2829 . "$with_platform"
2831 # see if they left us a name
2832 if test "$OMPI_PLATFORM_LOADED" != "" ; then
2833 platform_loaded="$OMPI_PLATFORM_LOADED"
2834 else
2835 platform_loaded="$with_platform"
2837 echo "Loaded platform arguments for $platform_loaded"
2839 # 1 is the message
2840 # 2 is whether to put a prefix or not
2841 if test -n ""; then
2842 echo "configure:2842: Loaded platform arguments for $platform_loaded" >&5
2843 else
2844 echo Loaded platform arguments for $platform_loaded >&5
2850 # Init automake
2853 am__api_version="1.9"
2854 # Find a good install program. We prefer a C program (faster),
2855 # so one script is as good as another. But avoid the broken or
2856 # incompatible versions:
2857 # SysV /etc/install, /usr/sbin/install
2858 # SunOS /usr/etc/install
2859 # IRIX /sbin/install
2860 # AIX /bin/install
2861 # AmigaOS /C/install, which installs bootblocks on floppy discs
2862 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2863 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2864 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2865 # OS/2's system install, which has a completely different semantic
2866 # ./install, which can be erroneously created by make from ./install.sh.
2867 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2868 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2869 if test -z "$INSTALL"; then
2870 if test "${ac_cv_path_install+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 # Account for people who put trailing slashes in PATH elements.
2879 case $as_dir/ in
2880 ./ | .// | /cC/* | \
2881 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2882 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2883 /usr/ucb/* ) ;;
2885 # OSF1 and SCO ODT 3.0 have their own names for install.
2886 # Don't use installbsd from OSF since it installs stuff as root
2887 # by default.
2888 for ac_prog in ginstall scoinst install; do
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2891 if test $ac_prog = install &&
2892 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2893 # AIX install. It has an incompatible calling convention.
2895 elif test $ac_prog = install &&
2896 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2897 # program-specific install script used by HP pwplus--don't use.
2899 else
2900 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2901 break 3
2904 done
2905 done
2907 esac
2908 done
2909 IFS=$as_save_IFS
2913 if test "${ac_cv_path_install+set}" = set; then
2914 INSTALL=$ac_cv_path_install
2915 else
2916 # As a last resort, use the slow shell script. Don't cache a
2917 # value for INSTALL within a source directory, because that will
2918 # break other packages using the cache if that directory is
2919 # removed, or if the value is a relative name.
2920 INSTALL=$ac_install_sh
2923 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2924 echo "${ECHO_T}$INSTALL" >&6; }
2926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2927 # It thinks the first close brace ends the variable substitution.
2928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2932 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2934 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2935 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2936 # Just in case
2937 sleep 1
2938 echo timestamp > conftest.file
2939 # Do `set' in a subshell so we don't clobber the current shell's
2940 # arguments. Must try -L first in case configure is actually a
2941 # symlink; some systems play weird games with the mod time of symlinks
2942 # (eg FreeBSD returns the mod time of the symlink's containing
2943 # directory).
2944 if (
2945 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2946 if test "$*" = "X"; then
2947 # -L didn't work.
2948 set X `ls -t $srcdir/configure conftest.file`
2950 rm -f conftest.file
2951 if test "$*" != "X $srcdir/configure conftest.file" \
2952 && test "$*" != "X conftest.file $srcdir/configure"; then
2954 # If neither matched, then we have a broken ls. This can happen
2955 # if, for instance, CONFIG_SHELL is bash and it inherits a
2956 # broken ls alias from the environment. This has actually
2957 # happened. Such a system could not be considered "sane".
2958 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2959 alias in your environment" >&5
2960 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2961 alias in your environment" >&2;}
2962 { (exit 1); exit 1; }; }
2965 test "$2" = conftest.file
2967 then
2968 # Ok.
2970 else
2971 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2972 Check your system clock" >&5
2973 echo "$as_me: error: newly created file is older than distributed files!
2974 Check your system clock" >&2;}
2975 { (exit 1); exit 1; }; }
2977 { echo "$as_me:$LINENO: result: yes" >&5
2978 echo "${ECHO_T}yes" >&6; }
2979 test "$program_prefix" != NONE &&
2980 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2981 # Use a double $ so make ignores it.
2982 test "$program_suffix" != NONE &&
2983 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2984 # Double any \ or $. echo might interpret backslashes.
2985 # By default was `s,x,x', remove it if useless.
2986 cat <<\_ACEOF >conftest.sed
2987 s/[\\$]/&&/g;s/;s,x,x,$//
2988 _ACEOF
2989 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2990 rm -f conftest.sed
2992 # expand $ac_aux_dir to an absolute path
2993 am_aux_dir=`cd $ac_aux_dir && pwd`
2995 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2996 # Use eval to expand $SHELL
2997 if eval "$MISSING --run true"; then
2998 am_missing_run="$MISSING --run "
2999 else
3000 am_missing_run=
3001 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3002 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3005 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3006 # We used to keeping the `.' as first argument, in order to
3007 # allow $(mkdir_p) to be used without argument. As in
3008 # $(mkdir_p) $(somedir)
3009 # where $(somedir) is conditionally defined. However this is wrong
3010 # for two reasons:
3011 # 1. if the package is installed by a user who cannot write `.'
3012 # make install will fail,
3013 # 2. the above comment should most certainly read
3014 # $(mkdir_p) $(DESTDIR)$(somedir)
3015 # so it does not work when $(somedir) is undefined and
3016 # $(DESTDIR) is not.
3017 # To support the latter case, we have to write
3018 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3019 # so the `.' trick is pointless.
3020 mkdir_p='mkdir -p --'
3021 else
3022 # On NextStep and OpenStep, the `mkdir' command does not
3023 # recognize any option. It will interpret all options as
3024 # directories to create, and then abort because `.' already
3025 # exists.
3026 for d in ./-p ./--version;
3028 test -d $d && rmdir $d
3029 done
3030 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3031 if test -f "$ac_aux_dir/mkinstalldirs"; then
3032 mkdir_p='$(mkinstalldirs)'
3033 else
3034 mkdir_p='$(install_sh) -d'
3038 for ac_prog in gawk mawk nawk awk
3040 # Extract the first word of "$ac_prog", so it can be a program name with args.
3041 set dummy $ac_prog; ac_word=$2
3042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3044 if test "${ac_cv_prog_AWK+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047 if test -n "$AWK"; then
3048 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_AWK="$ac_prog"
3058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3061 done
3062 done
3063 IFS=$as_save_IFS
3067 AWK=$ac_cv_prog_AWK
3068 if test -n "$AWK"; then
3069 { echo "$as_me:$LINENO: result: $AWK" >&5
3070 echo "${ECHO_T}$AWK" >&6; }
3071 else
3072 { echo "$as_me:$LINENO: result: no" >&5
3073 echo "${ECHO_T}no" >&6; }
3077 test -n "$AWK" && break
3078 done
3080 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3081 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3082 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3083 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 cat >conftest.make <<\_ACEOF
3087 SHELL = /bin/sh
3088 all:
3089 @echo '@@@%%%=$(MAKE)=@@@%%%'
3090 _ACEOF
3091 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3092 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3093 *@@@%%%=?*=@@@%%%*)
3094 eval ac_cv_prog_make_${ac_make}_set=yes;;
3096 eval ac_cv_prog_make_${ac_make}_set=no;;
3097 esac
3098 rm -f conftest.make
3100 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3101 { echo "$as_me:$LINENO: result: yes" >&5
3102 echo "${ECHO_T}yes" >&6; }
3103 SET_MAKE=
3104 else
3105 { echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6; }
3107 SET_MAKE="MAKE=${MAKE-make}"
3110 rm -rf .tst 2>/dev/null
3111 mkdir .tst 2>/dev/null
3112 if test -d .tst; then
3113 am__leading_dot=.
3114 else
3115 am__leading_dot=_
3117 rmdir .tst 2>/dev/null
3119 # test to see if srcdir already configured
3120 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3121 test -f $srcdir/config.status; then
3122 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3123 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3124 { (exit 1); exit 1; }; }
3127 # test whether we have cygpath
3128 if test -z "$CYGPATH_W"; then
3129 if (cygpath --version) >/dev/null 2>/dev/null; then
3130 CYGPATH_W='cygpath -w'
3131 else
3132 CYGPATH_W=echo
3137 # Define the identity of the package.
3138 PACKAGE='openmpi'
3139 VERSION='1.1.2'
3142 # Some tools Automake needs.
3144 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3147 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3150 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3153 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3156 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3158 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3160 # Installed binaries are usually stripped using `strip' when the user
3161 # run `make install-strip'. However `strip' might not be the right
3162 # tool to use in cross-compilation environments, therefore Automake
3163 # will honor the `STRIP' environment variable to overrule this program.
3164 if test "$cross_compiling" != no; then
3165 if test -n "$ac_tool_prefix"; then
3166 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3167 set dummy ${ac_tool_prefix}strip; ac_word=$2
3168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3170 if test "${ac_cv_prog_STRIP+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173 if test -n "$STRIP"; then
3174 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3187 done
3188 done
3189 IFS=$as_save_IFS
3193 STRIP=$ac_cv_prog_STRIP
3194 if test -n "$STRIP"; then
3195 { echo "$as_me:$LINENO: result: $STRIP" >&5
3196 echo "${ECHO_T}$STRIP" >&6; }
3197 else
3198 { echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6; }
3204 if test -z "$ac_cv_prog_STRIP"; then
3205 ac_ct_STRIP=$STRIP
3206 # Extract the first word of "strip", so it can be a program name with args.
3207 set dummy strip; ac_word=$2
3208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3210 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 if test -n "$ac_ct_STRIP"; then
3214 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_ac_ct_STRIP="strip"
3224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
3227 done
3228 done
3229 IFS=$as_save_IFS
3233 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3234 if test -n "$ac_ct_STRIP"; then
3235 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3236 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3237 else
3238 { echo "$as_me:$LINENO: result: no" >&5
3239 echo "${ECHO_T}no" >&6; }
3242 if test "x$ac_ct_STRIP" = x; then
3243 STRIP=":"
3244 else
3245 case $cross_compiling:$ac_tool_warned in
3246 yes:)
3247 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3248 whose name does not start with the host triplet. If you think this
3249 configuration is useful to you, please write to autoconf@gnu.org." >&5
3250 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3251 whose name does not start with the host triplet. If you think this
3252 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3253 ac_tool_warned=yes ;;
3254 esac
3255 STRIP=$ac_ct_STRIP
3257 else
3258 STRIP="$ac_cv_prog_STRIP"
3262 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3264 # We need awk for the "check" target. The system "awk" is bad on
3265 # some platforms.
3266 # Always define AMTAR for backward compatibility.
3268 AMTAR=${AMTAR-"${am_missing_run}tar"}
3270 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3277 # Make configure depend on the VERSION file, since it's used in AC_INIT
3278 CONFIGURE_DEPENDENCIES='$(top_srcdir)/VERSION'
3282 # Start it up
3287 # Some helper script functions. Unfortunately, we cannot use kinds
3288 # of arugments here because of the m4 substitution. So we have to set
3289 # special variable names before invoking the function. :-\
3291 ompi_show_title() {
3292 cat <<EOF
3294 ============================================================================
3295 == ${1}
3296 ============================================================================
3301 ompi_show_subtitle() {
3302 cat <<EOF
3304 *** ${1}
3309 ompi_show_subsubtitle() {
3310 cat <<EOF
3312 +++ ${1}
3316 ompi_show_subsubsubtitle() {
3317 cat <<EOF
3319 --- ${1}
3324 # Save some stats about this build
3327 OMPI_CONFIGURE_USER="`whoami`"
3328 OMPI_CONFIGURE_HOST="`hostname | head -n 1`"
3329 OMPI_CONFIGURE_DATE="`date`"
3332 # Save these details so that they can be used in ompi_info later
3337 ompi_show_title "Configuring Open MPI"
3339 ompi_show_subtitle "Checking versions"
3341 # Get the version of OMPI that we are installing
3345 : ${ompi_ver_need_svn=1}
3346 : ${srcdir=.}
3347 : ${svnversion_result=-1}
3349 if test -f "$srcdir/VERSION"; then
3350 eval "`sed -n \"\
3351 t clear
3352 : clear
3353 s/^major/OMPI_MAJOR_VERSION/
3354 s/^minor/OMPI_MINOR_VERSION/
3355 s/^release/OMPI_RELEASE_VERSION/
3356 s/^greek/OMPI_GREEK_VERSION/
3357 s/^want_svn/OMPI_WANT_SVN/
3358 s/^svn_r/OMPI_SVN_R/
3359 t print
3361 : print
3362 p\" < \"\$srcdir/VERSION\"`"
3364 # Only print release version if it isn't 0
3365 if test $OMPI_RELEASE_VERSION -ne 0 ; then
3366 OMPI_VERSION="$OMPI_MAJOR_VERSION.$OMPI_MINOR_VERSION.$OMPI_RELEASE_VERSION"
3367 else
3368 OMPI_VERSION="$OMPI_MAJOR_VERSION.$OMPI_MINOR_VERSION"
3370 OMPI_VERSION="${OMPI_VERSION}${OMPI_GREEK_VERSION}"
3371 OMPI_BASE_VERSION=$OMPI_VERSION
3373 if test $OMPI_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then
3374 if test "$svnversion_result" != "-1" ; then
3375 OMPI_SVN_R=$svnversion_result
3377 if test "$OMPI_SVN_R" = "-1" ; then
3378 { echo "$as_me:$LINENO: checking for SVN version" >&5
3379 echo $ECHO_N "checking for SVN version... $ECHO_C" >&6; }
3380 if test -d "$srcdir/.svn" ; then
3381 OMPI_SVN_R=r`svnversion "$srcdir"`
3382 # make sure svnversion worked
3383 if test $? -ne 0 ; then
3384 OMPI_SVN_R=svn`date '+%m%d%Y'`
3386 svnversion_result="$OMPI_SVN_R"
3387 else
3388 OMPI_SVN_R=svn`date '+%m%d%Y'`
3390 { echo "$as_me:$LINENO: result: done" >&5
3391 echo "${ECHO_T}done" >&6; }
3393 OMPI_VERSION="${OMPI_VERSION}${OMPI_SVN_R}"
3406 { echo "$as_me:$LINENO: checking Open MPI version" >&5
3407 echo $ECHO_N "checking Open MPI version... $ECHO_C" >&6; }
3408 { echo "$as_me:$LINENO: result: $OMPI_VERSION" >&5
3409 echo "${ECHO_T}$OMPI_VERSION" >&6; }
3410 { echo "$as_me:$LINENO: checking Open MPI Subversion repository version" >&5
3411 echo $ECHO_N "checking Open MPI Subversion repository version... $ECHO_C" >&6; }
3412 { echo "$as_me:$LINENO: result: $OMPI_SVN_R" >&5
3413 echo "${ECHO_T}$OMPI_SVN_R" >&6; }
3416 cat >>confdefs.h <<_ACEOF
3417 #define OMPI_MAJOR_VERSION $OMPI_MAJOR_VERSION
3418 _ACEOF
3421 cat >>confdefs.h <<_ACEOF
3422 #define OMPI_MINOR_VERSION $OMPI_MINOR_VERSION
3423 _ACEOF
3426 cat >>confdefs.h <<_ACEOF
3427 #define OMPI_RELEASE_VERSION $OMPI_RELEASE_VERSION
3428 _ACEOF
3431 cat >>confdefs.h <<_ACEOF
3432 #define OMPI_GREEK_VERSION "$OMPI_GREEK_VERSION"
3433 _ACEOF
3436 cat >>confdefs.h <<_ACEOF
3437 #define OMPI_VERSION "$OMPI_RELEASE_VERSION"
3438 _ACEOF
3441 ac_config_files="$ac_config_files ompi/include/ompi/version.h"
3447 : ${ompi_ver_need_svn=1}
3448 : ${srcdir=.}
3449 : ${svnversion_result=-1}
3451 if test -f "$srcdir/VERSION"; then
3452 eval "`sed -n \"\
3453 t clear
3454 : clear
3455 s/^major/ORTE_MAJOR_VERSION/
3456 s/^minor/ORTE_MINOR_VERSION/
3457 s/^release/ORTE_RELEASE_VERSION/
3458 s/^greek/ORTE_GREEK_VERSION/
3459 s/^want_svn/ORTE_WANT_SVN/
3460 s/^svn_r/ORTE_SVN_R/
3461 t print
3463 : print
3464 p\" < \"\$srcdir/VERSION\"`"
3466 # Only print release version if it isn't 0
3467 if test $ORTE_RELEASE_VERSION -ne 0 ; then
3468 ORTE_VERSION="$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION.$ORTE_RELEASE_VERSION"
3469 else
3470 ORTE_VERSION="$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION"
3472 ORTE_VERSION="${ORTE_VERSION}${ORTE_GREEK_VERSION}"
3473 ORTE_BASE_VERSION=$ORTE_VERSION
3475 if test $ORTE_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then
3476 if test "$svnversion_result" != "-1" ; then
3477 ORTE_SVN_R=$svnversion_result
3479 if test "$ORTE_SVN_R" = "-1" ; then
3480 { echo "$as_me:$LINENO: checking for SVN version" >&5
3481 echo $ECHO_N "checking for SVN version... $ECHO_C" >&6; }
3482 if test -d "$srcdir/.svn" ; then
3483 ORTE_SVN_R=r`svnversion "$srcdir"`
3484 # make sure svnversion worked
3485 if test $? -ne 0 ; then
3486 ORTE_SVN_R=svn`date '+%m%d%Y'`
3488 svnversion_result="$ORTE_SVN_R"
3489 else
3490 ORTE_SVN_R=svn`date '+%m%d%Y'`
3492 { echo "$as_me:$LINENO: result: done" >&5
3493 echo "${ECHO_T}done" >&6; }
3495 ORTE_VERSION="${ORTE_VERSION}${ORTE_SVN_R}"
3508 { echo "$as_me:$LINENO: checking Open Run-Time Environment version" >&5
3509 echo $ECHO_N "checking Open Run-Time Environment version... $ECHO_C" >&6; }
3510 { echo "$as_me:$LINENO: result: $ORTE_VERSION" >&5
3511 echo "${ECHO_T}$ORTE_VERSION" >&6; }
3512 { echo "$as_me:$LINENO: checking Open Run-Time Environment Subversion repository version" >&5
3513 echo $ECHO_N "checking Open Run-Time Environment Subversion repository version... $ECHO_C" >&6; }
3514 { echo "$as_me:$LINENO: result: $ORTE_SVN_R" >&5
3515 echo "${ECHO_T}$ORTE_SVN_R" >&6; }
3518 cat >>confdefs.h <<_ACEOF
3519 #define ORTE_MAJOR_VERSION $ORTE_MAJOR_VERSION
3520 _ACEOF
3523 cat >>confdefs.h <<_ACEOF
3524 #define ORTE_MINOR_VERSION $ORTE_MINOR_VERSION
3525 _ACEOF
3528 cat >>confdefs.h <<_ACEOF
3529 #define ORTE_RELEASE_VERSION $ORTE_RELEASE_VERSION
3530 _ACEOF
3533 cat >>confdefs.h <<_ACEOF
3534 #define ORTE_GREEK_VERSION "$ORTE_GREEK_VERSION"
3535 _ACEOF
3538 cat >>confdefs.h <<_ACEOF
3539 #define ORTE_VERSION "$ORTE_RELEASE_VERSION"
3540 _ACEOF
3543 ac_config_files="$ac_config_files orte/include/orte/version.h"
3549 : ${ompi_ver_need_svn=1}
3550 : ${srcdir=.}
3551 : ${svnversion_result=-1}
3553 if test -f "$srcdir/VERSION"; then
3554 eval "`sed -n \"\
3555 t clear
3556 : clear
3557 s/^major/OPAL_MAJOR_VERSION/
3558 s/^minor/OPAL_MINOR_VERSION/
3559 s/^release/OPAL_RELEASE_VERSION/
3560 s/^greek/OPAL_GREEK_VERSION/
3561 s/^want_svn/OPAL_WANT_SVN/
3562 s/^svn_r/OPAL_SVN_R/
3563 t print
3565 : print
3566 p\" < \"\$srcdir/VERSION\"`"
3568 # Only print release version if it isn't 0
3569 if test $OPAL_RELEASE_VERSION -ne 0 ; then
3570 OPAL_VERSION="$OPAL_MAJOR_VERSION.$OPAL_MINOR_VERSION.$OPAL_RELEASE_VERSION"
3571 else
3572 OPAL_VERSION="$OPAL_MAJOR_VERSION.$OPAL_MINOR_VERSION"
3574 OPAL_VERSION="${OPAL_VERSION}${OPAL_GREEK_VERSION}"
3575 OPAL_BASE_VERSION=$OPAL_VERSION
3577 if test $OPAL_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then
3578 if test "$svnversion_result" != "-1" ; then
3579 OPAL_SVN_R=$svnversion_result
3581 if test "$OPAL_SVN_R" = "-1" ; then
3582 { echo "$as_me:$LINENO: checking for SVN version" >&5
3583 echo $ECHO_N "checking for SVN version... $ECHO_C" >&6; }
3584 if test -d "$srcdir/.svn" ; then
3585 OPAL_SVN_R=r`svnversion "$srcdir"`
3586 # make sure svnversion worked
3587 if test $? -ne 0 ; then
3588 OPAL_SVN_R=svn`date '+%m%d%Y'`
3590 svnversion_result="$OPAL_SVN_R"
3591 else
3592 OPAL_SVN_R=svn`date '+%m%d%Y'`
3594 { echo "$as_me:$LINENO: result: done" >&5
3595 echo "${ECHO_T}done" >&6; }
3597 OPAL_VERSION="${OPAL_VERSION}${OPAL_SVN_R}"
3610 { echo "$as_me:$LINENO: checking Open Portable Access Layer version" >&5
3611 echo $ECHO_N "checking Open Portable Access Layer version... $ECHO_C" >&6; }
3612 { echo "$as_me:$LINENO: result: $OPAL_VERSION" >&5
3613 echo "${ECHO_T}$OPAL_VERSION" >&6; }
3614 { echo "$as_me:$LINENO: checking Open Portable Access Layer Subversion repository version" >&5
3615 echo $ECHO_N "checking Open Portable Access Layer Subversion repository version... $ECHO_C" >&6; }
3616 { echo "$as_me:$LINENO: result: $OPAL_SVN_R" >&5
3617 echo "${ECHO_T}$OPAL_SVN_R" >&6; }
3620 cat >>confdefs.h <<_ACEOF
3621 #define OPAL_MAJOR_VERSION $OPAL_MAJOR_VERSION
3622 _ACEOF
3625 cat >>confdefs.h <<_ACEOF
3626 #define OPAL_MINOR_VERSION $OPAL_MINOR_VERSION
3627 _ACEOF
3630 cat >>confdefs.h <<_ACEOF
3631 #define OPAL_RELEASE_VERSION $OPAL_RELEASE_VERSION
3632 _ACEOF
3635 cat >>confdefs.h <<_ACEOF
3636 #define OPAL_GREEK_VERSION "$OPAL_GREEK_VERSION"
3637 _ACEOF
3640 cat >>confdefs.h <<_ACEOF
3641 #define OPAL_VERSION "$OPAL_RELEASE_VERSION"
3642 _ACEOF
3645 ac_config_files="$ac_config_files opal/include/opal/version.h"
3649 # override/fixup the version numbers set by AC_INIT, since on
3650 # developer builds, there's no good way to know what the version is
3651 # before running configure :(. We only use the base version number
3652 # (ie, no svn r numbers) for the version set in AC_INIT. This will
3653 # always match reality because we add the VERSION file (the only way
3654 # to change the major.minor.release{greek}) into the configure
3655 # dependencies. PACKAGE_VERSION the AC_DEFINE doesn't change once set
3656 # the first time -- AC_INIT's input (so it doesn't have an r number in
3657 # it). PACKAGE_VERSION the AC_SUBST can be rewritten along the way,
3658 # and we'd like it to have the r number in it so that it shows up in
3659 # the tarball name, so it is set to the full version here.
3660 PACKAGE_VERSION="$OPAL_VERSION"
3661 PACKAGE_STRING="${PACKAGE_NAME} ${PACKAGE_VERSION}"
3662 VERSION="${PACKAGE_VERSION}"
3664 ompi_show_subtitle "Initialization, setup"
3666 OMPI_TOP_BUILDDIR="`pwd`"
3668 cd "$srcdir"
3669 OMPI_TOP_SRCDIR="`pwd`"
3671 cd "$OMPI_TOP_BUILDDIR"
3673 { echo "$as_me:$LINENO: builddir: $OMPI_TOP_BUILDDIR" >&5
3674 echo "$as_me: builddir: $OMPI_TOP_BUILDDIR" >&6;}
3675 { echo "$as_me:$LINENO: srcdir: $OMPI_TOP_SRCDIR" >&5
3676 echo "$as_me: srcdir: $OMPI_TOP_SRCDIR" >&6;}
3677 if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then
3678 { echo "$as_me:$LINENO: Detected VPATH build" >&5
3679 echo "$as_me: Detected VPATH build" >&6;}
3682 # Setup the top of the opal/include/opal_config.h file
3689 # Other basic setup stuff (shared with components)
3691 # Make sure we can run config.sub.
3692 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3693 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3694 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3695 { (exit 1); exit 1; }; }
3697 { echo "$as_me:$LINENO: checking build system type" >&5
3698 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3699 if test "${ac_cv_build+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702 ac_build_alias=$build_alias
3703 test "x$ac_build_alias" = x &&
3704 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3705 test "x$ac_build_alias" = x &&
3706 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3707 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3708 { (exit 1); exit 1; }; }
3709 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3710 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3711 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3712 { (exit 1); exit 1; }; }
3715 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3716 echo "${ECHO_T}$ac_cv_build" >&6; }
3717 case $ac_cv_build in
3718 *-*-*) ;;
3719 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3720 echo "$as_me: error: invalid value of canonical build" >&2;}
3721 { (exit 1); exit 1; }; };;
3722 esac
3723 build=$ac_cv_build
3724 ac_save_IFS=$IFS; IFS='-'
3725 set x $ac_cv_build
3726 shift
3727 build_cpu=$1
3728 build_vendor=$2
3729 shift; shift
3730 # Remember, the first character of IFS is used to create $*,
3731 # except with old shells:
3732 build_os=$*
3733 IFS=$ac_save_IFS
3734 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3739 # Save some stats about this build
3742 OMPI_CONFIGURE_USER="`whoami`"
3743 OMPI_CONFIGURE_HOST="`hostname | head -n 1`"
3744 OMPI_CONFIGURE_DATE="`date`"
3747 # Make automake clean emacs ~ files for "make clean"
3750 CLEANFILES="*~ .\#*"
3754 # This is useful later (ompi_info, and therefore mpiexec)
3757 { echo "$as_me:$LINENO: checking host system type" >&5
3758 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3759 if test "${ac_cv_host+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 if test "x$host_alias" = x; then
3763 ac_cv_host=$ac_cv_build
3764 else
3765 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3766 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3767 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3768 { (exit 1); exit 1; }; }
3772 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3773 echo "${ECHO_T}$ac_cv_host" >&6; }
3774 case $ac_cv_host in
3775 *-*-*) ;;
3776 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3777 echo "$as_me: error: invalid value of canonical host" >&2;}
3778 { (exit 1); exit 1; }; };;
3779 esac
3780 host=$ac_cv_host
3781 ac_save_IFS=$IFS; IFS='-'
3782 set x $ac_cv_host
3783 shift
3784 host_cpu=$1
3785 host_vendor=$2
3786 shift; shift
3787 # Remember, the first character of IFS is used to create $*,
3788 # except with old shells:
3789 host_os=$*
3790 IFS=$ac_save_IFS
3791 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3795 cat >>confdefs.h <<_ACEOF
3796 #define OMPI_ARCH "$host"
3797 _ACEOF
3801 # See if we can find an old installation of OMPI to overwrite
3804 # Stupid autoconf 2.54 has a bug in AC_PREFIX_PROGRAM -- if ompi_clean
3805 # is not found in the path and the user did not specify --prefix,
3806 # we'll get a $prefix of "."
3808 ompi_prefix_save="$prefix"
3809 if test "x$prefix" = xNONE; then
3810 echo $ECHO_N "checking for prefix by $ECHO_C" >&6
3811 # Extract the first word of "ompi_clean", so it can be a program name with args.
3812 set dummy ompi_clean; ac_word=$2
3813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3815 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818 case $ac_prefix_program in
3819 [\\/]* | ?:[\\/]*)
3820 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 for as_dir in $PATH
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3830 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
3831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 break 2
3834 done
3835 done
3836 IFS=$as_save_IFS
3839 esac
3841 ac_prefix_program=$ac_cv_path_ac_prefix_program
3842 if test -n "$ac_prefix_program"; then
3843 { echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
3844 echo "${ECHO_T}$ac_prefix_program" >&6; }
3845 else
3846 { echo "$as_me:$LINENO: result: no" >&5
3847 echo "${ECHO_T}no" >&6; }
3851 if test -n "$ac_prefix_program"; then
3852 prefix=`$as_dirname -- "$ac_prefix_program" ||
3853 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3854 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
3855 X"$ac_prefix_program" : 'X\(//\)$' \| \
3856 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
3857 echo X"$ac_prefix_program" |
3858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3859 s//\1/
3862 /^X\(\/\/\)[^/].*/{
3863 s//\1/
3866 /^X\(\/\/\)$/{
3867 s//\1/
3870 /^X\(\/\).*/{
3871 s//\1/
3874 s/.*/./; q'`
3875 prefix=`$as_dirname -- "$prefix" ||
3876 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3877 X"$prefix" : 'X\(//\)[^/]' \| \
3878 X"$prefix" : 'X\(//\)$' \| \
3879 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
3880 echo X"$prefix" |
3881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3882 s//\1/
3885 /^X\(\/\/\)[^/].*/{
3886 s//\1/
3889 /^X\(\/\/\)$/{
3890 s//\1/
3893 /^X\(\/\).*/{
3894 s//\1/
3897 s/.*/./; q'`
3901 if test "$prefix" = "."; then
3902 prefix="$ompi_prefix_save"
3904 unset ompi_prefix_save
3907 # Basic sanity checking; we can't install to a relative path
3910 case "$prefix" in
3911 /*/bin)
3912 prefix="`dirname $prefix`"
3913 echo installing to directory \"$prefix\"
3916 echo installing to directory \"$prefix\"
3918 NONE)
3919 echo installing to directory \"$ac_default_prefix\"
3921 [a-zA-Z]:*)
3922 echo installing to directory \"$prefix\"
3925 { { echo "$as_me:$LINENO: error: prefix \"$prefix\" must be an absolute directory path" >&5
3926 echo "$as_me: error: prefix \"$prefix\" must be an absolute directory path" >&2;}
3927 { (exit 1); exit 1; }; }
3929 esac
3931 # Allow the --enable-dist flag to be passed in
3933 # Check whether --enable-dist was given.
3934 if test "${enable_dist+set}" = set; then
3935 enableval=$enable_dist; OMPI_WANT_DIST=yes
3936 else
3937 OMPI_WANT_DIST=no
3941 if test "$OMPI_WANT_DIST" = "yes"; then
3942 { echo "$as_me:$LINENO: WARNING: Configuring in 'make dist' mode" >&5
3943 echo "$as_me: WARNING: Configuring in 'make dist' mode" >&2;}
3944 { echo "$as_me:$LINENO: WARNING: Most make targets may be non-functional!" >&5
3945 echo "$as_me: WARNING: Most make targets may be non-functional!" >&2;}
3948 top_ompi_srcdir="$OMPI_TOP_SRCDIR"
3950 top_ompi_builddir="$OMPI_TOP_BUILDDIR"
3953 ############################################################################
3954 # Configuration options
3955 ############################################################################
3958 ompi_show_subtitle "Configuration options"
3961 # Code coverage options
3963 { echo "$as_me:$LINENO: checking Whether to run code coverage" >&5
3964 echo $ECHO_N "checking Whether to run code coverage... $ECHO_C" >&6; }
3965 # Check whether --enable-coverage was given.
3966 if test "${enable_coverage+set}" = set; then
3967 enableval=$enable_coverage;
3970 if test "$enable_coverage" = "yes"; then
3971 if test "$enable_shared" = "yes"; then
3972 { echo "$as_me:$LINENO: WARNING: Code coverage can run only with static libraries. Please
3973 run configure with --enable-static --disable-shared if
3974 you want code coverage. Also ensure that you execute
3975 make clean too ensure removal of all leftover shared
3976 mpi libraries" >&5
3977 echo "$as_me: WARNING: Code coverage can run only with static libraries. Please
3978 run configure with --enable-static --disable-shared if
3979 you want code coverage. Also ensure that you execute
3980 make clean too ensure removal of all leftover shared
3981 mpi libraries" >&2;}
3982 { { echo "$as_me:$LINENO: error: Cannot continue processing" >&5
3983 echo "$as_me: error: Cannot continue processing" >&2;}
3984 { (exit 1); exit 1; }; }
3986 { echo "$as_me:$LINENO: result: yes" >&5
3987 echo "${ECHO_T}yes" >&6; }
3988 WANT_COVERAGE=1
3989 else
3990 { echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6; }
3992 WANT_COVERAGE=0
3997 # Memory debugging
4000 { echo "$as_me:$LINENO: checking whether to debug memory usage" >&5
4001 echo $ECHO_N "checking whether to debug memory usage... $ECHO_C" >&6; }
4002 # Check whether --enable-mem-debug was given.
4003 if test "${enable_mem_debug+set}" = set; then
4004 enableval=$enable_mem_debug;
4007 if test "$enable_mem_debug" = "yes"; then
4008 { echo "$as_me:$LINENO: result: yes" >&5
4009 echo "${ECHO_T}yes" >&6; }
4010 WANT_MEM_DEBUG=1
4011 else
4012 { echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6; }
4014 WANT_MEM_DEBUG=0
4016 #################### Early development override ####################
4017 if test "$WANT_MEM_DEBUG" = "0" -a -z "$enable_mem_debug" -a -d .svn; then
4018 WANT_MEM_DEBUG=1
4019 echo "--> developer override: enable mem profiling by default"
4021 #################### Early development override ####################
4023 cat >>confdefs.h <<_ACEOF
4024 #define OMPI_ENABLE_MEM_DEBUG $WANT_MEM_DEBUG
4025 _ACEOF
4029 # Memory profiling
4032 { echo "$as_me:$LINENO: checking whether to profile memory usage" >&5
4033 echo $ECHO_N "checking whether to profile memory usage... $ECHO_C" >&6; }
4034 # Check whether --enable-mem-profile was given.
4035 if test "${enable_mem_profile+set}" = set; then
4036 enableval=$enable_mem_profile;
4039 if test "$enable_mem_profile" = "yes"; then
4040 { echo "$as_me:$LINENO: result: yes" >&5
4041 echo "${ECHO_T}yes" >&6; }
4042 WANT_MEM_PROFILE=1
4043 else
4044 { echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6; }
4046 WANT_MEM_PROFILE=0
4048 #################### Early development override ####################
4049 if test "$WANT_MEM_PROFILE" = "0" -a -z "$enable_mem_profile" -a -d .svn; then
4050 WANT_MEM_PROFILE=1
4051 echo "--> developer override: enable mem profiling by default"
4053 #################### Early development override ####################
4055 cat >>confdefs.h <<_ACEOF
4056 #define OMPI_ENABLE_MEM_PROFILE $WANT_MEM_PROFILE
4057 _ACEOF
4061 # Developer picky compiler options
4064 { echo "$as_me:$LINENO: checking if want developer-level compiler pickyness" >&5
4065 echo $ECHO_N "checking if want developer-level compiler pickyness... $ECHO_C" >&6; }
4066 # Check whether --enable-picky was given.
4067 if test "${enable_picky+set}" = set; then
4068 enableval=$enable_picky;
4071 if test "$enable_picky" = "yes"; then
4072 { echo "$as_me:$LINENO: result: yes" >&5
4073 echo "${ECHO_T}yes" >&6; }
4074 WANT_PICKY_COMPILER=1
4075 else
4076 { echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6; }
4078 WANT_PICKY_COMPILER=0
4080 #################### Early development override ####################
4081 if test "$WANT_PICKY_COMPILER" = "0" -a -z "$enable_picky" -a -d .svn; then
4082 WANT_PICKY_COMPILER=1
4083 echo "--> developer override: enable picky compiler by default"
4085 #################### Early development override ####################
4088 # Developer debugging
4091 { echo "$as_me:$LINENO: checking if want developer-level debugging code" >&5
4092 echo $ECHO_N "checking if want developer-level debugging code... $ECHO_C" >&6; }
4093 # Check whether --enable-debug was given.
4094 if test "${enable_debug+set}" = set; then
4095 enableval=$enable_debug;
4098 if test "$enable_debug" = "yes"; then
4099 { echo "$as_me:$LINENO: result: yes" >&5
4100 echo "${ECHO_T}yes" >&6; }
4101 WANT_DEBUG=1
4102 else
4103 { echo "$as_me:$LINENO: result: no" >&5
4104 echo "${ECHO_T}no" >&6; }
4105 WANT_DEBUG=0
4107 #################### Early development override ####################
4108 if test "$WANT_DEBUG" = "0" -a -z "$enable_debug" -a -d .svn; then
4109 WANT_DEBUG=1
4110 echo "--> developer override: enable debugging code by default"
4112 #################### Early development override ####################
4113 if test "$WANT_DEBUG" = "0"; then
4114 CFLAGS="-DNDEBUG $CFLAGS"
4115 CXXFLAGS="-DNDEBUG $CXXFLAGS"
4118 cat >>confdefs.h <<_ACEOF
4119 #define OMPI_ENABLE_DEBUG $WANT_DEBUG
4120 _ACEOF
4125 # Fortran 77
4128 { echo "$as_me:$LINENO: checking if want Fortran 77 bindings" >&5
4129 echo $ECHO_N "checking if want Fortran 77 bindings... $ECHO_C" >&6; }
4130 # Check whether --enable-mpi-f77 was given.
4131 if test "${enable_mpi_f77+set}" = set; then
4132 enableval=$enable_mpi_f77;
4135 if test "$enable_mpi_f77" != "no"; then
4136 { echo "$as_me:$LINENO: result: yes" >&5
4137 echo "${ECHO_T}yes" >&6; }
4138 OMPI_WANT_F77_BINDINGS=1
4139 else
4140 { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4142 OMPI_WANT_F77_BINDINGS=0
4147 # Fortran 90
4150 { echo "$as_me:$LINENO: checking if want Fortran 90 bindings" >&5
4151 echo $ECHO_N "checking if want Fortran 90 bindings... $ECHO_C" >&6; }
4152 # Check whether --enable-mpi-f90 was given.
4153 if test "${enable_mpi_f90+set}" = set; then
4154 enableval=$enable_mpi_f90;
4157 if test "$enable_mpi_f90" != "no"; then
4158 { echo "$as_me:$LINENO: result: yes" >&5
4159 echo "${ECHO_T}yes" >&6; }
4160 OMPI_WANT_F90_BINDINGS=1
4161 else
4162 { echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6; }
4164 OMPI_WANT_F90_BINDINGS=0
4167 { echo "$as_me:$LINENO: checking desired Fortran 90 bindings \"size\"" >&5
4168 echo $ECHO_N "checking desired Fortran 90 bindings \"size\"... $ECHO_C" >&6; }
4170 # Check whether --with-mpi-f90-size was given.
4171 if test "${with_mpi_f90_size+set}" = set; then
4172 withval=$with_mpi_f90_size;
4176 if test "$OMPI_WANT_F90_BINDINGS" = "0"; then
4177 { echo "$as_me:$LINENO: result: disabled (Fortran 90 bindings disabled)" >&5
4178 echo "${ECHO_T}disabled (Fortran 90 bindings disabled)" >&6; }
4179 elif test "$with_mpi_f90_size" = "no"; then
4180 OMPI_WANT_F90_BINDINGS=0
4181 { echo "$as_me:$LINENO: result: disabling F90 MPI module (used specified)" >&5
4182 echo "${ECHO_T}disabling F90 MPI module (used specified)" >&6; }
4183 else
4184 # Default value
4185 if test "$with_mpi_f90_size" = ""; then
4186 with_mpi_f90_size=small
4189 # Check for each of the sizes
4190 if test "$with_mpi_f90_size" = "trivial"; then
4191 OMPI_F90_BUILD_SIZE=trivial
4192 elif test "$with_mpi_f90_size" = "small"; then
4193 OMPI_F90_BUILD_SIZE=small
4194 elif test "$with_mpi_f90_size" = "medium"; then
4195 OMPI_F90_BUILD_SIZE=medium
4196 else
4197 { echo "$as_me:$LINENO: result: Unrecognized size: $with_mpi_f90_size" >&5
4198 echo "${ECHO_T}Unrecognized size: $with_mpi_f90_size" >&6; }
4199 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
4200 echo "$as_me: error: Cannot continue" >&2;}
4201 { (exit 1); exit 1; }; }
4207 if test "$OMPI_F90_BUILD_SIZE" = "trivial"; then
4208 OMPI_WANT_BUILD_F90_TRIVIAL_TRUE=
4209 OMPI_WANT_BUILD_F90_TRIVIAL_FALSE='#'
4210 else
4211 OMPI_WANT_BUILD_F90_TRIVIAL_TRUE='#'
4212 OMPI_WANT_BUILD_F90_TRIVIAL_FALSE=
4217 if test "$OMPI_F90_BUILD_SIZE" = "small"; then
4218 OMPI_WANT_BUILD_F90_SMALL_TRUE=
4219 OMPI_WANT_BUILD_F90_SMALL_FALSE='#'
4220 else
4221 OMPI_WANT_BUILD_F90_SMALL_TRUE='#'
4222 OMPI_WANT_BUILD_F90_SMALL_FALSE=
4227 if test "$OMPI_F90_BUILD_SIZE" = "medium"; then
4228 OMPI_WANT_BUILD_F90_MEDIUM_TRUE=
4229 OMPI_WANT_BUILD_F90_MEDIUM_FALSE='#'
4230 else
4231 OMPI_WANT_BUILD_F90_MEDIUM_TRUE='#'
4232 OMPI_WANT_BUILD_F90_MEDIUM_FALSE=
4235 # This is effectively ignored in v1.1 because the "large" bindings are
4236 # not ready for prime time
4239 if test "$OMPI_F90_BUILD_SIZE" = "large"; then
4240 OMPI_WANT_BUILD_F90_LARGE_TRUE=
4241 OMPI_WANT_BUILD_F90_LARGE_FALSE='#'
4242 else
4243 OMPI_WANT_BUILD_F90_LARGE_TRUE='#'
4244 OMPI_WANT_BUILD_F90_LARGE_FALSE=
4249 { echo "$as_me:$LINENO: result: $OMPI_F90_BUILD_SIZE" >&5
4250 echo "${ECHO_T}$OMPI_F90_BUILD_SIZE" >&6; }
4253 # MPI profiling
4256 { echo "$as_me:$LINENO: checking whether to enable PMPI" >&5
4257 echo $ECHO_N "checking whether to enable PMPI... $ECHO_C" >&6; }
4258 # Check whether --enable-mpi-profile was given.
4259 if test "${enable_mpi_profile+set}" = set; then
4260 enableval=$enable_mpi_profile;
4263 if test "$enable_mpi_profile" != "no"; then
4264 { echo "$as_me:$LINENO: result: yes" >&5
4265 echo "${ECHO_T}yes" >&6; }
4266 WANT_MPI_PROFILING=1
4267 MPIF_H_PMPI_W_FUNCS=", PMPI_WTICK, PMPI_WTIME"
4268 else
4269 { echo "$as_me:$LINENO: result: no" >&5
4270 echo "${ECHO_T}no" >&6; }
4271 WANT_MPI_PROFILING=0
4272 MPIF_H_PMPI_W_FUNCS=
4278 # C++
4281 { echo "$as_me:$LINENO: checking if want C++ bindings" >&5
4282 echo $ECHO_N "checking if want C++ bindings... $ECHO_C" >&6; }
4283 # Check whether --enable-mpi-cxx was given.
4284 if test "${enable_mpi_cxx+set}" = set; then
4285 enableval=$enable_mpi_cxx;
4288 if test "$enable_mpi_cxx" != "no"; then
4289 { echo "$as_me:$LINENO: result: yes" >&5
4290 echo "${ECHO_T}yes" >&6; }
4291 WANT_MPI_CXX_SUPPORT=1
4292 else
4293 { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4295 WANT_MPI_CXX_SUPPORT=0
4300 # Do we want to disable weak symbols for some reason?
4303 { echo "$as_me:$LINENO: checking if want to enable weak symbol support" >&5
4304 echo $ECHO_N "checking if want to enable weak symbol support... $ECHO_C" >&6; }
4305 # Check whether --enable-weak-symbols was given.
4306 if test "${enable_weak_symbols+set}" = set; then
4307 enableval=$enable_weak_symbols;
4310 if test "$enable_weak_symbols" != "no"; then
4311 { echo "$as_me:$LINENO: result: yes" >&5
4312 echo "${ECHO_T}yes" >&6; }
4313 WANT_WEAK_SYMBOLS=1
4314 else
4315 { echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6; }
4317 WANT_WEAK_SYMBOLS=0
4321 # Do we want to disable MPI parameter checking at run-time?
4324 { echo "$as_me:$LINENO: checking if want run-time MPI parameter checking" >&5
4325 echo $ECHO_N "checking if want run-time MPI parameter checking... $ECHO_C" >&6; }
4327 # Check whether --with-mpi-param-check was given.
4328 if test "${with_mpi_param_check+set}" = set; then
4329 withval=$with_mpi_param_check;
4332 mpi_param_check=ompi_mpi_param_check
4333 if test "$with_mpi_param_check" = "no" -o \
4334 "$with_mpi_param_check" = "never"; then
4335 mpi_param_check=0
4336 { echo "$as_me:$LINENO: result: never" >&5
4337 echo "${ECHO_T}never" >&6; }
4338 elif test "$with_mpi_param_check" = "yes" -o \
4339 "$with_mpi_param_check" = "always"; then
4340 mpi_param_check=1
4341 { echo "$as_me:$LINENO: result: always" >&5
4342 echo "${ECHO_T}always" >&6; }
4343 elif test "$with_mpi_param_check" = "runtime" -o \
4344 -z "$with_mpi_params_check"; then
4345 { echo "$as_me:$LINENO: result: runtime" >&5
4346 echo "${ECHO_T}runtime" >&6; }
4347 else
4348 { echo "$as_me:$LINENO: result: unknown" >&5
4349 echo "${ECHO_T}unknown" >&6; }
4350 { echo "$as_me:$LINENO: WARNING: *** Unrecognized --with-mpi-param-check value" >&5
4351 echo "$as_me: WARNING: *** Unrecognized --with-mpi-param-check value" >&2;}
4352 { echo "$as_me:$LINENO: WARNING: *** See \"configure --help\" output" >&5
4353 echo "$as_me: WARNING: *** See \"configure --help\" output" >&2;}
4354 { echo "$as_me:$LINENO: WARNING: *** Defaulting to \"runtime\"" >&5
4355 echo "$as_me: WARNING: *** Defaulting to \"runtime\"" >&2;}
4358 cat >>confdefs.h <<_ACEOF
4359 #define MPI_PARAM_CHECK $mpi_param_check
4360 _ACEOF
4365 # Do we want to install all of OMPI's header files?
4368 { echo "$as_me:$LINENO: checking if want to install OMPI header files" >&5
4369 echo $ECHO_N "checking if want to install OMPI header files... $ECHO_C" >&6; }
4371 # Check whether --with-devel-headers was given.
4372 if test "${with_devel_headers+set}" = set; then
4373 withval=$with_devel_headers;
4376 if test "$with_devel_headers" = "yes"; then
4377 { echo "$as_me:$LINENO: result: yes" >&5
4378 echo "${ECHO_T}yes" >&6; }
4379 WANT_INSTALL_HEADERS=1
4380 else
4381 { echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6; }
4383 WANT_INSTALL_HEADERS=0
4387 if test "$WANT_INSTALL_HEADERS" = 1; then
4388 WANT_INSTALL_HEADERS_TRUE=
4389 WANT_INSTALL_HEADERS_FALSE='#'
4390 else
4391 WANT_INSTALL_HEADERS_TRUE='#'
4392 WANT_INSTALL_HEADERS_FALSE=
4397 # Do we want the pretty-print stack trace feature?
4399 { echo "$as_me:$LINENO: checking if want pretty-print stacktrace" >&5
4400 echo $ECHO_N "checking if want pretty-print stacktrace... $ECHO_C" >&6; }
4401 # Check whether --enable-pretty-print-stacktrace was given.
4402 if test "${enable_pretty_print_stacktrace+set}" = set; then
4403 enableval=$enable_pretty_print_stacktrace;
4406 if test "$enable_pretty_print_stacktrace" = "no" ; then
4407 { echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6; }
4409 WANT_PRETTY_PRINT_STACKTRACE=0
4410 else
4411 { echo "$as_me:$LINENO: result: yes" >&5
4412 echo "${ECHO_T}yes" >&6; }
4413 WANT_PRETTY_PRINT_STACKTRACE=1
4416 cat >>confdefs.h <<_ACEOF
4417 #define OMPI_WANT_PRETTY_PRINT_STACKTRACE $WANT_PRETTY_PRINT_STACKTRACE
4418 _ACEOF
4422 # Do we want deprecated executable names ?
4424 { echo "$as_me:$LINENO: checking if want deprecated executable names" >&5
4425 echo $ECHO_N "checking if want deprecated executable names... $ECHO_C" >&6; }
4426 # Check whether --enable-deprecated-executable-names was given.
4427 if test "${enable_deprecated_executable_names+set}" = set; then
4428 enableval=$enable_deprecated_executable_names;
4431 if test "$enable_deprecated_executable_names" = "yes"; then
4432 { echo "$as_me:$LINENO: result: yes" >&5
4433 echo "${ECHO_T}yes" >&6; }
4434 WANT_DEN=1
4435 else
4436 { echo "$as_me:$LINENO: result: no" >&5
4437 echo "${ECHO_T}no" >&6; }
4438 WANT_DEN=0
4443 if test "$WANT_DEN" = "1"; then
4444 WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE=
4445 WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE='#'
4446 else
4447 WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE='#'
4448 WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE=
4453 # Do we want to enable peruse interface?
4456 { echo "$as_me:$LINENO: checking if peruse support is required" >&5
4457 echo $ECHO_N "checking if peruse support is required... $ECHO_C" >&6; }
4458 # Check whether --enable-peruse was given.
4459 if test "${enable_peruse+set}" = set; then
4460 enableval=$enable_peruse;
4463 if test "$enable_peruse" == "yes"; then
4464 { echo "$as_me:$LINENO: result: yes" >&5
4465 echo "${ECHO_T}yes" >&6; }
4466 WANT_PERUSE=1
4467 else
4468 { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4470 WANT_PERUSE=0
4473 cat >>confdefs.h <<_ACEOF
4474 #define OMPI_WANT_PERUSE $WANT_PERUSE
4475 _ACEOF
4479 if test "$WANT_PERUSE" = "1"; then
4480 WANT_PERUSE_TRUE=
4481 WANT_PERUSE_FALSE='#'
4482 else
4483 WANT_PERUSE_TRUE='#'
4484 WANT_PERUSE_FALSE=
4489 # What is the max array rank that we want to support in the f90 bindings?
4492 OMPI_FORTRAN_MAX_ARRAY_RANK=4
4493 { echo "$as_me:$LINENO: checking max supported array dimension in F90 MPI bindings" >&5
4494 echo $ECHO_N "checking max supported array dimension in F90 MPI bindings... $ECHO_C" >&6; }
4496 # Check whether --with-f90-max-array-dim was given.
4497 if test "${with_f90_max_array_dim+set}" = set; then
4498 withval=$with_f90_max_array_dim;
4501 if test ! -z "$with_f90_max_array_dim" -a "$with_f90_max_array_dim" != "no"; then
4502 # Ensure it's a number; hopefully a integer...
4503 expr $with_f90_max_array_dim + 1 > /dev/null 2> /dev/null
4504 if test "$?" = "0"; then
4505 OMPI_FORTRAN_MAX_ARRAY_RANK="$with_f90_max_array_dim"
4508 { echo "$as_me:$LINENO: result: $OMPI_FORTRAN_MAX_ARRAY_RANK" >&5
4509 echo "${ECHO_T}$OMPI_FORTRAN_MAX_ARRAY_RANK" >&6; }
4512 # do we want PTY support?
4513 { echo "$as_me:$LINENO: checking if pty support should be enabled" >&5
4514 echo $ECHO_N "checking if pty support should be enabled... $ECHO_C" >&6; }
4515 # Check whether --enable-pty-support was given.
4516 if test "${enable_pty_support+set}" = set; then
4517 enableval=$enable_pty_support;
4520 if test "$enable_pty_support" = "no" ; then
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4523 OMPI_ENABLE_PTY_SUPPORT=0
4524 else
4525 { echo "$as_me:$LINENO: result: yes" >&5
4526 echo "${ECHO_T}yes" >&6; }
4527 OMPI_ENABLE_PTY_SUPPORT=1
4530 cat >>confdefs.h <<_ACEOF
4531 #define OMPI_ENABLE_PTY_SUPPORT $OMPI_ENABLE_PTY_SUPPORT
4532 _ACEOF
4536 # Do we want to allow DLOPEN?
4538 { echo "$as_me:$LINENO: checking if user wants dlopen support" >&5
4539 echo $ECHO_N "checking if user wants dlopen support... $ECHO_C" >&6; }
4540 # Check whether --enable-dlopen was given.
4541 if test "${enable_dlopen+set}" = set; then
4542 enableval=$enable_dlopen;
4545 if test "$enable_dlopen" = "no" ; then
4546 enable_mca_dso="no"
4547 enable_mca_static="yes"
4548 OMPI_ENABLE_DLOPEN_SUPPORT=0
4549 { echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6; }
4551 else
4552 OMPI_ENABLE_DLOPEN_SUPPORT=1
4553 { echo "$as_me:$LINENO: result: yes" >&5
4554 echo "${ECHO_T}yes" >&6; }
4558 # Heterogeneous support
4561 { echo "$as_me:$LINENO: checking if heterogeneous support should be enabled" >&5
4562 echo $ECHO_N "checking if heterogeneous support should be enabled... $ECHO_C" >&6; }
4563 # Check whether --enable-heterogeneous was given.
4564 if test "${enable_heterogeneous+set}" = set; then
4565 enableval=$enable_heterogeneous;
4568 if test "$enable_heterogeneous" = "no" ; then
4569 { echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6; }
4571 ompi_want_heterogeneous=0
4572 else
4573 { echo "$as_me:$LINENO: result: yes" >&5
4574 echo "${ECHO_T}yes" >&6; }
4575 ompi_want_heterogeneous=1
4578 cat >>confdefs.h <<_ACEOF
4579 #define OMPI_ENABLE_HETEROGENEOUS_SUPPORT $ompi_want_heterogeneous
4580 _ACEOF
4584 # Internal trace file logging (debugging)
4587 { echo "$as_me:$LINENO: checking if want trace file debugging" >&5
4588 echo $ECHO_N "checking if want trace file debugging... $ECHO_C" >&6; }
4589 # Check whether --enable-trace was given.
4590 if test "${enable_trace+set}" = set; then
4591 enableval=$enable_trace;
4594 if test "$enable_trace" = "yes"; then
4595 { echo "$as_me:$LINENO: result: yes" >&5
4596 echo "${ECHO_T}yes" >&6; }
4597 opal_want_trace=1
4598 else
4599 { echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6; }
4601 opal_want_trace=0
4604 cat >>confdefs.h <<_ACEOF
4605 #define OPAL_ENABLE_TRACE $opal_want_trace
4606 _ACEOF
4611 # Cross-compile data
4614 # Check whether --with-cross was given.
4615 if test "${with_cross+set}" = set; then
4616 withval=$with_cross;
4619 if test "$with_cross" = "yes" ; then
4620 { { echo "$as_me:$LINENO: error: --with-cross argument must include FILE option" >&5
4621 echo "$as_me: error: --with-cross argument must include FILE option" >&2;}
4622 { (exit 1); exit 1; }; }
4623 elif test "$with_cross" = "no" ; then
4624 { { echo "$as_me:$LINENO: error: --without-cross is not a valid argument" >&5
4625 echo "$as_me: error: --without-cross is not a valid argument" >&2;}
4626 { (exit 1); exit 1; }; }
4627 elif test "$with_cross" != "" ; then
4628 if test ! -r $with_cross ; then
4629 { { echo "$as_me:$LINENO: error: could not find cross-compile data file $with_cross" >&5
4630 echo "$as_me: error: could not find cross-compile data file $with_cross" >&2;}
4631 { (exit 1); exit 1; }; }
4634 # eval into environment
4636 # 1 is the message
4637 # 2 is whether to put a prefix or not
4638 if test -n ""; then
4639 echo "configure:4639: Loading cross-compile file $with_cross, with contents below" >&5
4640 else
4641 echo Loading cross-compile file $with_cross, with contents below >&5
4644 # 1 is the filename
4645 if test -n "$with_cross" -a -f "$with_cross"; then
4646 cat $with_cross >&5
4648 . "$with_cross"
4653 ############################################################################
4654 # Libtool: part one
4655 # (before C compiler setup)
4656 ############################################################################
4659 # Part one of libtool magic. Enable static so that we have the --with
4660 # tests done up here and can check for OS. Save the values of
4661 # $enable_static and $enable_shared before setting the defaults,
4662 # because if the user specified --[en|dis]able-[static|shared] on the
4663 # command line, they'll already be set. In this way, we can tell if
4664 # the user requested something or if the default was set here.
4667 ompi_enable_shared="$enable_shared"
4668 ompi_enable_static="$enable_static"
4669 # Check whether --enable-shared was given.
4670 if test "${enable_shared+set}" = set; then
4671 enableval=$enable_shared; p=${PACKAGE-default}
4672 case $enableval in
4673 yes) enable_shared=yes ;;
4674 no) enable_shared=no ;;
4676 enable_shared=no
4677 # Look at the argument we got. We use all the common list separators.
4678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4679 for pkg in $enableval; do
4680 IFS="$lt_save_ifs"
4681 if test "X$pkg" = "X$p"; then
4682 enable_shared=yes
4684 done
4685 IFS="$lt_save_ifs"
4687 esac
4688 else
4689 enable_shared=yes
4693 # Check whether --enable-static was given.
4694 if test "${enable_static+set}" = set; then
4695 enableval=$enable_static; p=${PACKAGE-default}
4696 case $enableval in
4697 yes) enable_static=yes ;;
4698 no) enable_static=no ;;
4700 enable_static=no
4701 # Look at the argument we got. We use all the common list separators.
4702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4703 for pkg in $enableval; do
4704 IFS="$lt_save_ifs"
4705 if test "X$pkg" = "X$p"; then
4706 enable_static=yes
4708 done
4709 IFS="$lt_save_ifs"
4711 esac
4712 else
4713 enable_static=no
4720 WRAPPER_EXTRA_CPPFLAGS=
4721 WRAPPER_EXTRA_CFLAGS=
4722 WRAPPER_EXTRA_CXXFLAGS=
4723 WRAPPER_EXTRA_FFLAGS=
4724 WRAPPER_EXTRA_FCFLAGS=
4725 WRAPPER_EXTRA_LDFLAGS=
4726 WRAPPER_EXTRA_LIBS=
4728 USER_WRAPPER_EXTRA_CFLAGS=
4729 USER_WRAPPER_EXTRA_CXXFLAGS=
4730 USER_WRAPPER_EXTRA_FFLAGS=
4731 USER_WRAPPER_EXTRA_FCFLAGS=
4732 USER_WRAPPER_EXTRA_LDFLAGS=
4733 USER_WRAPPER_EXTRA_LIBS=
4736 # Check whether --with-wrapper-cflags was given.
4737 if test "${with_wrapper_cflags+set}" = set; then
4738 withval=$with_wrapper_cflags;
4741 if test "$with_wrapper_cflags" = "yes" -o "$with_wrapper_cflags" = "no"; then
4742 { { echo "$as_me:$LINENO: error: --with-wrapper-cflags must have an argument. Aborting" >&5
4743 echo "$as_me: error: --with-wrapper-cflags must have an argument. Aborting" >&2;}
4744 { (exit 1); exit 1; }; }
4745 elif test ! -z "$with_wrapper_cflags" ; then
4746 USER_WRAPPER_EXTRA_CFLAGS="$with_wrapper_cflags"
4750 # Check whether --with-wrapper-cxxflags was given.
4751 if test "${with_wrapper_cxxflags+set}" = set; then
4752 withval=$with_wrapper_cxxflags;
4755 if test "$with_wrapper_cxxflags" = "yes" -o "$with_wrapper_cxxflags" = "no"; then
4756 { { echo "$as_me:$LINENO: error: --with-wrapper-cxxflags must have an argument. Aborting" >&5
4757 echo "$as_me: error: --with-wrapper-cxxflags must have an argument. Aborting" >&2;}
4758 { (exit 1); exit 1; }; }
4759 elif test ! -z "$with_wrapper_cxxflags" ; then
4760 USER_WRAPPER_EXTRA_CXXFLAGS="$with_wrapper_cxxflags"
4764 # Check whether --with-wrapper-fflags was given.
4765 if test "${with_wrapper_fflags+set}" = set; then
4766 withval=$with_wrapper_fflags;
4769 if test "$with_wrapper_fflags" = "yes" -o "$with_wrapper_fflags" = "no"; then
4770 { { echo "$as_me:$LINENO: error: --with-wrapper-fflags must have an argument. Aborting" >&5
4771 echo "$as_me: error: --with-wrapper-fflags must have an argument. Aborting" >&2;}
4772 { (exit 1); exit 1; }; }
4773 elif test ! -z "$with_wrapper_fflags" ; then
4774 USER_WRAPPER_EXTRA_FFLAGS="$with_wrapper_fflags"
4778 # Check whether --with-wrapper-fcflags was given.
4779 if test "${with_wrapper_fcflags+set}" = set; then
4780 withval=$with_wrapper_fcflags;
4783 if test "$with_wrapper_fcflags" = "yes" -o "$with_wrapper_fcflags" = "no"; then
4784 { { echo "$as_me:$LINENO: error: --with-wrapper-fcflags must have an argument. Aborting" >&5
4785 echo "$as_me: error: --with-wrapper-fcflags must have an argument. Aborting" >&2;}
4786 { (exit 1); exit 1; }; }
4787 elif test ! -z "$with_wrapper_fcflags" ; then
4788 USER_WRAPPER_EXTRA_FCFLAGS="$with_wrapper_fcflags"
4792 # Check whether --with-wrapper-ldflags was given.
4793 if test "${with_wrapper_ldflags+set}" = set; then
4794 withval=$with_wrapper_ldflags;
4797 if test "$with_wrapper_ldflags" = "yes" -o "$with_wrapper_ldflags" = "no"; then
4798 { { echo "$as_me:$LINENO: error: --with-wrapper-ldflags must have an argument. Aborting" >&5
4799 echo "$as_me: error: --with-wrapper-ldflags must have an argument. Aborting" >&2;}
4800 { (exit 1); exit 1; }; }
4801 elif test ! -z "$with_wrapper_ldflags" ; then
4802 USER_WRAPPER_EXTRA_LDFLAGS="$with_wrapper_ldflags"
4806 # Check whether --with-wrapper-libs was given.
4807 if test "${with_wrapper_libs+set}" = set; then
4808 withval=$with_wrapper_libs;
4811 if test "$with_wrapper_libs" = "yes" -o "$with_wrapper_libs" = "no"; then
4812 { { echo "$as_me:$LINENO: error: --with-wrapper-libs must have an argument. Aborting" >&5
4813 echo "$as_me: error: --with-wrapper-libs must have an argument. Aborting" >&2;}
4814 { (exit 1); exit 1; }; }
4815 elif test ! -z "$with_wrapper_libs" ; then
4816 USER_WRAPPER_EXTRA_LIBS="$with_wrapper_libs"
4821 ############################################################################
4822 # Check for compilers and preprocessors
4823 ############################################################################
4824 ompi_show_title "Compiler and preprocessor tests"
4826 ##################################
4827 # C compiler characteristics
4828 ##################################
4831 ompi_show_subtitle "C compiler and preprocessor"
4833 # $%@#!@#% AIX!! This has to be called before anything invokes the C
4834 # compiler.
4836 DEPDIR="${am__leading_dot}deps"
4838 ac_config_commands="$ac_config_commands depfiles"
4841 am_make=${MAKE-make}
4842 cat > confinc << 'END'
4843 am__doit:
4844 @echo done
4845 .PHONY: am__doit
4847 # If we don't find an include directive, just comment out the code.
4848 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4849 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4850 am__include="#"
4851 am__quote=
4852 _am_result=none
4853 # First try GNU make style include.
4854 echo "include confinc" > confmf
4855 # We grep out `Entering directory' and `Leaving directory'
4856 # messages which can occur if `w' ends up in MAKEFLAGS.
4857 # In particular we don't look at `^make:' because GNU make might
4858 # be invoked under some other name (usually "gmake"), in which
4859 # case it prints its new name instead of `make'.
4860 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4861 am__include=include
4862 am__quote=
4863 _am_result=GNU
4865 # Now try BSD make style include.
4866 if test "$am__include" = "#"; then
4867 echo '.include "confinc"' > confmf
4868 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4869 am__include=.include
4870 am__quote="\""
4871 _am_result=BSD
4876 { echo "$as_me:$LINENO: result: $_am_result" >&5
4877 echo "${ECHO_T}$_am_result" >&6; }
4878 rm -f confinc confmf
4880 # Check whether --enable-dependency-tracking was given.
4881 if test "${enable_dependency_tracking+set}" = set; then
4882 enableval=$enable_dependency_tracking;
4885 if test "x$enable_dependency_tracking" != xno; then
4886 am_depcomp="$ac_aux_dir/depcomp"
4887 AMDEPBACKSLASH='\'
4891 if test "x$enable_dependency_tracking" != xno; then
4892 AMDEP_TRUE=
4893 AMDEP_FALSE='#'
4894 else
4895 AMDEP_TRUE='#'
4896 AMDEP_FALSE=
4903 # Check for the compiler
4905 ompi_cflags_save="$CFLAGS"
4906 ac_ext=c
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911 if test -n "$ac_tool_prefix"; then
4912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4916 if test "${ac_cv_prog_CC+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919 if test -n "$CC"; then
4920 ac_cv_prog_CC="$CC" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4933 done
4934 done
4935 IFS=$as_save_IFS
4939 CC=$ac_cv_prog_CC
4940 if test -n "$CC"; then
4941 { echo "$as_me:$LINENO: result: $CC" >&5
4942 echo "${ECHO_T}$CC" >&6; }
4943 else
4944 { echo "$as_me:$LINENO: result: no" >&5
4945 echo "${ECHO_T}no" >&6; }
4950 if test -z "$ac_cv_prog_CC"; then
4951 ac_ct_CC=$CC
4952 # Extract the first word of "gcc", so it can be a program name with args.
4953 set dummy gcc; ac_word=$2
4954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 if test -n "$ac_ct_CC"; then
4960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4961 else
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_prog_ac_ct_CC="gcc"
4970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4973 done
4974 done
4975 IFS=$as_save_IFS
4979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4980 if test -n "$ac_ct_CC"; then
4981 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4982 echo "${ECHO_T}$ac_ct_CC" >&6; }
4983 else
4984 { echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6; }
4988 if test "x$ac_ct_CC" = x; then
4989 CC=""
4990 else
4991 case $cross_compiling:$ac_tool_warned in
4992 yes:)
4993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4994 whose name does not start with the host triplet. If you think this
4995 configuration is useful to you, please write to autoconf@gnu.org." >&5
4996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4997 whose name does not start with the host triplet. If you think this
4998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4999 ac_tool_warned=yes ;;
5000 esac
5001 CC=$ac_ct_CC
5003 else
5004 CC="$ac_cv_prog_CC"
5007 if test -z "$CC"; then
5008 if test -n "$ac_tool_prefix"; then
5009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5010 set dummy ${ac_tool_prefix}cc; ac_word=$2
5011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5013 if test "${ac_cv_prog_CC+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 if test -n "$CC"; then
5017 ac_cv_prog_CC="$CC" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026 ac_cv_prog_CC="${ac_tool_prefix}cc"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5030 done
5031 done
5032 IFS=$as_save_IFS
5036 CC=$ac_cv_prog_CC
5037 if test -n "$CC"; then
5038 { echo "$as_me:$LINENO: result: $CC" >&5
5039 echo "${ECHO_T}$CC" >&6; }
5040 else
5041 { echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6; }
5048 if test -z "$CC"; then
5049 # Extract the first word of "cc", so it can be a program name with args.
5050 set dummy cc; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_CC+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 if test -n "$CC"; then
5057 ac_cv_prog_CC="$CC" # Let the user override the test.
5058 else
5059 ac_prog_rejected=no
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5068 ac_prog_rejected=yes
5069 continue
5071 ac_cv_prog_CC="cc"
5072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5075 done
5076 done
5077 IFS=$as_save_IFS
5079 if test $ac_prog_rejected = yes; then
5080 # We found a bogon in the path, so make sure we never use it.
5081 set dummy $ac_cv_prog_CC
5082 shift
5083 if test $# != 0; then
5084 # We chose a different compiler from the bogus one.
5085 # However, it has the same basename, so the bogon will be chosen
5086 # first if we set CC to just the basename; use the full file name.
5087 shift
5088 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5093 CC=$ac_cv_prog_CC
5094 if test -n "$CC"; then
5095 { echo "$as_me:$LINENO: result: $CC" >&5
5096 echo "${ECHO_T}$CC" >&6; }
5097 else
5098 { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5104 if test -z "$CC"; then
5105 if test -n "$ac_tool_prefix"; then
5106 for ac_prog in cl.exe
5108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5112 if test "${ac_cv_prog_CC+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115 if test -n "$CC"; then
5116 ac_cv_prog_CC="$CC" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5129 done
5130 done
5131 IFS=$as_save_IFS
5135 CC=$ac_cv_prog_CC
5136 if test -n "$CC"; then
5137 { echo "$as_me:$LINENO: result: $CC" >&5
5138 echo "${ECHO_T}$CC" >&6; }
5139 else
5140 { echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6; }
5145 test -n "$CC" && break
5146 done
5148 if test -z "$CC"; then
5149 ac_ct_CC=$CC
5150 for ac_prog in cl.exe
5152 # Extract the first word of "$ac_prog", so it can be a program name with args.
5153 set dummy $ac_prog; ac_word=$2
5154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 if test -n "$ac_ct_CC"; then
5160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_prog_ac_ct_CC="$ac_prog"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5173 done
5174 done
5175 IFS=$as_save_IFS
5179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5180 if test -n "$ac_ct_CC"; then
5181 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5182 echo "${ECHO_T}$ac_ct_CC" >&6; }
5183 else
5184 { echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6; }
5189 test -n "$ac_ct_CC" && break
5190 done
5192 if test "x$ac_ct_CC" = x; then
5193 CC=""
5194 else
5195 case $cross_compiling:$ac_tool_warned in
5196 yes:)
5197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5198 whose name does not start with the host triplet. If you think this
5199 configuration is useful to you, please write to autoconf@gnu.org." >&5
5200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5201 whose name does not start with the host triplet. If you think this
5202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5203 ac_tool_warned=yes ;;
5204 esac
5205 CC=$ac_ct_CC
5212 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5213 See \`config.log' for more details." >&5
5214 echo "$as_me: error: no acceptable C compiler found in \$PATH
5215 See \`config.log' for more details." >&2;}
5216 { (exit 1); exit 1; }; }
5218 # Provide some information about the compiler.
5219 echo "$as_me:$LINENO: checking for C compiler version" >&5
5220 ac_compiler=`set X $ac_compile; echo $2`
5221 { (ac_try="$ac_compiler --version >&5"
5222 case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225 esac
5226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5227 (eval "$ac_compiler --version >&5") 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }
5231 { (ac_try="$ac_compiler -v >&5"
5232 case "(($ac_try" in
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5235 esac
5236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237 (eval "$ac_compiler -v >&5") 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }
5241 { (ac_try="$ac_compiler -V >&5"
5242 case "(($ac_try" in
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5245 esac
5246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247 (eval "$ac_compiler -V >&5") 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }
5252 cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h. */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5260 main ()
5264 return 0;
5266 _ACEOF
5267 ac_clean_files_save=$ac_clean_files
5268 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5269 # Try to create an executable without -o first, disregard a.out.
5270 # It will help us diagnose broken compilers, and finding out an intuition
5271 # of exeext.
5272 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5273 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5274 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5276 # List of possible output files, starting from the most likely.
5277 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5278 # only as a last resort. b.out is created by i960 compilers.
5279 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5281 # The IRIX 6 linker writes into existing files which may not be
5282 # executable, retaining their permissions. Remove them first so a
5283 # subsequent execution test works.
5284 ac_rmfiles=
5285 for ac_file in $ac_files
5287 case $ac_file in
5288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5289 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5290 esac
5291 done
5292 rm -f $ac_rmfiles
5294 if { (ac_try="$ac_link_default"
5295 case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298 esac
5299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_link_default") 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; then
5304 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5305 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5306 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5307 # so that the user can short-circuit this test for compilers unknown to
5308 # Autoconf.
5309 for ac_file in $ac_files ''
5311 test -f "$ac_file" || continue
5312 case $ac_file in
5313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5315 [ab].out )
5316 # We found the default executable, but exeext='' is most
5317 # certainly right.
5318 break;;
5319 *.* )
5320 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5321 then :; else
5322 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5324 # We set ac_cv_exeext here because the later test for it is not
5325 # safe: cross compilers may not add the suffix if given an `-o'
5326 # argument, so we may need to know it at that point already.
5327 # Even if this section looks crufty: it has the advantage of
5328 # actually working.
5329 break;;
5331 break;;
5332 esac
5333 done
5334 test "$ac_cv_exeext" = no && ac_cv_exeext=
5336 else
5337 ac_file=''
5340 { echo "$as_me:$LINENO: result: $ac_file" >&5
5341 echo "${ECHO_T}$ac_file" >&6; }
5342 if test -z "$ac_file"; then
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5347 See \`config.log' for more details." >&5
5348 echo "$as_me: error: C compiler cannot create executables
5349 See \`config.log' for more details." >&2;}
5350 { (exit 77); exit 77; }; }
5353 ac_exeext=$ac_cv_exeext
5355 # Check that the compiler produces executables we can run. If not, either
5356 # the compiler is broken, or we cross compile.
5357 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5358 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5359 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5360 # If not cross compiling, check that we can run a simple program.
5361 if test "$cross_compiling" != yes; then
5362 if { ac_try='./$ac_file'
5363 { (case "(($ac_try" in
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5366 esac
5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_try") 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5372 cross_compiling=no
5373 else
5374 if test "$cross_compiling" = maybe; then
5375 cross_compiling=yes
5376 else
5377 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5378 If you meant to cross compile, use \`--host'.
5379 See \`config.log' for more details." >&5
5380 echo "$as_me: error: cannot run C compiled programs.
5381 If you meant to cross compile, use \`--host'.
5382 See \`config.log' for more details." >&2;}
5383 { (exit 1); exit 1; }; }
5387 { echo "$as_me:$LINENO: result: yes" >&5
5388 echo "${ECHO_T}yes" >&6; }
5390 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5391 ac_clean_files=$ac_clean_files_save
5392 # Check that the compiler produces executables we can run. If not, either
5393 # the compiler is broken, or we cross compile.
5394 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5395 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5396 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5397 echo "${ECHO_T}$cross_compiling" >&6; }
5399 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5400 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5401 if { (ac_try="$ac_link"
5402 case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405 esac
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_link") 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; then
5411 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5412 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5413 # work properly (i.e., refer to `conftest.exe'), while it won't with
5414 # `rm'.
5415 for ac_file in conftest.exe conftest conftest.*; do
5416 test -f "$ac_file" || continue
5417 case $ac_file in
5418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5419 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5420 break;;
5421 * ) break;;
5422 esac
5423 done
5424 else
5425 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5426 See \`config.log' for more details." >&5
5427 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5428 See \`config.log' for more details." >&2;}
5429 { (exit 1); exit 1; }; }
5432 rm -f conftest$ac_cv_exeext
5433 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5434 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5436 rm -f conftest.$ac_ext
5437 EXEEXT=$ac_cv_exeext
5438 ac_exeext=$EXEEXT
5439 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5440 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5441 if test "${ac_cv_objext+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h. */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5452 main ()
5456 return 0;
5458 _ACEOF
5459 rm -f conftest.o conftest.obj
5460 if { (ac_try="$ac_compile"
5461 case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compile") 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; then
5470 for ac_file in conftest.o conftest.obj conftest.*; do
5471 test -f "$ac_file" || continue;
5472 case $ac_file in
5473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5475 break;;
5476 esac
5477 done
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5485 See \`config.log' for more details." >&2;}
5486 { (exit 1); exit 1; }; }
5489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5491 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5492 echo "${ECHO_T}$ac_cv_objext" >&6; }
5493 OBJEXT=$ac_cv_objext
5494 ac_objext=$OBJEXT
5495 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5496 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5497 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500 cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h. */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5508 main ()
5510 #ifndef __GNUC__
5511 choke me
5512 #endif
5515 return 0;
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5520 case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && {
5532 test -z "$ac_c_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
5535 ac_compiler_gnu=yes
5536 else
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 ac_compiler_gnu=no
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5547 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5548 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5549 GCC=`test $ac_compiler_gnu = yes && echo yes`
5550 ac_test_CFLAGS=${CFLAGS+set}
5551 ac_save_CFLAGS=$CFLAGS
5552 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5553 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5554 if test "${ac_cv_prog_cc_g+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557 ac_save_c_werror_flag=$ac_c_werror_flag
5558 ac_c_werror_flag=yes
5559 ac_cv_prog_cc_g=no
5560 CFLAGS="-g"
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5569 main ()
5573 return 0;
5575 _ACEOF
5576 rm -f conftest.$ac_objext
5577 if { (ac_try="$ac_compile"
5578 case "(($ac_try" in
5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580 *) ac_try_echo=$ac_try;;
5581 esac
5582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583 (eval "$ac_compile") 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } && {
5590 test -z "$ac_c_werror_flag" ||
5591 test ! -s conftest.err
5592 } && test -s conftest.$ac_objext; then
5593 ac_cv_prog_cc_g=yes
5594 else
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5598 CFLAGS=""
5599 cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5607 main ()
5611 return 0;
5613 _ACEOF
5614 rm -f conftest.$ac_objext
5615 if { (ac_try="$ac_compile"
5616 case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619 esac
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5632 else
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 ac_c_werror_flag=$ac_save_c_werror_flag
5637 CFLAGS="-g"
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h. */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5646 main ()
5650 return 0;
5652 _ACEOF
5653 rm -f conftest.$ac_objext
5654 if { (ac_try="$ac_compile"
5655 case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658 esac
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_compile") 2>conftest.er1
5661 ac_status=$?
5662 grep -v '^ *+' conftest.er1 >conftest.err
5663 rm -f conftest.er1
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && {
5667 test -z "$ac_c_werror_flag" ||
5668 test ! -s conftest.err
5669 } && test -s conftest.$ac_objext; then
5670 ac_cv_prog_cc_g=yes
5671 else
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 ac_c_werror_flag=$ac_save_c_werror_flag
5687 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5688 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5689 if test "$ac_test_CFLAGS" = set; then
5690 CFLAGS=$ac_save_CFLAGS
5691 elif test $ac_cv_prog_cc_g = yes; then
5692 if test "$GCC" = yes; then
5693 CFLAGS="-g -O2"
5694 else
5695 CFLAGS="-g"
5697 else
5698 if test "$GCC" = yes; then
5699 CFLAGS="-O2"
5700 else
5701 CFLAGS=
5704 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5705 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5706 if test "${ac_cv_prog_cc_c89+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709 ac_cv_prog_cc_c89=no
5710 ac_save_CC=$CC
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <stdarg.h>
5718 #include <stdio.h>
5719 #include <sys/types.h>
5720 #include <sys/stat.h>
5721 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5722 struct buf { int x; };
5723 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5724 static char *e (p, i)
5725 char **p;
5726 int i;
5728 return p[i];
5730 static char *f (char * (*g) (char **, int), char **p, ...)
5732 char *s;
5733 va_list v;
5734 va_start (v,p);
5735 s = g (p, va_arg (v,int));
5736 va_end (v);
5737 return s;
5740 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5741 function prototypes and stuff, but not '\xHH' hex character constants.
5742 These don't provoke an error unfortunately, instead are silently treated
5743 as 'x'. The following induces an error, until -std is added to get
5744 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5745 array size at least. It's necessary to write '\x00'==0 to get something
5746 that's true only with -std. */
5747 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5749 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5750 inside strings and character constants. */
5751 #define FOO(x) 'x'
5752 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5754 int test (int i, double x);
5755 struct s1 {int (*f) (int a);};
5756 struct s2 {int (*f) (double a);};
5757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5758 int argc;
5759 char **argv;
5761 main ()
5763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5765 return 0;
5767 _ACEOF
5768 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5769 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5771 CC="$ac_save_CC $ac_arg"
5772 rm -f conftest.$ac_objext
5773 if { (ac_try="$ac_compile"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && {
5786 test -z "$ac_c_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest.$ac_objext; then
5789 ac_cv_prog_cc_c89=$ac_arg
5790 else
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5797 rm -f core conftest.err conftest.$ac_objext
5798 test "x$ac_cv_prog_cc_c89" != "xno" && break
5799 done
5800 rm -f conftest.$ac_ext
5801 CC=$ac_save_CC
5804 # AC_CACHE_VAL
5805 case "x$ac_cv_prog_cc_c89" in
5807 { echo "$as_me:$LINENO: result: none needed" >&5
5808 echo "${ECHO_T}none needed" >&6; } ;;
5809 xno)
5810 { echo "$as_me:$LINENO: result: unsupported" >&5
5811 echo "${ECHO_T}unsupported" >&6; } ;;
5813 CC="$CC $ac_cv_prog_cc_c89"
5814 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5815 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5816 esac
5819 ac_ext=c
5820 ac_cpp='$CPP $CPPFLAGS'
5821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5825 depcc="$CC" am_compiler_list=
5827 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5828 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5829 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5833 # We make a subdir and do the tests there. Otherwise we can end up
5834 # making bogus files that we don't know about and never remove. For
5835 # instance it was reported that on HP-UX the gcc test will end up
5836 # making a dummy file named `D' -- because `-MD' means `put the output
5837 # in D'.
5838 mkdir conftest.dir
5839 # Copy depcomp to subdir because otherwise we won't find it if we're
5840 # using a relative directory.
5841 cp "$am_depcomp" conftest.dir
5842 cd conftest.dir
5843 # We will build objects and dependencies in a subdirectory because
5844 # it helps to detect inapplicable dependency modes. For instance
5845 # both Tru64's cc and ICC support -MD to output dependencies as a
5846 # side effect of compilation, but ICC will put the dependencies in
5847 # the current directory while Tru64 will put them in the object
5848 # directory.
5849 mkdir sub
5851 am_cv_CC_dependencies_compiler_type=none
5852 if test "$am_compiler_list" = ""; then
5853 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5855 for depmode in $am_compiler_list; do
5856 # Setup a source with many dependencies, because some compilers
5857 # like to wrap large dependency lists on column 80 (with \), and
5858 # we should not choose a depcomp mode which is confused by this.
5860 # We need to recreate these files for each test, as the compiler may
5861 # overwrite some of them when testing with obscure command lines.
5862 # This happens at least with the AIX C compiler.
5863 : > sub/conftest.c
5864 for i in 1 2 3 4 5 6; do
5865 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5866 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5867 # Solaris 8's {/usr,}/bin/sh.
5868 touch sub/conftst$i.h
5869 done
5870 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5872 case $depmode in
5873 nosideeffect)
5874 # after this tag, mechanisms are not by side-effect, so they'll
5875 # only be used when explicitly requested
5876 if test "x$enable_dependency_tracking" = xyes; then
5877 continue
5878 else
5879 break
5882 none) break ;;
5883 esac
5884 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5885 # mode. It turns out that the SunPro C++ compiler does not properly
5886 # handle `-M -o', and we need to detect this.
5887 if depmode=$depmode \
5888 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5889 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5890 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5891 >/dev/null 2>conftest.err &&
5892 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5893 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5894 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5895 # icc doesn't choke on unknown options, it will just issue warnings
5896 # or remarks (even with -Werror). So we grep stderr for any message
5897 # that says an option was ignored or not supported.
5898 # When given -MP, icc 7.0 and 7.1 complain thusly:
5899 # icc: Command line warning: ignoring option '-M'; no argument required
5900 # The diagnosis changed in icc 8.0:
5901 # icc: Command line remark: option '-MP' not supported
5902 if (grep 'ignoring option' conftest.err ||
5903 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5904 am_cv_CC_dependencies_compiler_type=$depmode
5905 break
5908 done
5910 cd ..
5911 rm -rf conftest.dir
5912 else
5913 am_cv_CC_dependencies_compiler_type=none
5917 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5918 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5919 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5924 test "x$enable_dependency_tracking" != xno \
5925 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5926 am__fastdepCC_TRUE=
5927 am__fastdepCC_FALSE='#'
5928 else
5929 am__fastdepCC_TRUE='#'
5930 am__fastdepCC_FALSE=
5934 BASECC="`basename $CC`"
5935 CFLAGS="$ompi_cflags_save"
5937 cat >>confdefs.h <<_ACEOF
5938 #define OMPI_CC "$CC"
5939 _ACEOF
5941 OMPI_CC_ABSOLUTE="`which $CC`"
5944 if test "x$CC" != xcc; then
5945 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5946 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
5947 else
5948 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5949 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
5951 set dummy $CC; ac_cc=`echo $2 |
5952 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5953 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h. */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5964 main ()
5968 return 0;
5970 _ACEOF
5971 # Make sure it works both with $CC and with simple cc.
5972 # We do the test twice because some compilers refuse to overwrite an
5973 # existing .o file with -o, though they will create one.
5974 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5975 rm -f conftest2.*
5976 if { (case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_try") 2>&5
5982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); };
5994 then
5995 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5996 if test "x$CC" != xcc; then
5997 # Test first that cc exists at all.
5998 if { ac_try='cc -c conftest.$ac_ext >&5'
5999 { (case "(($ac_try" in
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6002 esac
6003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004 (eval "$ac_try") 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6009 rm -f conftest2.*
6010 if { (case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_try") 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 test -f conftest2.$ac_objext && { (case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6022 esac
6023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_try") 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); };
6028 then
6029 # cc works too.
6031 else
6032 # cc exists but doesn't like -o.
6033 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6037 else
6038 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6040 rm -f core conftest*
6043 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6044 { echo "$as_me:$LINENO: result: yes" >&5
6045 echo "${ECHO_T}yes" >&6; }
6046 else
6047 { echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6; }
6050 cat >>confdefs.h <<\_ACEOF
6051 #define NO_MINUS_C_MINUS_O 1
6052 _ACEOF
6056 # FIXME: we rely on the cache variable name because
6057 # there is no other way.
6058 set dummy $CC
6059 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6060 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6061 # Losing compiler, so override with the script.
6062 # FIXME: It is wrong to rewrite CC.
6063 # But if we don't then we get into trouble of one sort or another.
6064 # A longer-term fix would be to have automake use am__CC in this case,
6065 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6066 CC="$am_aux_dir/compile $CC"
6071 # AM_PROG_CC_C_O AC_REQUIREs AC_PROG_CC, so we have to be a little
6072 # careful about ordering here, and AC_REQUIRE these things so that
6073 # they get stamped out in the right order.
6082 { echo "$as_me:$LINENO: checking for the C compiler vendor" >&5
6083 echo $ECHO_N "checking for the C compiler vendor... $ECHO_C" >&6; }
6084 if test "${ompi_cv_c_compiler_vendor+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087 ac_ext=c
6088 ac_cpp='$CPP $CPPFLAGS'
6089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6094 ompi_check_compiler_vendor_result="unknown"
6096 # GNU is probably the most common, so check that one as soon as
6097 # possible. Intel pretends to be GNU, so need to check Intel
6098 # before checking for GNU.
6100 # Intel
6101 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6103 cat >conftest.$ac_ext <<_ACEOF
6104 #if !( defined(__INTEL_COMPILER) || defined(__ICC) )
6105 #error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met"
6106 choke me
6107 #endif
6108 _ACEOF
6109 rm -f conftest.$ac_objext
6110 if { (ac_try="$ac_compile"
6111 case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compile") 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } && {
6123 test -z "$ac_c_werror_flag" ||
6124 test ! -s conftest.err
6125 } && test -s conftest.$ac_objext; then
6126 ompi_check_compiler_vendor_result="intel"
6127 else
6128 echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 # GNU
6139 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6141 cat >conftest.$ac_ext <<_ACEOF
6142 #ifndef __GNUC__
6143 #error "symbol __GNUC__ not defined"
6144 choke me
6145 #endif
6146 _ACEOF
6147 rm -f conftest.$ac_objext
6148 if { (ac_try="$ac_compile"
6149 case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6152 esac
6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_compile") 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } && {
6161 test -z "$ac_c_werror_flag" ||
6162 test ! -s conftest.err
6163 } && test -s conftest.$ac_objext; then
6164 ompi_check_compiler_vendor_result="gnu"
6165 else
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 # Borland Turbo C
6177 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6179 cat >conftest.$ac_ext <<_ACEOF
6180 #ifndef __TURBOC__
6181 #error "symbol __TURBOC__ not defined"
6182 choke me
6183 #endif
6184 _ACEOF
6185 rm -f conftest.$ac_objext
6186 if { (ac_try="$ac_compile"
6187 case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_compile") 2>conftest.er1
6193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } && {
6199 test -z "$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6201 } && test -s conftest.$ac_objext; then
6202 ompi_check_compiler_vendor_result="borland"
6203 else
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 # Borland C++
6215 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6217 cat >conftest.$ac_ext <<_ACEOF
6218 #ifndef __BORLANDC__
6219 #error "symbol __BORLANDC__ not defined"
6220 choke me
6221 #endif
6222 _ACEOF
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6225 case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228 esac
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 ompi_check_compiler_vendor_result="borland"
6241 else
6242 echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 # Comeau C++
6253 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6255 cat >conftest.$ac_ext <<_ACEOF
6256 #ifndef __COMO__
6257 #error "symbol __COMO__ not defined"
6258 choke me
6259 #endif
6260 _ACEOF
6261 rm -f conftest.$ac_objext
6262 if { (ac_try="$ac_compile"
6263 case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6266 esac
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$ac_compile") 2>conftest.er1
6269 ac_status=$?
6270 grep -v '^ *+' conftest.er1 >conftest.err
6271 rm -f conftest.er1
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } && {
6275 test -z "$ac_c_werror_flag" ||
6276 test ! -s conftest.err
6277 } && test -s conftest.$ac_objext; then
6278 ompi_check_compiler_vendor_result="comeau"
6279 else
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 # Compaq C/C++
6291 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6293 cat >conftest.$ac_ext <<_ACEOF
6294 #if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) )
6295 #error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met"
6296 choke me
6297 #endif
6298 _ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (ac_try="$ac_compile"
6301 case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304 esac
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_compile") 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && {
6313 test -z "$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest.$ac_objext; then
6316 ompi_check_compiler_vendor_result="compaq"
6317 else
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6322 cat >conftest.$ac_ext <<_ACEOF
6323 #if !( defined(__osf__) && defined(__LANGUAGE_C__) )
6324 #error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met"
6325 choke me
6326 #endif
6327 _ACEOF
6328 rm -f conftest.$ac_objext
6329 if { (ac_try="$ac_compile"
6330 case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_compile") 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest.$ac_objext; then
6345 ompi_check_compiler_vendor_result="compaq"
6346 else
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6351 cat >conftest.$ac_ext <<_ACEOF
6352 #ifndef __DECCXX
6353 #error "symbol __DECCXX not defined"
6354 choke me
6355 #endif
6356 _ACEOF
6357 rm -f conftest.$ac_objext
6358 if { (ac_try="$ac_compile"
6359 case "(($ac_try" in
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6362 esac
6363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364 (eval "$ac_compile") 2>conftest.er1
6365 ac_status=$?
6366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && {
6371 test -z "$ac_c_werror_flag" ||
6372 test ! -s conftest.err
6373 } && test -s conftest.$ac_objext; then
6374 ompi_check_compiler_vendor_result="compaq"
6375 else
6376 echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 # Cray C/C++
6393 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6395 cat >conftest.$ac_ext <<_ACEOF
6396 #ifndef _CRAYC
6397 #error "symbol _CRAYC not defined"
6398 choke me
6399 #endif
6400 _ACEOF
6401 rm -f conftest.$ac_objext
6402 if { (ac_try="$ac_compile"
6403 case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6406 esac
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_compile") 2>conftest.er1
6409 ac_status=$?
6410 grep -v '^ *+' conftest.er1 >conftest.err
6411 rm -f conftest.er1
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } && {
6415 test -z "$ac_c_werror_flag" ||
6416 test ! -s conftest.err
6417 } && test -s conftest.$ac_objext; then
6418 ompi_check_compiler_vendor_result="cray"
6419 else
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 # Diab C/C++
6431 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6433 cat >conftest.$ac_ext <<_ACEOF
6434 #ifndef __DCC__
6435 #error "symbol __DCC__ not defined"
6436 choke me
6437 #endif
6438 _ACEOF
6439 rm -f conftest.$ac_objext
6440 if { (ac_try="$ac_compile"
6441 case "(($ac_try" in
6442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443 *) ac_try_echo=$ac_try;;
6444 esac
6445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446 (eval "$ac_compile") 2>conftest.er1
6447 ac_status=$?
6448 grep -v '^ *+' conftest.er1 >conftest.err
6449 rm -f conftest.er1
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } && {
6453 test -z "$ac_c_werror_flag" ||
6454 test ! -s conftest.err
6455 } && test -s conftest.$ac_objext; then
6456 ompi_check_compiler_vendor_result="diab"
6457 else
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468 # Digital Mars
6469 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6471 cat >conftest.$ac_ext <<_ACEOF
6472 #if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) )
6473 #error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met"
6474 choke me
6475 #endif
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (ac_try="$ac_compile"
6479 case "(($ac_try" in
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6482 esac
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_compile") 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && {
6491 test -z "$ac_c_werror_flag" ||
6492 test ! -s conftest.err
6493 } && test -s conftest.$ac_objext; then
6494 ompi_check_compiler_vendor_result="digital mars"
6495 else
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 # HP ANSI C / aC++
6507 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6509 cat >conftest.$ac_ext <<_ACEOF
6510 #if !( defined(__HP_cc) || defined(__HP_aCC) )
6511 #error "condition defined(__HP_cc) || defined(__HP_aCC) not met"
6512 choke me
6513 #endif
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (ac_try="$ac_compile"
6517 case "(($ac_try" in
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6520 esac
6521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6522 (eval "$ac_compile") 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } && {
6529 test -z "$ac_c_werror_flag" ||
6530 test ! -s conftest.err
6531 } && test -s conftest.$ac_objext; then
6532 ompi_check_compiler_vendor_result="hp"
6533 else
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 # IBM XL C/C++
6545 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6547 cat >conftest.$ac_ext <<_ACEOF
6548 #if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) )
6549 #error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met"
6550 choke me
6551 #endif
6552 _ACEOF
6553 rm -f conftest.$ac_objext
6554 if { (ac_try="$ac_compile"
6555 case "(($ac_try" in
6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557 *) ac_try_echo=$ac_try;;
6558 esac
6559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6560 (eval "$ac_compile") 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest.$ac_objext; then
6570 ompi_check_compiler_vendor_result="ibm"
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6576 cat >conftest.$ac_ext <<_ACEOF
6577 #if !( defined(_AIX) && !defined(__GNUC__) )
6578 #error "condition defined(_AIX) && !defined(__GNUC__) not met"
6579 choke me
6580 #endif
6581 _ACEOF
6582 rm -f conftest.$ac_objext
6583 if { (ac_try="$ac_compile"
6584 case "(($ac_try" in
6585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6587 esac
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589 (eval "$ac_compile") 2>conftest.er1
6590 ac_status=$?
6591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && {
6596 test -z "$ac_c_werror_flag" ||
6597 test ! -s conftest.err
6598 } && test -s conftest.$ac_objext; then
6599 ompi_check_compiler_vendor_result="ibm"
6600 else
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 # KAI C++ (rest in peace)
6615 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6617 cat >conftest.$ac_ext <<_ACEOF
6618 #ifndef __KCC
6619 #error "symbol __KCC not defined"
6620 choke me
6621 #endif
6622 _ACEOF
6623 rm -f conftest.$ac_objext
6624 if { (ac_try="$ac_compile"
6625 case "(($ac_try" in
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6628 esac
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_compile") 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && {
6637 test -z "$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6639 } && test -s conftest.$ac_objext; then
6640 ompi_check_compiler_vendor_result="kai"
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 # LCC
6653 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6655 cat >conftest.$ac_ext <<_ACEOF
6656 #ifndef __LCC__
6657 #error "symbol __LCC__ not defined"
6658 choke me
6659 #endif
6660 _ACEOF
6661 rm -f conftest.$ac_objext
6662 if { (ac_try="$ac_compile"
6663 case "(($ac_try" in
6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6666 esac
6667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668 (eval "$ac_compile") 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && {
6675 test -z "$ac_c_werror_flag" ||
6676 test ! -s conftest.err
6677 } && test -s conftest.$ac_objext; then
6678 ompi_check_compiler_vendor_result="lcc"
6679 else
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 # MetaWare High C/C++
6691 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6693 cat >conftest.$ac_ext <<_ACEOF
6694 #ifndef __HIGHC__
6695 #error "symbol __HIGHC__ not defined"
6696 choke me
6697 #endif
6698 _ACEOF
6699 rm -f conftest.$ac_objext
6700 if { (ac_try="$ac_compile"
6701 case "(($ac_try" in
6702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703 *) ac_try_echo=$ac_try;;
6704 esac
6705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6706 (eval "$ac_compile") 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 } && test -s conftest.$ac_objext; then
6716 ompi_check_compiler_vendor_result="metaware high"
6717 else
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6728 # Metrowerks Codewarrior
6729 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6731 cat >conftest.$ac_ext <<_ACEOF
6732 #ifndef __MWERKS__
6733 #error "symbol __MWERKS__ not defined"
6734 choke me
6735 #endif
6736 _ACEOF
6737 rm -f conftest.$ac_objext
6738 if { (ac_try="$ac_compile"
6739 case "(($ac_try" in
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6742 esac
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_compile") 2>conftest.er1
6745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } && {
6751 test -z "$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6753 } && test -s conftest.$ac_objext; then
6754 ompi_check_compiler_vendor_result="metrowerks"
6755 else
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 # MIPSpro (SGI)
6767 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6769 cat >conftest.$ac_ext <<_ACEOF
6770 #if !( defined(sgi) || defined(__sgi) )
6771 #error "condition defined(sgi) || defined(__sgi) not met"
6772 choke me
6773 #endif
6774 _ACEOF
6775 rm -f conftest.$ac_objext
6776 if { (ac_try="$ac_compile"
6777 case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780 esac
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_compile") 2>conftest.er1
6783 ac_status=$?
6784 grep -v '^ *+' conftest.er1 >conftest.err
6785 rm -f conftest.er1
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } && {
6789 test -z "$ac_c_werror_flag" ||
6790 test ! -s conftest.err
6791 } && test -s conftest.$ac_objext; then
6792 ompi_check_compiler_vendor_result="sgi"
6793 else
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 # MPW C++
6805 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6807 cat >conftest.$ac_ext <<_ACEOF
6808 #if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) )
6809 #error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met"
6810 choke me
6811 #endif
6812 _ACEOF
6813 rm -f conftest.$ac_objext
6814 if { (ac_try="$ac_compile"
6815 case "(($ac_try" in
6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6818 esac
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820 (eval "$ac_compile") 2>conftest.er1
6821 ac_status=$?
6822 grep -v '^ *+' conftest.er1 >conftest.err
6823 rm -f conftest.er1
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } && {
6827 test -z "$ac_c_werror_flag" ||
6828 test ! -s conftest.err
6829 } && test -s conftest.$ac_objext; then
6830 ompi_check_compiler_vendor_result="mpw"
6831 else
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842 # Microsoft
6843 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6844 # Always use C compiler when checking for Microsoft, as
6845 # Visual C++ doesn't recognize .cc as a C++ file.
6846 ac_ext=c
6847 ac_cpp='$CPP $CPPFLAGS'
6848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6853 cat >conftest.$ac_ext <<_ACEOF
6854 #if !( defined(_MSC_VER) || defined(__MSC_VER) )
6855 #error "condition defined(_MSC_VER) || defined(__MSC_VER) not met"
6856 choke me
6857 #endif
6858 _ACEOF
6859 rm -f conftest.$ac_objext
6860 if { (ac_try="$ac_compile"
6861 case "(($ac_try" in
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6864 esac
6865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6866 (eval "$ac_compile") 2>conftest.er1
6867 ac_status=$?
6868 grep -v '^ *+' conftest.er1 >conftest.err
6869 rm -f conftest.er1
6870 cat conftest.err >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } && {
6873 test -z "$ac_c_werror_flag" ||
6874 test ! -s conftest.err
6875 } && test -s conftest.$ac_objext; then
6876 ompi_check_compiler_vendor_result="microsoft"
6877 else
6878 echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 ac_ext=c
6886 ac_cpp='$CPP $CPPFLAGS'
6887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6894 # Norcroft C
6895 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6897 cat >conftest.$ac_ext <<_ACEOF
6898 #ifndef __CC_NORCROFT
6899 #error "symbol __CC_NORCROFT not defined"
6900 choke me
6901 #endif
6902 _ACEOF
6903 rm -f conftest.$ac_objext
6904 if { (ac_try="$ac_compile"
6905 case "(($ac_try" in
6906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907 *) ac_try_echo=$ac_try;;
6908 esac
6909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6910 (eval "$ac_compile") 2>conftest.er1
6911 ac_status=$?
6912 grep -v '^ *+' conftest.er1 >conftest.err
6913 rm -f conftest.er1
6914 cat conftest.err >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } && {
6917 test -z "$ac_c_werror_flag" ||
6918 test ! -s conftest.err
6919 } && test -s conftest.$ac_objext; then
6920 ompi_check_compiler_vendor_result="norcroft"
6921 else
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932 # Pelles C
6933 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6935 cat >conftest.$ac_ext <<_ACEOF
6936 #ifndef __POCC__
6937 #error "symbol __POCC__ not defined"
6938 choke me
6939 #endif
6940 _ACEOF
6941 rm -f conftest.$ac_objext
6942 if { (ac_try="$ac_compile"
6943 case "(($ac_try" in
6944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945 *) ac_try_echo=$ac_try;;
6946 esac
6947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948 (eval "$ac_compile") 2>conftest.er1
6949 ac_status=$?
6950 grep -v '^ *+' conftest.er1 >conftest.err
6951 rm -f conftest.er1
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } && {
6955 test -z "$ac_c_werror_flag" ||
6956 test ! -s conftest.err
6957 } && test -s conftest.$ac_objext; then
6958 ompi_check_compiler_vendor_result="pelles"
6959 else
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 # Portland Group
6971 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
6973 cat >conftest.$ac_ext <<_ACEOF
6974 #ifndef __PGI
6975 #error "symbol __PGI not defined"
6976 choke me
6977 #endif
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (ac_try="$ac_compile"
6981 case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984 esac
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_compile") 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && {
6993 test -z "$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest.$ac_objext; then
6996 ompi_check_compiler_vendor_result="portland group"
6997 else
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008 # SAS/C
7009 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
7011 cat >conftest.$ac_ext <<_ACEOF
7012 #if !( defined(SASC) || defined(__SASC) || defined(__SASC__) )
7013 #error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met"
7014 choke me
7015 #endif
7016 _ACEOF
7017 rm -f conftest.$ac_objext
7018 if { (ac_try="$ac_compile"
7019 case "(($ac_try" in
7020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021 *) ac_try_echo=$ac_try;;
7022 esac
7023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7024 (eval "$ac_compile") 2>conftest.er1
7025 ac_status=$?
7026 grep -v '^ *+' conftest.er1 >conftest.err
7027 rm -f conftest.er1
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } && {
7031 test -z "$ac_c_werror_flag" ||
7032 test ! -s conftest.err
7033 } && test -s conftest.$ac_objext; then
7034 ompi_check_compiler_vendor_result="sas"
7035 else
7036 echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046 # Sun Workshop C/C++
7047 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
7049 cat >conftest.$ac_ext <<_ACEOF
7050 #if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) )
7051 #error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met"
7052 choke me
7053 #endif
7054 _ACEOF
7055 rm -f conftest.$ac_objext
7056 if { (ac_try="$ac_compile"
7057 case "(($ac_try" in
7058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059 *) ac_try_echo=$ac_try;;
7060 esac
7061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7062 (eval "$ac_compile") 2>conftest.er1
7063 ac_status=$?
7064 grep -v '^ *+' conftest.er1 >conftest.err
7065 rm -f conftest.er1
7066 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && {
7069 test -z "$ac_c_werror_flag" ||
7070 test ! -s conftest.err
7071 } && test -s conftest.$ac_objext; then
7072 ompi_check_compiler_vendor_result="sun"
7073 else
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084 # TenDRA C/C++
7085 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
7087 cat >conftest.$ac_ext <<_ACEOF
7088 #ifndef __TenDRA__
7089 #error "symbol __TenDRA__ not defined"
7090 choke me
7091 #endif
7092 _ACEOF
7093 rm -f conftest.$ac_objext
7094 if { (ac_try="$ac_compile"
7095 case "(($ac_try" in
7096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097 *) ac_try_echo=$ac_try;;
7098 esac
7099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100 (eval "$ac_compile") 2>conftest.er1
7101 ac_status=$?
7102 grep -v '^ *+' conftest.er1 >conftest.err
7103 rm -f conftest.er1
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } && {
7107 test -z "$ac_c_werror_flag" ||
7108 test ! -s conftest.err
7109 } && test -s conftest.$ac_objext; then
7110 ompi_check_compiler_vendor_result="tendra"
7111 else
7112 echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122 # Tiny C
7123 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
7125 cat >conftest.$ac_ext <<_ACEOF
7126 #ifndef __TINYC__
7127 #error "symbol __TINYC__ not defined"
7128 choke me
7129 #endif
7130 _ACEOF
7131 rm -f conftest.$ac_objext
7132 if { (ac_try="$ac_compile"
7133 case "(($ac_try" in
7134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135 *) ac_try_echo=$ac_try;;
7136 esac
7137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7138 (eval "$ac_compile") 2>conftest.er1
7139 ac_status=$?
7140 grep -v '^ *+' conftest.er1 >conftest.err
7141 rm -f conftest.er1
7142 cat conftest.err >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } && {
7145 test -z "$ac_c_werror_flag" ||
7146 test ! -s conftest.err
7147 } && test -s conftest.$ac_objext; then
7148 ompi_check_compiler_vendor_result="tiny"
7149 else
7150 echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160 # USL C
7161 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
7163 cat >conftest.$ac_ext <<_ACEOF
7164 #ifndef __USLC__
7165 #error "symbol __USLC__ not defined"
7166 choke me
7167 #endif
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (ac_try="$ac_compile"
7171 case "(($ac_try" in
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_compile") 2>conftest.er1
7177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } && {
7183 test -z "$ac_c_werror_flag" ||
7184 test ! -s conftest.err
7185 } && test -s conftest.$ac_objext; then
7186 ompi_check_compiler_vendor_result="usl"
7187 else
7188 echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 # Watcom C++
7199 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
7201 cat >conftest.$ac_ext <<_ACEOF
7202 #ifndef __WATCOMC__
7203 #error "symbol __WATCOMC__ not defined"
7204 choke me
7205 #endif
7206 _ACEOF
7207 rm -f conftest.$ac_objext
7208 if { (ac_try="$ac_compile"
7209 case "(($ac_try" in
7210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7211 *) ac_try_echo=$ac_try;;
7212 esac
7213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7214 (eval "$ac_compile") 2>conftest.er1
7215 ac_status=$?
7216 grep -v '^ *+' conftest.er1 >conftest.err
7217 rm -f conftest.er1
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } && {
7221 test -z "$ac_c_werror_flag" ||
7222 test ! -s conftest.err
7223 } && test -s conftest.$ac_objext; then
7224 ompi_check_compiler_vendor_result="watcom"
7225 else
7226 echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236 ompi_cv_c_compiler_vendor="$ompi_check_compiler_vendor_result"
7237 unset ompi_check_compiler_vendor_result
7239 ac_ext=c
7240 ac_cpp='$CPP $CPPFLAGS'
7241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7246 { echo "$as_me:$LINENO: result: $ompi_cv_c_compiler_vendor" >&5
7247 echo "${ECHO_T}$ompi_cv_c_compiler_vendor" >&6; }
7249 ompi_c_vendor="$ompi_cv_c_compiler_vendor"
7252 # GNU C and autotools are inconsistent about whether this is
7253 # defined so let's make it true everywhere for now... However, IBM
7254 # XL compilers on PPC Linux behave really badly when compiled with
7255 # _GNU_SOURCE defined, so don't define it in that situation.
7257 # Don't use AC_GNU_SOURCE because it requires that no compiler
7258 # tests are done before setting it, and we need to at least do
7259 # enough tests to figure out if we're using XL or not.
7260 if test "$ompi_cv_c_compiler_vendor" != "ibm"; then
7263 cat >>confdefs.h <<\_ACEOF
7264 #define _GNU_SOURCE 1
7265 _ACEOF
7270 # Do we want code coverage
7271 if test "$WANT_COVERAGE" = "1"; then
7272 if test "$ompi_c_vendor" = "gnu" ; then
7273 CLEANFILES="*.bb *.bbg *.da *.*.gcov ${CLEANFILES}"
7274 { echo "$as_me:$LINENO: WARNING: -fprofile-arcs -ftest-coverage has been added to CFLAGS (--enable-coverage)" >&5
7275 echo "$as_me: WARNING: -fprofile-arcs -ftest-coverage has been added to CFLAGS (--enable-coverage)" >&2;}
7276 WANT_DEBUG=1
7277 CFLAGS="-ftest-coverage -fprofile-arcs ${CFLAGS}"
7278 WRAPPER_EXTRA_CFLAGS="-ftest-coverage -fprofile-arcs ${WRAPPER_EXTRA_CFLAGS}"
7279 else
7280 { echo "$as_me:$LINENO: WARNING: Code coverage functionality is currently available only with GCC" >&5
7281 echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC" >&2;}
7282 { { echo "$as_me:$LINENO: error: Configure: Cannot continue" >&5
7283 echo "$as_me: error: Configure: Cannot continue" >&2;}
7284 { (exit 1); exit 1; }; }
7288 # Do we want debugging?
7289 if test "$WANT_DEBUG" = "1"; then
7290 if test "$ompi_c_vendor" = "gnu"; then
7291 CFLAGS="$CFLAGS -g3"
7292 else
7293 CFLAGS="$CFLAGS -g"
7297 # 1 is the variable name to be uniq-ized
7298 ompi_name=CFLAGS
7300 # Go through each item in the variable and only keep the unique ones
7302 ompi_count=0
7303 for val in ${CFLAGS}; do
7304 ompi_done=0
7305 ompi_i=1
7306 ompi_found=0
7308 # Loop over every token we've seen so far
7310 ompi_done="`expr $ompi_i \> $ompi_count`"
7311 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
7313 # Have we seen this token already? Prefix the comparison with
7314 # "x" so that "-Lfoo" values won't be cause an error.
7316 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
7317 ompi_found=`eval $ompi_eval`
7319 # Check the ending condition
7321 ompi_done="`expr $ompi_i \>= $ompi_count`"
7323 # Increment the counter
7325 ompi_i="`expr $ompi_i + 1`"
7326 done
7328 # If we didn't find the token, add it to the "array"
7330 if test "$ompi_found" = "0"; then
7331 ompi_eval="ompi_array_$ompi_i=$val"
7332 eval $ompi_eval
7333 ompi_count="`expr $ompi_count + 1`"
7334 else
7335 ompi_i="`expr $ompi_i - 1`"
7337 done
7339 # Take all the items in the "array" and assemble them back into a
7340 # single variable
7342 ompi_i=1
7343 ompi_done="`expr $ompi_i \> $ompi_count`"
7344 ompi_newval=
7345 while test "$ompi_done" = "0"; do
7346 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
7347 eval $ompi_eval
7349 ompi_eval="unset ompi_array_$ompi_i"
7350 eval $ompi_eval
7352 ompi_done="`expr $ompi_i \>= $ompi_count`"
7353 ompi_i="`expr $ompi_i + 1`"
7354 done
7356 # Done; do the assignment
7358 ompi_newval="`echo $ompi_newval`"
7359 ompi_eval="$ompi_name=\"$ompi_newval\""
7360 eval $ompi_eval
7362 # Clean up
7364 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
7365 { echo "$as_me:$LINENO: WARNING: -g has been added to CFLAGS (--enable-debug)" >&5
7366 echo "$as_me: WARNING: -g has been added to CFLAGS (--enable-debug)" >&2;}
7369 # These flags are generally gcc-specific; even the
7370 # gcc-impersonating compilers won't accept them.
7371 OMPI_CFLAGS_BEFORE_PICKY="$CFLAGS"
7372 if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_c_vendor" = "gnu" ; then
7373 add="-Wall -Wundef -Wno-long-long -Wsign-compare"
7374 add="$add -Wmissing-prototypes -Wstrict-prototypes"
7375 add="$add -Wcomment -pedantic"
7377 # see if -Wno-long-double works...
7378 CFLAGS_orig="$CFLAGS"
7379 CFLAGS="$CFLAGS -Wno-long-double"
7380 { echo "$as_me:$LINENO: checking if $CC supports -Wno-long-double" >&5
7381 echo $ECHO_N "checking if $CC supports -Wno-long-double... $ECHO_C" >&6; }
7382 if test "${ompi_cv_cc_wno_long_double+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h. */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7393 main ()
7397 return 0;
7399 _ACEOF
7400 rm -f conftest.$ac_objext
7401 if { (ac_try="$ac_compile"
7402 case "(($ac_try" in
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7405 esac
7406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_compile") 2>conftest.er1
7408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest.$ac_objext; then
7417 ompi_cv_cc_wno_long_double="yes"
7418 else
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7422 ompi_cv_cc_wno_long_double="no"
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427 { echo "$as_me:$LINENO: result: $ompi_cv_cc_wno_long_double" >&5
7428 echo "${ECHO_T}$ompi_cv_cc_wno_long_double" >&6; }
7430 CFLAGS="$CFLAGS_orig"
7431 if test "$ompi_cv_cc_wno_long_double" = "yes" ; then
7432 add="$add -Wno-long-double"
7435 add="$add -Werror-implicit-function-declaration "
7437 CFLAGS="$CFLAGS $add"
7439 # 1 is the variable name to be uniq-ized
7440 ompi_name=CFLAGS
7442 # Go through each item in the variable and only keep the unique ones
7444 ompi_count=0
7445 for val in ${CFLAGS}; do
7446 ompi_done=0
7447 ompi_i=1
7448 ompi_found=0
7450 # Loop over every token we've seen so far
7452 ompi_done="`expr $ompi_i \> $ompi_count`"
7453 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
7455 # Have we seen this token already? Prefix the comparison with
7456 # "x" so that "-Lfoo" values won't be cause an error.
7458 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
7459 ompi_found=`eval $ompi_eval`
7461 # Check the ending condition
7463 ompi_done="`expr $ompi_i \>= $ompi_count`"
7465 # Increment the counter
7467 ompi_i="`expr $ompi_i + 1`"
7468 done
7470 # If we didn't find the token, add it to the "array"
7472 if test "$ompi_found" = "0"; then
7473 ompi_eval="ompi_array_$ompi_i=$val"
7474 eval $ompi_eval
7475 ompi_count="`expr $ompi_count + 1`"
7476 else
7477 ompi_i="`expr $ompi_i - 1`"
7479 done
7481 # Take all the items in the "array" and assemble them back into a
7482 # single variable
7484 ompi_i=1
7485 ompi_done="`expr $ompi_i \> $ompi_count`"
7486 ompi_newval=
7487 while test "$ompi_done" = "0"; do
7488 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
7489 eval $ompi_eval
7491 ompi_eval="unset ompi_array_$ompi_i"
7492 eval $ompi_eval
7494 ompi_done="`expr $ompi_i \>= $ompi_count`"
7495 ompi_i="`expr $ompi_i + 1`"
7496 done
7498 # Done; do the assignment
7500 ompi_newval="`echo $ompi_newval`"
7501 ompi_eval="$ompi_name=\"$ompi_newval\""
7502 eval $ompi_eval
7504 # Clean up
7506 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
7507 { echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS (--enable-picky)" >&5
7508 echo "$as_me: WARNING: $add has been added to CFLAGS (--enable-picky)" >&2;}
7509 unset add
7512 # See if this version of gcc allows -finline-functions and/or
7513 # -fno-strict-aliasing. Even check the gcc-impersonating compilers.
7514 if test "$GCC" = "yes"; then
7515 CFLAGS_orig="$CFLAGS"
7517 CFLAGS="$CFLAGS_orig -finline-functions"
7518 add=
7519 { echo "$as_me:$LINENO: checking if $CC supports -finline-functions" >&5
7520 echo $ECHO_N "checking if $CC supports -finline-functions... $ECHO_C" >&6; }
7521 if test "${ompi_cv_cc_finline_functions+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524 cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h. */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7532 main ()
7536 return 0;
7538 _ACEOF
7539 rm -f conftest.$ac_objext
7540 if { (ac_try="$ac_compile"
7541 case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7544 esac
7545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546 (eval "$ac_compile") 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } && {
7553 test -z "$ac_c_werror_flag" ||
7554 test ! -s conftest.err
7555 } && test -s conftest.$ac_objext; then
7556 ompi_cv_cc_finline_functions="yes"
7557 else
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7561 ompi_cv_cc_finline_functions="no"
7564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566 { echo "$as_me:$LINENO: result: $ompi_cv_cc_finline_functions" >&5
7567 echo "${ECHO_T}$ompi_cv_cc_finline_functions" >&6; }
7568 if test "$ompi_cv_cc_finline_functions" = "yes" ; then
7569 add=" -finline-functions"
7571 CFLAGS="$CFLAGS_orig$add"
7573 CFLAGS="$CFLAGS_orig -fno-strict-aliasing"
7574 add=
7575 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
7576 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
7577 if test "${ompi_cv_cc_fno_strict_aliasing+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580 cat >conftest.$ac_ext <<_ACEOF
7581 /* confdefs.h. */
7582 _ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h. */
7588 main ()
7592 return 0;
7594 _ACEOF
7595 rm -f conftest.$ac_objext
7596 if { (ac_try="$ac_compile"
7597 case "(($ac_try" in
7598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599 *) ac_try_echo=$ac_try;;
7600 esac
7601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602 (eval "$ac_compile") 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest.$ac_objext; then
7612 ompi_cv_cc_fno_strict_aliasing="yes"
7613 else
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7617 ompi_cv_cc_fno_strict_aliasing="no"
7620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 { echo "$as_me:$LINENO: result: $ompi_cv_cc_fno_strict_aliasing" >&5
7623 echo "${ECHO_T}$ompi_cv_cc_fno_strict_aliasing" >&6; }
7624 if test "$ompi_cv_cc_fno_strict_aliasing" = "yes" ; then
7625 add=" -fno-strict-aliasing"
7627 CFLAGS="$CFLAGS_orig$add"
7630 # 1 is the variable name to be uniq-ized
7631 ompi_name=CFLAGS
7633 # Go through each item in the variable and only keep the unique ones
7635 ompi_count=0
7636 for val in ${CFLAGS}; do
7637 ompi_done=0
7638 ompi_i=1
7639 ompi_found=0
7641 # Loop over every token we've seen so far
7643 ompi_done="`expr $ompi_i \> $ompi_count`"
7644 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
7646 # Have we seen this token already? Prefix the comparison with
7647 # "x" so that "-Lfoo" values won't be cause an error.
7649 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
7650 ompi_found=`eval $ompi_eval`
7652 # Check the ending condition
7654 ompi_done="`expr $ompi_i \>= $ompi_count`"
7656 # Increment the counter
7658 ompi_i="`expr $ompi_i + 1`"
7659 done
7661 # If we didn't find the token, add it to the "array"
7663 if test "$ompi_found" = "0"; then
7664 ompi_eval="ompi_array_$ompi_i=$val"
7665 eval $ompi_eval
7666 ompi_count="`expr $ompi_count + 1`"
7667 else
7668 ompi_i="`expr $ompi_i - 1`"
7670 done
7672 # Take all the items in the "array" and assemble them back into a
7673 # single variable
7675 ompi_i=1
7676 ompi_done="`expr $ompi_i \> $ompi_count`"
7677 ompi_newval=
7678 while test "$ompi_done" = "0"; do
7679 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
7680 eval $ompi_eval
7682 ompi_eval="unset ompi_array_$ompi_i"
7683 eval $ompi_eval
7685 ompi_done="`expr $ompi_i \>= $ompi_count`"
7686 ompi_i="`expr $ompi_i + 1`"
7687 done
7689 # Done; do the assignment
7691 ompi_newval="`echo $ompi_newval`"
7692 ompi_eval="$ompi_name=\"$ompi_newval\""
7693 eval $ompi_eval
7695 # Clean up
7697 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
7698 { echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5
7699 echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;}
7700 unset add
7703 # Try to enable restrict keyword
7704 RESTRICT_CFLAGS=
7705 case "$ompi_c_vendor" in
7706 intel)
7707 RESTRICT_CFLAGS="-restrict"
7709 sgi)
7710 RESTRICT_CFLAGS="-LANG:restrict=ON"
7712 esac
7713 if test ! -z "$RESTRICT_CFLAGS" ; then
7714 CFLAGS_orig="$CFLAGS"
7715 CFLAGS="$CFLAGS_orig $RESTRICT_CFLAGS"
7716 add=
7717 { echo "$as_me:$LINENO: checking if $CC supports $RESTRICT_CFLAGS" >&5
7718 echo $ECHO_N "checking if $CC supports $RESTRICT_CFLAGS... $ECHO_C" >&6; }
7719 if test "${ompi_cv_cc_restrict_cflags+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722 cat >conftest.$ac_ext <<_ACEOF
7723 /* confdefs.h. */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7730 main ()
7734 return 0;
7736 _ACEOF
7737 rm -f conftest.$ac_objext
7738 if { (ac_try="$ac_compile"
7739 case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742 esac
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_compile") 2>conftest.er1
7745 ac_status=$?
7746 grep -v '^ *+' conftest.er1 >conftest.err
7747 rm -f conftest.er1
7748 cat conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } && {
7751 test -z "$ac_c_werror_flag" ||
7752 test ! -s conftest.err
7753 } && test -s conftest.$ac_objext; then
7754 ompi_cv_cc_restrict_cflags="yes"
7755 else
7756 echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7759 ompi_cv_cc_restrict_cflags="no"
7762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764 { echo "$as_me:$LINENO: result: $ompi_cv_cc_restrict_cflags" >&5
7765 echo "${ECHO_T}$ompi_cv_cc_restrict_cflags" >&6; }
7766 if test "ompi_cv_cc_restruct_cflags" = "yes" ; then
7767 add="$RESTRUCT_CFLAGS"
7770 CFLAGS="${CFLAGS_orig}${add}"
7772 # 1 is the variable name to be uniq-ized
7773 ompi_name=CFLAGS
7775 # Go through each item in the variable and only keep the unique ones
7777 ompi_count=0
7778 for val in ${CFLAGS}; do
7779 ompi_done=0
7780 ompi_i=1
7781 ompi_found=0
7783 # Loop over every token we've seen so far
7785 ompi_done="`expr $ompi_i \> $ompi_count`"
7786 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
7788 # Have we seen this token already? Prefix the comparison with
7789 # "x" so that "-Lfoo" values won't be cause an error.
7791 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
7792 ompi_found=`eval $ompi_eval`
7794 # Check the ending condition
7796 ompi_done="`expr $ompi_i \>= $ompi_count`"
7798 # Increment the counter
7800 ompi_i="`expr $ompi_i + 1`"
7801 done
7803 # If we didn't find the token, add it to the "array"
7805 if test "$ompi_found" = "0"; then
7806 ompi_eval="ompi_array_$ompi_i=$val"
7807 eval $ompi_eval
7808 ompi_count="`expr $ompi_count + 1`"
7809 else
7810 ompi_i="`expr $ompi_i - 1`"
7812 done
7814 # Take all the items in the "array" and assemble them back into a
7815 # single variable
7817 ompi_i=1
7818 ompi_done="`expr $ompi_i \> $ompi_count`"
7819 ompi_newval=
7820 while test "$ompi_done" = "0"; do
7821 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
7822 eval $ompi_eval
7824 ompi_eval="unset ompi_array_$ompi_i"
7825 eval $ompi_eval
7827 ompi_done="`expr $ompi_i \>= $ompi_count`"
7828 ompi_i="`expr $ompi_i + 1`"
7829 done
7831 # Done; do the assignment
7833 ompi_newval="`echo $ompi_newval`"
7834 ompi_eval="$ompi_name=\"$ompi_newval\""
7835 eval $ompi_eval
7837 # Clean up
7839 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
7840 if test "$add" != "" ; then
7841 { echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5
7842 echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;}
7844 unset add
7847 # Preload the optflags for the case where the user didn't specify
7848 # any. If we're using GNU compilers, use -O3 (since it GNU
7849 # doesn't require all compilation units to be compiled with the
7850 # same level of optimization -- selecting a high level of
7851 # optimization is not prohibitive). If we're using anything else,
7852 # be conservative and just use -O.
7854 # Note: gcc-impersonating compilers accept -O3
7855 if test "$GCC" = yes; then
7856 OPTFLAGS="-O3"
7857 else
7858 OPTFLAGS="-O"
7863 # Modularize this setup so that sub-configure.in scripts can use this
7864 # same setup code.
7866 ##################################
7867 # Optimization flags
7868 ##################################
7870 # If the user did not specify optimization flags, add some (the value
7871 # from $OPTFLAGS)
7873 co_arg=""$OMPI_CFLAGS_BEFORE_PICKY""
7874 co_found=0
7875 for co_word in $co_arg; do
7876 case $co_word in
7877 -g) co_found=1 ;;
7878 -g1) co_found=1 ;;
7879 -g2) co_found=1 ;;
7880 -g3) co_found=1 ;;
7881 +K0) co_found=1 ;;
7882 +K1) co_found=1 ;;
7883 +K2) co_found=1 ;;
7884 +K3) co_found=1 ;;
7885 +K4) co_found=1 ;;
7886 +K5) co_found=1 ;;
7887 -O) co_found=1 ;;
7888 -O0) co_found=1 ;;
7889 -O1) co_found=1 ;;
7890 -O2) co_found=1 ;;
7891 -O3) co_found=1 ;;
7892 -O4) co_found=1 ;;
7893 -O5) co_found=1 ;;
7894 -O6) co_found=1 ;;
7895 -O7) co_found=1 ;;
7896 -O8) co_found=1 ;;
7897 -O9) co_found=1 ;;
7898 -xO) co_found=1 ;;
7899 -xO0) co_found=1 ;;
7900 -xO1) co_found=1 ;;
7901 -xO2) co_found=1 ;;
7902 -xO3) co_found=1 ;;
7903 -xO4) co_found=1 ;;
7904 -xO5) co_found=1 ;;
7905 -xO6) co_found=1 ;;
7906 -xO7) co_found=1 ;;
7907 -xO8) co_found=1 ;;
7908 -xO9) co_found=1 ;;
7909 -fast) co_found=1 ;;
7910 esac
7911 done
7913 if test "$co_found" = "0"; then
7914 co_result="$OPTFLAGS $co_arg"
7915 else
7916 co_result="$co_arg"
7919 # Clean up
7921 unset co_found co_word co_arg
7923 OMPI_CFLAGS_BEFORE_PICKY="$co_result"
7925 { echo "$as_me:$LINENO: checking for C optimization flags" >&5
7926 echo $ECHO_N "checking for C optimization flags... $ECHO_C" >&6; }
7929 # Modularize this setup so that sub-configure.in scripts can use this
7930 # same setup code.
7932 ##################################
7933 # Optimization flags
7934 ##################################
7936 # If the user did not specify optimization flags, add some (the value
7937 # from $OPTFLAGS)
7939 co_arg=""$CFLAGS""
7940 co_found=0
7941 for co_word in $co_arg; do
7942 case $co_word in
7943 -g) co_found=1 ;;
7944 -g1) co_found=1 ;;
7945 -g2) co_found=1 ;;
7946 -g3) co_found=1 ;;
7947 +K0) co_found=1 ;;
7948 +K1) co_found=1 ;;
7949 +K2) co_found=1 ;;
7950 +K3) co_found=1 ;;
7951 +K4) co_found=1 ;;
7952 +K5) co_found=1 ;;
7953 -O) co_found=1 ;;
7954 -O0) co_found=1 ;;
7955 -O1) co_found=1 ;;
7956 -O2) co_found=1 ;;
7957 -O3) co_found=1 ;;
7958 -O4) co_found=1 ;;
7959 -O5) co_found=1 ;;
7960 -O6) co_found=1 ;;
7961 -O7) co_found=1 ;;
7962 -O8) co_found=1 ;;
7963 -O9) co_found=1 ;;
7964 -xO) co_found=1 ;;
7965 -xO0) co_found=1 ;;
7966 -xO1) co_found=1 ;;
7967 -xO2) co_found=1 ;;
7968 -xO3) co_found=1 ;;
7969 -xO4) co_found=1 ;;
7970 -xO5) co_found=1 ;;
7971 -xO6) co_found=1 ;;
7972 -xO7) co_found=1 ;;
7973 -xO8) co_found=1 ;;
7974 -xO9) co_found=1 ;;
7975 -fast) co_found=1 ;;
7976 esac
7977 done
7979 if test "$co_found" = "0"; then
7980 co_result="$OPTFLAGS $co_arg"
7981 else
7982 co_result="$co_arg"
7985 # Clean up
7987 unset co_found co_word co_arg
7989 { echo "$as_me:$LINENO: result: $co_result" >&5
7990 echo "${ECHO_T}$co_result" >&6; }
7991 CFLAGS="$co_result"
7994 # If we build on a windows environment with the windows compiler and linker
7995 # then we need some translation functions from the opal/win32 directory.
7998 if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
7999 OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE=
8000 OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE='#'
8001 else
8002 OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE='#'
8003 OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE=
8008 # Check for some types
8011 ac_ext=c
8012 ac_cpp='$CPP $CPPFLAGS'
8013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8016 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
8017 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
8018 # On Suns, sometimes $CPP names a directory.
8019 if test -n "$CPP" && test -d "$CPP"; then
8020 CPP=
8022 if test -z "$CPP"; then
8023 if test "${ac_cv_prog_CPP+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026 # Double quotes because CPP needs to be expanded
8027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8029 ac_preproc_ok=false
8030 for ac_c_preproc_warn_flag in '' yes
8032 # Use a header file that comes with gcc, so configuring glibc
8033 # with a fresh cross-compiler works.
8034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8035 # <limits.h> exists even on freestanding compilers.
8036 # On the NeXT, cc -E runs the code through the compiler's parser,
8037 # not just through cpp. "Syntax error" is here to catch this case.
8038 cat >conftest.$ac_ext <<_ACEOF
8039 /* confdefs.h. */
8040 _ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8044 #ifdef __STDC__
8045 # include <limits.h>
8046 #else
8047 # include <assert.h>
8048 #endif
8049 Syntax error
8050 _ACEOF
8051 if { (ac_try="$ac_cpp conftest.$ac_ext"
8052 case "(($ac_try" in
8053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8055 esac
8056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } >/dev/null && {
8064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8065 test ! -s conftest.err
8066 }; then
8068 else
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8072 # Broken: fails on valid input.
8073 continue
8076 rm -f conftest.err conftest.$ac_ext
8078 # OK, works on sane cases. Now check whether nonexistent headers
8079 # can be detected and how.
8080 cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h. */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 #include <ac_nonexistent.h>
8087 _ACEOF
8088 if { (ac_try="$ac_cpp conftest.$ac_ext"
8089 case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } >/dev/null && {
8101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8102 test ! -s conftest.err
8103 }; then
8104 # Broken: success on invalid input.
8105 continue
8106 else
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 # Passes both tests.
8111 ac_preproc_ok=:
8112 break
8115 rm -f conftest.err conftest.$ac_ext
8117 done
8118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8119 rm -f conftest.err conftest.$ac_ext
8120 if $ac_preproc_ok; then
8121 break
8124 done
8125 ac_cv_prog_CPP=$CPP
8128 CPP=$ac_cv_prog_CPP
8129 else
8130 ac_cv_prog_CPP=$CPP
8132 { echo "$as_me:$LINENO: result: $CPP" >&5
8133 echo "${ECHO_T}$CPP" >&6; }
8134 ac_preproc_ok=false
8135 for ac_c_preproc_warn_flag in '' yes
8137 # Use a header file that comes with gcc, so configuring glibc
8138 # with a fresh cross-compiler works.
8139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8140 # <limits.h> exists even on freestanding compilers.
8141 # On the NeXT, cc -E runs the code through the compiler's parser,
8142 # not just through cpp. "Syntax error" is here to catch this case.
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 #ifdef __STDC__
8150 # include <limits.h>
8151 #else
8152 # include <assert.h>
8153 #endif
8154 Syntax error
8155 _ACEOF
8156 if { (ac_try="$ac_cpp conftest.$ac_ext"
8157 case "(($ac_try" in
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8160 esac
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8163 ac_status=$?
8164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } >/dev/null && {
8169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8170 test ! -s conftest.err
8171 }; then
8173 else
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8177 # Broken: fails on valid input.
8178 continue
8181 rm -f conftest.err conftest.$ac_ext
8183 # OK, works on sane cases. Now check whether nonexistent headers
8184 # can be detected and how.
8185 cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h. */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8191 #include <ac_nonexistent.h>
8192 _ACEOF
8193 if { (ac_try="$ac_cpp conftest.$ac_ext"
8194 case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } >/dev/null && {
8206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 }; then
8209 # Broken: success on invalid input.
8210 continue
8211 else
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 # Passes both tests.
8216 ac_preproc_ok=:
8217 break
8220 rm -f conftest.err conftest.$ac_ext
8222 done
8223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8224 rm -f conftest.err conftest.$ac_ext
8225 if $ac_preproc_ok; then
8227 else
8228 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8229 See \`config.log' for more details." >&5
8230 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8231 See \`config.log' for more details." >&2;}
8232 { (exit 1); exit 1; }; }
8235 ac_ext=c
8236 ac_cpp='$CPP $CPPFLAGS'
8237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8242 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8243 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8244 if test "${ac_cv_path_GREP+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247 # Extract the first word of "grep ggrep" to use in msg output
8248 if test -z "$GREP"; then
8249 set dummy grep ggrep; ac_prog_name=$2
8250 if test "${ac_cv_path_GREP+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253 ac_path_GREP_found=false
8254 # Loop through the user's path and test for each of PROGNAME-LIST
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_prog in grep ggrep; do
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8263 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
8264 # Check for GNU ac_path_GREP and select it if it is found.
8265 # Check for GNU $ac_path_GREP
8266 case `"$ac_path_GREP" --version 2>&1` in
8267 *GNU*)
8268 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8270 ac_count=0
8271 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8272 while :
8274 cat "conftest.in" "conftest.in" >"conftest.tmp"
8275 mv "conftest.tmp" "conftest.in"
8276 cp "conftest.in" "conftest.nl"
8277 echo 'GREP' >> "conftest.nl"
8278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8280 ac_count=`expr $ac_count + 1`
8281 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8282 # Best one so far, save it but keep looking for a better one
8283 ac_cv_path_GREP="$ac_path_GREP"
8284 ac_path_GREP_max=$ac_count
8286 # 10*(2^10) chars as input seems more than enough
8287 test $ac_count -gt 10 && break
8288 done
8289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8290 esac
8293 $ac_path_GREP_found && break 3
8294 done
8295 done
8297 done
8298 IFS=$as_save_IFS
8303 GREP="$ac_cv_path_GREP"
8304 if test -z "$GREP"; then
8305 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8306 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8307 { (exit 1); exit 1; }; }
8310 else
8311 ac_cv_path_GREP=$GREP
8316 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8317 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8318 GREP="$ac_cv_path_GREP"
8321 { echo "$as_me:$LINENO: checking for egrep" >&5
8322 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8323 if test "${ac_cv_path_EGREP+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8327 then ac_cv_path_EGREP="$GREP -E"
8328 else
8329 # Extract the first word of "egrep" to use in msg output
8330 if test -z "$EGREP"; then
8331 set dummy egrep; ac_prog_name=$2
8332 if test "${ac_cv_path_EGREP+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 ac_path_EGREP_found=false
8336 # Loop through the user's path and test for each of PROGNAME-LIST
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8340 IFS=$as_save_IFS
8341 test -z "$as_dir" && as_dir=.
8342 for ac_prog in egrep; do
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8345 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
8346 # Check for GNU ac_path_EGREP and select it if it is found.
8347 # Check for GNU $ac_path_EGREP
8348 case `"$ac_path_EGREP" --version 2>&1` in
8349 *GNU*)
8350 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8352 ac_count=0
8353 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8354 while :
8356 cat "conftest.in" "conftest.in" >"conftest.tmp"
8357 mv "conftest.tmp" "conftest.in"
8358 cp "conftest.in" "conftest.nl"
8359 echo 'EGREP' >> "conftest.nl"
8360 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8362 ac_count=`expr $ac_count + 1`
8363 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8364 # Best one so far, save it but keep looking for a better one
8365 ac_cv_path_EGREP="$ac_path_EGREP"
8366 ac_path_EGREP_max=$ac_count
8368 # 10*(2^10) chars as input seems more than enough
8369 test $ac_count -gt 10 && break
8370 done
8371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8372 esac
8375 $ac_path_EGREP_found && break 3
8376 done
8377 done
8379 done
8380 IFS=$as_save_IFS
8385 EGREP="$ac_cv_path_EGREP"
8386 if test -z "$EGREP"; then
8387 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8388 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8389 { (exit 1); exit 1; }; }
8392 else
8393 ac_cv_path_EGREP=$EGREP
8399 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8400 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8401 EGREP="$ac_cv_path_EGREP"
8404 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8405 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8406 if test "${ac_cv_header_stdc+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h. */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 #include <stdlib.h>
8416 #include <stdarg.h>
8417 #include <string.h>
8418 #include <float.h>
8421 main ()
8425 return 0;
8427 _ACEOF
8428 rm -f conftest.$ac_objext
8429 if { (ac_try="$ac_compile"
8430 case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8433 esac
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_compile") 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } && {
8442 test -z "$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8444 } && test -s conftest.$ac_objext; then
8445 ac_cv_header_stdc=yes
8446 else
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8450 ac_cv_header_stdc=no
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455 if test $ac_cv_header_stdc = yes; then
8456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h. */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8463 #include <string.h>
8465 _ACEOF
8466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8467 $EGREP "memchr" >/dev/null 2>&1; then
8469 else
8470 ac_cv_header_stdc=no
8472 rm -f conftest*
8476 if test $ac_cv_header_stdc = yes; then
8477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8478 cat >conftest.$ac_ext <<_ACEOF
8479 /* confdefs.h. */
8480 _ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h. */
8484 #include <stdlib.h>
8486 _ACEOF
8487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8488 $EGREP "free" >/dev/null 2>&1; then
8490 else
8491 ac_cv_header_stdc=no
8493 rm -f conftest*
8497 if test $ac_cv_header_stdc = yes; then
8498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8499 if test "$cross_compiling" = yes; then
8501 else
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 #include <ctype.h>
8509 #include <stdlib.h>
8510 #if ((' ' & 0x0FF) == 0x020)
8511 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8512 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8513 #else
8514 # define ISLOWER(c) \
8515 (('a' <= (c) && (c) <= 'i') \
8516 || ('j' <= (c) && (c) <= 'r') \
8517 || ('s' <= (c) && (c) <= 'z'))
8518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8519 #endif
8521 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8523 main ()
8525 int i;
8526 for (i = 0; i < 256; i++)
8527 if (XOR (islower (i), ISLOWER (i))
8528 || toupper (i) != TOUPPER (i))
8529 return 2;
8530 return 0;
8532 _ACEOF
8533 rm -f conftest$ac_exeext
8534 if { (ac_try="$ac_link"
8535 case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8538 esac
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_link") 2>&5
8541 ac_status=$?
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8544 { (case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8547 esac
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549 (eval "$ac_try") 2>&5
8550 ac_status=$?
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8554 else
8555 echo "$as_me: program exited with status $ac_status" >&5
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8559 ( exit $ac_status )
8560 ac_cv_header_stdc=no
8562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8568 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8569 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8570 if test $ac_cv_header_stdc = yes; then
8572 cat >>confdefs.h <<\_ACEOF
8573 #define STDC_HEADERS 1
8574 _ACEOF
8578 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8588 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8589 inttypes.h stdint.h unistd.h
8591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597 cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h. */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 $ac_includes_default
8605 #include <$ac_header>
8606 _ACEOF
8607 rm -f conftest.$ac_objext
8608 if { (ac_try="$ac_compile"
8609 case "(($ac_try" in
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8612 esac
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } && {
8621 test -z "$ac_c_werror_flag" ||
8622 test ! -s conftest.err
8623 } && test -s conftest.$ac_objext; then
8624 eval "$as_ac_Header=yes"
8625 else
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8629 eval "$as_ac_Header=no"
8632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 ac_res=`eval echo '${'$as_ac_Header'}'`
8635 { echo "$as_me:$LINENO: result: $ac_res" >&5
8636 echo "${ECHO_T}$ac_res" >&6; }
8637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8638 cat >>confdefs.h <<_ACEOF
8639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8640 _ACEOF
8644 done
8647 { echo "$as_me:$LINENO: checking for long long" >&5
8648 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8649 if test "${ac_cv_type_long_long+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652 cat >conftest.$ac_ext <<_ACEOF
8653 /* confdefs.h. */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8658 $ac_includes_default
8659 typedef long long ac__type_new_;
8661 main ()
8663 if ((ac__type_new_ *) 0)
8664 return 0;
8665 if (sizeof (ac__type_new_))
8666 return 0;
8668 return 0;
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (ac_try="$ac_compile"
8673 case "(($ac_try" in
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8676 esac
8677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678 (eval "$ac_compile") 2>conftest.er1
8679 ac_status=$?
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } && {
8685 test -z "$ac_c_werror_flag" ||
8686 test ! -s conftest.err
8687 } && test -s conftest.$ac_objext; then
8688 ac_cv_type_long_long=yes
8689 else
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8693 ac_cv_type_long_long=no
8696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8699 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8700 if test $ac_cv_type_long_long = yes; then
8702 cat >>confdefs.h <<_ACEOF
8703 #define HAVE_LONG_LONG 1
8704 _ACEOF
8709 { echo "$as_me:$LINENO: checking for long double" >&5
8710 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8711 if test "${ac_cv_type_long_double+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714 cat >conftest.$ac_ext <<_ACEOF
8715 /* confdefs.h. */
8716 _ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h. */
8720 $ac_includes_default
8721 typedef long double ac__type_new_;
8723 main ()
8725 if ((ac__type_new_ *) 0)
8726 return 0;
8727 if (sizeof (ac__type_new_))
8728 return 0;
8730 return 0;
8732 _ACEOF
8733 rm -f conftest.$ac_objext
8734 if { (ac_try="$ac_compile"
8735 case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738 esac
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_compile") 2>conftest.er1
8741 ac_status=$?
8742 grep -v '^ *+' conftest.er1 >conftest.err
8743 rm -f conftest.er1
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } && {
8747 test -z "$ac_c_werror_flag" ||
8748 test ! -s conftest.err
8749 } && test -s conftest.$ac_objext; then
8750 ac_cv_type_long_double=yes
8751 else
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8755 ac_cv_type_long_double=no
8758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8760 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
8761 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
8762 if test $ac_cv_type_long_double = yes; then
8764 cat >>confdefs.h <<_ACEOF
8765 #define HAVE_LONG_DOUBLE 1
8766 _ACEOF
8771 { echo "$as_me:$LINENO: checking for int8_t" >&5
8772 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
8773 if test "${ac_cv_type_int8_t+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776 cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h. */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 $ac_includes_default
8783 typedef int8_t ac__type_new_;
8785 main ()
8787 if ((ac__type_new_ *) 0)
8788 return 0;
8789 if (sizeof (ac__type_new_))
8790 return 0;
8792 return 0;
8794 _ACEOF
8795 rm -f conftest.$ac_objext
8796 if { (ac_try="$ac_compile"
8797 case "(($ac_try" in
8798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8800 esac
8801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8802 (eval "$ac_compile") 2>conftest.er1
8803 ac_status=$?
8804 grep -v '^ *+' conftest.er1 >conftest.err
8805 rm -f conftest.er1
8806 cat conftest.err >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && {
8809 test -z "$ac_c_werror_flag" ||
8810 test ! -s conftest.err
8811 } && test -s conftest.$ac_objext; then
8812 ac_cv_type_int8_t=yes
8813 else
8814 echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8817 ac_cv_type_int8_t=no
8820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
8823 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
8824 if test $ac_cv_type_int8_t = yes; then
8826 cat >>confdefs.h <<_ACEOF
8827 #define HAVE_INT8_T 1
8828 _ACEOF
8833 { echo "$as_me:$LINENO: checking for uint8_t" >&5
8834 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
8835 if test "${ac_cv_type_uint8_t+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838 cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h. */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 $ac_includes_default
8845 typedef uint8_t ac__type_new_;
8847 main ()
8849 if ((ac__type_new_ *) 0)
8850 return 0;
8851 if (sizeof (ac__type_new_))
8852 return 0;
8854 return 0;
8856 _ACEOF
8857 rm -f conftest.$ac_objext
8858 if { (ac_try="$ac_compile"
8859 case "(($ac_try" in
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8862 esac
8863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_compile") 2>conftest.er1
8865 ac_status=$?
8866 grep -v '^ *+' conftest.er1 >conftest.err
8867 rm -f conftest.er1
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } && {
8871 test -z "$ac_c_werror_flag" ||
8872 test ! -s conftest.err
8873 } && test -s conftest.$ac_objext; then
8874 ac_cv_type_uint8_t=yes
8875 else
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_cv_type_uint8_t=no
8882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
8885 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
8886 if test $ac_cv_type_uint8_t = yes; then
8888 cat >>confdefs.h <<_ACEOF
8889 #define HAVE_UINT8_T 1
8890 _ACEOF
8895 { echo "$as_me:$LINENO: checking for int16_t" >&5
8896 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
8897 if test "${ac_cv_type_int16_t+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 else
8900 cat >conftest.$ac_ext <<_ACEOF
8901 /* confdefs.h. */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906 $ac_includes_default
8907 typedef int16_t ac__type_new_;
8909 main ()
8911 if ((ac__type_new_ *) 0)
8912 return 0;
8913 if (sizeof (ac__type_new_))
8914 return 0;
8916 return 0;
8918 _ACEOF
8919 rm -f conftest.$ac_objext
8920 if { (ac_try="$ac_compile"
8921 case "(($ac_try" in
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8924 esac
8925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926 (eval "$ac_compile") 2>conftest.er1
8927 ac_status=$?
8928 grep -v '^ *+' conftest.er1 >conftest.err
8929 rm -f conftest.er1
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && {
8933 test -z "$ac_c_werror_flag" ||
8934 test ! -s conftest.err
8935 } && test -s conftest.$ac_objext; then
8936 ac_cv_type_int16_t=yes
8937 else
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 ac_cv_type_int16_t=no
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
8947 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
8948 if test $ac_cv_type_int16_t = yes; then
8950 cat >>confdefs.h <<_ACEOF
8951 #define HAVE_INT16_T 1
8952 _ACEOF
8957 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8958 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8959 if test "${ac_cv_type_uint16_t+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962 cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h. */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8968 $ac_includes_default
8969 typedef uint16_t ac__type_new_;
8971 main ()
8973 if ((ac__type_new_ *) 0)
8974 return 0;
8975 if (sizeof (ac__type_new_))
8976 return 0;
8978 return 0;
8980 _ACEOF
8981 rm -f conftest.$ac_objext
8982 if { (ac_try="$ac_compile"
8983 case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8986 esac
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_compile") 2>conftest.er1
8989 ac_status=$?
8990 grep -v '^ *+' conftest.er1 >conftest.err
8991 rm -f conftest.er1
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } && {
8995 test -z "$ac_c_werror_flag" ||
8996 test ! -s conftest.err
8997 } && test -s conftest.$ac_objext; then
8998 ac_cv_type_uint16_t=yes
8999 else
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9003 ac_cv_type_uint16_t=no
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
9009 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
9010 if test $ac_cv_type_uint16_t = yes; then
9012 cat >>confdefs.h <<_ACEOF
9013 #define HAVE_UINT16_T 1
9014 _ACEOF
9019 { echo "$as_me:$LINENO: checking for int32_t" >&5
9020 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9021 if test "${ac_cv_type_int32_t+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024 cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h. */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030 $ac_includes_default
9031 typedef int32_t ac__type_new_;
9033 main ()
9035 if ((ac__type_new_ *) 0)
9036 return 0;
9037 if (sizeof (ac__type_new_))
9038 return 0;
9040 return 0;
9042 _ACEOF
9043 rm -f conftest.$ac_objext
9044 if { (ac_try="$ac_compile"
9045 case "(($ac_try" in
9046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047 *) ac_try_echo=$ac_try;;
9048 esac
9049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050 (eval "$ac_compile") 2>conftest.er1
9051 ac_status=$?
9052 grep -v '^ *+' conftest.er1 >conftest.err
9053 rm -f conftest.er1
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } && {
9057 test -z "$ac_c_werror_flag" ||
9058 test ! -s conftest.err
9059 } && test -s conftest.$ac_objext; then
9060 ac_cv_type_int32_t=yes
9061 else
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9065 ac_cv_type_int32_t=no
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
9071 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
9072 if test $ac_cv_type_int32_t = yes; then
9074 cat >>confdefs.h <<_ACEOF
9075 #define HAVE_INT32_T 1
9076 _ACEOF
9081 { echo "$as_me:$LINENO: checking for uint32_t" >&5
9082 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
9083 if test "${ac_cv_type_uint32_t+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 else
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h. */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9092 $ac_includes_default
9093 typedef uint32_t ac__type_new_;
9095 main ()
9097 if ((ac__type_new_ *) 0)
9098 return 0;
9099 if (sizeof (ac__type_new_))
9100 return 0;
9102 return 0;
9104 _ACEOF
9105 rm -f conftest.$ac_objext
9106 if { (ac_try="$ac_compile"
9107 case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9110 esac
9111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_compile") 2>conftest.er1
9113 ac_status=$?
9114 grep -v '^ *+' conftest.er1 >conftest.err
9115 rm -f conftest.er1
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } && {
9119 test -z "$ac_c_werror_flag" ||
9120 test ! -s conftest.err
9121 } && test -s conftest.$ac_objext; then
9122 ac_cv_type_uint32_t=yes
9123 else
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9127 ac_cv_type_uint32_t=no
9130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9132 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
9133 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
9134 if test $ac_cv_type_uint32_t = yes; then
9136 cat >>confdefs.h <<_ACEOF
9137 #define HAVE_UINT32_T 1
9138 _ACEOF
9143 { echo "$as_me:$LINENO: checking for int64_t" >&5
9144 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
9145 if test "${ac_cv_type_int64_t+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 else
9148 cat >conftest.$ac_ext <<_ACEOF
9149 /* confdefs.h. */
9150 _ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9154 $ac_includes_default
9155 typedef int64_t ac__type_new_;
9157 main ()
9159 if ((ac__type_new_ *) 0)
9160 return 0;
9161 if (sizeof (ac__type_new_))
9162 return 0;
9164 return 0;
9166 _ACEOF
9167 rm -f conftest.$ac_objext
9168 if { (ac_try="$ac_compile"
9169 case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9172 esac
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_compile") 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } && {
9181 test -z "$ac_c_werror_flag" ||
9182 test ! -s conftest.err
9183 } && test -s conftest.$ac_objext; then
9184 ac_cv_type_int64_t=yes
9185 else
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9189 ac_cv_type_int64_t=no
9192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
9195 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
9196 if test $ac_cv_type_int64_t = yes; then
9198 cat >>confdefs.h <<_ACEOF
9199 #define HAVE_INT64_T 1
9200 _ACEOF
9205 { echo "$as_me:$LINENO: checking for uint64_t" >&5
9206 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
9207 if test "${ac_cv_type_uint64_t+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210 cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h. */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 $ac_includes_default
9217 typedef uint64_t ac__type_new_;
9219 main ()
9221 if ((ac__type_new_ *) 0)
9222 return 0;
9223 if (sizeof (ac__type_new_))
9224 return 0;
9226 return 0;
9228 _ACEOF
9229 rm -f conftest.$ac_objext
9230 if { (ac_try="$ac_compile"
9231 case "(($ac_try" in
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9234 esac
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_compile") 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } && {
9243 test -z "$ac_c_werror_flag" ||
9244 test ! -s conftest.err
9245 } && test -s conftest.$ac_objext; then
9246 ac_cv_type_uint64_t=yes
9247 else
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 ac_cv_type_uint64_t=no
9254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
9257 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
9258 if test $ac_cv_type_uint64_t = yes; then
9260 cat >>confdefs.h <<_ACEOF
9261 #define HAVE_UINT64_T 1
9262 _ACEOF
9267 { echo "$as_me:$LINENO: checking for intptr_t" >&5
9268 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
9269 if test "${ac_cv_type_intptr_t+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 else
9272 cat >conftest.$ac_ext <<_ACEOF
9273 /* confdefs.h. */
9274 _ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9278 $ac_includes_default
9279 typedef intptr_t ac__type_new_;
9281 main ()
9283 if ((ac__type_new_ *) 0)
9284 return 0;
9285 if (sizeof (ac__type_new_))
9286 return 0;
9288 return 0;
9290 _ACEOF
9291 rm -f conftest.$ac_objext
9292 if { (ac_try="$ac_compile"
9293 case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9296 esac
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_compile") 2>conftest.er1
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } && {
9305 test -z "$ac_c_werror_flag" ||
9306 test ! -s conftest.err
9307 } && test -s conftest.$ac_objext; then
9308 ac_cv_type_intptr_t=yes
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 ac_cv_type_intptr_t=no
9316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9318 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
9319 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
9320 if test $ac_cv_type_intptr_t = yes; then
9322 cat >>confdefs.h <<_ACEOF
9323 #define HAVE_INTPTR_T 1
9324 _ACEOF
9329 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
9330 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
9331 if test "${ac_cv_type_uintptr_t+set}" = set; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 else
9334 cat >conftest.$ac_ext <<_ACEOF
9335 /* confdefs.h. */
9336 _ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h. */
9340 $ac_includes_default
9341 typedef uintptr_t ac__type_new_;
9343 main ()
9345 if ((ac__type_new_ *) 0)
9346 return 0;
9347 if (sizeof (ac__type_new_))
9348 return 0;
9350 return 0;
9352 _ACEOF
9353 rm -f conftest.$ac_objext
9354 if { (ac_try="$ac_compile"
9355 case "(($ac_try" in
9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9358 esac
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_compile") 2>conftest.er1
9361 ac_status=$?
9362 grep -v '^ *+' conftest.er1 >conftest.err
9363 rm -f conftest.er1
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest.$ac_objext; then
9370 ac_cv_type_uintptr_t=yes
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ac_cv_type_uintptr_t=no
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9380 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
9381 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
9382 if test $ac_cv_type_uintptr_t = yes; then
9384 cat >>confdefs.h <<_ACEOF
9385 #define HAVE_UINTPTR_T 1
9386 _ACEOF
9391 { echo "$as_me:$LINENO: checking for mode_t" >&5
9392 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
9393 if test "${ac_cv_type_mode_t+set}" = set; then
9394 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 else
9396 cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h. */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 $ac_includes_default
9403 typedef mode_t ac__type_new_;
9405 main ()
9407 if ((ac__type_new_ *) 0)
9408 return 0;
9409 if (sizeof (ac__type_new_))
9410 return 0;
9412 return 0;
9414 _ACEOF
9415 rm -f conftest.$ac_objext
9416 if { (ac_try="$ac_compile"
9417 case "(($ac_try" in
9418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419 *) ac_try_echo=$ac_try;;
9420 esac
9421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9422 (eval "$ac_compile") 2>conftest.er1
9423 ac_status=$?
9424 grep -v '^ *+' conftest.er1 >conftest.err
9425 rm -f conftest.er1
9426 cat conftest.err >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } && {
9429 test -z "$ac_c_werror_flag" ||
9430 test ! -s conftest.err
9431 } && test -s conftest.$ac_objext; then
9432 ac_cv_type_mode_t=yes
9433 else
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9437 ac_cv_type_mode_t=no
9440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9442 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
9443 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
9444 if test $ac_cv_type_mode_t = yes; then
9446 cat >>confdefs.h <<_ACEOF
9447 #define HAVE_MODE_T 1
9448 _ACEOF
9456 # Check for type sizes
9459 { echo "$as_me:$LINENO: checking for char" >&5
9460 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
9461 if test "${ac_cv_type_char+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h. */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 $ac_includes_default
9471 typedef char ac__type_new_;
9473 main ()
9475 if ((ac__type_new_ *) 0)
9476 return 0;
9477 if (sizeof (ac__type_new_))
9478 return 0;
9480 return 0;
9482 _ACEOF
9483 rm -f conftest.$ac_objext
9484 if { (ac_try="$ac_compile"
9485 case "(($ac_try" in
9486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9487 *) ac_try_echo=$ac_try;;
9488 esac
9489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9490 (eval "$ac_compile") 2>conftest.er1
9491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } && {
9497 test -z "$ac_c_werror_flag" ||
9498 test ! -s conftest.err
9499 } && test -s conftest.$ac_objext; then
9500 ac_cv_type_char=yes
9501 else
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 ac_cv_type_char=no
9508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9510 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9511 echo "${ECHO_T}$ac_cv_type_char" >&6; }
9513 # The cast to long int works around a bug in the HP C Compiler
9514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9516 # This bug is HP SR number 8606223364.
9517 { echo "$as_me:$LINENO: checking size of char" >&5
9518 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
9519 if test "${ac_cv_sizeof_char+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 else
9522 if test "$cross_compiling" = yes; then
9523 # Depending upon the size, compute the lo and hi bounds.
9524 cat >conftest.$ac_ext <<_ACEOF
9525 /* confdefs.h. */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 $ac_includes_default
9531 typedef char ac__type_sizeof_;
9533 main ()
9535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9536 test_array [0] = 0
9539 return 0;
9541 _ACEOF
9542 rm -f conftest.$ac_objext
9543 if { (ac_try="$ac_compile"
9544 case "(($ac_try" in
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9547 esac
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_compile") 2>conftest.er1
9550 ac_status=$?
9551 grep -v '^ *+' conftest.er1 >conftest.err
9552 rm -f conftest.er1
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } && {
9556 test -z "$ac_c_werror_flag" ||
9557 test ! -s conftest.err
9558 } && test -s conftest.$ac_objext; then
9559 ac_lo=0 ac_mid=0
9560 while :; do
9561 cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h. */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 $ac_includes_default
9568 typedef char ac__type_sizeof_;
9570 main ()
9572 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9573 test_array [0] = 0
9576 return 0;
9578 _ACEOF
9579 rm -f conftest.$ac_objext
9580 if { (ac_try="$ac_compile"
9581 case "(($ac_try" in
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9584 esac
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_compile") 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } && {
9593 test -z "$ac_c_werror_flag" ||
9594 test ! -s conftest.err
9595 } && test -s conftest.$ac_objext; then
9596 ac_hi=$ac_mid; break
9597 else
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9601 ac_lo=`expr $ac_mid + 1`
9602 if test $ac_lo -le $ac_mid; then
9603 ac_lo= ac_hi=
9604 break
9606 ac_mid=`expr 2 '*' $ac_mid + 1`
9609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610 done
9611 else
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h. */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9621 $ac_includes_default
9622 typedef char ac__type_sizeof_;
9624 main ()
9626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9627 test_array [0] = 0
9630 return 0;
9632 _ACEOF
9633 rm -f conftest.$ac_objext
9634 if { (ac_try="$ac_compile"
9635 case "(($ac_try" in
9636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637 *) ac_try_echo=$ac_try;;
9638 esac
9639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9640 (eval "$ac_compile") 2>conftest.er1
9641 ac_status=$?
9642 grep -v '^ *+' conftest.er1 >conftest.err
9643 rm -f conftest.er1
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } && {
9647 test -z "$ac_c_werror_flag" ||
9648 test ! -s conftest.err
9649 } && test -s conftest.$ac_objext; then
9650 ac_hi=-1 ac_mid=-1
9651 while :; do
9652 cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h. */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658 $ac_includes_default
9659 typedef char ac__type_sizeof_;
9661 main ()
9663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9664 test_array [0] = 0
9667 return 0;
9669 _ACEOF
9670 rm -f conftest.$ac_objext
9671 if { (ac_try="$ac_compile"
9672 case "(($ac_try" in
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9675 esac
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_compile") 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } && {
9684 test -z "$ac_c_werror_flag" ||
9685 test ! -s conftest.err
9686 } && test -s conftest.$ac_objext; then
9687 ac_lo=$ac_mid; break
9688 else
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ac_hi=`expr '(' $ac_mid ')' - 1`
9693 if test $ac_mid -le $ac_hi; then
9694 ac_lo= ac_hi=
9695 break
9697 ac_mid=`expr 2 '*' $ac_mid`
9700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701 done
9702 else
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_lo= ac_hi=
9709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713 # Binary search between lo and hi bounds.
9714 while test "x$ac_lo" != "x$ac_hi"; do
9715 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 $ac_includes_default
9723 typedef char ac__type_sizeof_;
9725 main ()
9727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9728 test_array [0] = 0
9731 return 0;
9733 _ACEOF
9734 rm -f conftest.$ac_objext
9735 if { (ac_try="$ac_compile"
9736 case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_compile") 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest.$ac_objext; then
9751 ac_hi=$ac_mid
9752 else
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 ac_lo=`expr '(' $ac_mid ')' + 1`
9759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760 done
9761 case $ac_lo in
9762 ?*) ac_cv_sizeof_char=$ac_lo;;
9763 '') if test "$ac_cv_type_char" = yes; then
9764 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
9765 See \`config.log' for more details." >&5
9766 echo "$as_me: error: cannot compute sizeof (char)
9767 See \`config.log' for more details." >&2;}
9768 { (exit 77); exit 77; }; }
9769 else
9770 ac_cv_sizeof_char=0
9771 fi ;;
9772 esac
9773 else
9774 cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h. */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9780 $ac_includes_default
9781 typedef char ac__type_sizeof_;
9782 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9783 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9784 #include <stdio.h>
9785 #include <stdlib.h>
9787 main ()
9790 FILE *f = fopen ("conftest.val", "w");
9791 if (! f)
9792 return 1;
9793 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9795 long int i = longval ();
9796 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9797 return 1;
9798 fprintf (f, "%ld\n", i);
9800 else
9802 unsigned long int i = ulongval ();
9803 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9804 return 1;
9805 fprintf (f, "%lu\n", i);
9807 return ferror (f) || fclose (f) != 0;
9810 return 0;
9812 _ACEOF
9813 rm -f conftest$ac_exeext
9814 if { (ac_try="$ac_link"
9815 case "(($ac_try" in
9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9818 esac
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820 (eval "$ac_link") 2>&5
9821 ac_status=$?
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9824 { (case "(($ac_try" in
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9827 esac
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829 (eval "$ac_try") 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 ac_cv_sizeof_char=`cat conftest.val`
9834 else
9835 echo "$as_me: program exited with status $ac_status" >&5
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9839 ( exit $ac_status )
9840 if test "$ac_cv_type_char" = yes; then
9841 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
9842 See \`config.log' for more details." >&5
9843 echo "$as_me: error: cannot compute sizeof (char)
9844 See \`config.log' for more details." >&2;}
9845 { (exit 77); exit 77; }; }
9846 else
9847 ac_cv_sizeof_char=0
9850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9852 rm -f conftest.val
9854 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
9855 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
9859 cat >>confdefs.h <<_ACEOF
9860 #define SIZEOF_CHAR $ac_cv_sizeof_char
9861 _ACEOF
9864 { echo "$as_me:$LINENO: checking for short" >&5
9865 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
9866 if test "${ac_cv_type_short+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 $ac_includes_default
9876 typedef short ac__type_new_;
9878 main ()
9880 if ((ac__type_new_ *) 0)
9881 return 0;
9882 if (sizeof (ac__type_new_))
9883 return 0;
9885 return 0;
9887 _ACEOF
9888 rm -f conftest.$ac_objext
9889 if { (ac_try="$ac_compile"
9890 case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893 esac
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_compile") 2>conftest.er1
9896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } && {
9902 test -z "$ac_c_werror_flag" ||
9903 test ! -s conftest.err
9904 } && test -s conftest.$ac_objext; then
9905 ac_cv_type_short=yes
9906 else
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 ac_cv_type_short=no
9913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9915 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
9916 echo "${ECHO_T}$ac_cv_type_short" >&6; }
9918 # The cast to long int works around a bug in the HP C Compiler
9919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9921 # This bug is HP SR number 8606223364.
9922 { echo "$as_me:$LINENO: checking size of short" >&5
9923 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
9924 if test "${ac_cv_sizeof_short+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927 if test "$cross_compiling" = yes; then
9928 # Depending upon the size, compute the lo and hi bounds.
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h. */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 $ac_includes_default
9936 typedef short ac__type_sizeof_;
9938 main ()
9940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9941 test_array [0] = 0
9944 return 0;
9946 _ACEOF
9947 rm -f conftest.$ac_objext
9948 if { (ac_try="$ac_compile"
9949 case "(($ac_try" in
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9952 esac
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_compile") 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest.$ac_objext; then
9964 ac_lo=0 ac_mid=0
9965 while :; do
9966 cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h. */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9972 $ac_includes_default
9973 typedef short ac__type_sizeof_;
9975 main ()
9977 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9978 test_array [0] = 0
9981 return 0;
9983 _ACEOF
9984 rm -f conftest.$ac_objext
9985 if { (ac_try="$ac_compile"
9986 case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989 esac
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_compile") 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest.$ac_objext; then
10001 ac_hi=$ac_mid; break
10002 else
10003 echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10006 ac_lo=`expr $ac_mid + 1`
10007 if test $ac_lo -le $ac_mid; then
10008 ac_lo= ac_hi=
10009 break
10011 ac_mid=`expr 2 '*' $ac_mid + 1`
10014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015 done
10016 else
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10020 cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h. */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10026 $ac_includes_default
10027 typedef short ac__type_sizeof_;
10029 main ()
10031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10032 test_array [0] = 0
10035 return 0;
10037 _ACEOF
10038 rm -f conftest.$ac_objext
10039 if { (ac_try="$ac_compile"
10040 case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10043 esac
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_compile") 2>conftest.er1
10046 ac_status=$?
10047 grep -v '^ *+' conftest.er1 >conftest.err
10048 rm -f conftest.er1
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && {
10052 test -z "$ac_c_werror_flag" ||
10053 test ! -s conftest.err
10054 } && test -s conftest.$ac_objext; then
10055 ac_hi=-1 ac_mid=-1
10056 while :; do
10057 cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h. */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 $ac_includes_default
10064 typedef short ac__type_sizeof_;
10066 main ()
10068 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10069 test_array [0] = 0
10072 return 0;
10074 _ACEOF
10075 rm -f conftest.$ac_objext
10076 if { (ac_try="$ac_compile"
10077 case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10080 esac
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_compile") 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } && {
10089 test -z "$ac_c_werror_flag" ||
10090 test ! -s conftest.err
10091 } && test -s conftest.$ac_objext; then
10092 ac_lo=$ac_mid; break
10093 else
10094 echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10097 ac_hi=`expr '(' $ac_mid ')' - 1`
10098 if test $ac_mid -le $ac_hi; then
10099 ac_lo= ac_hi=
10100 break
10102 ac_mid=`expr 2 '*' $ac_mid`
10105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106 done
10107 else
10108 echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10111 ac_lo= ac_hi=
10114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 # Binary search between lo and hi bounds.
10119 while test "x$ac_lo" != "x$ac_hi"; do
10120 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h. */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 $ac_includes_default
10128 typedef short ac__type_sizeof_;
10130 main ()
10132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10133 test_array [0] = 0
10136 return 0;
10138 _ACEOF
10139 rm -f conftest.$ac_objext
10140 if { (ac_try="$ac_compile"
10141 case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10144 esac
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_compile") 2>conftest.er1
10147 ac_status=$?
10148 grep -v '^ *+' conftest.er1 >conftest.err
10149 rm -f conftest.er1
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } && {
10153 test -z "$ac_c_werror_flag" ||
10154 test ! -s conftest.err
10155 } && test -s conftest.$ac_objext; then
10156 ac_hi=$ac_mid
10157 else
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_lo=`expr '(' $ac_mid ')' + 1`
10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 done
10166 case $ac_lo in
10167 ?*) ac_cv_sizeof_short=$ac_lo;;
10168 '') if test "$ac_cv_type_short" = yes; then
10169 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
10170 See \`config.log' for more details." >&5
10171 echo "$as_me: error: cannot compute sizeof (short)
10172 See \`config.log' for more details." >&2;}
10173 { (exit 77); exit 77; }; }
10174 else
10175 ac_cv_sizeof_short=0
10176 fi ;;
10177 esac
10178 else
10179 cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h. */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10185 $ac_includes_default
10186 typedef short ac__type_sizeof_;
10187 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10188 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10189 #include <stdio.h>
10190 #include <stdlib.h>
10192 main ()
10195 FILE *f = fopen ("conftest.val", "w");
10196 if (! f)
10197 return 1;
10198 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10200 long int i = longval ();
10201 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10202 return 1;
10203 fprintf (f, "%ld\n", i);
10205 else
10207 unsigned long int i = ulongval ();
10208 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10209 return 1;
10210 fprintf (f, "%lu\n", i);
10212 return ferror (f) || fclose (f) != 0;
10215 return 0;
10217 _ACEOF
10218 rm -f conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10223 esac
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_link") 2>&5
10226 ac_status=$?
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_sizeof_short=`cat conftest.val`
10239 else
10240 echo "$as_me: program exited with status $ac_status" >&5
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10244 ( exit $ac_status )
10245 if test "$ac_cv_type_short" = yes; then
10246 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
10247 See \`config.log' for more details." >&5
10248 echo "$as_me: error: cannot compute sizeof (short)
10249 See \`config.log' for more details." >&2;}
10250 { (exit 77); exit 77; }; }
10251 else
10252 ac_cv_sizeof_short=0
10255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10257 rm -f conftest.val
10259 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
10260 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
10264 cat >>confdefs.h <<_ACEOF
10265 #define SIZEOF_SHORT $ac_cv_sizeof_short
10266 _ACEOF
10269 { echo "$as_me:$LINENO: checking for int" >&5
10270 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
10271 if test "${ac_cv_type_int+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274 cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h. */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 $ac_includes_default
10281 typedef int ac__type_new_;
10283 main ()
10285 if ((ac__type_new_ *) 0)
10286 return 0;
10287 if (sizeof (ac__type_new_))
10288 return 0;
10290 return 0;
10292 _ACEOF
10293 rm -f conftest.$ac_objext
10294 if { (ac_try="$ac_compile"
10295 case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10298 esac
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_compile") 2>conftest.er1
10301 ac_status=$?
10302 grep -v '^ *+' conftest.er1 >conftest.err
10303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } && {
10307 test -z "$ac_c_werror_flag" ||
10308 test ! -s conftest.err
10309 } && test -s conftest.$ac_objext; then
10310 ac_cv_type_int=yes
10311 else
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10315 ac_cv_type_int=no
10318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10320 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10321 echo "${ECHO_T}$ac_cv_type_int" >&6; }
10323 # The cast to long int works around a bug in the HP C Compiler
10324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10325 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10326 # This bug is HP SR number 8606223364.
10327 { echo "$as_me:$LINENO: checking size of int" >&5
10328 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
10329 if test "${ac_cv_sizeof_int+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332 if test "$cross_compiling" = yes; then
10333 # Depending upon the size, compute the lo and hi bounds.
10334 cat >conftest.$ac_ext <<_ACEOF
10335 /* confdefs.h. */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10340 $ac_includes_default
10341 typedef int ac__type_sizeof_;
10343 main ()
10345 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10346 test_array [0] = 0
10349 return 0;
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (ac_try="$ac_compile"
10354 case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10357 esac
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_compile") 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } && {
10366 test -z "$ac_c_werror_flag" ||
10367 test ! -s conftest.err
10368 } && test -s conftest.$ac_objext; then
10369 ac_lo=0 ac_mid=0
10370 while :; do
10371 cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h. */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 $ac_includes_default
10378 typedef int ac__type_sizeof_;
10380 main ()
10382 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10383 test_array [0] = 0
10386 return 0;
10388 _ACEOF
10389 rm -f conftest.$ac_objext
10390 if { (ac_try="$ac_compile"
10391 case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10394 esac
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_compile") 2>conftest.er1
10397 ac_status=$?
10398 grep -v '^ *+' conftest.er1 >conftest.err
10399 rm -f conftest.er1
10400 cat conftest.err >&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } && {
10403 test -z "$ac_c_werror_flag" ||
10404 test ! -s conftest.err
10405 } && test -s conftest.$ac_objext; then
10406 ac_hi=$ac_mid; break
10407 else
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10411 ac_lo=`expr $ac_mid + 1`
10412 if test $ac_lo -le $ac_mid; then
10413 ac_lo= ac_hi=
10414 break
10416 ac_mid=`expr 2 '*' $ac_mid + 1`
10419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10420 done
10421 else
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h. */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 $ac_includes_default
10432 typedef int ac__type_sizeof_;
10434 main ()
10436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10437 test_array [0] = 0
10440 return 0;
10442 _ACEOF
10443 rm -f conftest.$ac_objext
10444 if { (ac_try="$ac_compile"
10445 case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_compile") 2>conftest.er1
10451 ac_status=$?
10452 grep -v '^ *+' conftest.er1 >conftest.err
10453 rm -f conftest.er1
10454 cat conftest.err >&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && {
10457 test -z "$ac_c_werror_flag" ||
10458 test ! -s conftest.err
10459 } && test -s conftest.$ac_objext; then
10460 ac_hi=-1 ac_mid=-1
10461 while :; do
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h. */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 $ac_includes_default
10469 typedef int ac__type_sizeof_;
10471 main ()
10473 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10474 test_array [0] = 0
10477 return 0;
10479 _ACEOF
10480 rm -f conftest.$ac_objext
10481 if { (ac_try="$ac_compile"
10482 case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10485 esac
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_compile") 2>conftest.er1
10488 ac_status=$?
10489 grep -v '^ *+' conftest.er1 >conftest.err
10490 rm -f conftest.er1
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } && {
10494 test -z "$ac_c_werror_flag" ||
10495 test ! -s conftest.err
10496 } && test -s conftest.$ac_objext; then
10497 ac_lo=$ac_mid; break
10498 else
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 ac_hi=`expr '(' $ac_mid ')' - 1`
10503 if test $ac_mid -le $ac_hi; then
10504 ac_lo= ac_hi=
10505 break
10507 ac_mid=`expr 2 '*' $ac_mid`
10510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10511 done
10512 else
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10516 ac_lo= ac_hi=
10519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10523 # Binary search between lo and hi bounds.
10524 while test "x$ac_lo" != "x$ac_hi"; do
10525 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h. */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10532 $ac_includes_default
10533 typedef int ac__type_sizeof_;
10535 main ()
10537 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10538 test_array [0] = 0
10541 return 0;
10543 _ACEOF
10544 rm -f conftest.$ac_objext
10545 if { (ac_try="$ac_compile"
10546 case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10549 esac
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_compile") 2>conftest.er1
10552 ac_status=$?
10553 grep -v '^ *+' conftest.er1 >conftest.err
10554 rm -f conftest.er1
10555 cat conftest.err >&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && {
10558 test -z "$ac_c_werror_flag" ||
10559 test ! -s conftest.err
10560 } && test -s conftest.$ac_objext; then
10561 ac_hi=$ac_mid
10562 else
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 ac_lo=`expr '(' $ac_mid ')' + 1`
10569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570 done
10571 case $ac_lo in
10572 ?*) ac_cv_sizeof_int=$ac_lo;;
10573 '') if test "$ac_cv_type_int" = yes; then
10574 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
10575 See \`config.log' for more details." >&5
10576 echo "$as_me: error: cannot compute sizeof (int)
10577 See \`config.log' for more details." >&2;}
10578 { (exit 77); exit 77; }; }
10579 else
10580 ac_cv_sizeof_int=0
10581 fi ;;
10582 esac
10583 else
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h. */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 $ac_includes_default
10591 typedef int ac__type_sizeof_;
10592 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10593 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10594 #include <stdio.h>
10595 #include <stdlib.h>
10597 main ()
10600 FILE *f = fopen ("conftest.val", "w");
10601 if (! f)
10602 return 1;
10603 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10605 long int i = longval ();
10606 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10607 return 1;
10608 fprintf (f, "%ld\n", i);
10610 else
10612 unsigned long int i = ulongval ();
10613 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10614 return 1;
10615 fprintf (f, "%lu\n", i);
10617 return ferror (f) || fclose (f) != 0;
10620 return 0;
10622 _ACEOF
10623 rm -f conftest$ac_exeext
10624 if { (ac_try="$ac_link"
10625 case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628 esac
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_link") 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10634 { (case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10637 esac
10638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_try") 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10643 ac_cv_sizeof_int=`cat conftest.val`
10644 else
10645 echo "$as_me: program exited with status $ac_status" >&5
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 ( exit $ac_status )
10650 if test "$ac_cv_type_int" = yes; then
10651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
10652 See \`config.log' for more details." >&5
10653 echo "$as_me: error: cannot compute sizeof (int)
10654 See \`config.log' for more details." >&2;}
10655 { (exit 77); exit 77; }; }
10656 else
10657 ac_cv_sizeof_int=0
10660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10662 rm -f conftest.val
10664 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10665 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
10669 cat >>confdefs.h <<_ACEOF
10670 #define SIZEOF_INT $ac_cv_sizeof_int
10671 _ACEOF
10674 { echo "$as_me:$LINENO: checking for long" >&5
10675 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
10676 if test "${ac_cv_type_long+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679 cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h. */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 $ac_includes_default
10686 typedef long ac__type_new_;
10688 main ()
10690 if ((ac__type_new_ *) 0)
10691 return 0;
10692 if (sizeof (ac__type_new_))
10693 return 0;
10695 return 0;
10697 _ACEOF
10698 rm -f conftest.$ac_objext
10699 if { (ac_try="$ac_compile"
10700 case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10703 esac
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_compile") 2>conftest.er1
10706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } && {
10712 test -z "$ac_c_werror_flag" ||
10713 test ! -s conftest.err
10714 } && test -s conftest.$ac_objext; then
10715 ac_cv_type_long=yes
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10720 ac_cv_type_long=no
10723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10725 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
10726 echo "${ECHO_T}$ac_cv_type_long" >&6; }
10728 # The cast to long int works around a bug in the HP C Compiler
10729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10731 # This bug is HP SR number 8606223364.
10732 { echo "$as_me:$LINENO: checking size of long" >&5
10733 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
10734 if test "${ac_cv_sizeof_long+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737 if test "$cross_compiling" = yes; then
10738 # Depending upon the size, compute the lo and hi bounds.
10739 cat >conftest.$ac_ext <<_ACEOF
10740 /* confdefs.h. */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10745 $ac_includes_default
10746 typedef long ac__type_sizeof_;
10748 main ()
10750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10751 test_array [0] = 0
10754 return 0;
10756 _ACEOF
10757 rm -f conftest.$ac_objext
10758 if { (ac_try="$ac_compile"
10759 case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762 esac
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_compile") 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } && {
10771 test -z "$ac_c_werror_flag" ||
10772 test ! -s conftest.err
10773 } && test -s conftest.$ac_objext; then
10774 ac_lo=0 ac_mid=0
10775 while :; do
10776 cat >conftest.$ac_ext <<_ACEOF
10777 /* confdefs.h. */
10778 _ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10782 $ac_includes_default
10783 typedef long ac__type_sizeof_;
10785 main ()
10787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10788 test_array [0] = 0
10791 return 0;
10793 _ACEOF
10794 rm -f conftest.$ac_objext
10795 if { (ac_try="$ac_compile"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799 esac
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_compile") 2>conftest.er1
10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } && {
10808 test -z "$ac_c_werror_flag" ||
10809 test ! -s conftest.err
10810 } && test -s conftest.$ac_objext; then
10811 ac_hi=$ac_mid; break
10812 else
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10816 ac_lo=`expr $ac_mid + 1`
10817 if test $ac_lo -le $ac_mid; then
10818 ac_lo= ac_hi=
10819 break
10821 ac_mid=`expr 2 '*' $ac_mid + 1`
10824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10825 done
10826 else
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 cat >conftest.$ac_ext <<_ACEOF
10831 /* confdefs.h. */
10832 _ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 $ac_includes_default
10837 typedef long ac__type_sizeof_;
10839 main ()
10841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10842 test_array [0] = 0
10845 return 0;
10847 _ACEOF
10848 rm -f conftest.$ac_objext
10849 if { (ac_try="$ac_compile"
10850 case "(($ac_try" in
10851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10853 esac
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_compile") 2>conftest.er1
10856 ac_status=$?
10857 grep -v '^ *+' conftest.er1 >conftest.err
10858 rm -f conftest.er1
10859 cat conftest.err >&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } && {
10862 test -z "$ac_c_werror_flag" ||
10863 test ! -s conftest.err
10864 } && test -s conftest.$ac_objext; then
10865 ac_hi=-1 ac_mid=-1
10866 while :; do
10867 cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h. */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873 $ac_includes_default
10874 typedef long ac__type_sizeof_;
10876 main ()
10878 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10879 test_array [0] = 0
10882 return 0;
10884 _ACEOF
10885 rm -f conftest.$ac_objext
10886 if { (ac_try="$ac_compile"
10887 case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_compile") 2>conftest.er1
10893 ac_status=$?
10894 grep -v '^ *+' conftest.er1 >conftest.err
10895 rm -f conftest.er1
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } && {
10899 test -z "$ac_c_werror_flag" ||
10900 test ! -s conftest.err
10901 } && test -s conftest.$ac_objext; then
10902 ac_lo=$ac_mid; break
10903 else
10904 echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10907 ac_hi=`expr '(' $ac_mid ')' - 1`
10908 if test $ac_mid -le $ac_hi; then
10909 ac_lo= ac_hi=
10910 break
10912 ac_mid=`expr 2 '*' $ac_mid`
10915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10916 done
10917 else
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10921 ac_lo= ac_hi=
10924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 # Binary search between lo and hi bounds.
10929 while test "x$ac_lo" != "x$ac_hi"; do
10930 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10931 cat >conftest.$ac_ext <<_ACEOF
10932 /* confdefs.h. */
10933 _ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10937 $ac_includes_default
10938 typedef long ac__type_sizeof_;
10940 main ()
10942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10943 test_array [0] = 0
10946 return 0;
10948 _ACEOF
10949 rm -f conftest.$ac_objext
10950 if { (ac_try="$ac_compile"
10951 case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954 esac
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_compile") 2>conftest.er1
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } && {
10963 test -z "$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10965 } && test -s conftest.$ac_objext; then
10966 ac_hi=$ac_mid
10967 else
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_lo=`expr '(' $ac_mid ')' + 1`
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975 done
10976 case $ac_lo in
10977 ?*) ac_cv_sizeof_long=$ac_lo;;
10978 '') if test "$ac_cv_type_long" = yes; then
10979 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10980 See \`config.log' for more details." >&5
10981 echo "$as_me: error: cannot compute sizeof (long)
10982 See \`config.log' for more details." >&2;}
10983 { (exit 77); exit 77; }; }
10984 else
10985 ac_cv_sizeof_long=0
10986 fi ;;
10987 esac
10988 else
10989 cat >conftest.$ac_ext <<_ACEOF
10990 /* confdefs.h. */
10991 _ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 $ac_includes_default
10996 typedef long ac__type_sizeof_;
10997 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10998 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10999 #include <stdio.h>
11000 #include <stdlib.h>
11002 main ()
11005 FILE *f = fopen ("conftest.val", "w");
11006 if (! f)
11007 return 1;
11008 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11010 long int i = longval ();
11011 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11012 return 1;
11013 fprintf (f, "%ld\n", i);
11015 else
11017 unsigned long int i = ulongval ();
11018 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11019 return 1;
11020 fprintf (f, "%lu\n", i);
11022 return ferror (f) || fclose (f) != 0;
11025 return 0;
11027 _ACEOF
11028 rm -f conftest$ac_exeext
11029 if { (ac_try="$ac_link"
11030 case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_link") 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11039 { (case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042 esac
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_try") 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_cv_sizeof_long=`cat conftest.val`
11049 else
11050 echo "$as_me: program exited with status $ac_status" >&5
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ( exit $ac_status )
11055 if test "$ac_cv_type_long" = yes; then
11056 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
11057 See \`config.log' for more details." >&5
11058 echo "$as_me: error: cannot compute sizeof (long)
11059 See \`config.log' for more details." >&2;}
11060 { (exit 77); exit 77; }; }
11061 else
11062 ac_cv_sizeof_long=0
11065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11067 rm -f conftest.val
11069 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
11070 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
11074 cat >>confdefs.h <<_ACEOF
11075 #define SIZEOF_LONG $ac_cv_sizeof_long
11076 _ACEOF
11079 if test $ac_cv_type_long_long = yes; then
11080 { echo "$as_me:$LINENO: checking for long long" >&5
11081 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11082 if test "${ac_cv_type_long_long+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 else
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 $ac_includes_default
11092 typedef long long ac__type_new_;
11094 main ()
11096 if ((ac__type_new_ *) 0)
11097 return 0;
11098 if (sizeof (ac__type_new_))
11099 return 0;
11101 return 0;
11103 _ACEOF
11104 rm -f conftest.$ac_objext
11105 if { (ac_try="$ac_compile"
11106 case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109 esac
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_compile") 2>conftest.er1
11112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } && {
11118 test -z "$ac_c_werror_flag" ||
11119 test ! -s conftest.err
11120 } && test -s conftest.$ac_objext; then
11121 ac_cv_type_long_long=yes
11122 else
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11126 ac_cv_type_long_long=no
11129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11132 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11134 # The cast to long int works around a bug in the HP C Compiler
11135 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11136 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11137 # This bug is HP SR number 8606223364.
11138 { echo "$as_me:$LINENO: checking size of long long" >&5
11139 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11140 if test "${ac_cv_sizeof_long_long+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143 if test "$cross_compiling" = yes; then
11144 # Depending upon the size, compute the lo and hi bounds.
11145 cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h. */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11151 $ac_includes_default
11152 typedef long long ac__type_sizeof_;
11154 main ()
11156 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11157 test_array [0] = 0
11160 return 0;
11162 _ACEOF
11163 rm -f conftest.$ac_objext
11164 if { (ac_try="$ac_compile"
11165 case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168 esac
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_compile") 2>conftest.er1
11171 ac_status=$?
11172 grep -v '^ *+' conftest.er1 >conftest.err
11173 rm -f conftest.er1
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } && {
11177 test -z "$ac_c_werror_flag" ||
11178 test ! -s conftest.err
11179 } && test -s conftest.$ac_objext; then
11180 ac_lo=0 ac_mid=0
11181 while :; do
11182 cat >conftest.$ac_ext <<_ACEOF
11183 /* confdefs.h. */
11184 _ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h. */
11188 $ac_includes_default
11189 typedef long long ac__type_sizeof_;
11191 main ()
11193 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11194 test_array [0] = 0
11197 return 0;
11199 _ACEOF
11200 rm -f conftest.$ac_objext
11201 if { (ac_try="$ac_compile"
11202 case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11205 esac
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_compile") 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
11216 } && test -s conftest.$ac_objext; then
11217 ac_hi=$ac_mid; break
11218 else
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11222 ac_lo=`expr $ac_mid + 1`
11223 if test $ac_lo -le $ac_mid; then
11224 ac_lo= ac_hi=
11225 break
11227 ac_mid=`expr 2 '*' $ac_mid + 1`
11230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11231 done
11232 else
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11236 cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h. */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242 $ac_includes_default
11243 typedef long long ac__type_sizeof_;
11245 main ()
11247 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11248 test_array [0] = 0
11251 return 0;
11253 _ACEOF
11254 rm -f conftest.$ac_objext
11255 if { (ac_try="$ac_compile"
11256 case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11259 esac
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_compile") 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } && {
11268 test -z "$ac_c_werror_flag" ||
11269 test ! -s conftest.err
11270 } && test -s conftest.$ac_objext; then
11271 ac_hi=-1 ac_mid=-1
11272 while :; do
11273 cat >conftest.$ac_ext <<_ACEOF
11274 /* confdefs.h. */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 $ac_includes_default
11280 typedef long long ac__type_sizeof_;
11282 main ()
11284 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11285 test_array [0] = 0
11288 return 0;
11290 _ACEOF
11291 rm -f conftest.$ac_objext
11292 if { (ac_try="$ac_compile"
11293 case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_compile") 2>conftest.er1
11299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } && {
11305 test -z "$ac_c_werror_flag" ||
11306 test ! -s conftest.err
11307 } && test -s conftest.$ac_objext; then
11308 ac_lo=$ac_mid; break
11309 else
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11313 ac_hi=`expr '(' $ac_mid ')' - 1`
11314 if test $ac_mid -le $ac_hi; then
11315 ac_lo= ac_hi=
11316 break
11318 ac_mid=`expr 2 '*' $ac_mid`
11321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11322 done
11323 else
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_lo= ac_hi=
11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 # Binary search between lo and hi bounds.
11335 while test "x$ac_lo" != "x$ac_hi"; do
11336 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11337 cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h. */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 $ac_includes_default
11344 typedef long long ac__type_sizeof_;
11346 main ()
11348 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11349 test_array [0] = 0
11352 return 0;
11354 _ACEOF
11355 rm -f conftest.$ac_objext
11356 if { (ac_try="$ac_compile"
11357 case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360 esac
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_compile") 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } && {
11369 test -z "$ac_c_werror_flag" ||
11370 test ! -s conftest.err
11371 } && test -s conftest.$ac_objext; then
11372 ac_hi=$ac_mid
11373 else
11374 echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11377 ac_lo=`expr '(' $ac_mid ')' + 1`
11380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11381 done
11382 case $ac_lo in
11383 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11384 '') if test "$ac_cv_type_long_long" = yes; then
11385 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11386 See \`config.log' for more details." >&5
11387 echo "$as_me: error: cannot compute sizeof (long long)
11388 See \`config.log' for more details." >&2;}
11389 { (exit 77); exit 77; }; }
11390 else
11391 ac_cv_sizeof_long_long=0
11392 fi ;;
11393 esac
11394 else
11395 cat >conftest.$ac_ext <<_ACEOF
11396 /* confdefs.h. */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 $ac_includes_default
11402 typedef long long ac__type_sizeof_;
11403 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11404 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11405 #include <stdio.h>
11406 #include <stdlib.h>
11408 main ()
11411 FILE *f = fopen ("conftest.val", "w");
11412 if (! f)
11413 return 1;
11414 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11416 long int i = longval ();
11417 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11418 return 1;
11419 fprintf (f, "%ld\n", i);
11421 else
11423 unsigned long int i = ulongval ();
11424 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11425 return 1;
11426 fprintf (f, "%lu\n", i);
11428 return ferror (f) || fclose (f) != 0;
11431 return 0;
11433 _ACEOF
11434 rm -f conftest$ac_exeext
11435 if { (ac_try="$ac_link"
11436 case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11439 esac
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_link") 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11445 { (case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11448 esac
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_try") 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11454 ac_cv_sizeof_long_long=`cat conftest.val`
11455 else
11456 echo "$as_me: program exited with status $ac_status" >&5
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ( exit $ac_status )
11461 if test "$ac_cv_type_long_long" = yes; then
11462 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11463 See \`config.log' for more details." >&5
11464 echo "$as_me: error: cannot compute sizeof (long long)
11465 See \`config.log' for more details." >&2;}
11466 { (exit 77); exit 77; }; }
11467 else
11468 ac_cv_sizeof_long_long=0
11471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11473 rm -f conftest.val
11475 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11476 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11480 cat >>confdefs.h <<_ACEOF
11481 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11482 _ACEOF
11486 if test $ac_cv_type_long_double = yes; then
11487 { echo "$as_me:$LINENO: checking for long double" >&5
11488 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11489 if test "${ac_cv_type_long_double+set}" = set; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492 cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h. */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 $ac_includes_default
11499 typedef long double ac__type_new_;
11501 main ()
11503 if ((ac__type_new_ *) 0)
11504 return 0;
11505 if (sizeof (ac__type_new_))
11506 return 0;
11508 return 0;
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (ac_try="$ac_compile"
11513 case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_compile") 2>conftest.er1
11519 ac_status=$?
11520 grep -v '^ *+' conftest.er1 >conftest.err
11521 rm -f conftest.er1
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } && {
11525 test -z "$ac_c_werror_flag" ||
11526 test ! -s conftest.err
11527 } && test -s conftest.$ac_objext; then
11528 ac_cv_type_long_double=yes
11529 else
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11533 ac_cv_type_long_double=no
11536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11538 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11539 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11541 # The cast to long int works around a bug in the HP C Compiler
11542 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11543 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11544 # This bug is HP SR number 8606223364.
11545 { echo "$as_me:$LINENO: checking size of long double" >&5
11546 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11547 if test "${ac_cv_sizeof_long_double+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550 if test "$cross_compiling" = yes; then
11551 # Depending upon the size, compute the lo and hi bounds.
11552 cat >conftest.$ac_ext <<_ACEOF
11553 /* confdefs.h. */
11554 _ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11558 $ac_includes_default
11559 typedef long double ac__type_sizeof_;
11561 main ()
11563 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11564 test_array [0] = 0
11567 return 0;
11569 _ACEOF
11570 rm -f conftest.$ac_objext
11571 if { (ac_try="$ac_compile"
11572 case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11575 esac
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_compile") 2>conftest.er1
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } && {
11584 test -z "$ac_c_werror_flag" ||
11585 test ! -s conftest.err
11586 } && test -s conftest.$ac_objext; then
11587 ac_lo=0 ac_mid=0
11588 while :; do
11589 cat >conftest.$ac_ext <<_ACEOF
11590 /* confdefs.h. */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11595 $ac_includes_default
11596 typedef long double ac__type_sizeof_;
11598 main ()
11600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11601 test_array [0] = 0
11604 return 0;
11606 _ACEOF
11607 rm -f conftest.$ac_objext
11608 if { (ac_try="$ac_compile"
11609 case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612 esac
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_compile") 2>conftest.er1
11615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } && {
11621 test -z "$ac_c_werror_flag" ||
11622 test ! -s conftest.err
11623 } && test -s conftest.$ac_objext; then
11624 ac_hi=$ac_mid; break
11625 else
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 ac_lo=`expr $ac_mid + 1`
11630 if test $ac_lo -le $ac_mid; then
11631 ac_lo= ac_hi=
11632 break
11634 ac_mid=`expr 2 '*' $ac_mid + 1`
11637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638 done
11639 else
11640 echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11643 cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h. */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 $ac_includes_default
11650 typedef long double ac__type_sizeof_;
11652 main ()
11654 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11655 test_array [0] = 0
11658 return 0;
11660 _ACEOF
11661 rm -f conftest.$ac_objext
11662 if { (ac_try="$ac_compile"
11663 case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11666 esac
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_compile") 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } && {
11675 test -z "$ac_c_werror_flag" ||
11676 test ! -s conftest.err
11677 } && test -s conftest.$ac_objext; then
11678 ac_hi=-1 ac_mid=-1
11679 while :; do
11680 cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h. */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 $ac_includes_default
11687 typedef long double ac__type_sizeof_;
11689 main ()
11691 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11692 test_array [0] = 0
11695 return 0;
11697 _ACEOF
11698 rm -f conftest.$ac_objext
11699 if { (ac_try="$ac_compile"
11700 case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11703 esac
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_compile") 2>conftest.er1
11706 ac_status=$?
11707 grep -v '^ *+' conftest.er1 >conftest.err
11708 rm -f conftest.er1
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } && {
11712 test -z "$ac_c_werror_flag" ||
11713 test ! -s conftest.err
11714 } && test -s conftest.$ac_objext; then
11715 ac_lo=$ac_mid; break
11716 else
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11720 ac_hi=`expr '(' $ac_mid ')' - 1`
11721 if test $ac_mid -le $ac_hi; then
11722 ac_lo= ac_hi=
11723 break
11725 ac_mid=`expr 2 '*' $ac_mid`
11728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11729 done
11730 else
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 ac_lo= ac_hi=
11737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741 # Binary search between lo and hi bounds.
11742 while test "x$ac_lo" != "x$ac_hi"; do
11743 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11744 cat >conftest.$ac_ext <<_ACEOF
11745 /* confdefs.h. */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 $ac_includes_default
11751 typedef long double ac__type_sizeof_;
11753 main ()
11755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11756 test_array [0] = 0
11759 return 0;
11761 _ACEOF
11762 rm -f conftest.$ac_objext
11763 if { (ac_try="$ac_compile"
11764 case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11767 esac
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_compile") 2>conftest.er1
11770 ac_status=$?
11771 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } && {
11776 test -z "$ac_c_werror_flag" ||
11777 test ! -s conftest.err
11778 } && test -s conftest.$ac_objext; then
11779 ac_hi=$ac_mid
11780 else
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11784 ac_lo=`expr '(' $ac_mid ')' + 1`
11787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11788 done
11789 case $ac_lo in
11790 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11791 '') if test "$ac_cv_type_long_double" = yes; then
11792 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11793 See \`config.log' for more details." >&5
11794 echo "$as_me: error: cannot compute sizeof (long double)
11795 See \`config.log' for more details." >&2;}
11796 { (exit 77); exit 77; }; }
11797 else
11798 ac_cv_sizeof_long_double=0
11799 fi ;;
11800 esac
11801 else
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h. */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 $ac_includes_default
11809 typedef long double ac__type_sizeof_;
11810 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11811 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11812 #include <stdio.h>
11813 #include <stdlib.h>
11815 main ()
11818 FILE *f = fopen ("conftest.val", "w");
11819 if (! f)
11820 return 1;
11821 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11823 long int i = longval ();
11824 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11825 return 1;
11826 fprintf (f, "%ld\n", i);
11828 else
11830 unsigned long int i = ulongval ();
11831 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11832 return 1;
11833 fprintf (f, "%lu\n", i);
11835 return ferror (f) || fclose (f) != 0;
11838 return 0;
11840 _ACEOF
11841 rm -f conftest$ac_exeext
11842 if { (ac_try="$ac_link"
11843 case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846 esac
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_link") 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11852 { (case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11855 esac
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_try") 2>&5
11858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
11861 ac_cv_sizeof_long_double=`cat conftest.val`
11862 else
11863 echo "$as_me: program exited with status $ac_status" >&5
11864 echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11867 ( exit $ac_status )
11868 if test "$ac_cv_type_long_double" = yes; then
11869 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11870 See \`config.log' for more details." >&5
11871 echo "$as_me: error: cannot compute sizeof (long double)
11872 See \`config.log' for more details." >&2;}
11873 { (exit 77); exit 77; }; }
11874 else
11875 ac_cv_sizeof_long_double=0
11878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11880 rm -f conftest.val
11882 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11883 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11887 cat >>confdefs.h <<_ACEOF
11888 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11889 _ACEOF
11893 { echo "$as_me:$LINENO: checking for float" >&5
11894 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
11895 if test "${ac_cv_type_float+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 else
11898 cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h. */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 $ac_includes_default
11905 typedef float ac__type_new_;
11907 main ()
11909 if ((ac__type_new_ *) 0)
11910 return 0;
11911 if (sizeof (ac__type_new_))
11912 return 0;
11914 return 0;
11916 _ACEOF
11917 rm -f conftest.$ac_objext
11918 if { (ac_try="$ac_compile"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922 esac
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_compile") 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest.$ac_objext; then
11934 ac_cv_type_float=yes
11935 else
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ac_cv_type_float=no
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
11945 echo "${ECHO_T}$ac_cv_type_float" >&6; }
11947 # The cast to long int works around a bug in the HP C Compiler
11948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11950 # This bug is HP SR number 8606223364.
11951 { echo "$as_me:$LINENO: checking size of float" >&5
11952 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
11953 if test "${ac_cv_sizeof_float+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956 if test "$cross_compiling" = yes; then
11957 # Depending upon the size, compute the lo and hi bounds.
11958 cat >conftest.$ac_ext <<_ACEOF
11959 /* confdefs.h. */
11960 _ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11964 $ac_includes_default
11965 typedef float ac__type_sizeof_;
11967 main ()
11969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11970 test_array [0] = 0
11973 return 0;
11975 _ACEOF
11976 rm -f conftest.$ac_objext
11977 if { (ac_try="$ac_compile"
11978 case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11981 esac
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_compile") 2>conftest.er1
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } && {
11990 test -z "$ac_c_werror_flag" ||
11991 test ! -s conftest.err
11992 } && test -s conftest.$ac_objext; then
11993 ac_lo=0 ac_mid=0
11994 while :; do
11995 cat >conftest.$ac_ext <<_ACEOF
11996 /* confdefs.h. */
11997 _ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12001 $ac_includes_default
12002 typedef float ac__type_sizeof_;
12004 main ()
12006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12007 test_array [0] = 0
12010 return 0;
12012 _ACEOF
12013 rm -f conftest.$ac_objext
12014 if { (ac_try="$ac_compile"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_compile") 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } && {
12027 test -z "$ac_c_werror_flag" ||
12028 test ! -s conftest.err
12029 } && test -s conftest.$ac_objext; then
12030 ac_hi=$ac_mid; break
12031 else
12032 echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12035 ac_lo=`expr $ac_mid + 1`
12036 if test $ac_lo -le $ac_mid; then
12037 ac_lo= ac_hi=
12038 break
12040 ac_mid=`expr 2 '*' $ac_mid + 1`
12043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044 done
12045 else
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h. */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 $ac_includes_default
12056 typedef float ac__type_sizeof_;
12058 main ()
12060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12061 test_array [0] = 0
12064 return 0;
12066 _ACEOF
12067 rm -f conftest.$ac_objext
12068 if { (ac_try="$ac_compile"
12069 case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_compile") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest.$ac_objext; then
12084 ac_hi=-1 ac_mid=-1
12085 while :; do
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h. */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 $ac_includes_default
12093 typedef float ac__type_sizeof_;
12095 main ()
12097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12098 test_array [0] = 0
12101 return 0;
12103 _ACEOF
12104 rm -f conftest.$ac_objext
12105 if { (ac_try="$ac_compile"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_compile") 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } && {
12118 test -z "$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12120 } && test -s conftest.$ac_objext; then
12121 ac_lo=$ac_mid; break
12122 else
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12126 ac_hi=`expr '(' $ac_mid ')' - 1`
12127 if test $ac_mid -le $ac_hi; then
12128 ac_lo= ac_hi=
12129 break
12131 ac_mid=`expr 2 '*' $ac_mid`
12134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12135 done
12136 else
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 ac_lo= ac_hi=
12143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 # Binary search between lo and hi bounds.
12148 while test "x$ac_lo" != "x$ac_hi"; do
12149 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12150 cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h. */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12156 $ac_includes_default
12157 typedef float ac__type_sizeof_;
12159 main ()
12161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12162 test_array [0] = 0
12165 return 0;
12167 _ACEOF
12168 rm -f conftest.$ac_objext
12169 if { (ac_try="$ac_compile"
12170 case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12173 esac
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_compile") 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest.$ac_objext; then
12185 ac_hi=$ac_mid
12186 else
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 ac_lo=`expr '(' $ac_mid ')' + 1`
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12194 done
12195 case $ac_lo in
12196 ?*) ac_cv_sizeof_float=$ac_lo;;
12197 '') if test "$ac_cv_type_float" = yes; then
12198 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
12199 See \`config.log' for more details." >&5
12200 echo "$as_me: error: cannot compute sizeof (float)
12201 See \`config.log' for more details." >&2;}
12202 { (exit 77); exit 77; }; }
12203 else
12204 ac_cv_sizeof_float=0
12205 fi ;;
12206 esac
12207 else
12208 cat >conftest.$ac_ext <<_ACEOF
12209 /* confdefs.h. */
12210 _ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h. */
12214 $ac_includes_default
12215 typedef float ac__type_sizeof_;
12216 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12217 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12218 #include <stdio.h>
12219 #include <stdlib.h>
12221 main ()
12224 FILE *f = fopen ("conftest.val", "w");
12225 if (! f)
12226 return 1;
12227 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12229 long int i = longval ();
12230 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12231 return 1;
12232 fprintf (f, "%ld\n", i);
12234 else
12236 unsigned long int i = ulongval ();
12237 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12238 return 1;
12239 fprintf (f, "%lu\n", i);
12241 return ferror (f) || fclose (f) != 0;
12244 return 0;
12246 _ACEOF
12247 rm -f conftest$ac_exeext
12248 if { (ac_try="$ac_link"
12249 case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12252 esac
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_link") 2>&5
12255 ac_status=$?
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12267 ac_cv_sizeof_float=`cat conftest.val`
12268 else
12269 echo "$as_me: program exited with status $ac_status" >&5
12270 echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12273 ( exit $ac_status )
12274 if test "$ac_cv_type_float" = yes; then
12275 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
12276 See \`config.log' for more details." >&5
12277 echo "$as_me: error: cannot compute sizeof (float)
12278 See \`config.log' for more details." >&2;}
12279 { (exit 77); exit 77; }; }
12280 else
12281 ac_cv_sizeof_float=0
12284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12286 rm -f conftest.val
12288 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
12289 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
12293 cat >>confdefs.h <<_ACEOF
12294 #define SIZEOF_FLOAT $ac_cv_sizeof_float
12295 _ACEOF
12298 { echo "$as_me:$LINENO: checking for double" >&5
12299 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
12300 if test "${ac_cv_type_double+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303 cat >conftest.$ac_ext <<_ACEOF
12304 /* confdefs.h. */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 $ac_includes_default
12310 typedef double ac__type_new_;
12312 main ()
12314 if ((ac__type_new_ *) 0)
12315 return 0;
12316 if (sizeof (ac__type_new_))
12317 return 0;
12319 return 0;
12321 _ACEOF
12322 rm -f conftest.$ac_objext
12323 if { (ac_try="$ac_compile"
12324 case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12327 esac
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_compile") 2>conftest.er1
12330 ac_status=$?
12331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && {
12336 test -z "$ac_c_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest.$ac_objext; then
12339 ac_cv_type_double=yes
12340 else
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12344 ac_cv_type_double=no
12347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12349 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
12350 echo "${ECHO_T}$ac_cv_type_double" >&6; }
12352 # The cast to long int works around a bug in the HP C Compiler
12353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12355 # This bug is HP SR number 8606223364.
12356 { echo "$as_me:$LINENO: checking size of double" >&5
12357 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
12358 if test "${ac_cv_sizeof_double+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361 if test "$cross_compiling" = yes; then
12362 # Depending upon the size, compute the lo and hi bounds.
12363 cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h. */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12369 $ac_includes_default
12370 typedef double ac__type_sizeof_;
12372 main ()
12374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12375 test_array [0] = 0
12378 return 0;
12380 _ACEOF
12381 rm -f conftest.$ac_objext
12382 if { (ac_try="$ac_compile"
12383 case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_compile") 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } && {
12395 test -z "$ac_c_werror_flag" ||
12396 test ! -s conftest.err
12397 } && test -s conftest.$ac_objext; then
12398 ac_lo=0 ac_mid=0
12399 while :; do
12400 cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h. */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12406 $ac_includes_default
12407 typedef double ac__type_sizeof_;
12409 main ()
12411 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12412 test_array [0] = 0
12415 return 0;
12417 _ACEOF
12418 rm -f conftest.$ac_objext
12419 if { (ac_try="$ac_compile"
12420 case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_compile") 2>conftest.er1
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && {
12432 test -z "$ac_c_werror_flag" ||
12433 test ! -s conftest.err
12434 } && test -s conftest.$ac_objext; then
12435 ac_hi=$ac_mid; break
12436 else
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 ac_lo=`expr $ac_mid + 1`
12441 if test $ac_lo -le $ac_mid; then
12442 ac_lo= ac_hi=
12443 break
12445 ac_mid=`expr 2 '*' $ac_mid + 1`
12448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12449 done
12450 else
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h. */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12460 $ac_includes_default
12461 typedef double ac__type_sizeof_;
12463 main ()
12465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12466 test_array [0] = 0
12469 return 0;
12471 _ACEOF
12472 rm -f conftest.$ac_objext
12473 if { (ac_try="$ac_compile"
12474 case "(($ac_try" in
12475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476 *) ac_try_echo=$ac_try;;
12477 esac
12478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479 (eval "$ac_compile") 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } && {
12486 test -z "$ac_c_werror_flag" ||
12487 test ! -s conftest.err
12488 } && test -s conftest.$ac_objext; then
12489 ac_hi=-1 ac_mid=-1
12490 while :; do
12491 cat >conftest.$ac_ext <<_ACEOF
12492 /* confdefs.h. */
12493 _ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12497 $ac_includes_default
12498 typedef double ac__type_sizeof_;
12500 main ()
12502 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12503 test_array [0] = 0
12506 return 0;
12508 _ACEOF
12509 rm -f conftest.$ac_objext
12510 if { (ac_try="$ac_compile"
12511 case "(($ac_try" in
12512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513 *) ac_try_echo=$ac_try;;
12514 esac
12515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12516 (eval "$ac_compile") 2>conftest.er1
12517 ac_status=$?
12518 grep -v '^ *+' conftest.er1 >conftest.err
12519 rm -f conftest.er1
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } && {
12523 test -z "$ac_c_werror_flag" ||
12524 test ! -s conftest.err
12525 } && test -s conftest.$ac_objext; then
12526 ac_lo=$ac_mid; break
12527 else
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12531 ac_hi=`expr '(' $ac_mid ')' - 1`
12532 if test $ac_mid -le $ac_hi; then
12533 ac_lo= ac_hi=
12534 break
12536 ac_mid=`expr 2 '*' $ac_mid`
12539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12540 done
12541 else
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 ac_lo= ac_hi=
12548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12552 # Binary search between lo and hi bounds.
12553 while test "x$ac_lo" != "x$ac_hi"; do
12554 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12555 cat >conftest.$ac_ext <<_ACEOF
12556 /* confdefs.h. */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12561 $ac_includes_default
12562 typedef double ac__type_sizeof_;
12564 main ()
12566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12567 test_array [0] = 0
12570 return 0;
12572 _ACEOF
12573 rm -f conftest.$ac_objext
12574 if { (ac_try="$ac_compile"
12575 case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12578 esac
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_compile") 2>conftest.er1
12581 ac_status=$?
12582 grep -v '^ *+' conftest.er1 >conftest.err
12583 rm -f conftest.er1
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } && {
12587 test -z "$ac_c_werror_flag" ||
12588 test ! -s conftest.err
12589 } && test -s conftest.$ac_objext; then
12590 ac_hi=$ac_mid
12591 else
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 ac_lo=`expr '(' $ac_mid ')' + 1`
12598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12599 done
12600 case $ac_lo in
12601 ?*) ac_cv_sizeof_double=$ac_lo;;
12602 '') if test "$ac_cv_type_double" = yes; then
12603 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
12604 See \`config.log' for more details." >&5
12605 echo "$as_me: error: cannot compute sizeof (double)
12606 See \`config.log' for more details." >&2;}
12607 { (exit 77); exit 77; }; }
12608 else
12609 ac_cv_sizeof_double=0
12610 fi ;;
12611 esac
12612 else
12613 cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h. */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 $ac_includes_default
12620 typedef double ac__type_sizeof_;
12621 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12622 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12623 #include <stdio.h>
12624 #include <stdlib.h>
12626 main ()
12629 FILE *f = fopen ("conftest.val", "w");
12630 if (! f)
12631 return 1;
12632 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12634 long int i = longval ();
12635 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12636 return 1;
12637 fprintf (f, "%ld\n", i);
12639 else
12641 unsigned long int i = ulongval ();
12642 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12643 return 1;
12644 fprintf (f, "%lu\n", i);
12646 return ferror (f) || fclose (f) != 0;
12649 return 0;
12651 _ACEOF
12652 rm -f conftest$ac_exeext
12653 if { (ac_try="$ac_link"
12654 case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12657 esac
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_link") 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12663 { (case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12666 esac
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_try") 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 ac_cv_sizeof_double=`cat conftest.val`
12673 else
12674 echo "$as_me: program exited with status $ac_status" >&5
12675 echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12678 ( exit $ac_status )
12679 if test "$ac_cv_type_double" = yes; then
12680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
12681 See \`config.log' for more details." >&5
12682 echo "$as_me: error: cannot compute sizeof (double)
12683 See \`config.log' for more details." >&2;}
12684 { (exit 77); exit 77; }; }
12685 else
12686 ac_cv_sizeof_double=0
12689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12691 rm -f conftest.val
12693 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
12694 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
12698 cat >>confdefs.h <<_ACEOF
12699 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12700 _ACEOF
12703 { echo "$as_me:$LINENO: checking for void *" >&5
12704 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
12705 if test "${ac_cv_type_void_p+set}" = set; then
12706 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 else
12708 cat >conftest.$ac_ext <<_ACEOF
12709 /* confdefs.h. */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12714 $ac_includes_default
12715 typedef void * ac__type_new_;
12717 main ()
12719 if ((ac__type_new_ *) 0)
12720 return 0;
12721 if (sizeof (ac__type_new_))
12722 return 0;
12724 return 0;
12726 _ACEOF
12727 rm -f conftest.$ac_objext
12728 if { (ac_try="$ac_compile"
12729 case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12732 esac
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_compile") 2>conftest.er1
12735 ac_status=$?
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } && {
12741 test -z "$ac_c_werror_flag" ||
12742 test ! -s conftest.err
12743 } && test -s conftest.$ac_objext; then
12744 ac_cv_type_void_p=yes
12745 else
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 ac_cv_type_void_p=no
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12755 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
12757 # The cast to long int works around a bug in the HP C Compiler
12758 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12759 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12760 # This bug is HP SR number 8606223364.
12761 { echo "$as_me:$LINENO: checking size of void *" >&5
12762 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
12763 if test "${ac_cv_sizeof_void_p+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766 if test "$cross_compiling" = yes; then
12767 # Depending upon the size, compute the lo and hi bounds.
12768 cat >conftest.$ac_ext <<_ACEOF
12769 /* confdefs.h. */
12770 _ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774 $ac_includes_default
12775 typedef void * ac__type_sizeof_;
12777 main ()
12779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12780 test_array [0] = 0
12783 return 0;
12785 _ACEOF
12786 rm -f conftest.$ac_objext
12787 if { (ac_try="$ac_compile"
12788 case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12791 esac
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793 (eval "$ac_compile") 2>conftest.er1
12794 ac_status=$?
12795 grep -v '^ *+' conftest.er1 >conftest.err
12796 rm -f conftest.er1
12797 cat conftest.err >&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } && {
12800 test -z "$ac_c_werror_flag" ||
12801 test ! -s conftest.err
12802 } && test -s conftest.$ac_objext; then
12803 ac_lo=0 ac_mid=0
12804 while :; do
12805 cat >conftest.$ac_ext <<_ACEOF
12806 /* confdefs.h. */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12811 $ac_includes_default
12812 typedef void * ac__type_sizeof_;
12814 main ()
12816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12817 test_array [0] = 0
12820 return 0;
12822 _ACEOF
12823 rm -f conftest.$ac_objext
12824 if { (ac_try="$ac_compile"
12825 case "(($ac_try" in
12826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827 *) ac_try_echo=$ac_try;;
12828 esac
12829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830 (eval "$ac_compile") 2>conftest.er1
12831 ac_status=$?
12832 grep -v '^ *+' conftest.er1 >conftest.err
12833 rm -f conftest.er1
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } && {
12837 test -z "$ac_c_werror_flag" ||
12838 test ! -s conftest.err
12839 } && test -s conftest.$ac_objext; then
12840 ac_hi=$ac_mid; break
12841 else
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12845 ac_lo=`expr $ac_mid + 1`
12846 if test $ac_lo -le $ac_mid; then
12847 ac_lo= ac_hi=
12848 break
12850 ac_mid=`expr 2 '*' $ac_mid + 1`
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854 done
12855 else
12856 echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12859 cat >conftest.$ac_ext <<_ACEOF
12860 /* confdefs.h. */
12861 _ACEOF
12862 cat confdefs.h >>conftest.$ac_ext
12863 cat >>conftest.$ac_ext <<_ACEOF
12864 /* end confdefs.h. */
12865 $ac_includes_default
12866 typedef void * ac__type_sizeof_;
12868 main ()
12870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12871 test_array [0] = 0
12874 return 0;
12876 _ACEOF
12877 rm -f conftest.$ac_objext
12878 if { (ac_try="$ac_compile"
12879 case "(($ac_try" in
12880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881 *) ac_try_echo=$ac_try;;
12882 esac
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884 (eval "$ac_compile") 2>conftest.er1
12885 ac_status=$?
12886 grep -v '^ *+' conftest.er1 >conftest.err
12887 rm -f conftest.er1
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } && {
12891 test -z "$ac_c_werror_flag" ||
12892 test ! -s conftest.err
12893 } && test -s conftest.$ac_objext; then
12894 ac_hi=-1 ac_mid=-1
12895 while :; do
12896 cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h. */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h. */
12902 $ac_includes_default
12903 typedef void * ac__type_sizeof_;
12905 main ()
12907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12908 test_array [0] = 0
12911 return 0;
12913 _ACEOF
12914 rm -f conftest.$ac_objext
12915 if { (ac_try="$ac_compile"
12916 case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12919 esac
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_compile") 2>conftest.er1
12922 ac_status=$?
12923 grep -v '^ *+' conftest.er1 >conftest.err
12924 rm -f conftest.er1
12925 cat conftest.err >&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } && {
12928 test -z "$ac_c_werror_flag" ||
12929 test ! -s conftest.err
12930 } && test -s conftest.$ac_objext; then
12931 ac_lo=$ac_mid; break
12932 else
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 ac_hi=`expr '(' $ac_mid ')' - 1`
12937 if test $ac_mid -le $ac_hi; then
12938 ac_lo= ac_hi=
12939 break
12941 ac_mid=`expr 2 '*' $ac_mid`
12944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12945 done
12946 else
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_lo= ac_hi=
12953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12957 # Binary search between lo and hi bounds.
12958 while test "x$ac_lo" != "x$ac_hi"; do
12959 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12960 cat >conftest.$ac_ext <<_ACEOF
12961 /* confdefs.h. */
12962 _ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h. */
12966 $ac_includes_default
12967 typedef void * ac__type_sizeof_;
12969 main ()
12971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12972 test_array [0] = 0
12975 return 0;
12977 _ACEOF
12978 rm -f conftest.$ac_objext
12979 if { (ac_try="$ac_compile"
12980 case "(($ac_try" in
12981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982 *) ac_try_echo=$ac_try;;
12983 esac
12984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985 (eval "$ac_compile") 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } && {
12992 test -z "$ac_c_werror_flag" ||
12993 test ! -s conftest.err
12994 } && test -s conftest.$ac_objext; then
12995 ac_hi=$ac_mid
12996 else
12997 echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
13000 ac_lo=`expr '(' $ac_mid ')' + 1`
13003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13004 done
13005 case $ac_lo in
13006 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13007 '') if test "$ac_cv_type_void_p" = yes; then
13008 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
13009 See \`config.log' for more details." >&5
13010 echo "$as_me: error: cannot compute sizeof (void *)
13011 See \`config.log' for more details." >&2;}
13012 { (exit 77); exit 77; }; }
13013 else
13014 ac_cv_sizeof_void_p=0
13015 fi ;;
13016 esac
13017 else
13018 cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h. */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13024 $ac_includes_default
13025 typedef void * ac__type_sizeof_;
13026 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13027 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13028 #include <stdio.h>
13029 #include <stdlib.h>
13031 main ()
13034 FILE *f = fopen ("conftest.val", "w");
13035 if (! f)
13036 return 1;
13037 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13039 long int i = longval ();
13040 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13041 return 1;
13042 fprintf (f, "%ld\n", i);
13044 else
13046 unsigned long int i = ulongval ();
13047 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13048 return 1;
13049 fprintf (f, "%lu\n", i);
13051 return ferror (f) || fclose (f) != 0;
13054 return 0;
13056 _ACEOF
13057 rm -f conftest$ac_exeext
13058 if { (ac_try="$ac_link"
13059 case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062 esac
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_link") 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13068 { (case "(($ac_try" in
13069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13070 *) ac_try_echo=$ac_try;;
13071 esac
13072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13073 (eval "$ac_try") 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_cv_sizeof_void_p=`cat conftest.val`
13078 else
13079 echo "$as_me: program exited with status $ac_status" >&5
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13083 ( exit $ac_status )
13084 if test "$ac_cv_type_void_p" = yes; then
13085 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
13086 See \`config.log' for more details." >&5
13087 echo "$as_me: error: cannot compute sizeof (void *)
13088 See \`config.log' for more details." >&2;}
13089 { (exit 77); exit 77; }; }
13090 else
13091 ac_cv_sizeof_void_p=0
13094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13096 rm -f conftest.val
13098 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13099 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
13103 cat >>confdefs.h <<_ACEOF
13104 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13105 _ACEOF
13108 { echo "$as_me:$LINENO: checking for size_t" >&5
13109 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13110 if test "${ac_cv_type_size_t+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113 cat >conftest.$ac_ext <<_ACEOF
13114 /* confdefs.h. */
13115 _ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13119 $ac_includes_default
13120 typedef size_t ac__type_new_;
13122 main ()
13124 if ((ac__type_new_ *) 0)
13125 return 0;
13126 if (sizeof (ac__type_new_))
13127 return 0;
13129 return 0;
13131 _ACEOF
13132 rm -f conftest.$ac_objext
13133 if { (ac_try="$ac_compile"
13134 case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13137 esac
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_compile") 2>conftest.er1
13140 ac_status=$?
13141 grep -v '^ *+' conftest.er1 >conftest.err
13142 rm -f conftest.er1
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } && {
13146 test -z "$ac_c_werror_flag" ||
13147 test ! -s conftest.err
13148 } && test -s conftest.$ac_objext; then
13149 ac_cv_type_size_t=yes
13150 else
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13154 ac_cv_type_size_t=no
13157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13159 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13160 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13162 # The cast to long int works around a bug in the HP C Compiler
13163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13165 # This bug is HP SR number 8606223364.
13166 { echo "$as_me:$LINENO: checking size of size_t" >&5
13167 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
13168 if test "${ac_cv_sizeof_size_t+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171 if test "$cross_compiling" = yes; then
13172 # Depending upon the size, compute the lo and hi bounds.
13173 cat >conftest.$ac_ext <<_ACEOF
13174 /* confdefs.h. */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13179 $ac_includes_default
13180 typedef size_t ac__type_sizeof_;
13182 main ()
13184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13185 test_array [0] = 0
13188 return 0;
13190 _ACEOF
13191 rm -f conftest.$ac_objext
13192 if { (ac_try="$ac_compile"
13193 case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13196 esac
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_compile") 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } && {
13205 test -z "$ac_c_werror_flag" ||
13206 test ! -s conftest.err
13207 } && test -s conftest.$ac_objext; then
13208 ac_lo=0 ac_mid=0
13209 while :; do
13210 cat >conftest.$ac_ext <<_ACEOF
13211 /* confdefs.h. */
13212 _ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13216 $ac_includes_default
13217 typedef size_t ac__type_sizeof_;
13219 main ()
13221 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13222 test_array [0] = 0
13225 return 0;
13227 _ACEOF
13228 rm -f conftest.$ac_objext
13229 if { (ac_try="$ac_compile"
13230 case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_compile") 2>conftest.er1
13236 ac_status=$?
13237 grep -v '^ *+' conftest.er1 >conftest.err
13238 rm -f conftest.er1
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } && {
13242 test -z "$ac_c_werror_flag" ||
13243 test ! -s conftest.err
13244 } && test -s conftest.$ac_objext; then
13245 ac_hi=$ac_mid; break
13246 else
13247 echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13250 ac_lo=`expr $ac_mid + 1`
13251 if test $ac_lo -le $ac_mid; then
13252 ac_lo= ac_hi=
13253 break
13255 ac_mid=`expr 2 '*' $ac_mid + 1`
13258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13259 done
13260 else
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13264 cat >conftest.$ac_ext <<_ACEOF
13265 /* confdefs.h. */
13266 _ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 $ac_includes_default
13271 typedef size_t ac__type_sizeof_;
13273 main ()
13275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13276 test_array [0] = 0
13279 return 0;
13281 _ACEOF
13282 rm -f conftest.$ac_objext
13283 if { (ac_try="$ac_compile"
13284 case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13287 esac
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_compile") 2>conftest.er1
13290 ac_status=$?
13291 grep -v '^ *+' conftest.er1 >conftest.err
13292 rm -f conftest.er1
13293 cat conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } && {
13296 test -z "$ac_c_werror_flag" ||
13297 test ! -s conftest.err
13298 } && test -s conftest.$ac_objext; then
13299 ac_hi=-1 ac_mid=-1
13300 while :; do
13301 cat >conftest.$ac_ext <<_ACEOF
13302 /* confdefs.h. */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 $ac_includes_default
13308 typedef size_t ac__type_sizeof_;
13310 main ()
13312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13313 test_array [0] = 0
13316 return 0;
13318 _ACEOF
13319 rm -f conftest.$ac_objext
13320 if { (ac_try="$ac_compile"
13321 case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13324 esac
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_compile") 2>conftest.er1
13327 ac_status=$?
13328 grep -v '^ *+' conftest.er1 >conftest.err
13329 rm -f conftest.er1
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } && {
13333 test -z "$ac_c_werror_flag" ||
13334 test ! -s conftest.err
13335 } && test -s conftest.$ac_objext; then
13336 ac_lo=$ac_mid; break
13337 else
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 ac_hi=`expr '(' $ac_mid ')' - 1`
13342 if test $ac_mid -le $ac_hi; then
13343 ac_lo= ac_hi=
13344 break
13346 ac_mid=`expr 2 '*' $ac_mid`
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 done
13351 else
13352 echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13355 ac_lo= ac_hi=
13358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13362 # Binary search between lo and hi bounds.
13363 while test "x$ac_lo" != "x$ac_hi"; do
13364 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h. */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371 $ac_includes_default
13372 typedef size_t ac__type_sizeof_;
13374 main ()
13376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13377 test_array [0] = 0
13380 return 0;
13382 _ACEOF
13383 rm -f conftest.$ac_objext
13384 if { (ac_try="$ac_compile"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13388 esac
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_compile") 2>conftest.er1
13391 ac_status=$?
13392 grep -v '^ *+' conftest.er1 >conftest.err
13393 rm -f conftest.er1
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } && {
13397 test -z "$ac_c_werror_flag" ||
13398 test ! -s conftest.err
13399 } && test -s conftest.$ac_objext; then
13400 ac_hi=$ac_mid
13401 else
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 ac_lo=`expr '(' $ac_mid ')' + 1`
13408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409 done
13410 case $ac_lo in
13411 ?*) ac_cv_sizeof_size_t=$ac_lo;;
13412 '') if test "$ac_cv_type_size_t" = yes; then
13413 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
13414 See \`config.log' for more details." >&5
13415 echo "$as_me: error: cannot compute sizeof (size_t)
13416 See \`config.log' for more details." >&2;}
13417 { (exit 77); exit 77; }; }
13418 else
13419 ac_cv_sizeof_size_t=0
13420 fi ;;
13421 esac
13422 else
13423 cat >conftest.$ac_ext <<_ACEOF
13424 /* confdefs.h. */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429 $ac_includes_default
13430 typedef size_t ac__type_sizeof_;
13431 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13432 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13433 #include <stdio.h>
13434 #include <stdlib.h>
13436 main ()
13439 FILE *f = fopen ("conftest.val", "w");
13440 if (! f)
13441 return 1;
13442 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13444 long int i = longval ();
13445 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13446 return 1;
13447 fprintf (f, "%ld\n", i);
13449 else
13451 unsigned long int i = ulongval ();
13452 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13453 return 1;
13454 fprintf (f, "%lu\n", i);
13456 return ferror (f) || fclose (f) != 0;
13459 return 0;
13461 _ACEOF
13462 rm -f conftest$ac_exeext
13463 if { (ac_try="$ac_link"
13464 case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_link") 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13473 { (case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13476 esac
13477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478 (eval "$ac_try") 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482 ac_cv_sizeof_size_t=`cat conftest.val`
13483 else
13484 echo "$as_me: program exited with status $ac_status" >&5
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 ( exit $ac_status )
13489 if test "$ac_cv_type_size_t" = yes; then
13490 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
13491 See \`config.log' for more details." >&5
13492 echo "$as_me: error: cannot compute sizeof (size_t)
13493 See \`config.log' for more details." >&2;}
13494 { (exit 77); exit 77; }; }
13495 else
13496 ac_cv_sizeof_size_t=0
13499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13501 rm -f conftest.val
13503 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
13504 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
13508 cat >>confdefs.h <<_ACEOF
13509 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13510 _ACEOF
13515 # Check for type alignments
13519 { echo "$as_me:$LINENO: checking alignment of char" >&5
13520 echo $ECHO_N "checking alignment of char... $ECHO_C" >&6; }
13521 if test "${ompi_cv_c_align_char+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524 if test "$cross_compiling" = yes; then
13525 # cross compile - do a non-executable test. Trick
13526 # taken from the Autoconf 2.59c. Switch to using
13527 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
13528 if test "$cross_compiling" = yes; then
13529 # Depending upon the size, compute the lo and hi bounds.
13530 cat >conftest.$ac_ext <<_ACEOF
13531 /* confdefs.h. */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13536 $ac_includes_default
13537 #ifndef offsetof
13538 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13539 #endif
13540 typedef struct { char x; char y; } ompi__type_alignof_;
13543 main ()
13545 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
13546 test_array [0] = 0
13549 return 0;
13551 _ACEOF
13552 rm -f conftest.$ac_objext
13553 if { (ac_try="$ac_compile"
13554 case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13557 esac
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_compile") 2>conftest.er1
13560 ac_status=$?
13561 grep -v '^ *+' conftest.er1 >conftest.err
13562 rm -f conftest.er1
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } && {
13566 test -z "$ac_c_werror_flag" ||
13567 test ! -s conftest.err
13568 } && test -s conftest.$ac_objext; then
13569 ac_lo=0 ac_mid=0
13570 while :; do
13571 cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h. */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13577 $ac_includes_default
13578 #ifndef offsetof
13579 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13580 #endif
13581 typedef struct { char x; char y; } ompi__type_alignof_;
13584 main ()
13586 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
13587 test_array [0] = 0
13590 return 0;
13592 _ACEOF
13593 rm -f conftest.$ac_objext
13594 if { (ac_try="$ac_compile"
13595 case "(($ac_try" in
13596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13597 *) ac_try_echo=$ac_try;;
13598 esac
13599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13600 (eval "$ac_compile") 2>conftest.er1
13601 ac_status=$?
13602 grep -v '^ *+' conftest.er1 >conftest.err
13603 rm -f conftest.er1
13604 cat conftest.err >&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } && {
13607 test -z "$ac_c_werror_flag" ||
13608 test ! -s conftest.err
13609 } && test -s conftest.$ac_objext; then
13610 ac_hi=$ac_mid; break
13611 else
13612 echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13615 ac_lo=`expr $ac_mid + 1`
13616 if test $ac_lo -le $ac_mid; then
13617 ac_lo= ac_hi=
13618 break
13620 ac_mid=`expr 2 '*' $ac_mid + 1`
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 done
13625 else
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13629 cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h. */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 $ac_includes_default
13636 #ifndef offsetof
13637 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13638 #endif
13639 typedef struct { char x; char y; } ompi__type_alignof_;
13642 main ()
13644 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
13645 test_array [0] = 0
13648 return 0;
13650 _ACEOF
13651 rm -f conftest.$ac_objext
13652 if { (ac_try="$ac_compile"
13653 case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13656 esac
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_compile") 2>conftest.er1
13659 ac_status=$?
13660 grep -v '^ *+' conftest.er1 >conftest.err
13661 rm -f conftest.er1
13662 cat conftest.err >&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } && {
13665 test -z "$ac_c_werror_flag" ||
13666 test ! -s conftest.err
13667 } && test -s conftest.$ac_objext; then
13668 ac_hi=-1 ac_mid=-1
13669 while :; do
13670 cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h. */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 $ac_includes_default
13677 #ifndef offsetof
13678 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13679 #endif
13680 typedef struct { char x; char y; } ompi__type_alignof_;
13683 main ()
13685 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
13686 test_array [0] = 0
13689 return 0;
13691 _ACEOF
13692 rm -f conftest.$ac_objext
13693 if { (ac_try="$ac_compile"
13694 case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13697 esac
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_compile") 2>conftest.er1
13700 ac_status=$?
13701 grep -v '^ *+' conftest.er1 >conftest.err
13702 rm -f conftest.er1
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } && {
13706 test -z "$ac_c_werror_flag" ||
13707 test ! -s conftest.err
13708 } && test -s conftest.$ac_objext; then
13709 ac_lo=$ac_mid; break
13710 else
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ac_hi=`expr '(' $ac_mid ')' - 1`
13715 if test $ac_mid -le $ac_hi; then
13716 ac_lo= ac_hi=
13717 break
13719 ac_mid=`expr 2 '*' $ac_mid`
13722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13723 done
13724 else
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13728 ac_lo= ac_hi=
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 # Binary search between lo and hi bounds.
13736 while test "x$ac_lo" != "x$ac_hi"; do
13737 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13738 cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h. */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13744 $ac_includes_default
13745 #ifndef offsetof
13746 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13747 #endif
13748 typedef struct { char x; char y; } ompi__type_alignof_;
13751 main ()
13753 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
13754 test_array [0] = 0
13757 return 0;
13759 _ACEOF
13760 rm -f conftest.$ac_objext
13761 if { (ac_try="$ac_compile"
13762 case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13765 esac
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_compile") 2>conftest.er1
13768 ac_status=$?
13769 grep -v '^ *+' conftest.er1 >conftest.err
13770 rm -f conftest.er1
13771 cat conftest.err >&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } && {
13774 test -z "$ac_c_werror_flag" ||
13775 test ! -s conftest.err
13776 } && test -s conftest.$ac_objext; then
13777 ac_hi=$ac_mid
13778 else
13779 echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13782 ac_lo=`expr '(' $ac_mid ')' + 1`
13785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13786 done
13787 case $ac_lo in
13788 ?*) ompi_cv_c_align_char=$ac_lo;;
13789 '') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
13790 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
13791 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
13792 echo "$as_me: WARNING: *** See config.log for details." >&2;}
13793 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
13794 echo "$as_me: error: *** Cannot continue." >&2;}
13795 { (exit 1); exit 1; }; } ;;
13796 esac
13797 else
13798 cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h. */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13804 $ac_includes_default
13805 #ifndef offsetof
13806 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13807 #endif
13808 typedef struct { char x; char y; } ompi__type_alignof_;
13810 static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
13811 static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
13812 #include <stdio.h>
13813 #include <stdlib.h>
13815 main ()
13818 FILE *f = fopen ("conftest.val", "w");
13819 if (! f)
13820 return 1;
13821 if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
13823 long int i = longval ();
13824 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
13825 return 1;
13826 fprintf (f, "%ld\n", i);
13828 else
13830 unsigned long int i = ulongval ();
13831 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
13832 return 1;
13833 fprintf (f, "%lu\n", i);
13835 return ferror (f) || fclose (f) != 0;
13838 return 0;
13840 _ACEOF
13841 rm -f conftest$ac_exeext
13842 if { (ac_try="$ac_link"
13843 case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13846 esac
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_link") 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855 esac
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ompi_cv_c_align_char=`cat conftest.val`
13862 else
13863 echo "$as_me: program exited with status $ac_status" >&5
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13867 ( exit $ac_status )
13868 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
13869 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
13870 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
13871 echo "$as_me: WARNING: *** See config.log for details." >&2;}
13872 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
13873 echo "$as_me: error: *** Cannot continue." >&2;}
13874 { (exit 1); exit 1; }; }
13876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13878 rm -f conftest.val
13880 else
13881 cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h. */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13888 #include <stddef.h>
13889 #include <stdio.h>
13890 #include <stdlib.h>
13891 struct foo { char c; char x; };
13892 int main(int argc, char* argv[])
13894 struct foo *p = (struct foo *) malloc(sizeof(struct foo));
13895 int diff;
13896 FILE *f=fopen("conftestval", "w");
13897 if (!f) exit(1);
13898 diff = ((char *)&p->x) - ((char *)&p->c);
13899 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
13900 return 0;
13902 _ACEOF
13903 rm -f conftest$ac_exeext
13904 if { (ac_try="$ac_link"
13905 case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13908 esac
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_link") 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13914 { (case "(($ac_try" in
13915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916 *) ac_try_echo=$ac_try;;
13917 esac
13918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_try") 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }; then
13923 ompi_cv_c_align_char=`cat conftestval`
13924 else
13925 echo "$as_me: program exited with status $ac_status" >&5
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 ( exit $ac_status )
13930 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
13931 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
13932 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
13933 echo "$as_me: WARNING: *** See config.log for details." >&2;}
13934 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
13935 echo "$as_me: error: *** Cannot continue." >&2;}
13936 { (exit 1); exit 1; }; }
13938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13943 { echo "$as_me:$LINENO: result: $ompi_cv_c_align_char" >&5
13944 echo "${ECHO_T}$ompi_cv_c_align_char" >&6; }
13947 cat >>confdefs.h <<_ACEOF
13948 #define OMPI_ALIGNMENT_CHAR $ompi_cv_c_align_char
13949 _ACEOF
13951 eval "OMPI_ALIGNMENT_CHAR=$ompi_cv_c_align_char"
13953 /bin/rm -f conftest*
13955 { echo "$as_me:$LINENO: checking alignment of short" >&5
13956 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
13957 if test "${ompi_cv_c_align_short+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13960 if test "$cross_compiling" = yes; then
13961 # cross compile - do a non-executable test. Trick
13962 # taken from the Autoconf 2.59c. Switch to using
13963 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
13964 if test "$cross_compiling" = yes; then
13965 # Depending upon the size, compute the lo and hi bounds.
13966 cat >conftest.$ac_ext <<_ACEOF
13967 /* confdefs.h. */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 $ac_includes_default
13973 #ifndef offsetof
13974 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13975 #endif
13976 typedef struct { char x; short y; } ompi__type_alignof_;
13979 main ()
13981 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
13982 test_array [0] = 0
13985 return 0;
13987 _ACEOF
13988 rm -f conftest.$ac_objext
13989 if { (ac_try="$ac_compile"
13990 case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13993 esac
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995 (eval "$ac_compile") 2>conftest.er1
13996 ac_status=$?
13997 grep -v '^ *+' conftest.er1 >conftest.err
13998 rm -f conftest.er1
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } && {
14002 test -z "$ac_c_werror_flag" ||
14003 test ! -s conftest.err
14004 } && test -s conftest.$ac_objext; then
14005 ac_lo=0 ac_mid=0
14006 while :; do
14007 cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h. */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 $ac_includes_default
14014 #ifndef offsetof
14015 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14016 #endif
14017 typedef struct { char x; short y; } ompi__type_alignof_;
14020 main ()
14022 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
14023 test_array [0] = 0
14026 return 0;
14028 _ACEOF
14029 rm -f conftest.$ac_objext
14030 if { (ac_try="$ac_compile"
14031 case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_compile") 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest.$ac_objext; then
14046 ac_hi=$ac_mid; break
14047 else
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14051 ac_lo=`expr $ac_mid + 1`
14052 if test $ac_lo -le $ac_mid; then
14053 ac_lo= ac_hi=
14054 break
14056 ac_mid=`expr 2 '*' $ac_mid + 1`
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060 done
14061 else
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14065 cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h. */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14071 $ac_includes_default
14072 #ifndef offsetof
14073 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14074 #endif
14075 typedef struct { char x; short y; } ompi__type_alignof_;
14078 main ()
14080 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
14081 test_array [0] = 0
14084 return 0;
14086 _ACEOF
14087 rm -f conftest.$ac_objext
14088 if { (ac_try="$ac_compile"
14089 case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14092 esac
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_compile") 2>conftest.er1
14095 ac_status=$?
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && {
14101 test -z "$ac_c_werror_flag" ||
14102 test ! -s conftest.err
14103 } && test -s conftest.$ac_objext; then
14104 ac_hi=-1 ac_mid=-1
14105 while :; do
14106 cat >conftest.$ac_ext <<_ACEOF
14107 /* confdefs.h. */
14108 _ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14112 $ac_includes_default
14113 #ifndef offsetof
14114 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14115 #endif
14116 typedef struct { char x; short y; } ompi__type_alignof_;
14119 main ()
14121 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
14122 test_array [0] = 0
14125 return 0;
14127 _ACEOF
14128 rm -f conftest.$ac_objext
14129 if { (ac_try="$ac_compile"
14130 case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14133 esac
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_compile") 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } && {
14142 test -z "$ac_c_werror_flag" ||
14143 test ! -s conftest.err
14144 } && test -s conftest.$ac_objext; then
14145 ac_lo=$ac_mid; break
14146 else
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14150 ac_hi=`expr '(' $ac_mid ')' - 1`
14151 if test $ac_mid -le $ac_hi; then
14152 ac_lo= ac_hi=
14153 break
14155 ac_mid=`expr 2 '*' $ac_mid`
14158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14159 done
14160 else
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14164 ac_lo= ac_hi=
14167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171 # Binary search between lo and hi bounds.
14172 while test "x$ac_lo" != "x$ac_hi"; do
14173 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14174 cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h. */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180 $ac_includes_default
14181 #ifndef offsetof
14182 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14183 #endif
14184 typedef struct { char x; short y; } ompi__type_alignof_;
14187 main ()
14189 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
14190 test_array [0] = 0
14193 return 0;
14195 _ACEOF
14196 rm -f conftest.$ac_objext
14197 if { (ac_try="$ac_compile"
14198 case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14201 esac
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_compile") 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } && {
14210 test -z "$ac_c_werror_flag" ||
14211 test ! -s conftest.err
14212 } && test -s conftest.$ac_objext; then
14213 ac_hi=$ac_mid
14214 else
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14218 ac_lo=`expr '(' $ac_mid ')' + 1`
14221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222 done
14223 case $ac_lo in
14224 ?*) ompi_cv_c_align_short=$ac_lo;;
14225 '') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
14226 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
14227 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
14228 echo "$as_me: WARNING: *** See config.log for details." >&2;}
14229 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
14230 echo "$as_me: error: *** Cannot continue." >&2;}
14231 { (exit 1); exit 1; }; } ;;
14232 esac
14233 else
14234 cat >conftest.$ac_ext <<_ACEOF
14235 /* confdefs.h. */
14236 _ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h. */
14240 $ac_includes_default
14241 #ifndef offsetof
14242 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14243 #endif
14244 typedef struct { char x; short y; } ompi__type_alignof_;
14246 static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
14247 static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
14248 #include <stdio.h>
14249 #include <stdlib.h>
14251 main ()
14254 FILE *f = fopen ("conftest.val", "w");
14255 if (! f)
14256 return 1;
14257 if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
14259 long int i = longval ();
14260 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
14261 return 1;
14262 fprintf (f, "%ld\n", i);
14264 else
14266 unsigned long int i = ulongval ();
14267 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
14268 return 1;
14269 fprintf (f, "%lu\n", i);
14271 return ferror (f) || fclose (f) != 0;
14274 return 0;
14276 _ACEOF
14277 rm -f conftest$ac_exeext
14278 if { (ac_try="$ac_link"
14279 case "(($ac_try" in
14280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281 *) ac_try_echo=$ac_try;;
14282 esac
14283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14284 (eval "$ac_link") 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14288 { (case "(($ac_try" in
14289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290 *) ac_try_echo=$ac_try;;
14291 esac
14292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14293 (eval "$ac_try") 2>&5
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 ompi_cv_c_align_short=`cat conftest.val`
14298 else
14299 echo "$as_me: program exited with status $ac_status" >&5
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14303 ( exit $ac_status )
14304 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
14305 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
14306 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
14307 echo "$as_me: WARNING: *** See config.log for details." >&2;}
14308 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
14309 echo "$as_me: error: *** Cannot continue." >&2;}
14310 { (exit 1); exit 1; }; }
14312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14314 rm -f conftest.val
14316 else
14317 cat >conftest.$ac_ext <<_ACEOF
14318 /* confdefs.h. */
14319 _ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14324 #include <stddef.h>
14325 #include <stdio.h>
14326 #include <stdlib.h>
14327 struct foo { char c; short x; };
14328 int main(int argc, char* argv[])
14330 struct foo *p = (struct foo *) malloc(sizeof(struct foo));
14331 int diff;
14332 FILE *f=fopen("conftestval", "w");
14333 if (!f) exit(1);
14334 diff = ((char *)&p->x) - ((char *)&p->c);
14335 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
14336 return 0;
14338 _ACEOF
14339 rm -f conftest$ac_exeext
14340 if { (ac_try="$ac_link"
14341 case "(($ac_try" in
14342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343 *) ac_try_echo=$ac_try;;
14344 esac
14345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346 (eval "$ac_link") 2>&5
14347 ac_status=$?
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14350 { (case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14353 esac
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_try") 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 ompi_cv_c_align_short=`cat conftestval`
14360 else
14361 echo "$as_me: program exited with status $ac_status" >&5
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14365 ( exit $ac_status )
14366 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
14367 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
14368 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
14369 echo "$as_me: WARNING: *** See config.log for details." >&2;}
14370 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
14371 echo "$as_me: error: *** Cannot continue." >&2;}
14372 { (exit 1); exit 1; }; }
14374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14379 { echo "$as_me:$LINENO: result: $ompi_cv_c_align_short" >&5
14380 echo "${ECHO_T}$ompi_cv_c_align_short" >&6; }
14383 cat >>confdefs.h <<_ACEOF
14384 #define OMPI_ALIGNMENT_SHORT $ompi_cv_c_align_short
14385 _ACEOF
14387 eval "OMPI_ALIGNMENT_SHORT=$ompi_cv_c_align_short"
14389 /bin/rm -f conftest*
14391 { echo "$as_me:$LINENO: checking alignment of wchar_t" >&5
14392 echo $ECHO_N "checking alignment of wchar_t... $ECHO_C" >&6; }
14393 if test "${ompi_cv_c_align_wchar_t+set}" = set; then
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 else
14396 if test "$cross_compiling" = yes; then
14397 # cross compile - do a non-executable test. Trick
14398 # taken from the Autoconf 2.59c. Switch to using
14399 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
14400 if test "$cross_compiling" = yes; then
14401 # Depending upon the size, compute the lo and hi bounds.
14402 cat >conftest.$ac_ext <<_ACEOF
14403 /* confdefs.h. */
14404 _ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h. */
14408 $ac_includes_default
14409 #ifndef offsetof
14410 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14411 #endif
14412 typedef struct { char x; wchar_t y; } ompi__type_alignof_;
14415 main ()
14417 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
14418 test_array [0] = 0
14421 return 0;
14423 _ACEOF
14424 rm -f conftest.$ac_objext
14425 if { (ac_try="$ac_compile"
14426 case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14429 esac
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_compile") 2>conftest.er1
14432 ac_status=$?
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } && {
14438 test -z "$ac_c_werror_flag" ||
14439 test ! -s conftest.err
14440 } && test -s conftest.$ac_objext; then
14441 ac_lo=0 ac_mid=0
14442 while :; do
14443 cat >conftest.$ac_ext <<_ACEOF
14444 /* confdefs.h. */
14445 _ACEOF
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h. */
14449 $ac_includes_default
14450 #ifndef offsetof
14451 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14452 #endif
14453 typedef struct { char x; wchar_t y; } ompi__type_alignof_;
14456 main ()
14458 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
14459 test_array [0] = 0
14462 return 0;
14464 _ACEOF
14465 rm -f conftest.$ac_objext
14466 if { (ac_try="$ac_compile"
14467 case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14470 esac
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_compile") 2>conftest.er1
14473 ac_status=$?
14474 grep -v '^ *+' conftest.er1 >conftest.err
14475 rm -f conftest.er1
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } && {
14479 test -z "$ac_c_werror_flag" ||
14480 test ! -s conftest.err
14481 } && test -s conftest.$ac_objext; then
14482 ac_hi=$ac_mid; break
14483 else
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 ac_lo=`expr $ac_mid + 1`
14488 if test $ac_lo -le $ac_mid; then
14489 ac_lo= ac_hi=
14490 break
14492 ac_mid=`expr 2 '*' $ac_mid + 1`
14495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496 done
14497 else
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14501 cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h. */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 $ac_includes_default
14508 #ifndef offsetof
14509 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14510 #endif
14511 typedef struct { char x; wchar_t y; } ompi__type_alignof_;
14514 main ()
14516 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
14517 test_array [0] = 0
14520 return 0;
14522 _ACEOF
14523 rm -f conftest.$ac_objext
14524 if { (ac_try="$ac_compile"
14525 case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14528 esac
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_compile") 2>conftest.er1
14531 ac_status=$?
14532 grep -v '^ *+' conftest.er1 >conftest.err
14533 rm -f conftest.er1
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } && {
14537 test -z "$ac_c_werror_flag" ||
14538 test ! -s conftest.err
14539 } && test -s conftest.$ac_objext; then
14540 ac_hi=-1 ac_mid=-1
14541 while :; do
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h. */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 $ac_includes_default
14549 #ifndef offsetof
14550 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14551 #endif
14552 typedef struct { char x; wchar_t y; } ompi__type_alignof_;
14555 main ()
14557 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
14558 test_array [0] = 0
14561 return 0;
14563 _ACEOF
14564 rm -f conftest.$ac_objext
14565 if { (ac_try="$ac_compile"
14566 case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14569 esac
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_compile") 2>conftest.er1
14572 ac_status=$?
14573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_c_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest.$ac_objext; then
14581 ac_lo=$ac_mid; break
14582 else
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 ac_hi=`expr '(' $ac_mid ')' - 1`
14587 if test $ac_mid -le $ac_hi; then
14588 ac_lo= ac_hi=
14589 break
14591 ac_mid=`expr 2 '*' $ac_mid`
14594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14595 done
14596 else
14597 echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14600 ac_lo= ac_hi=
14603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14607 # Binary search between lo and hi bounds.
14608 while test "x$ac_lo" != "x$ac_hi"; do
14609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14610 cat >conftest.$ac_ext <<_ACEOF
14611 /* confdefs.h. */
14612 _ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14616 $ac_includes_default
14617 #ifndef offsetof
14618 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14619 #endif
14620 typedef struct { char x; wchar_t y; } ompi__type_alignof_;
14623 main ()
14625 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
14626 test_array [0] = 0
14629 return 0;
14631 _ACEOF
14632 rm -f conftest.$ac_objext
14633 if { (ac_try="$ac_compile"
14634 case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14637 esac
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_compile") 2>conftest.er1
14640 ac_status=$?
14641 grep -v '^ *+' conftest.er1 >conftest.err
14642 rm -f conftest.er1
14643 cat conftest.err >&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } && {
14646 test -z "$ac_c_werror_flag" ||
14647 test ! -s conftest.err
14648 } && test -s conftest.$ac_objext; then
14649 ac_hi=$ac_mid
14650 else
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 ac_lo=`expr '(' $ac_mid ')' + 1`
14657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658 done
14659 case $ac_lo in
14660 ?*) ompi_cv_c_align_wchar_t=$ac_lo;;
14661 '') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
14662 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
14664 echo "$as_me: WARNING: *** See config.log for details." >&2;}
14665 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
14666 echo "$as_me: error: *** Cannot continue." >&2;}
14667 { (exit 1); exit 1; }; } ;;
14668 esac
14669 else
14670 cat >conftest.$ac_ext <<_ACEOF
14671 /* confdefs.h. */
14672 _ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 $ac_includes_default
14677 #ifndef offsetof
14678 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14679 #endif
14680 typedef struct { char x; wchar_t y; } ompi__type_alignof_;
14682 static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
14683 static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
14684 #include <stdio.h>
14685 #include <stdlib.h>
14687 main ()
14690 FILE *f = fopen ("conftest.val", "w");
14691 if (! f)
14692 return 1;
14693 if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
14695 long int i = longval ();
14696 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
14697 return 1;
14698 fprintf (f, "%ld\n", i);
14700 else
14702 unsigned long int i = ulongval ();
14703 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
14704 return 1;
14705 fprintf (f, "%lu\n", i);
14707 return ferror (f) || fclose (f) != 0;
14710 return 0;
14712 _ACEOF
14713 rm -f conftest$ac_exeext
14714 if { (ac_try="$ac_link"
14715 case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_link") 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14724 { (case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_try") 2>&5
14730 ac_status=$?
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; }; then
14733 ompi_cv_c_align_wchar_t=`cat conftest.val`
14734 else
14735 echo "$as_me: program exited with status $ac_status" >&5
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14739 ( exit $ac_status )
14740 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
14741 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
14742 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
14743 echo "$as_me: WARNING: *** See config.log for details." >&2;}
14744 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
14745 echo "$as_me: error: *** Cannot continue." >&2;}
14746 { (exit 1); exit 1; }; }
14748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14750 rm -f conftest.val
14752 else
14753 cat >conftest.$ac_ext <<_ACEOF
14754 /* confdefs.h. */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14760 #include <stddef.h>
14761 #include <stdio.h>
14762 #include <stdlib.h>
14763 struct foo { char c; wchar_t x; };
14764 int main(int argc, char* argv[])
14766 struct foo *p = (struct foo *) malloc(sizeof(struct foo));
14767 int diff;
14768 FILE *f=fopen("conftestval", "w");
14769 if (!f) exit(1);
14770 diff = ((char *)&p->x) - ((char *)&p->c);
14771 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
14772 return 0;
14774 _ACEOF
14775 rm -f conftest$ac_exeext
14776 if { (ac_try="$ac_link"
14777 case "(($ac_try" in
14778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779 *) ac_try_echo=$ac_try;;
14780 esac
14781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782 (eval "$ac_link") 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14786 { (case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14789 esac
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_try") 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 ompi_cv_c_align_wchar_t=`cat conftestval`
14796 else
14797 echo "$as_me: program exited with status $ac_status" >&5
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ( exit $ac_status )
14802 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
14803 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
14805 echo "$as_me: WARNING: *** See config.log for details." >&2;}
14806 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
14807 echo "$as_me: error: *** Cannot continue." >&2;}
14808 { (exit 1); exit 1; }; }
14810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14815 { echo "$as_me:$LINENO: result: $ompi_cv_c_align_wchar_t" >&5
14816 echo "${ECHO_T}$ompi_cv_c_align_wchar_t" >&6; }
14819 cat >>confdefs.h <<_ACEOF
14820 #define OMPI_ALIGNMENT_WCHAR $ompi_cv_c_align_wchar_t
14821 _ACEOF
14823 eval "OMPI_ALIGNMENT_WCHAR=$ompi_cv_c_align_wchar_t"
14825 /bin/rm -f conftest*
14827 { echo "$as_me:$LINENO: checking alignment of int" >&5
14828 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
14829 if test "${ompi_cv_c_align_int+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14831 else
14832 if test "$cross_compiling" = yes; then
14833 # cross compile - do a non-executable test. Trick
14834 # taken from the Autoconf 2.59c. Switch to using
14835 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
14836 if test "$cross_compiling" = yes; then
14837 # Depending upon the size, compute the lo and hi bounds.
14838 cat >conftest.$ac_ext <<_ACEOF
14839 /* confdefs.h. */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14844 $ac_includes_default
14845 #ifndef offsetof
14846 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14847 #endif
14848 typedef struct { char x; int y; } ompi__type_alignof_;
14851 main ()
14853 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
14854 test_array [0] = 0
14857 return 0;
14859 _ACEOF
14860 rm -f conftest.$ac_objext
14861 if { (ac_try="$ac_compile"
14862 case "(($ac_try" in
14863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14865 esac
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_compile") 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } && {
14874 test -z "$ac_c_werror_flag" ||
14875 test ! -s conftest.err
14876 } && test -s conftest.$ac_objext; then
14877 ac_lo=0 ac_mid=0
14878 while :; do
14879 cat >conftest.$ac_ext <<_ACEOF
14880 /* confdefs.h. */
14881 _ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885 $ac_includes_default
14886 #ifndef offsetof
14887 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14888 #endif
14889 typedef struct { char x; int y; } ompi__type_alignof_;
14892 main ()
14894 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
14895 test_array [0] = 0
14898 return 0;
14900 _ACEOF
14901 rm -f conftest.$ac_objext
14902 if { (ac_try="$ac_compile"
14903 case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14906 esac
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_compile") 2>conftest.er1
14909 ac_status=$?
14910 grep -v '^ *+' conftest.er1 >conftest.err
14911 rm -f conftest.er1
14912 cat conftest.err >&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } && {
14915 test -z "$ac_c_werror_flag" ||
14916 test ! -s conftest.err
14917 } && test -s conftest.$ac_objext; then
14918 ac_hi=$ac_mid; break
14919 else
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14923 ac_lo=`expr $ac_mid + 1`
14924 if test $ac_lo -le $ac_mid; then
14925 ac_lo= ac_hi=
14926 break
14928 ac_mid=`expr 2 '*' $ac_mid + 1`
14931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14932 done
14933 else
14934 echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h. */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 $ac_includes_default
14944 #ifndef offsetof
14945 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14946 #endif
14947 typedef struct { char x; int y; } ompi__type_alignof_;
14950 main ()
14952 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
14953 test_array [0] = 0
14956 return 0;
14958 _ACEOF
14959 rm -f conftest.$ac_objext
14960 if { (ac_try="$ac_compile"
14961 case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14964 esac
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_compile") 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } && {
14973 test -z "$ac_c_werror_flag" ||
14974 test ! -s conftest.err
14975 } && test -s conftest.$ac_objext; then
14976 ac_hi=-1 ac_mid=-1
14977 while :; do
14978 cat >conftest.$ac_ext <<_ACEOF
14979 /* confdefs.h. */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 $ac_includes_default
14985 #ifndef offsetof
14986 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14987 #endif
14988 typedef struct { char x; int y; } ompi__type_alignof_;
14991 main ()
14993 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
14994 test_array [0] = 0
14997 return 0;
14999 _ACEOF
15000 rm -f conftest.$ac_objext
15001 if { (ac_try="$ac_compile"
15002 case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15005 esac
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_compile") 2>conftest.er1
15008 ac_status=$?
15009 grep -v '^ *+' conftest.er1 >conftest.err
15010 rm -f conftest.er1
15011 cat conftest.err >&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } && {
15014 test -z "$ac_c_werror_flag" ||
15015 test ! -s conftest.err
15016 } && test -s conftest.$ac_objext; then
15017 ac_lo=$ac_mid; break
15018 else
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 ac_hi=`expr '(' $ac_mid ')' - 1`
15023 if test $ac_mid -le $ac_hi; then
15024 ac_lo= ac_hi=
15025 break
15027 ac_mid=`expr 2 '*' $ac_mid`
15030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15031 done
15032 else
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_lo= ac_hi=
15039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15043 # Binary search between lo and hi bounds.
15044 while test "x$ac_lo" != "x$ac_hi"; do
15045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15046 cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h. */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 $ac_includes_default
15053 #ifndef offsetof
15054 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15055 #endif
15056 typedef struct { char x; int y; } ompi__type_alignof_;
15059 main ()
15061 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
15062 test_array [0] = 0
15065 return 0;
15067 _ACEOF
15068 rm -f conftest.$ac_objext
15069 if { (ac_try="$ac_compile"
15070 case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15073 esac
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_compile") 2>conftest.er1
15076 ac_status=$?
15077 grep -v '^ *+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } && {
15082 test -z "$ac_c_werror_flag" ||
15083 test ! -s conftest.err
15084 } && test -s conftest.$ac_objext; then
15085 ac_hi=$ac_mid
15086 else
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 ac_lo=`expr '(' $ac_mid ')' + 1`
15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094 done
15095 case $ac_lo in
15096 ?*) ompi_cv_c_align_int=$ac_lo;;
15097 '') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
15098 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
15099 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
15100 echo "$as_me: WARNING: *** See config.log for details." >&2;}
15101 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
15102 echo "$as_me: error: *** Cannot continue." >&2;}
15103 { (exit 1); exit 1; }; } ;;
15104 esac
15105 else
15106 cat >conftest.$ac_ext <<_ACEOF
15107 /* confdefs.h. */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15112 $ac_includes_default
15113 #ifndef offsetof
15114 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15115 #endif
15116 typedef struct { char x; int y; } ompi__type_alignof_;
15118 static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
15119 static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
15120 #include <stdio.h>
15121 #include <stdlib.h>
15123 main ()
15126 FILE *f = fopen ("conftest.val", "w");
15127 if (! f)
15128 return 1;
15129 if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
15131 long int i = longval ();
15132 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
15133 return 1;
15134 fprintf (f, "%ld\n", i);
15136 else
15138 unsigned long int i = ulongval ();
15139 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
15140 return 1;
15141 fprintf (f, "%lu\n", i);
15143 return ferror (f) || fclose (f) != 0;
15146 return 0;
15148 _ACEOF
15149 rm -f conftest$ac_exeext
15150 if { (ac_try="$ac_link"
15151 case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15154 esac
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_link") 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15160 { (case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15163 esac
15164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_try") 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 ompi_cv_c_align_int=`cat conftest.val`
15170 else
15171 echo "$as_me: program exited with status $ac_status" >&5
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 ( exit $ac_status )
15176 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
15177 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
15179 echo "$as_me: WARNING: *** See config.log for details." >&2;}
15180 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
15181 echo "$as_me: error: *** Cannot continue." >&2;}
15182 { (exit 1); exit 1; }; }
15184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15186 rm -f conftest.val
15188 else
15189 cat >conftest.$ac_ext <<_ACEOF
15190 /* confdefs.h. */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15196 #include <stddef.h>
15197 #include <stdio.h>
15198 #include <stdlib.h>
15199 struct foo { char c; int x; };
15200 int main(int argc, char* argv[])
15202 struct foo *p = (struct foo *) malloc(sizeof(struct foo));
15203 int diff;
15204 FILE *f=fopen("conftestval", "w");
15205 if (!f) exit(1);
15206 diff = ((char *)&p->x) - ((char *)&p->c);
15207 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
15208 return 0;
15210 _ACEOF
15211 rm -f conftest$ac_exeext
15212 if { (ac_try="$ac_link"
15213 case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216 esac
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_link") 2>&5
15219 ac_status=$?
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15222 { (case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15225 esac
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_try") 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; }; then
15231 ompi_cv_c_align_int=`cat conftestval`
15232 else
15233 echo "$as_me: program exited with status $ac_status" >&5
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 ( exit $ac_status )
15238 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
15239 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
15241 echo "$as_me: WARNING: *** See config.log for details." >&2;}
15242 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
15243 echo "$as_me: error: *** Cannot continue." >&2;}
15244 { (exit 1); exit 1; }; }
15246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15251 { echo "$as_me:$LINENO: result: $ompi_cv_c_align_int" >&5
15252 echo "${ECHO_T}$ompi_cv_c_align_int" >&6; }
15255 cat >>confdefs.h <<_ACEOF
15256 #define OMPI_ALIGNMENT_INT $ompi_cv_c_align_int
15257 _ACEOF
15259 eval "OMPI_ALIGNMENT_INT=$ompi_cv_c_align_int"
15261 /bin/rm -f conftest*
15263 { echo "$as_me:$LINENO: checking alignment of long" >&5
15264 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
15265 if test "${ompi_cv_c_align_long+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15267 else
15268 if test "$cross_compiling" = yes; then
15269 # cross compile - do a non-executable test. Trick
15270 # taken from the Autoconf 2.59c. Switch to using
15271 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
15272 if test "$cross_compiling" = yes; then
15273 # Depending upon the size, compute the lo and hi bounds.
15274 cat >conftest.$ac_ext <<_ACEOF
15275 /* confdefs.h. */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15280 $ac_includes_default
15281 #ifndef offsetof
15282 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15283 #endif
15284 typedef struct { char x; long y; } ompi__type_alignof_;
15287 main ()
15289 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
15290 test_array [0] = 0
15293 return 0;
15295 _ACEOF
15296 rm -f conftest.$ac_objext
15297 if { (ac_try="$ac_compile"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_compile") 2>conftest.er1
15304 ac_status=$?
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } && {
15310 test -z "$ac_c_werror_flag" ||
15311 test ! -s conftest.err
15312 } && test -s conftest.$ac_objext; then
15313 ac_lo=0 ac_mid=0
15314 while :; do
15315 cat >conftest.$ac_ext <<_ACEOF
15316 /* confdefs.h. */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 $ac_includes_default
15322 #ifndef offsetof
15323 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15324 #endif
15325 typedef struct { char x; long y; } ompi__type_alignof_;
15328 main ()
15330 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
15331 test_array [0] = 0
15334 return 0;
15336 _ACEOF
15337 rm -f conftest.$ac_objext
15338 if { (ac_try="$ac_compile"
15339 case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_compile") 2>conftest.er1
15345 ac_status=$?
15346 grep -v '^ *+' conftest.er1 >conftest.err
15347 rm -f conftest.er1
15348 cat conftest.err >&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } && {
15351 test -z "$ac_c_werror_flag" ||
15352 test ! -s conftest.err
15353 } && test -s conftest.$ac_objext; then
15354 ac_hi=$ac_mid; break
15355 else
15356 echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15359 ac_lo=`expr $ac_mid + 1`
15360 if test $ac_lo -le $ac_mid; then
15361 ac_lo= ac_hi=
15362 break
15364 ac_mid=`expr 2 '*' $ac_mid + 1`
15367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15368 done
15369 else
15370 echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15373 cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h. */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 $ac_includes_default
15380 #ifndef offsetof
15381 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15382 #endif
15383 typedef struct { char x; long y; } ompi__type_alignof_;
15386 main ()
15388 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
15389 test_array [0] = 0
15392 return 0;
15394 _ACEOF
15395 rm -f conftest.$ac_objext
15396 if { (ac_try="$ac_compile"
15397 case "(($ac_try" in
15398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399 *) ac_try_echo=$ac_try;;
15400 esac
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402 (eval "$ac_compile") 2>conftest.er1
15403 ac_status=$?
15404 grep -v '^ *+' conftest.er1 >conftest.err
15405 rm -f conftest.er1
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } && {
15409 test -z "$ac_c_werror_flag" ||
15410 test ! -s conftest.err
15411 } && test -s conftest.$ac_objext; then
15412 ac_hi=-1 ac_mid=-1
15413 while :; do
15414 cat >conftest.$ac_ext <<_ACEOF
15415 /* confdefs.h. */
15416 _ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15420 $ac_includes_default
15421 #ifndef offsetof
15422 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15423 #endif
15424 typedef struct { char x; long y; } ompi__type_alignof_;
15427 main ()
15429 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
15430 test_array [0] = 0
15433 return 0;
15435 _ACEOF
15436 rm -f conftest.$ac_objext
15437 if { (ac_try="$ac_compile"
15438 case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441 esac
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_compile") 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } && {
15450 test -z "$ac_c_werror_flag" ||
15451 test ! -s conftest.err
15452 } && test -s conftest.$ac_objext; then
15453 ac_lo=$ac_mid; break
15454 else
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 ac_hi=`expr '(' $ac_mid ')' - 1`
15459 if test $ac_mid -le $ac_hi; then
15460 ac_lo= ac_hi=
15461 break
15463 ac_mid=`expr 2 '*' $ac_mid`
15466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15467 done
15468 else
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_lo= ac_hi=
15475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15479 # Binary search between lo and hi bounds.
15480 while test "x$ac_lo" != "x$ac_hi"; do
15481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15482 cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h. */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488 $ac_includes_default
15489 #ifndef offsetof
15490 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15491 #endif
15492 typedef struct { char x; long y; } ompi__type_alignof_;
15495 main ()
15497 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
15498 test_array [0] = 0
15501 return 0;
15503 _ACEOF
15504 rm -f conftest.$ac_objext
15505 if { (ac_try="$ac_compile"
15506 case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15509 esac
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_compile") 2>conftest.er1
15512 ac_status=$?
15513 grep -v '^ *+' conftest.er1 >conftest.err
15514 rm -f conftest.er1
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest.$ac_objext; then
15521 ac_hi=$ac_mid
15522 else
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_lo=`expr '(' $ac_mid ')' + 1`
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 done
15531 case $ac_lo in
15532 ?*) ompi_cv_c_align_long=$ac_lo;;
15533 '') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
15534 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
15536 echo "$as_me: WARNING: *** See config.log for details." >&2;}
15537 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
15538 echo "$as_me: error: *** Cannot continue." >&2;}
15539 { (exit 1); exit 1; }; } ;;
15540 esac
15541 else
15542 cat >conftest.$ac_ext <<_ACEOF
15543 /* confdefs.h. */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15548 $ac_includes_default
15549 #ifndef offsetof
15550 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15551 #endif
15552 typedef struct { char x; long y; } ompi__type_alignof_;
15554 static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
15555 static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
15556 #include <stdio.h>
15557 #include <stdlib.h>
15559 main ()
15562 FILE *f = fopen ("conftest.val", "w");
15563 if (! f)
15564 return 1;
15565 if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
15567 long int i = longval ();
15568 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
15569 return 1;
15570 fprintf (f, "%ld\n", i);
15572 else
15574 unsigned long int i = ulongval ();
15575 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
15576 return 1;
15577 fprintf (f, "%lu\n", i);
15579 return ferror (f) || fclose (f) != 0;
15582 return 0;
15584 _ACEOF
15585 rm -f conftest$ac_exeext
15586 if { (ac_try="$ac_link"
15587 case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15590 esac
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_link") 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15596 { (case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15599 esac
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_try") 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; }; then
15605 ompi_cv_c_align_long=`cat conftest.val`
15606 else
15607 echo "$as_me: program exited with status $ac_status" >&5
15608 echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15611 ( exit $ac_status )
15612 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
15613 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
15615 echo "$as_me: WARNING: *** See config.log for details." >&2;}
15616 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
15617 echo "$as_me: error: *** Cannot continue." >&2;}
15618 { (exit 1); exit 1; }; }
15620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15622 rm -f conftest.val
15624 else
15625 cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h. */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15632 #include <stddef.h>
15633 #include <stdio.h>
15634 #include <stdlib.h>
15635 struct foo { char c; long x; };
15636 int main(int argc, char* argv[])
15638 struct foo *p = (struct foo *) malloc(sizeof(struct foo));
15639 int diff;
15640 FILE *f=fopen("conftestval", "w");
15641 if (!f) exit(1);
15642 diff = ((char *)&p->x) - ((char *)&p->c);
15643 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
15644 return 0;
15646 _ACEOF
15647 rm -f conftest$ac_exeext
15648 if { (ac_try="$ac_link"
15649 case "(($ac_try" in
15650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651 *) ac_try_echo=$ac_try;;
15652 esac
15653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654 (eval "$ac_link") 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15658 { (case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15661 esac
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_try") 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15667 ompi_cv_c_align_long=`cat conftestval`
15668 else
15669 echo "$as_me: program exited with status $ac_status" >&5
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 ( exit $ac_status )
15674 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
15675 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
15676 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
15677 echo "$as_me: WARNING: *** See config.log for details." >&2;}
15678 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
15679 echo "$as_me: error: *** Cannot continue." >&2;}
15680 { (exit 1); exit 1; }; }
15682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15687 { echo "$as_me:$LINENO: result: $ompi_cv_c_align_long" >&5
15688 echo "${ECHO_T}$ompi_cv_c_align_long" >&6; }
15691 cat >>confdefs.h <<_ACEOF
15692 #define OMPI_ALIGNMENT_LONG $ompi_cv_c_align_long
15693 _ACEOF
15695 eval "OMPI_ALIGNMENT_LONG=$ompi_cv_c_align_long"
15697 /bin/rm -f conftest*
15698 if test $ac_cv_type_long_long = yes; then
15700 { echo "$as_me:$LINENO: checking alignment of long long" >&5
15701 echo $ECHO_N "checking alignment of long long... $ECHO_C" >&6; }
15702 if test "${ompi_cv_c_align_long_long+set}" = set; then
15703 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 else
15705 if test "$cross_compiling" = yes; then
15706 # cross compile - do a non-executable test. Trick
15707 # taken from the Autoconf 2.59c. Switch to using
15708 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
15709 if test "$cross_compiling" = yes; then
15710 # Depending upon the size, compute the lo and hi bounds.
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h. */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 $ac_includes_default
15718 #ifndef offsetof
15719 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15720 #endif
15721 typedef struct { char x; long long y; } ompi__type_alignof_;
15724 main ()
15726 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
15727 test_array [0] = 0
15730 return 0;
15732 _ACEOF
15733 rm -f conftest.$ac_objext
15734 if { (ac_try="$ac_compile"
15735 case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15738 esac
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_compile") 2>conftest.er1
15741 ac_status=$?
15742 grep -v '^ *+' conftest.er1 >conftest.err
15743 rm -f conftest.er1
15744 cat conftest.err >&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } && {
15747 test -z "$ac_c_werror_flag" ||
15748 test ! -s conftest.err
15749 } && test -s conftest.$ac_objext; then
15750 ac_lo=0 ac_mid=0
15751 while :; do
15752 cat >conftest.$ac_ext <<_ACEOF
15753 /* confdefs.h. */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 $ac_includes_default
15759 #ifndef offsetof
15760 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15761 #endif
15762 typedef struct { char x; long long y; } ompi__type_alignof_;
15765 main ()
15767 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
15768 test_array [0] = 0
15771 return 0;
15773 _ACEOF
15774 rm -f conftest.$ac_objext
15775 if { (ac_try="$ac_compile"
15776 case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15779 esac
15780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_compile") 2>conftest.er1
15782 ac_status=$?
15783 grep -v '^ *+' conftest.er1 >conftest.err
15784 rm -f conftest.er1
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } && {
15788 test -z "$ac_c_werror_flag" ||
15789 test ! -s conftest.err
15790 } && test -s conftest.$ac_objext; then
15791 ac_hi=$ac_mid; break
15792 else
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15796 ac_lo=`expr $ac_mid + 1`
15797 if test $ac_lo -le $ac_mid; then
15798 ac_lo= ac_hi=
15799 break
15801 ac_mid=`expr 2 '*' $ac_mid + 1`
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15805 done
15806 else
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15810 cat >conftest.$ac_ext <<_ACEOF
15811 /* confdefs.h. */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 $ac_includes_default
15817 #ifndef offsetof
15818 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15819 #endif
15820 typedef struct { char x; long long y; } ompi__type_alignof_;
15823 main ()
15825 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
15826 test_array [0] = 0
15829 return 0;
15831 _ACEOF
15832 rm -f conftest.$ac_objext
15833 if { (ac_try="$ac_compile"
15834 case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_compile") 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } && {
15846 test -z "$ac_c_werror_flag" ||
15847 test ! -s conftest.err
15848 } && test -s conftest.$ac_objext; then
15849 ac_hi=-1 ac_mid=-1
15850 while :; do
15851 cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h. */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 $ac_includes_default
15858 #ifndef offsetof
15859 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15860 #endif
15861 typedef struct { char x; long long y; } ompi__type_alignof_;
15864 main ()
15866 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
15867 test_array [0] = 0
15870 return 0;
15872 _ACEOF
15873 rm -f conftest.$ac_objext
15874 if { (ac_try="$ac_compile"
15875 case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15878 esac
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_compile") 2>conftest.er1
15881 ac_status=$?
15882 grep -v '^ *+' conftest.er1 >conftest.err
15883 rm -f conftest.er1
15884 cat conftest.err >&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } && {
15887 test -z "$ac_c_werror_flag" ||
15888 test ! -s conftest.err
15889 } && test -s conftest.$ac_objext; then
15890 ac_lo=$ac_mid; break
15891 else
15892 echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15895 ac_hi=`expr '(' $ac_mid ')' - 1`
15896 if test $ac_mid -le $ac_hi; then
15897 ac_lo= ac_hi=
15898 break
15900 ac_mid=`expr 2 '*' $ac_mid`
15903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 done
15905 else
15906 echo "$as_me: failed program was:" >&5
15907 sed 's/^/| /' conftest.$ac_ext >&5
15909 ac_lo= ac_hi=
15912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15916 # Binary search between lo and hi bounds.
15917 while test "x$ac_lo" != "x$ac_hi"; do
15918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15919 cat >conftest.$ac_ext <<_ACEOF
15920 /* confdefs.h. */
15921 _ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 $ac_includes_default
15926 #ifndef offsetof
15927 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15928 #endif
15929 typedef struct { char x; long long y; } ompi__type_alignof_;
15932 main ()
15934 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
15935 test_array [0] = 0
15938 return 0;
15940 _ACEOF
15941 rm -f conftest.$ac_objext
15942 if { (ac_try="$ac_compile"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15946 esac
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_compile") 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } && {
15955 test -z "$ac_c_werror_flag" ||
15956 test ! -s conftest.err
15957 } && test -s conftest.$ac_objext; then
15958 ac_hi=$ac_mid
15959 else
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 ac_lo=`expr '(' $ac_mid ')' + 1`
15966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15967 done
15968 case $ac_lo in
15969 ?*) ompi_cv_c_align_long_long=$ac_lo;;
15970 '') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
15971 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
15973 echo "$as_me: WARNING: *** See config.log for details." >&2;}
15974 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
15975 echo "$as_me: error: *** Cannot continue." >&2;}
15976 { (exit 1); exit 1; }; } ;;
15977 esac
15978 else
15979 cat >conftest.$ac_ext <<_ACEOF
15980 /* confdefs.h. */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15985 $ac_includes_default
15986 #ifndef offsetof
15987 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15988 #endif
15989 typedef struct { char x; long long y; } ompi__type_alignof_;
15991 static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
15992 static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
15993 #include <stdio.h>
15994 #include <stdlib.h>
15996 main ()
15999 FILE *f = fopen ("conftest.val", "w");
16000 if (! f)
16001 return 1;
16002 if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
16004 long int i = longval ();
16005 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
16006 return 1;
16007 fprintf (f, "%ld\n", i);
16009 else
16011 unsigned long int i = ulongval ();
16012 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
16013 return 1;
16014 fprintf (f, "%lu\n", i);
16016 return ferror (f) || fclose (f) != 0;
16019 return 0;
16021 _ACEOF
16022 rm -f conftest$ac_exeext
16023 if { (ac_try="$ac_link"
16024 case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16027 esac
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_link") 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16033 { (case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036 esac
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_try") 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 ompi_cv_c_align_long_long=`cat conftest.val`
16043 else
16044 echo "$as_me: program exited with status $ac_status" >&5
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16048 ( exit $ac_status )
16049 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
16050 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
16052 echo "$as_me: WARNING: *** See config.log for details." >&2;}
16053 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
16054 echo "$as_me: error: *** Cannot continue." >&2;}
16055 { (exit 1); exit 1; }; }
16057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16059 rm -f conftest.val
16061 else
16062 cat >conftest.$ac_ext <<_ACEOF
16063 /* confdefs.h. */
16064 _ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16069 #include <stddef.h>
16070 #include <stdio.h>
16071 #include <stdlib.h>
16072 struct foo { char c; long long x; };
16073 int main(int argc, char* argv[])
16075 struct foo *p = (struct foo *) malloc(sizeof(struct foo));
16076 int diff;
16077 FILE *f=fopen("conftestval", "w");
16078 if (!f) exit(1);
16079 diff = ((char *)&p->x) - ((char *)&p->c);
16080 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
16081 return 0;
16083 _ACEOF
16084 rm -f conftest$ac_exeext
16085 if { (ac_try="$ac_link"
16086 case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16089 esac
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_link") 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16095 { (case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16098 esac
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100 (eval "$ac_try") 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16104 ompi_cv_c_align_long_long=`cat conftestval`
16105 else
16106 echo "$as_me: program exited with status $ac_status" >&5
16107 echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16110 ( exit $ac_status )
16111 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
16112 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
16114 echo "$as_me: WARNING: *** See config.log for details." >&2;}
16115 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
16116 echo "$as_me: error: *** Cannot continue." >&2;}
16117 { (exit 1); exit 1; }; }
16119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16124 { echo "$as_me:$LINENO: result: $ompi_cv_c_align_long_long" >&5
16125 echo "${ECHO_T}$ompi_cv_c_align_long_long" >&6; }
16128 cat >>confdefs.h <<_ACEOF
16129 #define OMPI_ALIGNMENT_LONG_LONG $ompi_cv_c_align_long_long
16130 _ACEOF
16132 eval "OMPI_ALIGNMENT_LONG_LONG=$ompi_cv_c_align_long_long"
16134 /bin/rm -f conftest*
16137 { echo "$as_me:$LINENO: checking alignment of float" >&5
16138 echo $ECHO_N "checking alignment of float... $ECHO_C" >&6; }
16139 if test "${ompi_cv_c_align_float+set}" = set; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 else
16142 if test "$cross_compiling" = yes; then
16143 # cross compile - do a non-executable test. Trick
16144 # taken from the Autoconf 2.59c. Switch to using
16145 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
16146 if test "$cross_compiling" = yes; then
16147 # Depending upon the size, compute the lo and hi bounds.
16148 cat >conftest.$ac_ext <<_ACEOF
16149 /* confdefs.h. */
16150 _ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16154 $ac_includes_default
16155 #ifndef offsetof
16156 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16157 #endif
16158 typedef struct { char x; float y; } ompi__type_alignof_;
16161 main ()
16163 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
16164 test_array [0] = 0
16167 return 0;
16169 _ACEOF
16170 rm -f conftest.$ac_objext
16171 if { (ac_try="$ac_compile"
16172 case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16175 esac
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_compile") 2>conftest.er1
16178 ac_status=$?
16179 grep -v '^ *+' conftest.er1 >conftest.err
16180 rm -f conftest.er1
16181 cat conftest.err >&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); } && {
16184 test -z "$ac_c_werror_flag" ||
16185 test ! -s conftest.err
16186 } && test -s conftest.$ac_objext; then
16187 ac_lo=0 ac_mid=0
16188 while :; do
16189 cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h. */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16195 $ac_includes_default
16196 #ifndef offsetof
16197 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16198 #endif
16199 typedef struct { char x; float y; } ompi__type_alignof_;
16202 main ()
16204 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
16205 test_array [0] = 0
16208 return 0;
16210 _ACEOF
16211 rm -f conftest.$ac_objext
16212 if { (ac_try="$ac_compile"
16213 case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16216 esac
16217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218 (eval "$ac_compile") 2>conftest.er1
16219 ac_status=$?
16220 grep -v '^ *+' conftest.er1 >conftest.err
16221 rm -f conftest.er1
16222 cat conftest.err >&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } && {
16225 test -z "$ac_c_werror_flag" ||
16226 test ! -s conftest.err
16227 } && test -s conftest.$ac_objext; then
16228 ac_hi=$ac_mid; break
16229 else
16230 echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16233 ac_lo=`expr $ac_mid + 1`
16234 if test $ac_lo -le $ac_mid; then
16235 ac_lo= ac_hi=
16236 break
16238 ac_mid=`expr 2 '*' $ac_mid + 1`
16241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16242 done
16243 else
16244 echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16247 cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h. */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 $ac_includes_default
16254 #ifndef offsetof
16255 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16256 #endif
16257 typedef struct { char x; float y; } ompi__type_alignof_;
16260 main ()
16262 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
16263 test_array [0] = 0
16266 return 0;
16268 _ACEOF
16269 rm -f conftest.$ac_objext
16270 if { (ac_try="$ac_compile"
16271 case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16274 esac
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_compile") 2>conftest.er1
16277 ac_status=$?
16278 grep -v '^ *+' conftest.er1 >conftest.err
16279 rm -f conftest.er1
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } && {
16283 test -z "$ac_c_werror_flag" ||
16284 test ! -s conftest.err
16285 } && test -s conftest.$ac_objext; then
16286 ac_hi=-1 ac_mid=-1
16287 while :; do
16288 cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h. */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 $ac_includes_default
16295 #ifndef offsetof
16296 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16297 #endif
16298 typedef struct { char x; float y; } ompi__type_alignof_;
16301 main ()
16303 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
16304 test_array [0] = 0
16307 return 0;
16309 _ACEOF
16310 rm -f conftest.$ac_objext
16311 if { (ac_try="$ac_compile"
16312 case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16315 esac
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317 (eval "$ac_compile") 2>conftest.er1
16318 ac_status=$?
16319 grep -v '^ *+' conftest.er1 >conftest.err
16320 rm -f conftest.er1
16321 cat conftest.err >&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); } && {
16324 test -z "$ac_c_werror_flag" ||
16325 test ! -s conftest.err
16326 } && test -s conftest.$ac_objext; then
16327 ac_lo=$ac_mid; break
16328 else
16329 echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16332 ac_hi=`expr '(' $ac_mid ')' - 1`
16333 if test $ac_mid -le $ac_hi; then
16334 ac_lo= ac_hi=
16335 break
16337 ac_mid=`expr 2 '*' $ac_mid`
16340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341 done
16342 else
16343 echo "$as_me: failed program was:" >&5
16344 sed 's/^/| /' conftest.$ac_ext >&5
16346 ac_lo= ac_hi=
16349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353 # Binary search between lo and hi bounds.
16354 while test "x$ac_lo" != "x$ac_hi"; do
16355 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16356 cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h. */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16362 $ac_includes_default
16363 #ifndef offsetof
16364 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16365 #endif
16366 typedef struct { char x; float y; } ompi__type_alignof_;
16369 main ()
16371 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
16372 test_array [0] = 0
16375 return 0;
16377 _ACEOF
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16383 esac
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_compile") 2>conftest.er1
16386 ac_status=$?
16387 grep -v '^ *+' conftest.er1 >conftest.err
16388 rm -f conftest.er1
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } && {
16392 test -z "$ac_c_werror_flag" ||
16393 test ! -s conftest.err
16394 } && test -s conftest.$ac_objext; then
16395 ac_hi=$ac_mid
16396 else
16397 echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16400 ac_lo=`expr '(' $ac_mid ')' + 1`
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404 done
16405 case $ac_lo in
16406 ?*) ompi_cv_c_align_float=$ac_lo;;
16407 '') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
16408 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
16409 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
16410 echo "$as_me: WARNING: *** See config.log for details." >&2;}
16411 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
16412 echo "$as_me: error: *** Cannot continue." >&2;}
16413 { (exit 1); exit 1; }; } ;;
16414 esac
16415 else
16416 cat >conftest.$ac_ext <<_ACEOF
16417 /* confdefs.h. */
16418 _ACEOF
16419 cat confdefs.h >>conftest.$ac_ext
16420 cat >>conftest.$ac_ext <<_ACEOF
16421 /* end confdefs.h. */
16422 $ac_includes_default
16423 #ifndef offsetof
16424 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16425 #endif
16426 typedef struct { char x; float y; } ompi__type_alignof_;
16428 static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
16429 static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
16430 #include <stdio.h>
16431 #include <stdlib.h>
16433 main ()
16436 FILE *f = fopen ("conftest.val", "w");
16437 if (! f)
16438 return 1;
16439 if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
16441 long int i = longval ();
16442 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
16443 return 1;
16444 fprintf (f, "%ld\n", i);
16446 else
16448 unsigned long int i = ulongval ();
16449 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
16450 return 1;
16451 fprintf (f, "%lu\n", i);
16453 return ferror (f) || fclose (f) != 0;
16456 return 0;
16458 _ACEOF
16459 rm -f conftest$ac_exeext
16460 if { (ac_try="$ac_link"
16461 case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16464 esac
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_link") 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16470 { (case "(($ac_try" in
16471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472 *) ac_try_echo=$ac_try;;
16473 esac
16474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16475 (eval "$ac_try") 2>&5
16476 ac_status=$?
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; }; then
16479 ompi_cv_c_align_float=`cat conftest.val`
16480 else
16481 echo "$as_me: program exited with status $ac_status" >&5
16482 echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16485 ( exit $ac_status )
16486 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
16487 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
16489 echo "$as_me: WARNING: *** See config.log for details." >&2;}
16490 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
16491 echo "$as_me: error: *** Cannot continue." >&2;}
16492 { (exit 1); exit 1; }; }
16494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16496 rm -f conftest.val
16498 else
16499 cat >conftest.$ac_ext <<_ACEOF
16500 /* confdefs.h. */
16501 _ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h. */
16506 #include <stddef.h>
16507 #include <stdio.h>
16508 #include <stdlib.h>
16509 struct foo { char c; float x; };
16510 int main(int argc, char* argv[])
16512 struct foo *p = (struct foo *) malloc(sizeof(struct foo));
16513 int diff;
16514 FILE *f=fopen("conftestval", "w");
16515 if (!f) exit(1);
16516 diff = ((char *)&p->x) - ((char *)&p->c);
16517 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
16518 return 0;
16520 _ACEOF
16521 rm -f conftest$ac_exeext
16522 if { (ac_try="$ac_link"
16523 case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_link") 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16532 { (case "(($ac_try" in
16533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16534 *) ac_try_echo=$ac_try;;
16535 esac
16536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16537 (eval "$ac_try") 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ompi_cv_c_align_float=`cat conftestval`
16542 else
16543 echo "$as_me: program exited with status $ac_status" >&5
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16547 ( exit $ac_status )
16548 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
16549 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
16550 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
16551 echo "$as_me: WARNING: *** See config.log for details." >&2;}
16552 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
16553 echo "$as_me: error: *** Cannot continue." >&2;}
16554 { (exit 1); exit 1; }; }
16556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16561 { echo "$as_me:$LINENO: result: $ompi_cv_c_align_float" >&5
16562 echo "${ECHO_T}$ompi_cv_c_align_float" >&6; }
16565 cat >>confdefs.h <<_ACEOF
16566 #define OMPI_ALIGNMENT_FLOAT $ompi_cv_c_align_float
16567 _ACEOF
16569 eval "OMPI_ALIGNMENT_FLOAT=$ompi_cv_c_align_float"
16571 /bin/rm -f conftest*
16573 { echo "$as_me:$LINENO: checking alignment of double" >&5
16574 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
16575 if test "${ompi_cv_c_align_double+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 else
16578 if test "$cross_compiling" = yes; then
16579 # cross compile - do a non-executable test. Trick
16580 # taken from the Autoconf 2.59c. Switch to using
16581 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
16582 if test "$cross_compiling" = yes; then
16583 # Depending upon the size, compute the lo and hi bounds.
16584 cat >conftest.$ac_ext <<_ACEOF
16585 /* confdefs.h. */
16586 _ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16590 $ac_includes_default
16591 #ifndef offsetof
16592 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16593 #endif
16594 typedef struct { char x; double y; } ompi__type_alignof_;
16597 main ()
16599 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
16600 test_array [0] = 0
16603 return 0;
16605 _ACEOF
16606 rm -f conftest.$ac_objext
16607 if { (ac_try="$ac_compile"
16608 case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16611 esac
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_compile") 2>conftest.er1
16614 ac_status=$?
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } && {
16620 test -z "$ac_c_werror_flag" ||
16621 test ! -s conftest.err
16622 } && test -s conftest.$ac_objext; then
16623 ac_lo=0 ac_mid=0
16624 while :; do
16625 cat >conftest.$ac_ext <<_ACEOF
16626 /* confdefs.h. */
16627 _ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 $ac_includes_default
16632 #ifndef offsetof
16633 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16634 #endif
16635 typedef struct { char x; double y; } ompi__type_alignof_;
16638 main ()
16640 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
16641 test_array [0] = 0
16644 return 0;
16646 _ACEOF
16647 rm -f conftest.$ac_objext
16648 if { (ac_try="$ac_compile"
16649 case "(($ac_try" in
16650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651 *) ac_try_echo=$ac_try;;
16652 esac
16653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654 (eval "$ac_compile") 2>conftest.er1
16655 ac_status=$?
16656 grep -v '^ *+' conftest.er1 >conftest.err
16657 rm -f conftest.er1
16658 cat conftest.err >&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } && {
16661 test -z "$ac_c_werror_flag" ||
16662 test ! -s conftest.err
16663 } && test -s conftest.$ac_objext; then
16664 ac_hi=$ac_mid; break
16665 else
16666 echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ac_lo=`expr $ac_mid + 1`
16670 if test $ac_lo -le $ac_mid; then
16671 ac_lo= ac_hi=
16672 break
16674 ac_mid=`expr 2 '*' $ac_mid + 1`
16677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 done
16679 else
16680 echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16683 cat >conftest.$ac_ext <<_ACEOF
16684 /* confdefs.h. */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16689 $ac_includes_default
16690 #ifndef offsetof
16691 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16692 #endif
16693 typedef struct { char x; double y; } ompi__type_alignof_;
16696 main ()
16698 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
16699 test_array [0] = 0
16702 return 0;
16704 _ACEOF
16705 rm -f conftest.$ac_objext
16706 if { (ac_try="$ac_compile"
16707 case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710 esac
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_compile") 2>conftest.er1
16713 ac_status=$?
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } && {
16719 test -z "$ac_c_werror_flag" ||
16720 test ! -s conftest.err
16721 } && test -s conftest.$ac_objext; then
16722 ac_hi=-1 ac_mid=-1
16723 while :; do
16724 cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h. */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 $ac_includes_default
16731 #ifndef offsetof
16732 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16733 #endif
16734 typedef struct { char x; double y; } ompi__type_alignof_;
16737 main ()
16739 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
16740 test_array [0] = 0
16743 return 0;
16745 _ACEOF
16746 rm -f conftest.$ac_objext
16747 if { (ac_try="$ac_compile"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16751 esac
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest.$ac_objext; then
16763 ac_lo=$ac_mid; break
16764 else
16765 echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16768 ac_hi=`expr '(' $ac_mid ')' - 1`
16769 if test $ac_mid -le $ac_hi; then
16770 ac_lo= ac_hi=
16771 break
16773 ac_mid=`expr 2 '*' $ac_mid`
16776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16777 done
16778 else
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ac_lo= ac_hi=
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16789 # Binary search between lo and hi bounds.
16790 while test "x$ac_lo" != "x$ac_hi"; do
16791 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16792 cat >conftest.$ac_ext <<_ACEOF
16793 /* confdefs.h. */
16794 _ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798 $ac_includes_default
16799 #ifndef offsetof
16800 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16801 #endif
16802 typedef struct { char x; double y; } ompi__type_alignof_;
16805 main ()
16807 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
16808 test_array [0] = 0
16811 return 0;
16813 _ACEOF
16814 rm -f conftest.$ac_objext
16815 if { (ac_try="$ac_compile"
16816 case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16819 esac
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_compile") 2>conftest.er1
16822 ac_status=$?
16823 grep -v '^ *+' conftest.er1 >conftest.err
16824 rm -f conftest.er1
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } && {
16828 test -z "$ac_c_werror_flag" ||
16829 test ! -s conftest.err
16830 } && test -s conftest.$ac_objext; then
16831 ac_hi=$ac_mid
16832 else
16833 echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16836 ac_lo=`expr '(' $ac_mid ')' + 1`
16839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16840 done
16841 case $ac_lo in
16842 ?*) ompi_cv_c_align_double=$ac_lo;;
16843 '') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
16844 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
16845 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
16846 echo "$as_me: WARNING: *** See config.log for details." >&2;}
16847 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
16848 echo "$as_me: error: *** Cannot continue." >&2;}
16849 { (exit 1); exit 1; }; } ;;
16850 esac
16851 else
16852 cat >conftest.$ac_ext <<_ACEOF
16853 /* confdefs.h. */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858 $ac_includes_default
16859 #ifndef offsetof
16860 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16861 #endif
16862 typedef struct { char x; double y; } ompi__type_alignof_;
16864 static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
16865 static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
16866 #include <stdio.h>
16867 #include <stdlib.h>
16869 main ()
16872 FILE *f = fopen ("conftest.val", "w");
16873 if (! f)
16874 return 1;
16875 if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
16877 long int i = longval ();
16878 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
16879 return 1;
16880 fprintf (f, "%ld\n", i);
16882 else
16884 unsigned long int i = ulongval ();
16885 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
16886 return 1;
16887 fprintf (f, "%lu\n", i);
16889 return ferror (f) || fclose (f) != 0;
16892 return 0;
16894 _ACEOF
16895 rm -f conftest$ac_exeext
16896 if { (ac_try="$ac_link"
16897 case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900 esac
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_link") 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16906 { (case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16909 esac
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_try") 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; }; then
16915 ompi_cv_c_align_double=`cat conftest.val`
16916 else
16917 echo "$as_me: program exited with status $ac_status" >&5
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 ( exit $ac_status )
16922 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
16923 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
16924 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
16925 echo "$as_me: WARNING: *** See config.log for details." >&2;}
16926 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
16927 echo "$as_me: error: *** Cannot continue." >&2;}
16928 { (exit 1); exit 1; }; }
16930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16932 rm -f conftest.val
16934 else
16935 cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h. */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16942 #include <stddef.h>
16943 #include <stdio.h>
16944 #include <stdlib.h>
16945 struct foo { char c; double x; };
16946 int main(int argc, char* argv[])
16948 struct foo *p = (struct foo *) malloc(sizeof(struct foo));
16949 int diff;
16950 FILE *f=fopen("conftestval", "w");
16951 if (!f) exit(1);
16952 diff = ((char *)&p->x) - ((char *)&p->c);
16953 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
16954 return 0;
16956 _ACEOF
16957 rm -f conftest$ac_exeext
16958 if { (ac_try="$ac_link"
16959 case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_link") 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16968 { (case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971 esac
16972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_try") 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; }; then
16977 ompi_cv_c_align_double=`cat conftestval`
16978 else
16979 echo "$as_me: program exited with status $ac_status" >&5
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ( exit $ac_status )
16984 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
16985 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
16986 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
16987 echo "$as_me: WARNING: *** See config.log for details." >&2;}
16988 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
16989 echo "$as_me: error: *** Cannot continue." >&2;}
16990 { (exit 1); exit 1; }; }
16992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16997 { echo "$as_me:$LINENO: result: $ompi_cv_c_align_double" >&5
16998 echo "${ECHO_T}$ompi_cv_c_align_double" >&6; }
17001 cat >>confdefs.h <<_ACEOF
17002 #define OMPI_ALIGNMENT_DOUBLE $ompi_cv_c_align_double
17003 _ACEOF
17005 eval "OMPI_ALIGNMENT_DOUBLE=$ompi_cv_c_align_double"
17007 /bin/rm -f conftest*
17008 if test $ac_cv_type_long_double = yes; then
17010 { echo "$as_me:$LINENO: checking alignment of long double" >&5
17011 echo $ECHO_N "checking alignment of long double... $ECHO_C" >&6; }
17012 if test "${ompi_cv_c_align_long_double+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17015 if test "$cross_compiling" = yes; then
17016 # cross compile - do a non-executable test. Trick
17017 # taken from the Autoconf 2.59c. Switch to using
17018 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
17019 if test "$cross_compiling" = yes; then
17020 # Depending upon the size, compute the lo and hi bounds.
17021 cat >conftest.$ac_ext <<_ACEOF
17022 /* confdefs.h. */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17027 $ac_includes_default
17028 #ifndef offsetof
17029 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17030 #endif
17031 typedef struct { char x; long double y; } ompi__type_alignof_;
17034 main ()
17036 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
17037 test_array [0] = 0
17040 return 0;
17042 _ACEOF
17043 rm -f conftest.$ac_objext
17044 if { (ac_try="$ac_compile"
17045 case "(($ac_try" in
17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047 *) ac_try_echo=$ac_try;;
17048 esac
17049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050 (eval "$ac_compile") 2>conftest.er1
17051 ac_status=$?
17052 grep -v '^ *+' conftest.er1 >conftest.err
17053 rm -f conftest.er1
17054 cat conftest.err >&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } && {
17057 test -z "$ac_c_werror_flag" ||
17058 test ! -s conftest.err
17059 } && test -s conftest.$ac_objext; then
17060 ac_lo=0 ac_mid=0
17061 while :; do
17062 cat >conftest.$ac_ext <<_ACEOF
17063 /* confdefs.h. */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17068 $ac_includes_default
17069 #ifndef offsetof
17070 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17071 #endif
17072 typedef struct { char x; long double y; } ompi__type_alignof_;
17075 main ()
17077 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
17078 test_array [0] = 0
17081 return 0;
17083 _ACEOF
17084 rm -f conftest.$ac_objext
17085 if { (ac_try="$ac_compile"
17086 case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_compile") 2>conftest.er1
17092 ac_status=$?
17093 grep -v '^ *+' conftest.er1 >conftest.err
17094 rm -f conftest.er1
17095 cat conftest.err >&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } && {
17098 test -z "$ac_c_werror_flag" ||
17099 test ! -s conftest.err
17100 } && test -s conftest.$ac_objext; then
17101 ac_hi=$ac_mid; break
17102 else
17103 echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.$ac_ext >&5
17106 ac_lo=`expr $ac_mid + 1`
17107 if test $ac_lo -le $ac_mid; then
17108 ac_lo= ac_hi=
17109 break
17111 ac_mid=`expr 2 '*' $ac_mid + 1`
17114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17115 done
17116 else
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 cat >conftest.$ac_ext <<_ACEOF
17121 /* confdefs.h. */
17122 _ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h. */
17126 $ac_includes_default
17127 #ifndef offsetof
17128 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17129 #endif
17130 typedef struct { char x; long double y; } ompi__type_alignof_;
17133 main ()
17135 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
17136 test_array [0] = 0
17139 return 0;
17141 _ACEOF
17142 rm -f conftest.$ac_objext
17143 if { (ac_try="$ac_compile"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_compile") 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } && {
17156 test -z "$ac_c_werror_flag" ||
17157 test ! -s conftest.err
17158 } && test -s conftest.$ac_objext; then
17159 ac_hi=-1 ac_mid=-1
17160 while :; do
17161 cat >conftest.$ac_ext <<_ACEOF
17162 /* confdefs.h. */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 $ac_includes_default
17168 #ifndef offsetof
17169 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17170 #endif
17171 typedef struct { char x; long double y; } ompi__type_alignof_;
17174 main ()
17176 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
17177 test_array [0] = 0
17180 return 0;
17182 _ACEOF
17183 rm -f conftest.$ac_objext
17184 if { (ac_try="$ac_compile"
17185 case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17188 esac
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_compile") 2>conftest.er1
17191 ac_status=$?
17192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } && {
17197 test -z "$ac_c_werror_flag" ||
17198 test ! -s conftest.err
17199 } && test -s conftest.$ac_objext; then
17200 ac_lo=$ac_mid; break
17201 else
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 ac_hi=`expr '(' $ac_mid ')' - 1`
17206 if test $ac_mid -le $ac_hi; then
17207 ac_lo= ac_hi=
17208 break
17210 ac_mid=`expr 2 '*' $ac_mid`
17213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17214 done
17215 else
17216 echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17219 ac_lo= ac_hi=
17222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17226 # Binary search between lo and hi bounds.
17227 while test "x$ac_lo" != "x$ac_hi"; do
17228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17229 cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h. */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 $ac_includes_default
17236 #ifndef offsetof
17237 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17238 #endif
17239 typedef struct { char x; long double y; } ompi__type_alignof_;
17242 main ()
17244 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
17245 test_array [0] = 0
17248 return 0;
17250 _ACEOF
17251 rm -f conftest.$ac_objext
17252 if { (ac_try="$ac_compile"
17253 case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17256 esac
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_compile") 2>conftest.er1
17259 ac_status=$?
17260 grep -v '^ *+' conftest.er1 >conftest.err
17261 rm -f conftest.er1
17262 cat conftest.err >&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } && {
17265 test -z "$ac_c_werror_flag" ||
17266 test ! -s conftest.err
17267 } && test -s conftest.$ac_objext; then
17268 ac_hi=$ac_mid
17269 else
17270 echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.$ac_ext >&5
17273 ac_lo=`expr '(' $ac_mid ')' + 1`
17276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17277 done
17278 case $ac_lo in
17279 ?*) ompi_cv_c_align_long_double=$ac_lo;;
17280 '') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
17281 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
17282 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
17283 echo "$as_me: WARNING: *** See config.log for details." >&2;}
17284 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
17285 echo "$as_me: error: *** Cannot continue." >&2;}
17286 { (exit 1); exit 1; }; } ;;
17287 esac
17288 else
17289 cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h. */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17295 $ac_includes_default
17296 #ifndef offsetof
17297 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17298 #endif
17299 typedef struct { char x; long double y; } ompi__type_alignof_;
17301 static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
17302 static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
17303 #include <stdio.h>
17304 #include <stdlib.h>
17306 main ()
17309 FILE *f = fopen ("conftest.val", "w");
17310 if (! f)
17311 return 1;
17312 if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
17314 long int i = longval ();
17315 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
17316 return 1;
17317 fprintf (f, "%ld\n", i);
17319 else
17321 unsigned long int i = ulongval ();
17322 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
17323 return 1;
17324 fprintf (f, "%lu\n", i);
17326 return ferror (f) || fclose (f) != 0;
17329 return 0;
17331 _ACEOF
17332 rm -f conftest$ac_exeext
17333 if { (ac_try="$ac_link"
17334 case "(($ac_try" in
17335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336 *) ac_try_echo=$ac_try;;
17337 esac
17338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339 (eval "$ac_link") 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17343 { (case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17346 esac
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_try") 2>&5
17349 ac_status=$?
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; }; then
17352 ompi_cv_c_align_long_double=`cat conftest.val`
17353 else
17354 echo "$as_me: program exited with status $ac_status" >&5
17355 echo "$as_me: failed program was:" >&5
17356 sed 's/^/| /' conftest.$ac_ext >&5
17358 ( exit $ac_status )
17359 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
17360 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
17361 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
17362 echo "$as_me: WARNING: *** See config.log for details." >&2;}
17363 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
17364 echo "$as_me: error: *** Cannot continue." >&2;}
17365 { (exit 1); exit 1; }; }
17367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17369 rm -f conftest.val
17371 else
17372 cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h. */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17379 #include <stddef.h>
17380 #include <stdio.h>
17381 #include <stdlib.h>
17382 struct foo { char c; long double x; };
17383 int main(int argc, char* argv[])
17385 struct foo *p = (struct foo *) malloc(sizeof(struct foo));
17386 int diff;
17387 FILE *f=fopen("conftestval", "w");
17388 if (!f) exit(1);
17389 diff = ((char *)&p->x) - ((char *)&p->c);
17390 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
17391 return 0;
17393 _ACEOF
17394 rm -f conftest$ac_exeext
17395 if { (ac_try="$ac_link"
17396 case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17399 esac
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_link") 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17405 { (case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17408 esac
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_try") 2>&5
17411 ac_status=$?
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; }; then
17414 ompi_cv_c_align_long_double=`cat conftestval`
17415 else
17416 echo "$as_me: program exited with status $ac_status" >&5
17417 echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17420 ( exit $ac_status )
17421 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
17422 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
17423 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
17424 echo "$as_me: WARNING: *** See config.log for details." >&2;}
17425 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
17426 echo "$as_me: error: *** Cannot continue." >&2;}
17427 { (exit 1); exit 1; }; }
17429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17434 { echo "$as_me:$LINENO: result: $ompi_cv_c_align_long_double" >&5
17435 echo "${ECHO_T}$ompi_cv_c_align_long_double" >&6; }
17438 cat >>confdefs.h <<_ACEOF
17439 #define OMPI_ALIGNMENT_LONG_DOUBLE $ompi_cv_c_align_long_double
17440 _ACEOF
17442 eval "OMPI_ALIGNMENT_LONG_DOUBLE=$ompi_cv_c_align_long_double"
17444 /bin/rm -f conftest*
17447 { echo "$as_me:$LINENO: checking alignment of void *" >&5
17448 echo $ECHO_N "checking alignment of void *... $ECHO_C" >&6; }
17449 if test "${ompi_cv_c_align_void_p+set}" = set; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17451 else
17452 if test "$cross_compiling" = yes; then
17453 # cross compile - do a non-executable test. Trick
17454 # taken from the Autoconf 2.59c. Switch to using
17455 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
17456 if test "$cross_compiling" = yes; then
17457 # Depending upon the size, compute the lo and hi bounds.
17458 cat >conftest.$ac_ext <<_ACEOF
17459 /* confdefs.h. */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 $ac_includes_default
17465 #ifndef offsetof
17466 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17467 #endif
17468 typedef struct { char x; void * y; } ompi__type_alignof_;
17471 main ()
17473 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
17474 test_array [0] = 0
17477 return 0;
17479 _ACEOF
17480 rm -f conftest.$ac_objext
17481 if { (ac_try="$ac_compile"
17482 case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17485 esac
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_compile") 2>conftest.er1
17488 ac_status=$?
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } && {
17494 test -z "$ac_c_werror_flag" ||
17495 test ! -s conftest.err
17496 } && test -s conftest.$ac_objext; then
17497 ac_lo=0 ac_mid=0
17498 while :; do
17499 cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h. */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 $ac_includes_default
17506 #ifndef offsetof
17507 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17508 #endif
17509 typedef struct { char x; void * y; } ompi__type_alignof_;
17512 main ()
17514 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
17515 test_array [0] = 0
17518 return 0;
17520 _ACEOF
17521 rm -f conftest.$ac_objext
17522 if { (ac_try="$ac_compile"
17523 case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_compile") 2>conftest.er1
17529 ac_status=$?
17530 grep -v '^ *+' conftest.er1 >conftest.err
17531 rm -f conftest.er1
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } && {
17535 test -z "$ac_c_werror_flag" ||
17536 test ! -s conftest.err
17537 } && test -s conftest.$ac_objext; then
17538 ac_hi=$ac_mid; break
17539 else
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 ac_lo=`expr $ac_mid + 1`
17544 if test $ac_lo -le $ac_mid; then
17545 ac_lo= ac_hi=
17546 break
17548 ac_mid=`expr 2 '*' $ac_mid + 1`
17551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17552 done
17553 else
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17557 cat >conftest.$ac_ext <<_ACEOF
17558 /* confdefs.h. */
17559 _ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h. */
17563 $ac_includes_default
17564 #ifndef offsetof
17565 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17566 #endif
17567 typedef struct { char x; void * y; } ompi__type_alignof_;
17570 main ()
17572 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
17573 test_array [0] = 0
17576 return 0;
17578 _ACEOF
17579 rm -f conftest.$ac_objext
17580 if { (ac_try="$ac_compile"
17581 case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_compile") 2>conftest.er1
17587 ac_status=$?
17588 grep -v '^ *+' conftest.er1 >conftest.err
17589 rm -f conftest.er1
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } && {
17593 test -z "$ac_c_werror_flag" ||
17594 test ! -s conftest.err
17595 } && test -s conftest.$ac_objext; then
17596 ac_hi=-1 ac_mid=-1
17597 while :; do
17598 cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h. */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 $ac_includes_default
17605 #ifndef offsetof
17606 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17607 #endif
17608 typedef struct { char x; void * y; } ompi__type_alignof_;
17611 main ()
17613 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
17614 test_array [0] = 0
17617 return 0;
17619 _ACEOF
17620 rm -f conftest.$ac_objext
17621 if { (ac_try="$ac_compile"
17622 case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17625 esac
17626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627 (eval "$ac_compile") 2>conftest.er1
17628 ac_status=$?
17629 grep -v '^ *+' conftest.er1 >conftest.err
17630 rm -f conftest.er1
17631 cat conftest.err >&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } && {
17634 test -z "$ac_c_werror_flag" ||
17635 test ! -s conftest.err
17636 } && test -s conftest.$ac_objext; then
17637 ac_lo=$ac_mid; break
17638 else
17639 echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 ac_hi=`expr '(' $ac_mid ')' - 1`
17643 if test $ac_mid -le $ac_hi; then
17644 ac_lo= ac_hi=
17645 break
17647 ac_mid=`expr 2 '*' $ac_mid`
17650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17651 done
17652 else
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 ac_lo= ac_hi=
17659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17663 # Binary search between lo and hi bounds.
17664 while test "x$ac_lo" != "x$ac_hi"; do
17665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17666 cat >conftest.$ac_ext <<_ACEOF
17667 /* confdefs.h. */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 $ac_includes_default
17673 #ifndef offsetof
17674 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17675 #endif
17676 typedef struct { char x; void * y; } ompi__type_alignof_;
17679 main ()
17681 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
17682 test_array [0] = 0
17685 return 0;
17687 _ACEOF
17688 rm -f conftest.$ac_objext
17689 if { (ac_try="$ac_compile"
17690 case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17693 esac
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_compile") 2>conftest.er1
17696 ac_status=$?
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } && {
17702 test -z "$ac_c_werror_flag" ||
17703 test ! -s conftest.err
17704 } && test -s conftest.$ac_objext; then
17705 ac_hi=$ac_mid
17706 else
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_lo=`expr '(' $ac_mid ')' + 1`
17713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17714 done
17715 case $ac_lo in
17716 ?*) ompi_cv_c_align_void_p=$ac_lo;;
17717 '') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
17718 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
17719 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
17720 echo "$as_me: WARNING: *** See config.log for details." >&2;}
17721 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
17722 echo "$as_me: error: *** Cannot continue." >&2;}
17723 { (exit 1); exit 1; }; } ;;
17724 esac
17725 else
17726 cat >conftest.$ac_ext <<_ACEOF
17727 /* confdefs.h. */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17732 $ac_includes_default
17733 #ifndef offsetof
17734 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17735 #endif
17736 typedef struct { char x; void * y; } ompi__type_alignof_;
17738 static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
17739 static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
17740 #include <stdio.h>
17741 #include <stdlib.h>
17743 main ()
17746 FILE *f = fopen ("conftest.val", "w");
17747 if (! f)
17748 return 1;
17749 if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
17751 long int i = longval ();
17752 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
17753 return 1;
17754 fprintf (f, "%ld\n", i);
17756 else
17758 unsigned long int i = ulongval ();
17759 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
17760 return 1;
17761 fprintf (f, "%lu\n", i);
17763 return ferror (f) || fclose (f) != 0;
17766 return 0;
17768 _ACEOF
17769 rm -f conftest$ac_exeext
17770 if { (ac_try="$ac_link"
17771 case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17774 esac
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_link") 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17780 { (case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17783 esac
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_try") 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ompi_cv_c_align_void_p=`cat conftest.val`
17790 else
17791 echo "$as_me: program exited with status $ac_status" >&5
17792 echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17795 ( exit $ac_status )
17796 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
17797 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
17798 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
17799 echo "$as_me: WARNING: *** See config.log for details." >&2;}
17800 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
17801 echo "$as_me: error: *** Cannot continue." >&2;}
17802 { (exit 1); exit 1; }; }
17804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17806 rm -f conftest.val
17808 else
17809 cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h. */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17816 #include <stddef.h>
17817 #include <stdio.h>
17818 #include <stdlib.h>
17819 struct foo { char c; void * x; };
17820 int main(int argc, char* argv[])
17822 struct foo *p = (struct foo *) malloc(sizeof(struct foo));
17823 int diff;
17824 FILE *f=fopen("conftestval", "w");
17825 if (!f) exit(1);
17826 diff = ((char *)&p->x) - ((char *)&p->c);
17827 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
17828 return 0;
17830 _ACEOF
17831 rm -f conftest$ac_exeext
17832 if { (ac_try="$ac_link"
17833 case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_link") 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17842 { (case "(($ac_try" in
17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844 *) ac_try_echo=$ac_try;;
17845 esac
17846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847 (eval "$ac_try") 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 ompi_cv_c_align_void_p=`cat conftestval`
17852 else
17853 echo "$as_me: program exited with status $ac_status" >&5
17854 echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17857 ( exit $ac_status )
17858 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
17859 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
17860 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
17861 echo "$as_me: WARNING: *** See config.log for details." >&2;}
17862 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
17863 echo "$as_me: error: *** Cannot continue." >&2;}
17864 { (exit 1); exit 1; }; }
17866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17871 { echo "$as_me:$LINENO: result: $ompi_cv_c_align_void_p" >&5
17872 echo "${ECHO_T}$ompi_cv_c_align_void_p" >&6; }
17875 cat >>confdefs.h <<_ACEOF
17876 #define OMPI_ALIGNMENT_VOID_P $ompi_cv_c_align_void_p
17877 _ACEOF
17879 eval "OMPI_ALIGNMENT_VOID_P=$ompi_cv_c_align_void_p"
17881 /bin/rm -f conftest*
17884 # Does the C compiler native support "bool"? (i.e., without
17885 # <stdbool.h> or any other help)
17888 { echo "$as_me:$LINENO: checking for C bool type" >&5
17889 echo $ECHO_N "checking for C bool type... $ECHO_C" >&6; }
17890 cat >conftest.$ac_ext <<_ACEOF
17891 /* confdefs.h. */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17897 $ac_includes_default
17899 main ()
17901 bool bar, foo = true; bar = foo;
17903 return 0;
17905 _ACEOF
17906 rm -f conftest.$ac_objext
17907 if { (ac_try="$ac_compile"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_compile") 2>conftest.er1
17914 ac_status=$?
17915 grep -v '^ *+' conftest.er1 >conftest.err
17916 rm -f conftest.er1
17917 cat conftest.err >&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } && {
17920 test -z "$ac_c_werror_flag" ||
17921 test ! -s conftest.err
17922 } && test -s conftest.$ac_objext; then
17923 OMPI_NEED_C_BOOL=0 MSG=yes
17924 else
17925 echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17928 OMPI_NEED_C_BOOL=1 MSG=no
17931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17933 cat >>confdefs.h <<_ACEOF
17934 #define OMPI_NEED_C_BOOL $OMPI_NEED_C_BOOL
17935 _ACEOF
17937 { echo "$as_me:$LINENO: result: $MSG" >&5
17938 echo "${ECHO_T}$MSG" >&6; }
17941 # Check for other compiler characteristics
17944 if test "$GCC" = "yes"; then
17946 # gcc 2.96 will emit oodles of warnings if you use "inline" with
17947 # -pedantic (which we do in developer builds). However,
17948 # "__inline__" is ok. So we have to force gcc to select the
17949 # right one. If you use -pedantic, the AC_C_INLINE test will fail
17950 # (because it names a function foo() -- without the (void)). So
17951 # we turn off all the picky flags, turn on -ansi mode (which is
17952 # implied by -pedantic), and set warnings to be errors. Hence,
17953 # this does the following (for 2.96):
17955 # - causes the check for "inline" to emit a warning, which then
17956 # fails
17957 # - checks for __inline__, which then emits no error, and works
17959 # This also works nicely for gcc 3.x because "inline" will work on
17960 # the first check, and all is fine. :-)
17962 CFLAGS_save="$CFLAGS"
17963 CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY -Werror -ansi"
17965 { echo "$as_me:$LINENO: checking for inline" >&5
17966 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
17967 if test "${ac_cv_c_inline+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970 ac_cv_c_inline=no
17971 for ac_kw in inline __inline__ __inline; do
17972 cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h. */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17978 #ifndef __cplusplus
17979 typedef int foo_t;
17980 static $ac_kw foo_t static_foo () {return 0; }
17981 $ac_kw foo_t foo () {return 0; }
17982 #endif
17984 _ACEOF
17985 rm -f conftest.$ac_objext
17986 if { (ac_try="$ac_compile"
17987 case "(($ac_try" in
17988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989 *) ac_try_echo=$ac_try;;
17990 esac
17991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992 (eval "$ac_compile") 2>conftest.er1
17993 ac_status=$?
17994 grep -v '^ *+' conftest.er1 >conftest.err
17995 rm -f conftest.er1
17996 cat conftest.err >&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); } && {
17999 test -z "$ac_c_werror_flag" ||
18000 test ! -s conftest.err
18001 } && test -s conftest.$ac_objext; then
18002 ac_cv_c_inline=$ac_kw
18003 else
18004 echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.$ac_ext >&5
18010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18011 test "$ac_cv_c_inline" != no && break
18012 done
18015 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18016 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18019 case $ac_cv_c_inline in
18020 inline | yes) ;;
18022 case $ac_cv_c_inline in
18023 no) ac_val=;;
18024 *) ac_val=$ac_cv_c_inline;;
18025 esac
18026 cat >>confdefs.h <<_ACEOF
18027 #ifndef __cplusplus
18028 #define inline $ac_val
18029 #endif
18030 _ACEOF
18032 esac
18034 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
18035 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
18036 if test "${ac_cv_c_restrict+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 else
18039 ac_cv_c_restrict=no
18040 # Try the official restrict keyword, then gcc's __restrict, and
18041 # the less common variants.
18042 for ac_kw in restrict __restrict __restrict__ _Restrict; do
18043 cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h. */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18049 typedef int * int_ptr;
18050 int foo (int_ptr $ac_kw ip) {
18051 return ip[0];
18054 main ()
18056 int s[1];
18057 int * $ac_kw t = s;
18058 t[0] = 0;
18059 return foo(t)
18061 return 0;
18063 _ACEOF
18064 rm -f conftest.$ac_objext
18065 if { (ac_try="$ac_compile"
18066 case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_compile") 2>conftest.er1
18072 ac_status=$?
18073 grep -v '^ *+' conftest.er1 >conftest.err
18074 rm -f conftest.er1
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } && {
18078 test -z "$ac_c_werror_flag" ||
18079 test ! -s conftest.err
18080 } && test -s conftest.$ac_objext; then
18081 ac_cv_c_restrict=$ac_kw
18082 else
18083 echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090 test "$ac_cv_c_restrict" != no && break
18091 done
18094 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
18095 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
18096 case $ac_cv_c_restrict in
18097 restrict) ;;
18099 cat >>confdefs.h <<\_ACEOF
18100 #define restrict
18101 _ACEOF
18103 *) cat >>confdefs.h <<_ACEOF
18104 #define restrict $ac_cv_c_restrict
18105 _ACEOF
18107 esac
18110 { echo "$as_me:$LINENO: checking for weak symbol support" >&5
18111 echo $ECHO_N "checking for weak symbol support... $ECHO_C" >&6; }
18112 if test "${ompi_cv_c_weak_symbols+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18114 else
18116 # need two files because icc will incorrectly not create the
18117 # symbols if they are not used in the object file in which they
18118 # are defined. Blah!
18119 cat > conftest_weak.c <<EOF
18120 extern int real(int i);
18121 extern int fake(int i);
18122 #pragma weak fake = real
18123 int real(int i) { return i; }
18126 cat > conftest.c <<EOF
18127 extern int fake(int i);
18128 extern int real(int i);
18129 int main(int argc, char *argv) { return fake(3); }
18132 # Try the compile
18134 # 1 is the command
18135 # 2 is actions to do if success
18136 # 3 is actions to do if fail
18137 echo "configure:18137: $CC $CFLAGS -c conftest_weak.c" >&5
18138 $CC $CFLAGS -c conftest_weak.c 1>&5 2>&1
18139 ompi_status=$?
18141 # 1 is the message
18142 # 2 is whether to put a prefix or not
18143 if test -n "1"; then
18144 echo "configure:18144: \$? = $ompi_status" >&5
18145 else
18146 echo \$? = $ompi_status >&5
18148 if test "$ompi_status" = "0"; then
18149 unset ompi_status
18151 # 1 is the command
18152 # 2 is actions to do if success
18153 # 3 is actions to do if fail
18154 echo "configure:18154: $CC $CFLAGS conftest.c conftest_weak.o -o conftest $LDFLAGS $LIBS" >&5
18155 $CC $CFLAGS conftest.c conftest_weak.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
18156 ompi_status=$?
18158 # 1 is the message
18159 # 2 is whether to put a prefix or not
18160 if test -n "1"; then
18161 echo "configure:18161: \$? = $ompi_status" >&5
18162 else
18163 echo \$? = $ompi_status >&5
18165 if test "$ompi_status" = "0"; then
18166 unset ompi_status
18167 ompi_c_weak_symbols_happy=1
18168 else
18169 unset ompi_status
18170 ompi_c_weak_symbols_happy=0
18172 else
18173 unset ompi_status
18174 ompi_c_weak_symbols_happy=0
18177 if test "$ompi_c_weak_symbols_happy" = "1"; then
18178 ompi_cv_c_weak_symbols="yes"
18179 else
18180 ompi_cv_c_weak_symbols="no"
18184 unset ompi_c_weak_symbols_happy
18185 /bin/rm -f conftest*
18188 { echo "$as_me:$LINENO: result: $ompi_cv_c_weak_symbols" >&5
18189 echo "${ECHO_T}$ompi_cv_c_weak_symbols" >&6; }
18191 if test "$ompi_cv_c_weak_symbols" = "yes"; then
18192 OMPI_C_HAVE_WEAK_SYMBOLS=1
18193 else
18194 OMPI_C_HAVE_WEAK_SYMBOLS=0
18198 if test "$GCC" = "yes"; then
18199 CFLAGS="$CFLAGS_save"
18202 if test "x$CC" = "xicc"; then
18204 { echo "$as_me:$LINENO: checking whether icc-8.1 for EM64T works with variable arguments" >&5
18205 echo $ECHO_N "checking whether icc-8.1 for EM64T works with variable arguments... $ECHO_C" >&6; }
18206 if test "$cross_compiling" = yes; then
18207 ompi_ac_icc_varargs=1
18208 else
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h. */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18216 #include <stdarg.h>
18217 #include <stdio.h>
18218 #include <stdlib.h>
18220 void func (int c, char * f, ...)
18222 va_list arglist;
18223 va_start (arglist, f);
18224 /* vprintf (f, arglist); */
18225 va_end (arglist);
18228 int main (int argc, char * argv[])
18230 FILE *f;
18231 func (4711, "Help %d [%s]\n", 10, "ten");
18232 f=fopen ("conftestval", "w");
18233 if (!f) exit (1);
18234 return 0;
18238 _ACEOF
18239 rm -f conftest$ac_exeext
18240 if { (ac_try="$ac_link"
18241 case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18244 esac
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_link") 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18250 { (case "(($ac_try" in
18251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252 *) ac_try_echo=$ac_try;;
18253 esac
18254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18255 (eval "$ac_try") 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; }; then
18259 ompi_ac_icc_varargs=`test -f conftestval`
18260 else
18261 echo "$as_me: program exited with status $ac_status" >&5
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 ( exit $ac_status )
18266 ompi_ac_icc_varargs=1
18268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18273 if test "$ompi_ac_icc_varargs" = "1"; then
18274 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
18275 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
18276 { echo "$as_me:$LINENO: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&5
18277 echo "$as_me: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&2;}
18278 { echo "$as_me:$LINENO: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&5
18279 echo "$as_me: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&2;}
18280 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
18281 echo "$as_me: error: *** Cannot continue." >&2;}
18282 { (exit 1); exit 1; }; }
18285 { echo "$as_me:$LINENO: result: yes" >&5
18286 echo "${ECHO_T}yes" >&6; }
18288 /bin/rm -f conftest*
18291 # If we want the profiling layer:
18292 # - If the C compiler has weak symbols, use those.
18293 # - If not, then set to compile the code again with #define's in a
18294 # separate directory.
18296 if test "$WANT_WEAK_SYMBOLS" = "0"; then
18297 OMPI_C_HAVE_WEAK_SYMBOLS=0
18299 if test "$WANT_MPI_PROFILING" = "1"; then
18300 if test "$OMPI_C_HAVE_WEAK_SYMBOLS" = "1"; then
18301 OMPI_PROFILING_COMPILE_SEPARATELY=0
18302 else
18303 OMPI_PROFILING_COMPILE_SEPARATELY=1
18305 else
18306 OMPI_PROFILING_COMPILE_SEPARATELY=0
18310 # There are 2 layers to the MPI Language binidings One layer generates
18311 # MPI_* bindings. The other layer generates PMPI_* bindings. The
18312 # following conditions determine whether each (or both) these layers
18313 # are built.
18314 # 1. MPI_* bindings are needed if:
18315 # - Profiling is not required
18316 # - Profiling is required but weak symbols are not
18317 # supported
18318 # 2. PMPI_* bindings are needed if profiling is required. Hence we
18319 # define 2 conditionals which tell us whether each of these layers
18320 # need to be built or NOT
18325 if test "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1; then
18326 WANT_MPI_BINDINGS_LAYER_TRUE=
18327 WANT_MPI_BINDINGS_LAYER_FALSE='#'
18328 else
18329 WANT_MPI_BINDINGS_LAYER_TRUE='#'
18330 WANT_MPI_BINDINGS_LAYER_FALSE=
18336 if test "$WANT_MPI_PROFILING" = 1; then
18337 WANT_PMPI_BINDINGS_LAYER_TRUE=
18338 WANT_PMPI_BINDINGS_LAYER_FALSE='#'
18339 else
18340 WANT_PMPI_BINDINGS_LAYER_TRUE='#'
18341 WANT_PMPI_BINDINGS_LAYER_FALSE=
18346 if test "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1; then
18347 COMPILE_PROFILING_SEPARATELY_TRUE=
18348 COMPILE_PROFILING_SEPARATELY_FALSE='#'
18349 else
18350 COMPILE_PROFILING_SEPARATELY_TRUE='#'
18351 COMPILE_PROFILING_SEPARATELY_FALSE=
18355 cat >>confdefs.h <<_ACEOF
18356 #define OMPI_ENABLE_MPI_PROFILING $WANT_MPI_PROFILING
18357 _ACEOF
18360 cat >>confdefs.h <<_ACEOF
18361 #define OMPI_HAVE_WEAK_SYMBOLS $OMPI_C_HAVE_WEAK_SYMBOLS
18362 _ACEOF
18366 ##################################
18367 # C++ compiler characteristics
18368 ##################################
18371 ompi_show_subtitle "C++ compiler and preprocessor"
18375 ompi_cxxflags_save="$CXXFLAGS"
18376 ac_ext=cpp
18377 ac_cpp='$CXXCPP $CPPFLAGS'
18378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18381 if test -z "$CXX"; then
18382 if test -n "$CCC"; then
18383 CXX=$CCC
18384 else
18385 if test -n "$ac_tool_prefix"; then
18386 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18392 if test "${ac_cv_prog_CXX+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18394 else
18395 if test -n "$CXX"; then
18396 ac_cv_prog_CXX="$CXX" # Let the user override the test.
18397 else
18398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18399 for as_dir in $PATH
18401 IFS=$as_save_IFS
18402 test -z "$as_dir" && as_dir=.
18403 for ac_exec_ext in '' $ac_executable_extensions; do
18404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18407 break 2
18409 done
18410 done
18411 IFS=$as_save_IFS
18415 CXX=$ac_cv_prog_CXX
18416 if test -n "$CXX"; then
18417 { echo "$as_me:$LINENO: result: $CXX" >&5
18418 echo "${ECHO_T}$CXX" >&6; }
18419 else
18420 { echo "$as_me:$LINENO: result: no" >&5
18421 echo "${ECHO_T}no" >&6; }
18425 test -n "$CXX" && break
18426 done
18428 if test -z "$CXX"; then
18429 ac_ct_CXX=$CXX
18430 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18432 # Extract the first word of "$ac_prog", so it can be a program name with args.
18433 set dummy $ac_prog; ac_word=$2
18434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18436 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18438 else
18439 if test -n "$ac_ct_CXX"; then
18440 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18441 else
18442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18443 for as_dir in $PATH
18445 IFS=$as_save_IFS
18446 test -z "$as_dir" && as_dir=.
18447 for ac_exec_ext in '' $ac_executable_extensions; do
18448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18449 ac_cv_prog_ac_ct_CXX="$ac_prog"
18450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18451 break 2
18453 done
18454 done
18455 IFS=$as_save_IFS
18459 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18460 if test -n "$ac_ct_CXX"; then
18461 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
18462 echo "${ECHO_T}$ac_ct_CXX" >&6; }
18463 else
18464 { echo "$as_me:$LINENO: result: no" >&5
18465 echo "${ECHO_T}no" >&6; }
18469 test -n "$ac_ct_CXX" && break
18470 done
18472 if test "x$ac_ct_CXX" = x; then
18473 CXX="g++"
18474 else
18475 case $cross_compiling:$ac_tool_warned in
18476 yes:)
18477 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18478 whose name does not start with the host triplet. If you think this
18479 configuration is useful to you, please write to autoconf@gnu.org." >&5
18480 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18481 whose name does not start with the host triplet. If you think this
18482 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18483 ac_tool_warned=yes ;;
18484 esac
18485 CXX=$ac_ct_CXX
18491 # Provide some information about the compiler.
18492 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
18493 ac_compiler=`set X $ac_compile; echo $2`
18494 { (ac_try="$ac_compiler --version >&5"
18495 case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18498 esac
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_compiler --version >&5") 2>&5
18501 ac_status=$?
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }
18504 { (ac_try="$ac_compiler -v >&5"
18505 case "(($ac_try" in
18506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507 *) ac_try_echo=$ac_try;;
18508 esac
18509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510 (eval "$ac_compiler -v >&5") 2>&5
18511 ac_status=$?
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }
18514 { (ac_try="$ac_compiler -V >&5"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18518 esac
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_compiler -V >&5") 2>&5
18521 ac_status=$?
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }
18525 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
18526 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
18527 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
18528 echo $ECHO_N "(cached) $ECHO_C" >&6
18529 else
18530 cat >conftest.$ac_ext <<_ACEOF
18531 /* confdefs.h. */
18532 _ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18538 main ()
18540 #ifndef __GNUC__
18541 choke me
18542 #endif
18545 return 0;
18547 _ACEOF
18548 rm -f conftest.$ac_objext
18549 if { (ac_try="$ac_compile"
18550 case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_compile") 2>conftest.er1
18556 ac_status=$?
18557 grep -v '^ *+' conftest.er1 >conftest.err
18558 rm -f conftest.er1
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } && {
18562 test -z "$ac_cxx_werror_flag" ||
18563 test ! -s conftest.err
18564 } && test -s conftest.$ac_objext; then
18565 ac_compiler_gnu=yes
18566 else
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_compiler_gnu=no
18573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18574 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
18577 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
18578 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
18579 GXX=`test $ac_compiler_gnu = yes && echo yes`
18580 ac_test_CXXFLAGS=${CXXFLAGS+set}
18581 ac_save_CXXFLAGS=$CXXFLAGS
18582 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
18583 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
18584 if test "${ac_cv_prog_cxx_g+set}" = set; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 else
18587 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
18588 ac_cxx_werror_flag=yes
18589 ac_cv_prog_cxx_g=no
18590 CXXFLAGS="-g"
18591 cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h. */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18599 main ()
18603 return 0;
18605 _ACEOF
18606 rm -f conftest.$ac_objext
18607 if { (ac_try="$ac_compile"
18608 case "(($ac_try" in
18609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610 *) ac_try_echo=$ac_try;;
18611 esac
18612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613 (eval "$ac_compile") 2>conftest.er1
18614 ac_status=$?
18615 grep -v '^ *+' conftest.er1 >conftest.err
18616 rm -f conftest.er1
18617 cat conftest.err >&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } && {
18620 test -z "$ac_cxx_werror_flag" ||
18621 test ! -s conftest.err
18622 } && test -s conftest.$ac_objext; then
18623 ac_cv_prog_cxx_g=yes
18624 else
18625 echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18628 CXXFLAGS=""
18629 cat >conftest.$ac_ext <<_ACEOF
18630 /* confdefs.h. */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18637 main ()
18641 return 0;
18643 _ACEOF
18644 rm -f conftest.$ac_objext
18645 if { (ac_try="$ac_compile"
18646 case "(($ac_try" in
18647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648 *) ac_try_echo=$ac_try;;
18649 esac
18650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18651 (eval "$ac_compile") 2>conftest.er1
18652 ac_status=$?
18653 grep -v '^ *+' conftest.er1 >conftest.err
18654 rm -f conftest.er1
18655 cat conftest.err >&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } && {
18658 test -z "$ac_cxx_werror_flag" ||
18659 test ! -s conftest.err
18660 } && test -s conftest.$ac_objext; then
18662 else
18663 echo "$as_me: failed program was:" >&5
18664 sed 's/^/| /' conftest.$ac_ext >&5
18666 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18667 CXXFLAGS="-g"
18668 cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h. */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18676 main ()
18680 return 0;
18682 _ACEOF
18683 rm -f conftest.$ac_objext
18684 if { (ac_try="$ac_compile"
18685 case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18688 esac
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_compile") 2>conftest.er1
18691 ac_status=$?
18692 grep -v '^ *+' conftest.er1 >conftest.err
18693 rm -f conftest.er1
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } && {
18697 test -z "$ac_cxx_werror_flag" ||
18698 test ! -s conftest.err
18699 } && test -s conftest.$ac_objext; then
18700 ac_cv_prog_cxx_g=yes
18701 else
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18715 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18717 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
18718 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
18719 if test "$ac_test_CXXFLAGS" = set; then
18720 CXXFLAGS=$ac_save_CXXFLAGS
18721 elif test $ac_cv_prog_cxx_g = yes; then
18722 if test "$GXX" = yes; then
18723 CXXFLAGS="-g -O2"
18724 else
18725 CXXFLAGS="-g"
18727 else
18728 if test "$GXX" = yes; then
18729 CXXFLAGS="-O2"
18730 else
18731 CXXFLAGS=
18734 ac_ext=c
18735 ac_cpp='$CPP $CPPFLAGS'
18736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18740 depcc="$CXX" am_compiler_list=
18742 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
18743 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
18744 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 else
18747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18748 # We make a subdir and do the tests there. Otherwise we can end up
18749 # making bogus files that we don't know about and never remove. For
18750 # instance it was reported that on HP-UX the gcc test will end up
18751 # making a dummy file named `D' -- because `-MD' means `put the output
18752 # in D'.
18753 mkdir conftest.dir
18754 # Copy depcomp to subdir because otherwise we won't find it if we're
18755 # using a relative directory.
18756 cp "$am_depcomp" conftest.dir
18757 cd conftest.dir
18758 # We will build objects and dependencies in a subdirectory because
18759 # it helps to detect inapplicable dependency modes. For instance
18760 # both Tru64's cc and ICC support -MD to output dependencies as a
18761 # side effect of compilation, but ICC will put the dependencies in
18762 # the current directory while Tru64 will put them in the object
18763 # directory.
18764 mkdir sub
18766 am_cv_CXX_dependencies_compiler_type=none
18767 if test "$am_compiler_list" = ""; then
18768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18770 for depmode in $am_compiler_list; do
18771 # Setup a source with many dependencies, because some compilers
18772 # like to wrap large dependency lists on column 80 (with \), and
18773 # we should not choose a depcomp mode which is confused by this.
18775 # We need to recreate these files for each test, as the compiler may
18776 # overwrite some of them when testing with obscure command lines.
18777 # This happens at least with the AIX C compiler.
18778 : > sub/conftest.c
18779 for i in 1 2 3 4 5 6; do
18780 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18781 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18782 # Solaris 8's {/usr,}/bin/sh.
18783 touch sub/conftst$i.h
18784 done
18785 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18787 case $depmode in
18788 nosideeffect)
18789 # after this tag, mechanisms are not by side-effect, so they'll
18790 # only be used when explicitly requested
18791 if test "x$enable_dependency_tracking" = xyes; then
18792 continue
18793 else
18794 break
18797 none) break ;;
18798 esac
18799 # We check with `-c' and `-o' for the sake of the "dashmstdout"
18800 # mode. It turns out that the SunPro C++ compiler does not properly
18801 # handle `-M -o', and we need to detect this.
18802 if depmode=$depmode \
18803 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
18804 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18805 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
18806 >/dev/null 2>conftest.err &&
18807 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18808 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
18809 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18810 # icc doesn't choke on unknown options, it will just issue warnings
18811 # or remarks (even with -Werror). So we grep stderr for any message
18812 # that says an option was ignored or not supported.
18813 # When given -MP, icc 7.0 and 7.1 complain thusly:
18814 # icc: Command line warning: ignoring option '-M'; no argument required
18815 # The diagnosis changed in icc 8.0:
18816 # icc: Command line remark: option '-MP' not supported
18817 if (grep 'ignoring option' conftest.err ||
18818 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18819 am_cv_CXX_dependencies_compiler_type=$depmode
18820 break
18823 done
18825 cd ..
18826 rm -rf conftest.dir
18827 else
18828 am_cv_CXX_dependencies_compiler_type=none
18832 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
18833 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
18834 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
18839 test "x$enable_dependency_tracking" != xno \
18840 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
18841 am__fastdepCXX_TRUE=
18842 am__fastdepCXX_FALSE='#'
18843 else
18844 am__fastdepCXX_TRUE='#'
18845 am__fastdepCXX_FALSE=
18849 ac_ext=cpp
18850 ac_cpp='$CXXCPP $CPPFLAGS'
18851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18854 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18855 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
18856 if test -z "$CXXCPP"; then
18857 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860 # Double quotes because CXXCPP needs to be expanded
18861 for CXXCPP in "$CXX -E" "/lib/cpp"
18863 ac_preproc_ok=false
18864 for ac_cxx_preproc_warn_flag in '' yes
18866 # Use a header file that comes with gcc, so configuring glibc
18867 # with a fresh cross-compiler works.
18868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18869 # <limits.h> exists even on freestanding compilers.
18870 # On the NeXT, cc -E runs the code through the compiler's parser,
18871 # not just through cpp. "Syntax error" is here to catch this case.
18872 cat >conftest.$ac_ext <<_ACEOF
18873 /* confdefs.h. */
18874 _ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18878 #ifdef __STDC__
18879 # include <limits.h>
18880 #else
18881 # include <assert.h>
18882 #endif
18883 Syntax error
18884 _ACEOF
18885 if { (ac_try="$ac_cpp conftest.$ac_ext"
18886 case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18892 ac_status=$?
18893 grep -v '^ *+' conftest.er1 >conftest.err
18894 rm -f conftest.er1
18895 cat conftest.err >&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } >/dev/null && {
18898 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
18899 test ! -s conftest.err
18900 }; then
18902 else
18903 echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18906 # Broken: fails on valid input.
18907 continue
18910 rm -f conftest.err conftest.$ac_ext
18912 # OK, works on sane cases. Now check whether nonexistent headers
18913 # can be detected and how.
18914 cat >conftest.$ac_ext <<_ACEOF
18915 /* confdefs.h. */
18916 _ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h. */
18920 #include <ac_nonexistent.h>
18921 _ACEOF
18922 if { (ac_try="$ac_cpp conftest.$ac_ext"
18923 case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18926 esac
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18929 ac_status=$?
18930 grep -v '^ *+' conftest.er1 >conftest.err
18931 rm -f conftest.er1
18932 cat conftest.err >&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } >/dev/null && {
18935 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
18936 test ! -s conftest.err
18937 }; then
18938 # Broken: success on invalid input.
18939 continue
18940 else
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 # Passes both tests.
18945 ac_preproc_ok=:
18946 break
18949 rm -f conftest.err conftest.$ac_ext
18951 done
18952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18953 rm -f conftest.err conftest.$ac_ext
18954 if $ac_preproc_ok; then
18955 break
18958 done
18959 ac_cv_prog_CXXCPP=$CXXCPP
18962 CXXCPP=$ac_cv_prog_CXXCPP
18963 else
18964 ac_cv_prog_CXXCPP=$CXXCPP
18966 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
18967 echo "${ECHO_T}$CXXCPP" >&6; }
18968 ac_preproc_ok=false
18969 for ac_cxx_preproc_warn_flag in '' yes
18971 # Use a header file that comes with gcc, so configuring glibc
18972 # with a fresh cross-compiler works.
18973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18974 # <limits.h> exists even on freestanding compilers.
18975 # On the NeXT, cc -E runs the code through the compiler's parser,
18976 # not just through cpp. "Syntax error" is here to catch this case.
18977 cat >conftest.$ac_ext <<_ACEOF
18978 /* confdefs.h. */
18979 _ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983 #ifdef __STDC__
18984 # include <limits.h>
18985 #else
18986 # include <assert.h>
18987 #endif
18988 Syntax error
18989 _ACEOF
18990 if { (ac_try="$ac_cpp conftest.$ac_ext"
18991 case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18994 esac
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } >/dev/null && {
19003 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19004 test ! -s conftest.err
19005 }; then
19007 else
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19011 # Broken: fails on valid input.
19012 continue
19015 rm -f conftest.err conftest.$ac_ext
19017 # OK, works on sane cases. Now check whether nonexistent headers
19018 # can be detected and how.
19019 cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h. */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19025 #include <ac_nonexistent.h>
19026 _ACEOF
19027 if { (ac_try="$ac_cpp conftest.$ac_ext"
19028 case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19031 esac
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19034 ac_status=$?
19035 grep -v '^ *+' conftest.er1 >conftest.err
19036 rm -f conftest.er1
19037 cat conftest.err >&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } >/dev/null && {
19040 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19041 test ! -s conftest.err
19042 }; then
19043 # Broken: success on invalid input.
19044 continue
19045 else
19046 echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19049 # Passes both tests.
19050 ac_preproc_ok=:
19051 break
19054 rm -f conftest.err conftest.$ac_ext
19056 done
19057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19058 rm -f conftest.err conftest.$ac_ext
19059 if $ac_preproc_ok; then
19061 else
19062 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19063 See \`config.log' for more details." >&5
19064 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19065 See \`config.log' for more details." >&2;}
19066 { (exit 1); exit 1; }; }
19069 ac_ext=c
19070 ac_cpp='$CPP $CPPFLAGS'
19071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19075 BASECXX="`basename $CXX`"
19076 CXXFLAGS="$ompi_cxxflags_save"
19078 cat >>confdefs.h <<_ACEOF
19079 #define OMPI_CXX "$CXX"
19080 _ACEOF
19082 OMPI_CXX_ABSOLUTE="`which $CXX`"
19085 # make sure the compiler actually works, if not cross-compiling.
19086 # Don't just use the AC macro so that we can have a pretty
19087 # message.
19090 { echo "$as_me:$LINENO: checking if C++ compiler works" >&5
19091 echo $ECHO_N "checking if C++ compiler works... $ECHO_C" >&6; }
19092 if test "${ompi_cv_Cpp_works+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095 ac_ext=cpp
19096 ac_cpp='$CXXCPP $CPPFLAGS'
19097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19101 if test "$cross_compiling" = yes; then
19102 ompi_cv_Cpp_works="cross compiling"
19103 else
19104 cat >conftest.$ac_ext <<_ACEOF
19105 /* confdefs.h. */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19112 main ()
19114 return 0
19116 return 0;
19118 _ACEOF
19119 rm -f conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19124 esac
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19130 { (case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19133 esac
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_try") 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; }; then
19139 ompi_cv_Cpp_works="yes"
19140 else
19141 echo "$as_me: program exited with status $ac_status" >&5
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ( exit $ac_status )
19146 ompi_cv_Cpp_works="no"
19148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19152 ac_ext=c
19153 ac_cpp='$CPP $CPPFLAGS'
19154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19159 { echo "$as_me:$LINENO: result: $ompi_cv_Cpp_works" >&5
19160 echo "${ECHO_T}$ompi_cv_Cpp_works" >&6; }
19161 if test "$ompi_cv_Cpp_works" = "no"; then
19162 cat <<EOF >&2
19163 **********************************************************************
19164 * It appears that your C++ compiler is unable to produce working
19165 * executables. A simple test application failed to properly
19166 * execute. Note that this is likely not a problem with Open MPI,
19167 * but a problem with the local compiler installation. More
19168 * information (including exactly what command was given to the
19169 * compiler and what error resulted when the command was executed) is
19170 * available in the config.log file in this directory.
19171 **********************************************************************
19173 { { echo "$as_me:$LINENO: error: Could not run a simple C++ program. Aborting." >&5
19174 echo "$as_me: error: Could not run a simple C++ program. Aborting." >&2;}
19175 { (exit 1); exit 1; }; }
19189 { echo "$as_me:$LINENO: checking for the C++ compiler vendor" >&5
19190 echo $ECHO_N "checking for the C++ compiler vendor... $ECHO_C" >&6; }
19191 if test "${ompi_cv_cxx_compiler_vendor+set}" = set; then
19192 echo $ECHO_N "(cached) $ECHO_C" >&6
19193 else
19194 ac_ext=cpp
19195 ac_cpp='$CXXCPP $CPPFLAGS'
19196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19201 ompi_check_compiler_vendor_result="unknown"
19203 # GNU is probably the most common, so check that one as soon as
19204 # possible. Intel pretends to be GNU, so need to check Intel
19205 # before checking for GNU.
19207 # Intel
19208 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19210 cat >conftest.$ac_ext <<_ACEOF
19211 #if !( defined(__INTEL_COMPILER) || defined(__ICC) )
19212 #error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met"
19213 choke me
19214 #endif
19215 _ACEOF
19216 rm -f conftest.$ac_objext
19217 if { (ac_try="$ac_compile"
19218 case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19221 esac
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_compile") 2>conftest.er1
19224 ac_status=$?
19225 grep -v '^ *+' conftest.er1 >conftest.err
19226 rm -f conftest.er1
19227 cat conftest.err >&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } && {
19230 test -z "$ac_cxx_werror_flag" ||
19231 test ! -s conftest.err
19232 } && test -s conftest.$ac_objext; then
19233 ompi_check_compiler_vendor_result="intel"
19234 else
19235 echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19245 # GNU
19246 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19248 cat >conftest.$ac_ext <<_ACEOF
19249 #ifndef __GNUC__
19250 #error "symbol __GNUC__ not defined"
19251 choke me
19252 #endif
19253 _ACEOF
19254 rm -f conftest.$ac_objext
19255 if { (ac_try="$ac_compile"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259 esac
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_compile") 2>conftest.er1
19262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } && {
19268 test -z "$ac_cxx_werror_flag" ||
19269 test ! -s conftest.err
19270 } && test -s conftest.$ac_objext; then
19271 ompi_check_compiler_vendor_result="gnu"
19272 else
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283 # Borland Turbo C
19284 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19286 cat >conftest.$ac_ext <<_ACEOF
19287 #ifndef __TURBOC__
19288 #error "symbol __TURBOC__ not defined"
19289 choke me
19290 #endif
19291 _ACEOF
19292 rm -f conftest.$ac_objext
19293 if { (ac_try="$ac_compile"
19294 case "(($ac_try" in
19295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296 *) ac_try_echo=$ac_try;;
19297 esac
19298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299 (eval "$ac_compile") 2>conftest.er1
19300 ac_status=$?
19301 grep -v '^ *+' conftest.er1 >conftest.err
19302 rm -f conftest.er1
19303 cat conftest.err >&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } && {
19306 test -z "$ac_cxx_werror_flag" ||
19307 test ! -s conftest.err
19308 } && test -s conftest.$ac_objext; then
19309 ompi_check_compiler_vendor_result="borland"
19310 else
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19321 # Borland C++
19322 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19324 cat >conftest.$ac_ext <<_ACEOF
19325 #ifndef __BORLANDC__
19326 #error "symbol __BORLANDC__ not defined"
19327 choke me
19328 #endif
19329 _ACEOF
19330 rm -f conftest.$ac_objext
19331 if { (ac_try="$ac_compile"
19332 case "(($ac_try" in
19333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334 *) ac_try_echo=$ac_try;;
19335 esac
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337 (eval "$ac_compile") 2>conftest.er1
19338 ac_status=$?
19339 grep -v '^ *+' conftest.er1 >conftest.err
19340 rm -f conftest.er1
19341 cat conftest.err >&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } && {
19344 test -z "$ac_cxx_werror_flag" ||
19345 test ! -s conftest.err
19346 } && test -s conftest.$ac_objext; then
19347 ompi_check_compiler_vendor_result="borland"
19348 else
19349 echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19359 # Comeau C++
19360 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19362 cat >conftest.$ac_ext <<_ACEOF
19363 #ifndef __COMO__
19364 #error "symbol __COMO__ not defined"
19365 choke me
19366 #endif
19367 _ACEOF
19368 rm -f conftest.$ac_objext
19369 if { (ac_try="$ac_compile"
19370 case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19373 esac
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_compile") 2>conftest.er1
19376 ac_status=$?
19377 grep -v '^ *+' conftest.er1 >conftest.err
19378 rm -f conftest.er1
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } && {
19382 test -z "$ac_cxx_werror_flag" ||
19383 test ! -s conftest.err
19384 } && test -s conftest.$ac_objext; then
19385 ompi_check_compiler_vendor_result="comeau"
19386 else
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19397 # Compaq C/C++
19398 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19400 cat >conftest.$ac_ext <<_ACEOF
19401 #if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) )
19402 #error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met"
19403 choke me
19404 #endif
19405 _ACEOF
19406 rm -f conftest.$ac_objext
19407 if { (ac_try="$ac_compile"
19408 case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19411 esac
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413 (eval "$ac_compile") 2>conftest.er1
19414 ac_status=$?
19415 grep -v '^ *+' conftest.er1 >conftest.err
19416 rm -f conftest.er1
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } && {
19420 test -z "$ac_cxx_werror_flag" ||
19421 test ! -s conftest.err
19422 } && test -s conftest.$ac_objext; then
19423 ompi_check_compiler_vendor_result="compaq"
19424 else
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19429 cat >conftest.$ac_ext <<_ACEOF
19430 #if !( defined(__osf__) && defined(__LANGUAGE_C__) )
19431 #error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met"
19432 choke me
19433 #endif
19434 _ACEOF
19435 rm -f conftest.$ac_objext
19436 if { (ac_try="$ac_compile"
19437 case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19440 esac
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_compile") 2>conftest.er1
19443 ac_status=$?
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } && {
19449 test -z "$ac_cxx_werror_flag" ||
19450 test ! -s conftest.err
19451 } && test -s conftest.$ac_objext; then
19452 ompi_check_compiler_vendor_result="compaq"
19453 else
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19458 cat >conftest.$ac_ext <<_ACEOF
19459 #ifndef __DECCXX
19460 #error "symbol __DECCXX not defined"
19461 choke me
19462 #endif
19463 _ACEOF
19464 rm -f conftest.$ac_objext
19465 if { (ac_try="$ac_compile"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469 esac
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_compile") 2>conftest.er1
19472 ac_status=$?
19473 grep -v '^ *+' conftest.er1 >conftest.err
19474 rm -f conftest.er1
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } && {
19478 test -z "$ac_cxx_werror_flag" ||
19479 test ! -s conftest.err
19480 } && test -s conftest.$ac_objext; then
19481 ompi_check_compiler_vendor_result="compaq"
19482 else
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19499 # Cray C/C++
19500 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19502 cat >conftest.$ac_ext <<_ACEOF
19503 #ifndef _CRAYC
19504 #error "symbol _CRAYC not defined"
19505 choke me
19506 #endif
19507 _ACEOF
19508 rm -f conftest.$ac_objext
19509 if { (ac_try="$ac_compile"
19510 case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19513 esac
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_compile") 2>conftest.er1
19516 ac_status=$?
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } && {
19522 test -z "$ac_cxx_werror_flag" ||
19523 test ! -s conftest.err
19524 } && test -s conftest.$ac_objext; then
19525 ompi_check_compiler_vendor_result="cray"
19526 else
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19537 # Diab C/C++
19538 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19540 cat >conftest.$ac_ext <<_ACEOF
19541 #ifndef __DCC__
19542 #error "symbol __DCC__ not defined"
19543 choke me
19544 #endif
19545 _ACEOF
19546 rm -f conftest.$ac_objext
19547 if { (ac_try="$ac_compile"
19548 case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551 esac
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_compile") 2>conftest.er1
19554 ac_status=$?
19555 grep -v '^ *+' conftest.er1 >conftest.err
19556 rm -f conftest.er1
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } && {
19560 test -z "$ac_cxx_werror_flag" ||
19561 test ! -s conftest.err
19562 } && test -s conftest.$ac_objext; then
19563 ompi_check_compiler_vendor_result="diab"
19564 else
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19575 # Digital Mars
19576 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19578 cat >conftest.$ac_ext <<_ACEOF
19579 #if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) )
19580 #error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met"
19581 choke me
19582 #endif
19583 _ACEOF
19584 rm -f conftest.$ac_objext
19585 if { (ac_try="$ac_compile"
19586 case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19589 esac
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_compile") 2>conftest.er1
19592 ac_status=$?
19593 grep -v '^ *+' conftest.er1 >conftest.err
19594 rm -f conftest.er1
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } && {
19598 test -z "$ac_cxx_werror_flag" ||
19599 test ! -s conftest.err
19600 } && test -s conftest.$ac_objext; then
19601 ompi_check_compiler_vendor_result="digital mars"
19602 else
19603 echo "$as_me: failed program was:" >&5
19604 sed 's/^/| /' conftest.$ac_ext >&5
19609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613 # HP ANSI C / aC++
19614 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19616 cat >conftest.$ac_ext <<_ACEOF
19617 #if !( defined(__HP_cc) || defined(__HP_aCC) )
19618 #error "condition defined(__HP_cc) || defined(__HP_aCC) not met"
19619 choke me
19620 #endif
19621 _ACEOF
19622 rm -f conftest.$ac_objext
19623 if { (ac_try="$ac_compile"
19624 case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627 esac
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_compile") 2>conftest.er1
19630 ac_status=$?
19631 grep -v '^ *+' conftest.er1 >conftest.err
19632 rm -f conftest.er1
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } && {
19636 test -z "$ac_cxx_werror_flag" ||
19637 test ! -s conftest.err
19638 } && test -s conftest.$ac_objext; then
19639 ompi_check_compiler_vendor_result="hp"
19640 else
19641 echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19651 # IBM XL C/C++
19652 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19654 cat >conftest.$ac_ext <<_ACEOF
19655 #if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) )
19656 #error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met"
19657 choke me
19658 #endif
19659 _ACEOF
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19665 esac
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_compile") 2>conftest.er1
19668 ac_status=$?
19669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } && {
19674 test -z "$ac_cxx_werror_flag" ||
19675 test ! -s conftest.err
19676 } && test -s conftest.$ac_objext; then
19677 ompi_check_compiler_vendor_result="ibm"
19678 else
19679 echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19683 cat >conftest.$ac_ext <<_ACEOF
19684 #if !( defined(_AIX) && !defined(__GNUC__) )
19685 #error "condition defined(_AIX) && !defined(__GNUC__) not met"
19686 choke me
19687 #endif
19688 _ACEOF
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19694 esac
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696 (eval "$ac_compile") 2>conftest.er1
19697 ac_status=$?
19698 grep -v '^ *+' conftest.er1 >conftest.err
19699 rm -f conftest.er1
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } && {
19703 test -z "$ac_cxx_werror_flag" ||
19704 test ! -s conftest.err
19705 } && test -s conftest.$ac_objext; then
19706 ompi_check_compiler_vendor_result="ibm"
19707 else
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721 # KAI C++ (rest in peace)
19722 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19724 cat >conftest.$ac_ext <<_ACEOF
19725 #ifndef __KCC
19726 #error "symbol __KCC not defined"
19727 choke me
19728 #endif
19729 _ACEOF
19730 rm -f conftest.$ac_objext
19731 if { (ac_try="$ac_compile"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735 esac
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_compile") 2>conftest.er1
19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } && {
19744 test -z "$ac_cxx_werror_flag" ||
19745 test ! -s conftest.err
19746 } && test -s conftest.$ac_objext; then
19747 ompi_check_compiler_vendor_result="kai"
19748 else
19749 echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19759 # LCC
19760 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19762 cat >conftest.$ac_ext <<_ACEOF
19763 #ifndef __LCC__
19764 #error "symbol __LCC__ not defined"
19765 choke me
19766 #endif
19767 _ACEOF
19768 rm -f conftest.$ac_objext
19769 if { (ac_try="$ac_compile"
19770 case "(($ac_try" in
19771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772 *) ac_try_echo=$ac_try;;
19773 esac
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775 (eval "$ac_compile") 2>conftest.er1
19776 ac_status=$?
19777 grep -v '^ *+' conftest.er1 >conftest.err
19778 rm -f conftest.er1
19779 cat conftest.err >&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } && {
19782 test -z "$ac_cxx_werror_flag" ||
19783 test ! -s conftest.err
19784 } && test -s conftest.$ac_objext; then
19785 ompi_check_compiler_vendor_result="lcc"
19786 else
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19797 # MetaWare High C/C++
19798 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19800 cat >conftest.$ac_ext <<_ACEOF
19801 #ifndef __HIGHC__
19802 #error "symbol __HIGHC__ not defined"
19803 choke me
19804 #endif
19805 _ACEOF
19806 rm -f conftest.$ac_objext
19807 if { (ac_try="$ac_compile"
19808 case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_compile") 2>conftest.er1
19814 ac_status=$?
19815 grep -v '^ *+' conftest.er1 >conftest.err
19816 rm -f conftest.er1
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } && {
19820 test -z "$ac_cxx_werror_flag" ||
19821 test ! -s conftest.err
19822 } && test -s conftest.$ac_objext; then
19823 ompi_check_compiler_vendor_result="metaware high"
19824 else
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19835 # Metrowerks Codewarrior
19836 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19838 cat >conftest.$ac_ext <<_ACEOF
19839 #ifndef __MWERKS__
19840 #error "symbol __MWERKS__ not defined"
19841 choke me
19842 #endif
19843 _ACEOF
19844 rm -f conftest.$ac_objext
19845 if { (ac_try="$ac_compile"
19846 case "(($ac_try" in
19847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848 *) ac_try_echo=$ac_try;;
19849 esac
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851 (eval "$ac_compile") 2>conftest.er1
19852 ac_status=$?
19853 grep -v '^ *+' conftest.er1 >conftest.err
19854 rm -f conftest.er1
19855 cat conftest.err >&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); } && {
19858 test -z "$ac_cxx_werror_flag" ||
19859 test ! -s conftest.err
19860 } && test -s conftest.$ac_objext; then
19861 ompi_check_compiler_vendor_result="metrowerks"
19862 else
19863 echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19873 # MIPSpro (SGI)
19874 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19876 cat >conftest.$ac_ext <<_ACEOF
19877 #if !( defined(sgi) || defined(__sgi) )
19878 #error "condition defined(sgi) || defined(__sgi) not met"
19879 choke me
19880 #endif
19881 _ACEOF
19882 rm -f conftest.$ac_objext
19883 if { (ac_try="$ac_compile"
19884 case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_compile") 2>conftest.er1
19890 ac_status=$?
19891 grep -v '^ *+' conftest.er1 >conftest.err
19892 rm -f conftest.er1
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } && {
19896 test -z "$ac_cxx_werror_flag" ||
19897 test ! -s conftest.err
19898 } && test -s conftest.$ac_objext; then
19899 ompi_check_compiler_vendor_result="sgi"
19900 else
19901 echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19911 # MPW C++
19912 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19914 cat >conftest.$ac_ext <<_ACEOF
19915 #if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) )
19916 #error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met"
19917 choke me
19918 #endif
19919 _ACEOF
19920 rm -f conftest.$ac_objext
19921 if { (ac_try="$ac_compile"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19925 esac
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_compile") 2>conftest.er1
19928 ac_status=$?
19929 grep -v '^ *+' conftest.er1 >conftest.err
19930 rm -f conftest.er1
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } && {
19934 test -z "$ac_cxx_werror_flag" ||
19935 test ! -s conftest.err
19936 } && test -s conftest.$ac_objext; then
19937 ompi_check_compiler_vendor_result="mpw"
19938 else
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19949 # Microsoft
19950 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
19951 # Always use C compiler when checking for Microsoft, as
19952 # Visual C++ doesn't recognize .cc as a C++ file.
19953 ac_ext=c
19954 ac_cpp='$CPP $CPPFLAGS'
19955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19960 cat >conftest.$ac_ext <<_ACEOF
19961 #if !( defined(_MSC_VER) || defined(__MSC_VER) )
19962 #error "condition defined(_MSC_VER) || defined(__MSC_VER) not met"
19963 choke me
19964 #endif
19965 _ACEOF
19966 rm -f conftest.$ac_objext
19967 if { (ac_try="$ac_compile"
19968 case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19971 esac
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_compile") 2>conftest.er1
19974 ac_status=$?
19975 grep -v '^ *+' conftest.er1 >conftest.err
19976 rm -f conftest.er1
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } && {
19980 test -z "$ac_c_werror_flag" ||
19981 test ! -s conftest.err
19982 } && test -s conftest.$ac_objext; then
19983 ompi_check_compiler_vendor_result="microsoft"
19984 else
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19992 ac_ext=cpp
19993 ac_cpp='$CXXCPP $CPPFLAGS'
19994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20001 # Norcroft C
20002 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
20004 cat >conftest.$ac_ext <<_ACEOF
20005 #ifndef __CC_NORCROFT
20006 #error "symbol __CC_NORCROFT not defined"
20007 choke me
20008 #endif
20009 _ACEOF
20010 rm -f conftest.$ac_objext
20011 if { (ac_try="$ac_compile"
20012 case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20015 esac
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_compile") 2>conftest.er1
20018 ac_status=$?
20019 grep -v '^ *+' conftest.er1 >conftest.err
20020 rm -f conftest.er1
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } && {
20024 test -z "$ac_cxx_werror_flag" ||
20025 test ! -s conftest.err
20026 } && test -s conftest.$ac_objext; then
20027 ompi_check_compiler_vendor_result="norcroft"
20028 else
20029 echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20039 # Pelles C
20040 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
20042 cat >conftest.$ac_ext <<_ACEOF
20043 #ifndef __POCC__
20044 #error "symbol __POCC__ not defined"
20045 choke me
20046 #endif
20047 _ACEOF
20048 rm -f conftest.$ac_objext
20049 if { (ac_try="$ac_compile"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_compile") 2>conftest.er1
20056 ac_status=$?
20057 grep -v '^ *+' conftest.er1 >conftest.err
20058 rm -f conftest.er1
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } && {
20062 test -z "$ac_cxx_werror_flag" ||
20063 test ! -s conftest.err
20064 } && test -s conftest.$ac_objext; then
20065 ompi_check_compiler_vendor_result="pelles"
20066 else
20067 echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20077 # Portland Group
20078 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
20080 cat >conftest.$ac_ext <<_ACEOF
20081 #ifndef __PGI
20082 #error "symbol __PGI not defined"
20083 choke me
20084 #endif
20085 _ACEOF
20086 rm -f conftest.$ac_objext
20087 if { (ac_try="$ac_compile"
20088 case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20091 esac
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_compile") 2>conftest.er1
20094 ac_status=$?
20095 grep -v '^ *+' conftest.er1 >conftest.err
20096 rm -f conftest.er1
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } && {
20100 test -z "$ac_cxx_werror_flag" ||
20101 test ! -s conftest.err
20102 } && test -s conftest.$ac_objext; then
20103 ompi_check_compiler_vendor_result="portland group"
20104 else
20105 echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20115 # SAS/C
20116 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
20118 cat >conftest.$ac_ext <<_ACEOF
20119 #if !( defined(SASC) || defined(__SASC) || defined(__SASC__) )
20120 #error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met"
20121 choke me
20122 #endif
20123 _ACEOF
20124 rm -f conftest.$ac_objext
20125 if { (ac_try="$ac_compile"
20126 case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20129 esac
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_compile") 2>conftest.er1
20132 ac_status=$?
20133 grep -v '^ *+' conftest.er1 >conftest.err
20134 rm -f conftest.er1
20135 cat conftest.err >&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } && {
20138 test -z "$ac_cxx_werror_flag" ||
20139 test ! -s conftest.err
20140 } && test -s conftest.$ac_objext; then
20141 ompi_check_compiler_vendor_result="sas"
20142 else
20143 echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20153 # Sun Workshop C/C++
20154 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
20156 cat >conftest.$ac_ext <<_ACEOF
20157 #if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) )
20158 #error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met"
20159 choke me
20160 #endif
20161 _ACEOF
20162 rm -f conftest.$ac_objext
20163 if { (ac_try="$ac_compile"
20164 case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20167 esac
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_compile") 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && {
20176 test -z "$ac_cxx_werror_flag" ||
20177 test ! -s conftest.err
20178 } && test -s conftest.$ac_objext; then
20179 ompi_check_compiler_vendor_result="sun"
20180 else
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20191 # TenDRA C/C++
20192 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
20194 cat >conftest.$ac_ext <<_ACEOF
20195 #ifndef __TenDRA__
20196 #error "symbol __TenDRA__ not defined"
20197 choke me
20198 #endif
20199 _ACEOF
20200 rm -f conftest.$ac_objext
20201 if { (ac_try="$ac_compile"
20202 case "(($ac_try" in
20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204 *) ac_try_echo=$ac_try;;
20205 esac
20206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207 (eval "$ac_compile") 2>conftest.er1
20208 ac_status=$?
20209 grep -v '^ *+' conftest.er1 >conftest.err
20210 rm -f conftest.er1
20211 cat conftest.err >&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } && {
20214 test -z "$ac_cxx_werror_flag" ||
20215 test ! -s conftest.err
20216 } && test -s conftest.$ac_objext; then
20217 ompi_check_compiler_vendor_result="tendra"
20218 else
20219 echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20229 # Tiny C
20230 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
20232 cat >conftest.$ac_ext <<_ACEOF
20233 #ifndef __TINYC__
20234 #error "symbol __TINYC__ not defined"
20235 choke me
20236 #endif
20237 _ACEOF
20238 rm -f conftest.$ac_objext
20239 if { (ac_try="$ac_compile"
20240 case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20243 esac
20244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245 (eval "$ac_compile") 2>conftest.er1
20246 ac_status=$?
20247 grep -v '^ *+' conftest.er1 >conftest.err
20248 rm -f conftest.er1
20249 cat conftest.err >&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } && {
20252 test -z "$ac_cxx_werror_flag" ||
20253 test ! -s conftest.err
20254 } && test -s conftest.$ac_objext; then
20255 ompi_check_compiler_vendor_result="tiny"
20256 else
20257 echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20267 # USL C
20268 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
20270 cat >conftest.$ac_ext <<_ACEOF
20271 #ifndef __USLC__
20272 #error "symbol __USLC__ not defined"
20273 choke me
20274 #endif
20275 _ACEOF
20276 rm -f conftest.$ac_objext
20277 if { (ac_try="$ac_compile"
20278 case "(($ac_try" in
20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_compile") 2>conftest.er1
20284 ac_status=$?
20285 grep -v '^ *+' conftest.er1 >conftest.err
20286 rm -f conftest.er1
20287 cat conftest.err >&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && {
20290 test -z "$ac_cxx_werror_flag" ||
20291 test ! -s conftest.err
20292 } && test -s conftest.$ac_objext; then
20293 ompi_check_compiler_vendor_result="usl"
20294 else
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20305 # Watcom C++
20306 if test "$ompi_check_compiler_vendor_result" = "unknown"; then
20308 cat >conftest.$ac_ext <<_ACEOF
20309 #ifndef __WATCOMC__
20310 #error "symbol __WATCOMC__ not defined"
20311 choke me
20312 #endif
20313 _ACEOF
20314 rm -f conftest.$ac_objext
20315 if { (ac_try="$ac_compile"
20316 case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20319 esac
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_compile") 2>conftest.er1
20322 ac_status=$?
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && {
20328 test -z "$ac_cxx_werror_flag" ||
20329 test ! -s conftest.err
20330 } && test -s conftest.$ac_objext; then
20331 ompi_check_compiler_vendor_result="watcom"
20332 else
20333 echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20343 ompi_cv_cxx_compiler_vendor="$ompi_check_compiler_vendor_result"
20344 unset ompi_check_compiler_vendor_result
20346 ac_ext=c
20347 ac_cpp='$CPP $CPPFLAGS'
20348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20353 { echo "$as_me:$LINENO: result: $ompi_cv_cxx_compiler_vendor" >&5
20354 echo "${ECHO_T}$ompi_cv_cxx_compiler_vendor" >&6; }
20356 ompi_cxx_vendor="$ompi_cv_c_compiler_vendor"
20359 # Do we want code coverage
20360 if test "$WANT_COVERAGE" = "1"; then
20361 if test "$ompi_cxx_vendor" = "gnu" ; then
20362 { echo "$as_me:$LINENO: WARNING: -fprofile-arcs -ftest-coverage has been added to CFLAGS (--enable-coverage)" >&5
20363 echo "$as_me: WARNING: -fprofile-arcs -ftest-coverage has been added to CFLAGS (--enable-coverage)" >&2;}
20364 WANT_DEBUG=1
20365 CXXFLAGS="-ftest-coverage -fprofile-arcs ${CXXFLAGS}"
20366 WRAPPER_EXTRA_CXXFLAGS="-ftest-coverage -fprofile-arcs ${WRAPPER_EXTRA_CXXFLAGS}"
20367 else
20368 { echo "$as_me:$LINENO: WARNING: Code coverage functionality is currently available only with GCC suite" >&5
20369 echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC suite" >&2;}
20370 { { echo "$as_me:$LINENO: error: Configure: cannot continue" >&5
20371 echo "$as_me: error: Configure: cannot continue" >&2;}
20372 { (exit 1); exit 1; }; }
20376 # Do we want debugging?
20377 if test "$WANT_DEBUG" = "1"; then
20378 CXXFLAGS="$CXXFLAGS -g"
20380 # 1 is the variable name to be uniq-ized
20381 ompi_name=CXXFLAGS
20383 # Go through each item in the variable and only keep the unique ones
20385 ompi_count=0
20386 for val in ${CXXFLAGS}; do
20387 ompi_done=0
20388 ompi_i=1
20389 ompi_found=0
20391 # Loop over every token we've seen so far
20393 ompi_done="`expr $ompi_i \> $ompi_count`"
20394 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
20396 # Have we seen this token already? Prefix the comparison with
20397 # "x" so that "-Lfoo" values won't be cause an error.
20399 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
20400 ompi_found=`eval $ompi_eval`
20402 # Check the ending condition
20404 ompi_done="`expr $ompi_i \>= $ompi_count`"
20406 # Increment the counter
20408 ompi_i="`expr $ompi_i + 1`"
20409 done
20411 # If we didn't find the token, add it to the "array"
20413 if test "$ompi_found" = "0"; then
20414 ompi_eval="ompi_array_$ompi_i=$val"
20415 eval $ompi_eval
20416 ompi_count="`expr $ompi_count + 1`"
20417 else
20418 ompi_i="`expr $ompi_i - 1`"
20420 done
20422 # Take all the items in the "array" and assemble them back into a
20423 # single variable
20425 ompi_i=1
20426 ompi_done="`expr $ompi_i \> $ompi_count`"
20427 ompi_newval=
20428 while test "$ompi_done" = "0"; do
20429 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
20430 eval $ompi_eval
20432 ompi_eval="unset ompi_array_$ompi_i"
20433 eval $ompi_eval
20435 ompi_done="`expr $ompi_i \>= $ompi_count`"
20436 ompi_i="`expr $ompi_i + 1`"
20437 done
20439 # Done; do the assignment
20441 ompi_newval="`echo $ompi_newval`"
20442 ompi_eval="$ompi_name=\"$ompi_newval\""
20443 eval $ompi_eval
20445 # Clean up
20447 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
20448 { echo "$as_me:$LINENO: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&5
20449 echo "$as_me: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&2;}
20452 # These flags are generally g++-specific; even the g++-impersonating
20453 # compilers won't accept them.
20454 OMPI_CXXFLAGS_BEFORE_PICKY="$CXXFLAGS"
20455 if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_cxx_vendor" = "gnu"; then
20456 add="-Wall -Wundef -Wno-long-long"
20458 # see if -Wno-long-double works...
20459 ac_ext=cpp
20460 ac_cpp='$CXXCPP $CPPFLAGS'
20461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20465 CXXFLAGS_orig="$CXXFLAGS"
20466 CXXFLAGS="$CXXFLAGS -Wno-long-double"
20467 { echo "$as_me:$LINENO: checking if $CXX supports -Wno-long-double" >&5
20468 echo $ECHO_N "checking if $CXX supports -Wno-long-double... $ECHO_C" >&6; }
20469 if test "${ompi_cv_cxx_wno_long_double+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 else
20472 cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h. */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20480 main ()
20484 return 0;
20486 _ACEOF
20487 rm -f conftest.$ac_objext
20488 if { (ac_try="$ac_compile"
20489 case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20492 esac
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_compile") 2>conftest.er1
20495 ac_status=$?
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_cxx_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest.$ac_objext; then
20504 ompi_cv_cxx_wno_long_double="yes"
20505 else
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20509 ompi_cv_cxx_wno_long_double="no"
20512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20514 { echo "$as_me:$LINENO: result: $ompi_cv_cxx_wno_long_double" >&5
20515 echo "${ECHO_T}$ompi_cv_cxx_wno_long_double" >&6; }
20516 CXXFLAGS="$CXXFLAGS_orig"
20517 ac_ext=c
20518 ac_cpp='$CPP $CPPFLAGS'
20519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20523 if test "$ompi_cv_cxx_wno_long_double" = "yes" ; then
20524 add="$add -Wno-long-double"
20527 CXXFLAGS="$CXXFLAGS $add"
20529 # 1 is the variable name to be uniq-ized
20530 ompi_name=CXXFLAGS
20532 # Go through each item in the variable and only keep the unique ones
20534 ompi_count=0
20535 for val in ${CXXFLAGS}; do
20536 ompi_done=0
20537 ompi_i=1
20538 ompi_found=0
20540 # Loop over every token we've seen so far
20542 ompi_done="`expr $ompi_i \> $ompi_count`"
20543 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
20545 # Have we seen this token already? Prefix the comparison with
20546 # "x" so that "-Lfoo" values won't be cause an error.
20548 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
20549 ompi_found=`eval $ompi_eval`
20551 # Check the ending condition
20553 ompi_done="`expr $ompi_i \>= $ompi_count`"
20555 # Increment the counter
20557 ompi_i="`expr $ompi_i + 1`"
20558 done
20560 # If we didn't find the token, add it to the "array"
20562 if test "$ompi_found" = "0"; then
20563 ompi_eval="ompi_array_$ompi_i=$val"
20564 eval $ompi_eval
20565 ompi_count="`expr $ompi_count + 1`"
20566 else
20567 ompi_i="`expr $ompi_i - 1`"
20569 done
20571 # Take all the items in the "array" and assemble them back into a
20572 # single variable
20574 ompi_i=1
20575 ompi_done="`expr $ompi_i \> $ompi_count`"
20576 ompi_newval=
20577 while test "$ompi_done" = "0"; do
20578 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
20579 eval $ompi_eval
20581 ompi_eval="unset ompi_array_$ompi_i"
20582 eval $ompi_eval
20584 ompi_done="`expr $ompi_i \>= $ompi_count`"
20585 ompi_i="`expr $ompi_i + 1`"
20586 done
20588 # Done; do the assignment
20590 ompi_newval="`echo $ompi_newval`"
20591 ompi_eval="$ompi_name=\"$ompi_newval\""
20592 eval $ompi_eval
20594 # Clean up
20596 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
20597 if test "$add" != "" ; then
20598 { echo "$as_me:$LINENO: WARNING: $add has been added to CXXFLAGS (--enable-picky)" >&5
20599 echo "$as_me: WARNING: $add has been added to CXXFLAGS (--enable-picky)" >&2;}
20601 unset add
20604 # See if this version of g++ allows -finline-functions
20605 if test "$GXX" = "yes"; then
20606 CXXFLAGS_orig="$CXXFLAGS"
20607 CXXFLAGS="$CXXFLAGS -finline-functions"
20608 add=
20609 { echo "$as_me:$LINENO: checking if $CXX supports -finline-functions" >&5
20610 echo $ECHO_N "checking if $CXX supports -finline-functions... $ECHO_C" >&6; }
20611 if test "${ompi_cv_cxx_finline_functions+set}" = set; then
20612 echo $ECHO_N "(cached) $ECHO_C" >&6
20613 else
20614 cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h. */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20622 main ()
20626 return 0;
20628 _ACEOF
20629 rm -f conftest.$ac_objext
20630 if { (ac_try="$ac_compile"
20631 case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_compile") 2>conftest.er1
20637 ac_status=$?
20638 grep -v '^ *+' conftest.er1 >conftest.err
20639 rm -f conftest.er1
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } && {
20643 test -z "$ac_c_werror_flag" ||
20644 test ! -s conftest.err
20645 } && test -s conftest.$ac_objext; then
20646 ompi_cv_cxx_finline_functions="yes"
20647 else
20648 echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20651 ompi_cv_cxx_finline_functions="no"
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20656 { echo "$as_me:$LINENO: result: $ompi_cv_cxx_finline_functions" >&5
20657 echo "${ECHO_T}$ompi_cv_cxx_finline_functions" >&6; }
20658 if test "$ompi_cv_cxx_finline_functions" = "yes" ; then
20659 add=" -finline-functions"
20661 CXXFLAGS="$CXXFLAGS_orig$add"
20663 # 1 is the variable name to be uniq-ized
20664 ompi_name=CXXFLAGS
20666 # Go through each item in the variable and only keep the unique ones
20668 ompi_count=0
20669 for val in ${CXXFLAGS}; do
20670 ompi_done=0
20671 ompi_i=1
20672 ompi_found=0
20674 # Loop over every token we've seen so far
20676 ompi_done="`expr $ompi_i \> $ompi_count`"
20677 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
20679 # Have we seen this token already? Prefix the comparison with
20680 # "x" so that "-Lfoo" values won't be cause an error.
20682 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
20683 ompi_found=`eval $ompi_eval`
20685 # Check the ending condition
20687 ompi_done="`expr $ompi_i \>= $ompi_count`"
20689 # Increment the counter
20691 ompi_i="`expr $ompi_i + 1`"
20692 done
20694 # If we didn't find the token, add it to the "array"
20696 if test "$ompi_found" = "0"; then
20697 ompi_eval="ompi_array_$ompi_i=$val"
20698 eval $ompi_eval
20699 ompi_count="`expr $ompi_count + 1`"
20700 else
20701 ompi_i="`expr $ompi_i - 1`"
20703 done
20705 # Take all the items in the "array" and assemble them back into a
20706 # single variable
20708 ompi_i=1
20709 ompi_done="`expr $ompi_i \> $ompi_count`"
20710 ompi_newval=
20711 while test "$ompi_done" = "0"; do
20712 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
20713 eval $ompi_eval
20715 ompi_eval="unset ompi_array_$ompi_i"
20716 eval $ompi_eval
20718 ompi_done="`expr $ompi_i \>= $ompi_count`"
20719 ompi_i="`expr $ompi_i + 1`"
20720 done
20722 # Done; do the assignment
20724 ompi_newval="`echo $ompi_newval`"
20725 ompi_eval="$ompi_name=\"$ompi_newval\""
20726 eval $ompi_eval
20728 # Clean up
20730 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
20731 if test "$add" != "" ; then
20732 { echo "$as_me:$LINENO: WARNING: $add has been added to CXXFLAGS" >&5
20733 echo "$as_me: WARNING: $add has been added to CXXFLAGS" >&2;}
20735 unset add
20738 # Check for special things due to C++ exceptions
20739 ENABLE_CXX_EXCEPTIONS=no
20740 HAVE_CXX_EXCEPTIONS=0
20741 # Check whether --enable-cxx-exceptions was given.
20742 if test "${enable_cxx_exceptions+set}" = set; then
20743 enableval=$enable_cxx_exceptions; ENABLE_CXX_EXCEPTIONS="$enableval"
20747 { echo "$as_me:$LINENO: checking if want C++ exception handling" >&5
20748 echo $ECHO_N "checking if want C++ exception handling... $ECHO_C" >&6; }
20749 { echo "$as_me:$LINENO: result: $ENABLE_CXX_EXCEPTIONS" >&5
20750 echo "${ECHO_T}$ENABLE_CXX_EXCEPTIONS" >&6; }
20751 if test "$ENABLE_CXX_EXCEPTIONS" = "yes"; then
20752 # config/cxx_have_exceptions.m4
20755 # Arguments: None
20757 # Depdencies: None
20759 # Check to see if the C++ compiler can handle exceptions
20761 # Sets OMPI_CXX_EXCEPTIONS to 1 if compiler has exceptions, 0 if not
20764 { echo "$as_me:$LINENO: checking for throw/catch" >&5
20765 echo $ECHO_N "checking for throw/catch... $ECHO_C" >&6; }
20767 ac_ext=cpp
20768 ac_cpp='$CXXCPP $CPPFLAGS'
20769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20773 cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h. */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20781 main ()
20783 int i=1; throw(i);
20785 return 0;
20787 _ACEOF
20788 rm -f conftest.$ac_objext
20789 if { (ac_try="$ac_compile"
20790 case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20793 esac
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_compile") 2>conftest.er1
20796 ac_status=$?
20797 grep -v '^ *+' conftest.er1 >conftest.err
20798 rm -f conftest.er1
20799 cat conftest.err >&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } && {
20802 test -z "$ac_cxx_werror_flag" ||
20803 test ! -s conftest.err
20804 } && test -s conftest.$ac_objext; then
20805 OMPI_CXX_EXCEPTIONS=1
20806 else
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20810 OMPI_CXX_EXCPTIONS=0
20813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20814 if test "$OMPI_CXX_EXCEPTIONS" = "1"; then
20815 { echo "$as_me:$LINENO: result: yes" >&5
20816 echo "${ECHO_T}yes" >&6; }
20817 else
20818 { echo "$as_me:$LINENO: result: no" >&5
20819 echo "${ECHO_T}no" >&6; }
20822 # Clean up
20823 ac_ext=c
20824 ac_cpp='$CPP $CPPFLAGS'
20825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20829 # config/cxx_find_exception_flags.m4
20832 # Arguments: none
20834 # Dependencies: none
20836 # Get the exception handling flags for the C++ compiler. Leaves
20837 # CXXFLAGS undisturbed.
20838 # Provides --with-exflags command line argument for configure as well.
20840 # Sets OMPI_CXX_EXCEPTION_CXXFLAGS and OMPI_CXX_EXCEPTION_LDFLAGS as
20841 # appropriate.
20842 # Must call AC_SUBST manually
20845 # Command line flags
20848 # Check whether --with-exflags was given.
20849 if test "${with_exflags+set}" = set; then
20850 withval=$with_exflags; ompi_force_exflags="$withval"
20854 ompi_CXXFLAGS_SAVE="$CXXFLAGS"
20855 { echo "$as_me:$LINENO: checking for compiler exception flags" >&5
20856 echo $ECHO_N "checking for compiler exception flags... $ECHO_C" >&6; }
20858 # See which flags to use
20860 if test "$ompi_force_exflags" != ""; then
20862 # If the user supplied flags, use those
20864 ompi_exflags="$ompi_force_exflags"
20865 elif test "$GXX" = "yes"; then
20867 # g++ has changed their flags a few times. Sigh.
20869 CXXFLAGS="$CXXFLAGS -fexceptions"
20872 ac_ext=cpp
20873 ac_cpp='$CXXCPP $CPPFLAGS'
20874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20878 cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h. */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20886 main ()
20888 try { int i = 0; } catch(...) { int j = 2; }
20890 return 0;
20892 _ACEOF
20893 rm -f conftest.$ac_objext
20894 if { (ac_try="$ac_compile"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20898 esac
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_compile") 2>conftest.er1
20901 ac_status=$?
20902 grep -v '^ *+' conftest.er1 >conftest.err
20903 rm -f conftest.er1
20904 cat conftest.err >&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } && {
20907 test -z "$ac_cxx_werror_flag" ||
20908 test ! -s conftest.err
20909 } && test -s conftest.$ac_objext; then
20910 ompi_happy=1
20911 else
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ompi_happy=0
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920 if test "$ompi_happy" = "1"; then
20921 ompi_exflags="-fexceptions";
20922 else
20923 CXXFLAGS="$CXXFLAGS_SAVE -fhandle-exceptions"
20924 cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h. */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20932 main ()
20934 try { int i = 0; } catch(...) { int j = 2; }
20936 return 0;
20938 _ACEOF
20939 rm -f conftest.$ac_objext
20940 if { (ac_try="$ac_compile"
20941 case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20944 esac
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_compile") 2>conftest.er1
20947 ac_status=$?
20948 grep -v '^ *+' conftest.er1 >conftest.err
20949 rm -f conftest.er1
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } && {
20953 test -z "$ac_cxx_werror_flag" ||
20954 test ! -s conftest.err
20955 } && test -s conftest.$ac_objext; then
20956 ompi_happy=1
20957 else
20958 echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20961 ompi_happy=0
20964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965 if test "$ompi_happy" = "1"; then
20966 ompi_exflags="-fhandle-exceptions";
20969 ac_ext=c
20970 ac_cpp='$CPP $CPPFLAGS'
20971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20975 elif test "`basename $CXX`" = "KCC"; then
20977 # KCC flags
20979 ompi_exflags="--exceptions"
20981 CXXFLAGS="$ompi_CXXFLAGS_SAVE"
20983 # Save the result
20985 OMPI_CXX_EXCEPTIONS_CXXFLAGS="$ompi_exflags"
20986 OMPI_CXX_EXCEPTIONS_LDFLAGS="$ompi_exflags"
20987 if test "$ompi_exflags" = ""; then
20988 { echo "$as_me:$LINENO: result: none necessary" >&5
20989 echo "${ECHO_T}none necessary" >&6; }
20990 else
20991 { echo "$as_me:$LINENO: result: $ompi_exflags" >&5
20992 echo "${ECHO_T}$ompi_exflags" >&6; }
20995 # Clean up
20997 unset ompi_force_exflags ompi_CXXFLAGS_SAVE ompi_exflags ompi_happy
20998 if test "$OMPI_CXX_EXCEPTIONS" = "1"; then
20999 HAVE_CXX_EXCEPTIONS=1
21000 CFLAGS="$CFLAGS $OMPI_CXX_EXCEPTIONS_CFLAGS"
21001 FFLAGS="$FFLAGS $OMPI_CXX_EXCEPTIONS_FFLAGS"
21002 CXXFLAGS="$CXXFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS"
21003 LDFLAGS="$LDFLAGS $OMPI_CXX_EXCEPTIONS_LDFLAGS"
21005 WRAPPER_EXTRA_CFLAGS="$OMPI_CXX_EXCEPTIONS_CFLAGS ${WRAPPER_EXTRA_CFLAGS}"
21006 WRAPPER_EXTRA_FFLAGS="$OMPI_CXX_EXCEPTIONS_FFLAGS ${WRAPPER_EXTRA_FFLAGS}"
21007 WRAPPER_EXTRA_CXXFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_CXXFLAGS}"
21011 cat >>confdefs.h <<_ACEOF
21012 #define OMPI_HAVE_CXX_EXCEPTION_SUPPORT $HAVE_CXX_EXCEPTIONS
21013 _ACEOF
21016 # Find some more characteristics of the C++ compiler
21018 # config/cxx_find_template_repository.m4
21021 # Arguments: None
21023 # Dependencies: None
21025 # See if the compiler makes template repository directories
21026 # Warning: this is a really screwy example! -JMS
21028 # Sets OMPI_CXX_TEMPLATE_REPOSITORY to the template repository, or blank.
21029 # Must call AC_SUBST manually
21031 { echo "$as_me:$LINENO: checking for C++ template_repository_directory" >&5
21032 echo $ECHO_N "checking for C++ template_repository_directory... $ECHO_C" >&6; }
21033 if test "${ompi_cv_cxx_template_repository+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21037 # Find the repository
21038 mkdir conf_tmp_$$
21039 cd conf_tmp_$$
21040 cat > conftest.h <<EOF
21041 template <class T>
21042 class foo {
21043 public:
21044 foo(T yow) : data(yow) { yow.member(3); };
21045 void member(int i);
21046 private:
21047 T data;
21050 class bar {
21051 public:
21052 bar(int i) { data = i; };
21053 void member(int j) { data = data * j; };
21055 private:
21056 int data;
21060 cat > conftest2.C <<EOF
21061 #include "conftest.h"
21063 void
21064 some_other_function(void)
21066 foo<bar> var1(6);
21067 foo< foo<bar> > var2(var1);
21071 cat > conftest1.C <<EOF
21072 #include "conftest.h"
21074 void some_other_function(void);
21076 template <class T>
21077 void
21078 foo<T>::member(int i)
21080 i += 2;
21084 main(int argc, char *argv)
21086 foo<bar> var1(6);
21087 foo< foo<bar> > var2(var1);
21089 some_other_function();
21090 return 0;
21094 ompi_template_failed=
21095 echo configure:21095: $CXX $CXXFLAGS -c conftest1.C >&5
21096 $CXX $CXXFLAGS -c conftest1.C >&5 2>&5
21097 if test ! -f conftest1.o ; then
21098 ompi_cv_cxx_template_repository="templates not supported"
21099 echo configure:21099: here is the program that failed: >&5
21100 cat conftest1.C >&5
21101 echo configure:21101: here is conftest.h: >&5
21102 cat conftest.h >&5
21103 ompi_template_failed=1
21104 else
21105 echo configure:21105: $CXX $CXXFLAGS -c conftest2.C >&5
21106 $CXX $CXXFLAGS -c conftest2.C >&5 2>&5
21107 if test ! -f conftest2.o ; then
21108 ompi_cv_cxx_template_repository=
21109 echo configure:21109: here is the program that failed: >&5
21110 cat conftest2.C >&5
21111 echo configure:21111: here is conftest.h: >&5
21112 cat conftest.h >&5
21113 else
21114 rm -rf conftest*
21116 for ompi_file in `ls`
21118 if test "$ompi_file" != "." -a "$ompi_file" != ".."; then
21119 # Is it a directory?
21120 if test -d "$ompi_file"; then
21121 ompi_template_dir="$ompi_file $ompi_template_dir"
21123 # Or is it a file?
21124 else
21125 name="`echo $ompi_file | cut -d. -f1`"
21127 temp_mask=
21128 if test "$name" = "main" -o "$name" = "other"; then
21129 temp_mask="`echo $ompi_file | cut -d. -f2`"
21130 if test "$ompi_template_filemask" = ""; then
21131 ompi_template_filemask="$temp_mask";
21132 elif test "`echo $ompi_template_filemask | grep $temp_mask`" = ""; then
21133 ompi_template_filemask="$ompi_template_filemask $temp_mask"
21138 done
21139 if test "$ompi_template_filemask" != ""; then
21140 temp_mask=
21141 for mask in $ompi_template_filemask
21143 temp_mask="*.$mask $temp_mask"
21144 done
21145 ompi_template_filemask=$temp_mask
21149 ompi_cv_cxx_template_repository="$ompi_template_dir $ompi_template_filemask"
21151 if test "`echo $ompi_cv_cxx_template_repository`" = ""; then
21152 ompi_cv_cxx_template_repository="not used"
21154 cd ..
21155 rm -rf conf_tmp_$$
21157 # Clean up
21158 unset ompi_file ompi_template_failed ompi_template_dir
21160 { echo "$as_me:$LINENO: result: $ompi_cv_cxx_template_repository" >&5
21161 echo "${ECHO_T}$ompi_cv_cxx_template_repository" >&6; }
21163 if test "$ompi_cv_cxx_template_repository" = "not used" ; then
21164 OMPI_CXX_TEMPLATE_REPOSITORY=
21165 elif test "$ompi_cv_cxx_template_repository" = "templates not supported" ; then
21166 OMPI_CXX_TEMPLATE_REPOSITORY=
21167 else
21168 OMPI_CXX_TEMPLATE_REPOSITORY="$ompi_cv_cxx_template_repository"
21171 # config/cxx_find_template_parameters.m4
21174 # Arguments: none
21176 # Dependencies: None
21178 # Get the C++ compiler template parameters.
21180 # Adds to CXXFLAGS
21182 { echo "$as_me:$LINENO: checking for C++ compiler template parameters" >&5
21183 echo $ECHO_N "checking for C++ compiler template parameters... $ECHO_C" >&6; }
21184 if test "$BASECXX" = "KCC"; then
21185 new_flags="--one_instantiation_per_object"
21186 CXXFLAGS="$CXXFLAGS $new_flags"
21187 else
21188 new_flags="none needed"
21190 { echo "$as_me:$LINENO: result: $new_flags" >&5
21191 echo "${ECHO_T}$new_flags" >&6; }
21194 # Clean up
21196 unset new_flags
21199 # If we are on HP-UX, ensure that we're using aCC
21200 case "$host" in
21201 *hpux*)
21202 if test "$BASECXX" = "CC"; then
21203 { echo "$as_me:$LINENO: WARNING: *** You will probably have problems compiling the MPI 2" >&5
21204 echo "$as_me: WARNING: *** You will probably have problems compiling the MPI 2" >&2;}
21205 { echo "$as_me:$LINENO: WARNING: *** C++ bindings with the HP-UX CC compiler. You should" >&5
21206 echo "$as_me: WARNING: *** C++ bindings with the HP-UX CC compiler. You should" >&2;}
21207 { echo "$as_me:$LINENO: WARNING: *** probably be using the aCC compiler. Re-run configure" >&5
21208 echo "$as_me: WARNING: *** probably be using the aCC compiler. Re-run configure" >&2;}
21209 { echo "$as_me:$LINENO: WARNING: *** with the environment variable \"CXX=aCC\"." >&5
21210 echo "$as_me: WARNING: *** with the environment variable \"CXX=aCC\"." >&2;}
21213 esac
21215 # see if the compiler supports const_cast of 2-dimensional arrays
21216 ac_ext=cpp
21217 ac_cpp='$CXXCPP $CPPFLAGS'
21218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21222 { echo "$as_me:$LINENO: checking if $CXX supports const_cast<> properly" >&5
21223 echo $ECHO_N "checking if $CXX supports const_cast<> properly... $ECHO_C" >&6; }
21224 if test "${ompi_cv_cxx_supports_2d_const_cast+set}" = set; then
21225 echo $ECHO_N "(cached) $ECHO_C" >&6
21226 else
21227 cat >conftest.$ac_ext <<_ACEOF
21228 /* confdefs.h. */
21229 _ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h. */
21233 int non_const_func(int ranges[][3]);
21234 int cast_test(const int ranges[][3]) {
21235 return non_const_func(const_cast<int(*)[3]>(ranges));
21238 main ()
21242 return 0;
21244 _ACEOF
21245 rm -f conftest.$ac_objext
21246 if { (ac_try="$ac_compile"
21247 case "(($ac_try" in
21248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249 *) ac_try_echo=$ac_try;;
21250 esac
21251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21252 (eval "$ac_compile") 2>conftest.er1
21253 ac_status=$?
21254 grep -v '^ *+' conftest.er1 >conftest.err
21255 rm -f conftest.er1
21256 cat conftest.err >&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } && {
21259 test -z "$ac_cxx_werror_flag" ||
21260 test ! -s conftest.err
21261 } && test -s conftest.$ac_objext; then
21262 ompi_cv_cxx_supports_2d_const_cast="yes"
21263 else
21264 echo "$as_me: failed program was:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21267 ompi_cv_cxx_supports_2d_const_cast="no"
21270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21272 { echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports_2d_const_cast" >&5
21273 echo "${ECHO_T}$ompi_cv_cxx_supports_2d_const_cast" >&6; }
21274 if test "$ompi_cv_cxx_supports_2d_const_cast" = "yes" ; then
21275 use_2d_const_cast=1
21276 else
21277 use_2d_const_cast=0
21280 cat >>confdefs.h <<_ACEOF
21281 #define OMPI_CXX_SUPPORTS_2D_CONST_CAST $use_2d_const_cast
21282 _ACEOF
21284 unset use_2d_const_cast
21285 ac_ext=c
21286 ac_cpp='$CPP $CPPFLAGS'
21287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21292 # Note: gcc-imperonating compilers accept -O3
21293 if test "$GXX" = yes; then
21294 OPTFLAGS="-O3"
21295 else
21296 OPTFLAGS="-O"
21298 # config/ompi_check_optflags.m4
21301 # Modularize this setup so that sub-configure.in scripts can use this
21302 # same setup code.
21304 ##################################
21305 # Optimization flags
21306 ##################################
21308 # If the user did not specify optimization flags, add some (the value
21309 # from $OPTFLAGS)
21311 co_arg=""$CXXFLAGS""
21312 co_found=0
21313 for co_word in $co_arg; do
21314 case $co_word in
21315 -g) co_found=1 ;;
21316 -g1) co_found=1 ;;
21317 -g2) co_found=1 ;;
21318 -g3) co_found=1 ;;
21319 +K0) co_found=1 ;;
21320 +K1) co_found=1 ;;
21321 +K2) co_found=1 ;;
21322 +K3) co_found=1 ;;
21323 +K4) co_found=1 ;;
21324 +K5) co_found=1 ;;
21325 -O) co_found=1 ;;
21326 -O0) co_found=1 ;;
21327 -O1) co_found=1 ;;
21328 -O2) co_found=1 ;;
21329 -O3) co_found=1 ;;
21330 -O4) co_found=1 ;;
21331 -O5) co_found=1 ;;
21332 -O6) co_found=1 ;;
21333 -O7) co_found=1 ;;
21334 -O8) co_found=1 ;;
21335 -O9) co_found=1 ;;
21336 -xO) co_found=1 ;;
21337 -xO0) co_found=1 ;;
21338 -xO1) co_found=1 ;;
21339 -xO2) co_found=1 ;;
21340 -xO3) co_found=1 ;;
21341 -xO4) co_found=1 ;;
21342 -xO5) co_found=1 ;;
21343 -xO6) co_found=1 ;;
21344 -xO7) co_found=1 ;;
21345 -xO8) co_found=1 ;;
21346 -xO9) co_found=1 ;;
21347 -fast) co_found=1 ;;
21348 esac
21349 done
21351 if test "$co_found" = "0"; then
21352 co_result="$OPTFLAGS $co_arg"
21353 else
21354 co_result="$co_arg"
21357 # Clean up
21359 unset co_found co_word co_arg
21361 { echo "$as_me:$LINENO: checking for C++ optimization flags" >&5
21362 echo $ECHO_N "checking for C++ optimization flags... $ECHO_C" >&6; }
21363 { echo "$as_me:$LINENO: result: $co_result" >&5
21364 echo "${ECHO_T}$co_result" >&6; }
21365 CXXFLAGS="$co_result"
21368 # check for type sizes
21370 ac_ext=cpp
21371 ac_cpp='$CXXCPP $CPPFLAGS'
21372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21376 { echo "$as_me:$LINENO: checking for bool" >&5
21377 echo $ECHO_N "checking for bool... $ECHO_C" >&6; }
21378 if test "${ac_cv_type_bool+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21380 else
21381 cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h. */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 $ac_includes_default
21388 typedef bool ac__type_new_;
21390 main ()
21392 if ((ac__type_new_ *) 0)
21393 return 0;
21394 if (sizeof (ac__type_new_))
21395 return 0;
21397 return 0;
21399 _ACEOF
21400 rm -f conftest.$ac_objext
21401 if { (ac_try="$ac_compile"
21402 case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21405 esac
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_compile") 2>conftest.er1
21408 ac_status=$?
21409 grep -v '^ *+' conftest.er1 >conftest.err
21410 rm -f conftest.er1
21411 cat conftest.err >&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } && {
21414 test -z "$ac_cxx_werror_flag" ||
21415 test ! -s conftest.err
21416 } && test -s conftest.$ac_objext; then
21417 ac_cv_type_bool=yes
21418 else
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21422 ac_cv_type_bool=no
21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 { echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
21428 echo "${ECHO_T}$ac_cv_type_bool" >&6; }
21430 # The cast to long int works around a bug in the HP C Compiler
21431 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21432 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21433 # This bug is HP SR number 8606223364.
21434 { echo "$as_me:$LINENO: checking size of bool" >&5
21435 echo $ECHO_N "checking size of bool... $ECHO_C" >&6; }
21436 if test "${ac_cv_sizeof_bool+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21438 else
21439 if test "$cross_compiling" = yes; then
21440 # Depending upon the size, compute the lo and hi bounds.
21441 cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h. */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 $ac_includes_default
21448 typedef bool ac__type_sizeof_;
21450 main ()
21452 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21453 test_array [0] = 0
21456 return 0;
21458 _ACEOF
21459 rm -f conftest.$ac_objext
21460 if { (ac_try="$ac_compile"
21461 case "(($ac_try" in
21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21464 esac
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_compile") 2>conftest.er1
21467 ac_status=$?
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } && {
21473 test -z "$ac_cxx_werror_flag" ||
21474 test ! -s conftest.err
21475 } && test -s conftest.$ac_objext; then
21476 ac_lo=0 ac_mid=0
21477 while :; do
21478 cat >conftest.$ac_ext <<_ACEOF
21479 /* confdefs.h. */
21480 _ACEOF
21481 cat confdefs.h >>conftest.$ac_ext
21482 cat >>conftest.$ac_ext <<_ACEOF
21483 /* end confdefs.h. */
21484 $ac_includes_default
21485 typedef bool ac__type_sizeof_;
21487 main ()
21489 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21490 test_array [0] = 0
21493 return 0;
21495 _ACEOF
21496 rm -f conftest.$ac_objext
21497 if { (ac_try="$ac_compile"
21498 case "(($ac_try" in
21499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500 *) ac_try_echo=$ac_try;;
21501 esac
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503 (eval "$ac_compile") 2>conftest.er1
21504 ac_status=$?
21505 grep -v '^ *+' conftest.er1 >conftest.err
21506 rm -f conftest.er1
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } && {
21510 test -z "$ac_cxx_werror_flag" ||
21511 test ! -s conftest.err
21512 } && test -s conftest.$ac_objext; then
21513 ac_hi=$ac_mid; break
21514 else
21515 echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21518 ac_lo=`expr $ac_mid + 1`
21519 if test $ac_lo -le $ac_mid; then
21520 ac_lo= ac_hi=
21521 break
21523 ac_mid=`expr 2 '*' $ac_mid + 1`
21526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21527 done
21528 else
21529 echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21532 cat >conftest.$ac_ext <<_ACEOF
21533 /* confdefs.h. */
21534 _ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h. */
21538 $ac_includes_default
21539 typedef bool ac__type_sizeof_;
21541 main ()
21543 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21544 test_array [0] = 0
21547 return 0;
21549 _ACEOF
21550 rm -f conftest.$ac_objext
21551 if { (ac_try="$ac_compile"
21552 case "(($ac_try" in
21553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554 *) ac_try_echo=$ac_try;;
21555 esac
21556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21557 (eval "$ac_compile") 2>conftest.er1
21558 ac_status=$?
21559 grep -v '^ *+' conftest.er1 >conftest.err
21560 rm -f conftest.er1
21561 cat conftest.err >&5
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); } && {
21564 test -z "$ac_cxx_werror_flag" ||
21565 test ! -s conftest.err
21566 } && test -s conftest.$ac_objext; then
21567 ac_hi=-1 ac_mid=-1
21568 while :; do
21569 cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h. */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 $ac_includes_default
21576 typedef bool ac__type_sizeof_;
21578 main ()
21580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21581 test_array [0] = 0
21584 return 0;
21586 _ACEOF
21587 rm -f conftest.$ac_objext
21588 if { (ac_try="$ac_compile"
21589 case "(($ac_try" in
21590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591 *) ac_try_echo=$ac_try;;
21592 esac
21593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594 (eval "$ac_compile") 2>conftest.er1
21595 ac_status=$?
21596 grep -v '^ *+' conftest.er1 >conftest.err
21597 rm -f conftest.er1
21598 cat conftest.err >&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } && {
21601 test -z "$ac_cxx_werror_flag" ||
21602 test ! -s conftest.err
21603 } && test -s conftest.$ac_objext; then
21604 ac_lo=$ac_mid; break
21605 else
21606 echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21609 ac_hi=`expr '(' $ac_mid ')' - 1`
21610 if test $ac_mid -le $ac_hi; then
21611 ac_lo= ac_hi=
21612 break
21614 ac_mid=`expr 2 '*' $ac_mid`
21617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21618 done
21619 else
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21623 ac_lo= ac_hi=
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21630 # Binary search between lo and hi bounds.
21631 while test "x$ac_lo" != "x$ac_hi"; do
21632 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21633 cat >conftest.$ac_ext <<_ACEOF
21634 /* confdefs.h. */
21635 _ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21639 $ac_includes_default
21640 typedef bool ac__type_sizeof_;
21642 main ()
21644 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21645 test_array [0] = 0
21648 return 0;
21650 _ACEOF
21651 rm -f conftest.$ac_objext
21652 if { (ac_try="$ac_compile"
21653 case "(($ac_try" in
21654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655 *) ac_try_echo=$ac_try;;
21656 esac
21657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21658 (eval "$ac_compile") 2>conftest.er1
21659 ac_status=$?
21660 grep -v '^ *+' conftest.er1 >conftest.err
21661 rm -f conftest.er1
21662 cat conftest.err >&5
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } && {
21665 test -z "$ac_cxx_werror_flag" ||
21666 test ! -s conftest.err
21667 } && test -s conftest.$ac_objext; then
21668 ac_hi=$ac_mid
21669 else
21670 echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21673 ac_lo=`expr '(' $ac_mid ')' + 1`
21676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21677 done
21678 case $ac_lo in
21679 ?*) ac_cv_sizeof_bool=$ac_lo;;
21680 '') if test "$ac_cv_type_bool" = yes; then
21681 { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool)
21682 See \`config.log' for more details." >&5
21683 echo "$as_me: error: cannot compute sizeof (bool)
21684 See \`config.log' for more details." >&2;}
21685 { (exit 77); exit 77; }; }
21686 else
21687 ac_cv_sizeof_bool=0
21688 fi ;;
21689 esac
21690 else
21691 cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h. */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h. */
21697 $ac_includes_default
21698 typedef bool ac__type_sizeof_;
21699 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21700 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21701 #include <stdio.h>
21702 #include <stdlib.h>
21704 main ()
21707 FILE *f = fopen ("conftest.val", "w");
21708 if (! f)
21709 return 1;
21710 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21712 long int i = longval ();
21713 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21714 return 1;
21715 fprintf (f, "%ld\n", i);
21717 else
21719 unsigned long int i = ulongval ();
21720 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21721 return 1;
21722 fprintf (f, "%lu\n", i);
21724 return ferror (f) || fclose (f) != 0;
21727 return 0;
21729 _ACEOF
21730 rm -f conftest$ac_exeext
21731 if { (ac_try="$ac_link"
21732 case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21735 esac
21736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21737 (eval "$ac_link") 2>&5
21738 ac_status=$?
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21741 { (case "(($ac_try" in
21742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743 *) ac_try_echo=$ac_try;;
21744 esac
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746 (eval "$ac_try") 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 ac_cv_sizeof_bool=`cat conftest.val`
21751 else
21752 echo "$as_me: program exited with status $ac_status" >&5
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ( exit $ac_status )
21757 if test "$ac_cv_type_bool" = yes; then
21758 { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool)
21759 See \`config.log' for more details." >&5
21760 echo "$as_me: error: cannot compute sizeof (bool)
21761 See \`config.log' for more details." >&2;}
21762 { (exit 77); exit 77; }; }
21763 else
21764 ac_cv_sizeof_bool=0
21767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21769 rm -f conftest.val
21771 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_bool" >&5
21772 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6; }
21776 cat >>confdefs.h <<_ACEOF
21777 #define SIZEOF_BOOL $ac_cv_sizeof_bool
21778 _ACEOF
21782 # check for type alignments
21785 { echo "$as_me:$LINENO: checking alignment of bool" >&5
21786 echo $ECHO_N "checking alignment of bool... $ECHO_C" >&6; }
21787 if test "${ompi_cv_c_align_bool+set}" = set; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21789 else
21790 if test "$cross_compiling" = yes; then
21791 # cross compile - do a non-executable test. Trick
21792 # taken from the Autoconf 2.59c. Switch to using
21793 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
21794 if test "$cross_compiling" = yes; then
21795 # Depending upon the size, compute the lo and hi bounds.
21796 cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h. */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21802 $ac_includes_default
21803 #ifndef offsetof
21804 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21805 #endif
21806 typedef struct { char x; bool y; } ompi__type_alignof_;
21809 main ()
21811 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
21812 test_array [0] = 0
21815 return 0;
21817 _ACEOF
21818 rm -f conftest.$ac_objext
21819 if { (ac_try="$ac_compile"
21820 case "(($ac_try" in
21821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822 *) ac_try_echo=$ac_try;;
21823 esac
21824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825 (eval "$ac_compile") 2>conftest.er1
21826 ac_status=$?
21827 grep -v '^ *+' conftest.er1 >conftest.err
21828 rm -f conftest.er1
21829 cat conftest.err >&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } && {
21832 test -z "$ac_cxx_werror_flag" ||
21833 test ! -s conftest.err
21834 } && test -s conftest.$ac_objext; then
21835 ac_lo=0 ac_mid=0
21836 while :; do
21837 cat >conftest.$ac_ext <<_ACEOF
21838 /* confdefs.h. */
21839 _ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21843 $ac_includes_default
21844 #ifndef offsetof
21845 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21846 #endif
21847 typedef struct { char x; bool y; } ompi__type_alignof_;
21850 main ()
21852 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
21853 test_array [0] = 0
21856 return 0;
21858 _ACEOF
21859 rm -f conftest.$ac_objext
21860 if { (ac_try="$ac_compile"
21861 case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21864 esac
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_compile") 2>conftest.er1
21867 ac_status=$?
21868 grep -v '^ *+' conftest.er1 >conftest.err
21869 rm -f conftest.er1
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_cxx_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest.$ac_objext; then
21876 ac_hi=$ac_mid; break
21877 else
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21881 ac_lo=`expr $ac_mid + 1`
21882 if test $ac_lo -le $ac_mid; then
21883 ac_lo= ac_hi=
21884 break
21886 ac_mid=`expr 2 '*' $ac_mid + 1`
21889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21890 done
21891 else
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21895 cat >conftest.$ac_ext <<_ACEOF
21896 /* confdefs.h. */
21897 _ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h. */
21901 $ac_includes_default
21902 #ifndef offsetof
21903 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21904 #endif
21905 typedef struct { char x; bool y; } ompi__type_alignof_;
21908 main ()
21910 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
21911 test_array [0] = 0
21914 return 0;
21916 _ACEOF
21917 rm -f conftest.$ac_objext
21918 if { (ac_try="$ac_compile"
21919 case "(($ac_try" in
21920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921 *) ac_try_echo=$ac_try;;
21922 esac
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924 (eval "$ac_compile") 2>conftest.er1
21925 ac_status=$?
21926 grep -v '^ *+' conftest.er1 >conftest.err
21927 rm -f conftest.er1
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } && {
21931 test -z "$ac_cxx_werror_flag" ||
21932 test ! -s conftest.err
21933 } && test -s conftest.$ac_objext; then
21934 ac_hi=-1 ac_mid=-1
21935 while :; do
21936 cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h. */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21942 $ac_includes_default
21943 #ifndef offsetof
21944 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21945 #endif
21946 typedef struct { char x; bool y; } ompi__type_alignof_;
21949 main ()
21951 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
21952 test_array [0] = 0
21955 return 0;
21957 _ACEOF
21958 rm -f conftest.$ac_objext
21959 if { (ac_try="$ac_compile"
21960 case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21963 esac
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_compile") 2>conftest.er1
21966 ac_status=$?
21967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } && {
21972 test -z "$ac_cxx_werror_flag" ||
21973 test ! -s conftest.err
21974 } && test -s conftest.$ac_objext; then
21975 ac_lo=$ac_mid; break
21976 else
21977 echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 ac_hi=`expr '(' $ac_mid ')' - 1`
21981 if test $ac_mid -le $ac_hi; then
21982 ac_lo= ac_hi=
21983 break
21985 ac_mid=`expr 2 '*' $ac_mid`
21988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989 done
21990 else
21991 echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21994 ac_lo= ac_hi=
21997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22001 # Binary search between lo and hi bounds.
22002 while test "x$ac_lo" != "x$ac_hi"; do
22003 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22004 cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h. */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 $ac_includes_default
22011 #ifndef offsetof
22012 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22013 #endif
22014 typedef struct { char x; bool y; } ompi__type_alignof_;
22017 main ()
22019 static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
22020 test_array [0] = 0
22023 return 0;
22025 _ACEOF
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22031 esac
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_compile") 2>conftest.er1
22034 ac_status=$?
22035 grep -v '^ *+' conftest.er1 >conftest.err
22036 rm -f conftest.er1
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_cxx_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest.$ac_objext; then
22043 ac_hi=$ac_mid
22044 else
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ac_lo=`expr '(' $ac_mid ')' + 1`
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052 done
22053 case $ac_lo in
22054 ?*) ompi_cv_c_align_bool=$ac_lo;;
22055 '') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
22056 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
22057 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
22058 echo "$as_me: WARNING: *** See config.log for details." >&2;}
22059 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
22060 echo "$as_me: error: *** Cannot continue." >&2;}
22061 { (exit 1); exit 1; }; } ;;
22062 esac
22063 else
22064 cat >conftest.$ac_ext <<_ACEOF
22065 /* confdefs.h. */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22070 $ac_includes_default
22071 #ifndef offsetof
22072 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22073 #endif
22074 typedef struct { char x; bool y; } ompi__type_alignof_;
22076 static long int longval () { return (long int) offsetof (ompi__type_alignof_, y); }
22077 static unsigned long int ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
22078 #include <stdio.h>
22079 #include <stdlib.h>
22081 main ()
22084 FILE *f = fopen ("conftest.val", "w");
22085 if (! f)
22086 return 1;
22087 if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
22089 long int i = longval ();
22090 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
22091 return 1;
22092 fprintf (f, "%ld\n", i);
22094 else
22096 unsigned long int i = ulongval ();
22097 if (i != ((long int) offsetof (ompi__type_alignof_, y)))
22098 return 1;
22099 fprintf (f, "%lu\n", i);
22101 return ferror (f) || fclose (f) != 0;
22104 return 0;
22106 _ACEOF
22107 rm -f conftest$ac_exeext
22108 if { (ac_try="$ac_link"
22109 case "(($ac_try" in
22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22112 esac
22113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114 (eval "$ac_link") 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22118 { (case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_try") 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 ompi_cv_c_align_bool=`cat conftest.val`
22128 else
22129 echo "$as_me: program exited with status $ac_status" >&5
22130 echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22133 ( exit $ac_status )
22134 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
22135 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
22136 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
22137 echo "$as_me: WARNING: *** See config.log for details." >&2;}
22138 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
22139 echo "$as_me: error: *** Cannot continue." >&2;}
22140 { (exit 1); exit 1; }; }
22142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22144 rm -f conftest.val
22146 else
22147 cat >conftest.$ac_ext <<_ACEOF
22148 /* confdefs.h. */
22149 _ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22154 #include <stddef.h>
22155 #include <stdio.h>
22156 #include <stdlib.h>
22157 struct foo { char c; bool x; };
22158 int main(int argc, char* argv[])
22160 struct foo *p = (struct foo *) malloc(sizeof(struct foo));
22161 int diff;
22162 FILE *f=fopen("conftestval", "w");
22163 if (!f) exit(1);
22164 diff = ((char *)&p->x) - ((char *)&p->c);
22165 fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
22166 return 0;
22168 _ACEOF
22169 rm -f conftest$ac_exeext
22170 if { (ac_try="$ac_link"
22171 case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22174 esac
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176 (eval "$ac_link") 2>&5
22177 ac_status=$?
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22180 { (case "(($ac_try" in
22181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182 *) ac_try_echo=$ac_try;;
22183 esac
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185 (eval "$ac_try") 2>&5
22186 ac_status=$?
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); }; }; then
22189 ompi_cv_c_align_bool=`cat conftestval`
22190 else
22191 echo "$as_me: program exited with status $ac_status" >&5
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 ( exit $ac_status )
22196 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
22197 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
22198 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
22199 echo "$as_me: WARNING: *** See config.log for details." >&2;}
22200 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
22201 echo "$as_me: error: *** Cannot continue." >&2;}
22202 { (exit 1); exit 1; }; }
22204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22209 { echo "$as_me:$LINENO: result: $ompi_cv_c_align_bool" >&5
22210 echo "${ECHO_T}$ompi_cv_c_align_bool" >&6; }
22213 cat >>confdefs.h <<_ACEOF
22214 #define OMPI_ALIGNMENT_CXX_BOOL $ompi_cv_c_align_bool
22215 _ACEOF
22217 eval "OMPI_ALIGNMENT_CXX_BOOL=$ompi_cv_c_align_bool"
22219 /bin/rm -f conftest*
22220 ac_ext=c
22221 ac_cpp='$CPP $CPPFLAGS'
22222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22227 # check if we want C++ support
22231 if test "$WANT_MPI_CXX_SUPPORT" = 1; then
22232 WANT_MPI_CXX_BINDINGS_TRUE=
22233 WANT_MPI_CXX_BINDINGS_FALSE='#'
22234 else
22235 WANT_MPI_CXX_BINDINGS_TRUE='#'
22236 WANT_MPI_CXX_BINDINGS_FALSE=
22240 cat >>confdefs.h <<_ACEOF
22241 #define OMPI_WANT_CXX_BINDINGS $WANT_MPI_CXX_SUPPORT
22242 _ACEOF
22246 ##################################
22247 # Assembler Configuration
22248 ##################################
22250 ompi_show_subtitle "Assembler"
22252 # By default we simply use the C compiler to build assembly code.
22254 test "${CCAS+set}" = set || CCAS=$CC
22255 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
22259 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
22260 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
22261 if test "${lt_cv_path_NM+set}" = set; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
22263 else
22264 if test -n "$NM"; then
22265 # Let the user override the test.
22266 lt_cv_path_NM="$NM"
22267 else
22268 lt_nm_to_check="${ac_tool_prefix}nm"
22269 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
22270 lt_nm_to_check="$lt_nm_to_check nm"
22272 for lt_tmp_nm in $lt_nm_to_check; do
22273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22274 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
22275 IFS="$lt_save_ifs"
22276 test -z "$ac_dir" && ac_dir=.
22277 tmp_nm="$ac_dir/$lt_tmp_nm"
22278 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
22279 # Check to see if the nm accepts a BSD-compat flag.
22280 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
22281 # nm: unknown option "B" ignored
22282 # Tru64's nm complains that /dev/null is an invalid object file
22283 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
22284 */dev/null* | *'Invalid file or object type'*)
22285 lt_cv_path_NM="$tmp_nm -B"
22286 break
22289 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
22290 */dev/null*)
22291 lt_cv_path_NM="$tmp_nm -p"
22292 break
22295 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
22296 continue # so that we can try to find one that supports BSD flags
22298 esac
22300 esac
22302 done
22303 IFS="$lt_save_ifs"
22304 done
22305 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
22308 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
22309 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
22310 NM="$lt_cv_path_NM"
22312 { echo "$as_me:$LINENO: checking for fgrep" >&5
22313 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
22314 if test "${ac_cv_path_FGREP+set}" = set; then
22315 echo $ECHO_N "(cached) $ECHO_C" >&6
22316 else
22317 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
22318 then ac_cv_path_FGREP="$GREP -F"
22319 else
22320 # Extract the first word of "fgrep" to use in msg output
22321 if test -z "$FGREP"; then
22322 set dummy fgrep; ac_prog_name=$2
22323 if test "${ac_cv_path_FGREP+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 else
22326 ac_path_FGREP_found=false
22327 # Loop through the user's path and test for each of PROGNAME-LIST
22328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
22331 IFS=$as_save_IFS
22332 test -z "$as_dir" && as_dir=.
22333 for ac_prog in fgrep; do
22334 for ac_exec_ext in '' $ac_executable_extensions; do
22335 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22336 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
22337 # Check for GNU ac_path_FGREP and select it if it is found.
22338 # Check for GNU $ac_path_FGREP
22339 case `"$ac_path_FGREP" --version 2>&1` in
22340 *GNU*)
22341 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
22343 ac_count=0
22344 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
22345 while :
22347 cat "conftest.in" "conftest.in" >"conftest.tmp"
22348 mv "conftest.tmp" "conftest.in"
22349 cp "conftest.in" "conftest.nl"
22350 echo 'FGREP' >> "conftest.nl"
22351 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
22352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
22353 ac_count=`expr $ac_count + 1`
22354 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
22355 # Best one so far, save it but keep looking for a better one
22356 ac_cv_path_FGREP="$ac_path_FGREP"
22357 ac_path_FGREP_max=$ac_count
22359 # 10*(2^10) chars as input seems more than enough
22360 test $ac_count -gt 10 && break
22361 done
22362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
22363 esac
22366 $ac_path_FGREP_found && break 3
22367 done
22368 done
22370 done
22371 IFS=$as_save_IFS
22376 FGREP="$ac_cv_path_FGREP"
22377 if test -z "$FGREP"; then
22378 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
22379 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
22380 { (exit 1); exit 1; }; }
22383 else
22384 ac_cv_path_FGREP=$FGREP
22390 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
22391 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
22392 FGREP="$ac_cv_path_FGREP"
22401 { echo "$as_me:$LINENO: checking whether to enable smp locks" >&5
22402 echo $ECHO_N "checking whether to enable smp locks... $ECHO_C" >&6; }
22403 # Check whether --enable-smp-locks was given.
22404 if test "${enable_smp_locks+set}" = set; then
22405 enableval=$enable_smp_locks;
22408 if test "$enable_smp_locks" != "no"; then
22409 { echo "$as_me:$LINENO: result: yes" >&5
22410 echo "${ECHO_T}yes" >&6; }
22411 want_smp_locks=1
22412 else
22413 { echo "$as_me:$LINENO: result: no" >&5
22414 echo "${ECHO_T}no" >&6; }
22415 want_smp_locks=0
22418 cat >>confdefs.h <<_ACEOF
22419 #define OMPI_WANT_SMP_LOCKS $want_smp_locks
22420 _ACEOF
22423 if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
22424 ompi_cv_asm_arch="WINDOWS"
22425 else
22427 { echo "$as_me:$LINENO: checking directive for setting text section" >&5
22428 echo $ECHO_N "checking directive for setting text section... $ECHO_C" >&6; }
22429 ompi_cv_asm_text=""
22430 if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
22431 # text section will be brought in with the rest of
22432 # header for MS - leave blank for now
22433 ompi_cv_asm_text=""
22434 else
22435 case $host in
22436 *-aix*)
22437 ompi_cv_asm_text=".csect .text[PR]"
22440 ompi_cv_asm_text=".text"
22442 esac
22444 { echo "$as_me:$LINENO: result: $ompi_cv_asm_text" >&5
22445 echo "${ECHO_T}$ompi_cv_asm_text" >&6; }
22447 cat >>confdefs.h <<_ACEOF
22448 #define OMPI_ASM_TEXT "$ompi_cv_asm_text"
22449 _ACEOF
22451 OMPI_ASM_TEXT="$ompi_cv_asm_text"
22455 { echo "$as_me:$LINENO: checking directive for exporting symbols" >&5
22456 echo $ECHO_N "checking directive for exporting symbols... $ECHO_C" >&6; }
22457 ompi_cv_asm_global=""
22458 if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
22459 ompi_cv_asm_global="PUBLIC"
22460 else
22461 case $host in
22463 ompi_cv_asm_global=".globl"
22465 esac
22467 { echo "$as_me:$LINENO: result: $ompi_cv_asm_global" >&5
22468 echo "${ECHO_T}$ompi_cv_asm_global" >&6; }
22470 cat >>confdefs.h <<_ACEOF
22471 #define OMPI_ASM_GLOBAL "$ompi_cv_asm_global"
22472 _ACEOF
22474 OMPI_ASM_GLOBAL="$ompi_cv_asm_global"
22478 # Extract the first word of "objdump", so it can be a program name with args.
22479 set dummy objdump; ac_word=$2
22480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22482 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
22483 echo $ECHO_N "(cached) $ECHO_C" >&6
22484 else
22485 if test -n "$OBJDUMP"; then
22486 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
22487 else
22488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22489 for as_dir in $PATH
22491 IFS=$as_save_IFS
22492 test -z "$as_dir" && as_dir=.
22493 for ac_exec_ext in '' $ac_executable_extensions; do
22494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22495 ac_cv_prog_OBJDUMP="objdump"
22496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22497 break 2
22499 done
22500 done
22501 IFS=$as_save_IFS
22505 OBJDUMP=$ac_cv_prog_OBJDUMP
22506 if test -n "$OBJDUMP"; then
22507 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
22508 echo "${ECHO_T}$OBJDUMP" >&6; }
22509 else
22510 { echo "$as_me:$LINENO: result: no" >&5
22511 echo "${ECHO_T}no" >&6; }
22515 { echo "$as_me:$LINENO: checking if .note.GNU-stack is needed" >&5
22516 echo $ECHO_N "checking if .note.GNU-stack is needed... $ECHO_C" >&6; }
22517 if test "${ompi_cv_asm_gnu_stack_result+set}" = set; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22519 else
22520 if test "$OBJDUMP" != ""; then
22521 # first, see if a simple C program has it set
22522 cat >conftest.c <<EOF
22523 int testfunc() {return 0; }
22526 # 1 is the command
22527 # 2 is actions to do if success
22528 # 3 is actions to do if fail
22529 echo "configure:22529: $CC $CFLAGS -c conftest.c -o conftest.$OBJEXT" >&5
22530 $CC $CFLAGS -c conftest.c -o conftest.$OBJEXT 1>&5 2>&1
22531 ompi_status=$?
22533 # 1 is the message
22534 # 2 is whether to put a prefix or not
22535 if test -n "1"; then
22536 echo "configure:22536: \$? = $ompi_status" >&5
22537 else
22538 echo \$? = $ompi_status >&5
22540 if test "$ompi_status" = "0"; then
22541 unset ompi_status
22542 $OBJDUMP -x conftest.$OBJEXT | grep '\.note\.GNU-stack' > /dev/null && ompi_cv_asm_gnu_stack_result=yes
22543 else
22544 unset ompi_status
22546 # 1 is the message
22547 # 2 is whether to put a prefix or not
22548 if test -n "1"; then
22549 echo "configure:22549: the failed program was:" >&5
22550 else
22551 echo the failed program was: >&5
22554 # 1 is the filename
22555 if test -n "conftest.c" -a -f "conftest.c"; then
22556 cat conftest.c >&5
22558 ompi_cv_asm_gnu_stack_result=no
22560 if test "$ompi_cv_asm_gnu_stack_result" != "yes" ; then
22561 ompi_cv_asm_gnu_stack_result="no"
22563 rm -f conftest.*
22564 else
22565 ompi_cv_asm_gnu_stack_result="no"
22569 { echo "$as_me:$LINENO: result: $ompi_cv_asm_gnu_stack_result" >&5
22570 echo "${ECHO_T}$ompi_cv_asm_gnu_stack_result" >&6; }
22571 if test "$ompi_cv_asm_gnu_stack_result" = "yes" ; then
22572 ompi_cv_asm_gnu_stack=1
22573 else
22574 ompi_cv_asm_gnu_stack=0
22578 { echo "$as_me:$LINENO: checking suffix for labels" >&5
22579 echo $ECHO_N "checking suffix for labels... $ECHO_C" >&6; }
22580 ompi_cv_asm_label_suffix=""
22581 case $host in
22583 ompi_cv_asm_label_suffix=":"
22585 esac
22586 { echo "$as_me:$LINENO: result: $ompi_cv_asm_label_suffix" >&5
22587 echo "${ECHO_T}$ompi_cv_asm_label_suffix" >&6; }
22589 cat >>confdefs.h <<_ACEOF
22590 #define OMPI_ASM_LABEL_SUFFIX "$ompi_cv_asm_label_suffix"
22591 _ACEOF
22593 OMPI_ASM_LABEL_SUFFIX="$ompi_cv_asm_label_suffix"
22597 { echo "$as_me:$LINENO: checking prefix for global symbol labels" >&5
22598 echo $ECHO_N "checking prefix for global symbol labels... $ECHO_C" >&6; }
22599 if test "${ompi_cv_asm_gsym+set}" = set; then
22600 echo $ECHO_N "(cached) $ECHO_C" >&6
22601 else
22603 ompi_cv_asm_gsym="none"
22605 for sym in "_" "" "." ; do
22606 asm_result=0
22607 echo "configure: trying $sym" >&5
22608 cat > conftest_c.c <<EOF
22609 #ifdef __cplusplus
22610 extern "C" {
22611 #endif
22612 void gsym_test_func(void);
22613 #ifdef __cplusplus
22615 #endif
22617 main(int argc, char *argv[])
22619 gsym_test_func();
22620 return 0;
22623 cat >conftest.s <<EOF
22625 $ompi_cv_asm_text
22626 $ompi_cv_asm_global ${sym}gsym_test_func
22627 ${sym}gsym_test_func${ompi_cv_asm_label_suffix}
22629 if test "$CC" = "$CCAS" ; then
22630 ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
22631 else
22632 ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
22634 if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
22635 (eval $ompi_assemble) 2>&5
22636 ac_status=$?
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; then
22639 # save the warnings
22640 cat conftest.out >&5
22641 ompi_compile="$CC $CFLAGS -I. conftest_c.c -c > conftest.cmpl 2>&1"
22642 if { (eval echo "$as_me:$LINENO: \"$ompi_compile\"") >&5
22643 (eval $ompi_compile) 2>&5
22644 ac_status=$?
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); } ; then
22647 # save the warnings
22648 cat conftest.cmpl >&5
22649 ompi_link="$CC $CFLAGS conftest_c.$OBJEXT conftest.$OBJEXT -o conftest > conftest.link 2>&1"
22650 if { (eval echo "$as_me:$LINENO: \"$ompi_link\"") >&5
22651 (eval $ompi_link) 2>&5
22652 ac_status=$?
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } ; then
22655 # save the warnings
22656 cat conftest.link >&5
22657 asm_result=1
22658 else
22659 cat conftest.link >&5
22660 echo "configure: failed C program was: " >&5
22661 cat conftest_c.c >&5
22662 echo "configure: failed ASM program was: " >&5
22663 cat conftest.s >&5
22664 asm_result=0
22666 else
22667 # save output and failed program
22668 cat conftest.cmpl >&5
22669 echo "configure: failed C program was: " >&5
22670 cat conftest.c >&5
22671 asm_result=0
22673 else
22674 # save compiler output and failed program
22675 cat conftest.out >&5
22676 echo "configure: failed program was:" >&5
22677 cat conftest.s >&5
22678 asm_result=0
22680 rm -f conftest*
22681 unset ompi_assemble
22683 if test "$asm_result" = "1" ; then
22684 ompi_cv_asm_gsym="$sym"
22685 break
22687 done
22688 rm -f conftest.*
22691 { echo "$as_me:$LINENO: result: $ompi_cv_asm_gsym" >&5
22692 echo "${ECHO_T}$ompi_cv_asm_gsym" >&6; }
22694 if test "$ompi_cv_asm_gsym" = "none" ; then
22695 { { echo "$as_me:$LINENO: error: Could not determine global symbol label prefix" >&5
22696 echo "$as_me: error: Could not determine global symbol label prefix" >&2;}
22697 { (exit 1); exit 1; }; }
22701 cat >>confdefs.h <<_ACEOF
22702 #define OMPI_ASM_GSYM "$ompi_cv_asm_gsym"
22703 _ACEOF
22705 OMPI_ASM_GSYM="$ompi_cv_asm_gsym"
22712 { echo "$as_me:$LINENO: checking prefix for lsym labels" >&5
22713 echo $ECHO_N "checking prefix for lsym labels... $ECHO_C" >&6; }
22714 if test "${ompi_cv_asm_lsym+set}" = set; then
22715 echo $ECHO_N "(cached) $ECHO_C" >&6
22716 else
22718 ompi_cv_asm_lsym="L"
22720 for sym in L .L $ L$ ; do
22721 asm_result=0
22722 echo "configure: trying $sym" >&5
22723 cat >conftest.s <<EOF
22724 foobar$ompi_cv_asm_label_suffix
22725 ${sym}mytestlabel$ompi_cv_asm_label_suffix
22727 if test "$CC" = "$CCAS" ; then
22728 ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
22729 else
22730 ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
22732 if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
22733 (eval $ompi_assemble) 2>&5
22734 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; then
22737 # save the warnings
22738 cat conftest.out >&5
22739 # ok, we succeeded at assembling. see if we can nm,
22740 # throwing the results in a file
22741 if $NM conftest.$OBJEXT > conftest.out 2>&5 ; then
22742 if test "`grep mytestlabel conftest.out`" = "" ; then
22743 # there was no symbol... looks promising to me
22744 ompi_cv_asm_lsym="$sym"
22745 asm_result=1
22746 elif test "`grep ' [Nt] .*mytestlabel' conftest.out`" = "" ; then
22747 # see if we have a non-global-ish symbol
22748 # but we should see if we can do better.
22749 ompi_cv_asm_lsym="$sym"
22751 else
22752 # not so much on the NM goodness :/
22753 echo "$NM failed. Output from NM was:" >&5
22754 cat conftest.out >&5
22755 { echo "$as_me:$LINENO: WARNING: $NM could not read object file" >&5
22756 echo "$as_me: WARNING: $NM could not read object file" >&2;}
22759 else
22760 # save compiler output and failed program
22761 cat conftest.out >&5
22762 echo "configure: failed program was:" >&5
22763 cat conftest.s >&5
22766 rm -f conftest*
22767 unset ompi_assemble
22769 if test "$asm_result" = "1" ; then
22770 break
22772 done
22773 rm -f conftest.out
22774 unset asm_result sym
22777 { echo "$as_me:$LINENO: result: $ompi_cv_asm_lsym" >&5
22778 echo "${ECHO_T}$ompi_cv_asm_lsym" >&6; }
22780 cat >>confdefs.h <<_ACEOF
22781 #define OMPI_ASM_LSYM "$ompi_cv_asm_lsym"
22782 _ACEOF
22784 OMPI_ASM_LSYM="$ompi_cv_asm_lsym"
22788 { echo "$as_me:$LINENO: checking prefix for function in .type" >&5
22789 echo $ECHO_N "checking prefix for function in .type... $ECHO_C" >&6; }
22790 if test "${ompi_cv_asm_type+set}" = set; then
22791 echo $ECHO_N "(cached) $ECHO_C" >&6
22792 else
22794 ompi_cv_asm_type=""
22796 case "${host}" in
22797 *-sun-solaris*)
22798 # GCC on solaris seems to accept just about anything, not
22799 # that what it defines actually works... So just hardwire
22800 # to the right answer
22801 ompi_cv_asm_type="#"
22804 for type in @ \# % ; do
22805 asm_result=0
22806 echo "configure: trying $type" >&5
22807 cat >conftest.s <<EOF
22808 .type mysym, ${type}function
22809 mysym:
22811 if test "$CC" = "$CCAS" ; then
22812 ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
22813 else
22814 ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
22816 if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
22817 (eval $ompi_assemble) 2>&5
22818 ac_status=$?
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); }; then
22821 # save the warnings
22822 cat conftest.out >&5
22823 ompi_cv_asm_type="${type}"
22824 asm_result=1
22825 else
22826 # save compiler output and failed program
22827 cat conftest.out >&5
22828 echo "configure: failed program was:" >&5
22829 cat conftest.s >&5
22832 rm -f conftest*
22833 unset ompi_assemble
22835 if test "$asm_result" = "1" ; then
22836 break
22838 done
22840 esac
22841 rm -f conftest.out
22843 unset asm_result type
22846 { echo "$as_me:$LINENO: result: $ompi_cv_asm_type" >&5
22847 echo "${ECHO_T}$ompi_cv_asm_type" >&6; }
22850 cat >>confdefs.h <<_ACEOF
22851 #define OMPI_ASM_TYPE "$ompi_cv_asm_type"
22852 _ACEOF
22854 OMPI_ASM_TYPE="$ompi_cv_asm_type"
22858 { echo "$as_me:$LINENO: checking if .size is needed" >&5
22859 echo $ECHO_N "checking if .size is needed... $ECHO_C" >&6; }
22860 if test "${ompi_cv_asm_need_size+set}" = set; then
22861 echo $ECHO_N "(cached) $ECHO_C" >&6
22862 else
22863 ompi_cv_asm_need_size="no"
22864 cat >conftest.s <<EOF
22865 .size mysym, 1
22867 if test "$CC" = "$CCAS" ; then
22868 ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
22869 else
22870 ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
22872 if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
22873 (eval $ompi_assemble) 2>&5
22874 ac_status=$?
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); }; then
22877 # save the warnings
22878 cat conftest.out >&5
22879 ompi_cv_asm_need_size="yes"
22880 else
22881 # save compiler output and failed program
22882 cat conftest.out >&5
22883 echo "configure: failed program was:" >&5
22884 cat conftest.s >&5
22887 rm -f conftest*
22888 unset ompi_assemble
22890 rm -f conftest.out
22892 { echo "$as_me:$LINENO: result: $ompi_cv_asm_need_size" >&5
22893 echo "${ECHO_T}$ompi_cv_asm_need_size" >&6; }
22895 if test "$ompi_cv_asm_need_size" = "yes" ; then
22896 ompi_asm_size=1
22897 else
22898 ompi_asm_size=0
22902 cat >>confdefs.h <<_ACEOF
22903 #define OMPI_ASM_SIZE "$ompi_asm_size"
22904 _ACEOF
22906 OMPI_ASM_SIZE="$ompi_asm_size"
22908 unset asm_result
22913 { echo "$as_me:$LINENO: checking if .align directive takes logarithmic value" >&5
22914 echo $ECHO_N "checking if .align directive takes logarithmic value... $ECHO_C" >&6; }
22915 if test "${ompi_cv_asm_align_log+set}" = set; then
22916 echo $ECHO_N "(cached) $ECHO_C" >&6
22917 else
22918 cat >conftest.s <<EOF
22919 $ompi_cv_asm_text
22920 .align 4
22921 $ompi_cv_asm_global foo
22922 .byte 1
22923 .align 4
22924 foo$ompi_cv_asm_label_suffix
22925 .byte 2
22927 if test "$CC" = "$CCAS" ; then
22928 ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
22929 else
22930 ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
22932 if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
22933 (eval $ompi_assemble) 2>&5
22934 ac_status=$?
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); }; then
22937 # save the warnings
22938 cat conftest.out >&5
22939 ompi_asm_addr=`$NM conftest.$OBJEXT | grep foo | sed -e 's/.*\([0-9a-fA-F][0-9a-fA-F]\).*foo.*/\1/'`
22940 else
22941 # save compiler output and failed program
22942 cat conftest.out >&5
22943 echo "configure: failed program was:" >&5
22944 cat conftest.s >&5
22945 ompi_asm_addr=""
22947 rm -f conftest*
22948 unset ompi_assemble
22950 # test for both 16 and 10 (decimal and hex notations)
22951 echo "configure: .align test address offset is $ompi_asm_addr" >&5
22952 if test "$ompi_asm_addr" = "16" -o "$ompi_asm_addr" = "10" ; then
22953 ompi_cv_asm_align_log="yes"
22954 else
22955 ompi_cv_asm_align_log="no"
22958 { echo "$as_me:$LINENO: result: $ompi_cv_asm_align_log" >&5
22959 echo "${ECHO_T}$ompi_cv_asm_align_log" >&6; }
22961 if test "$ompi_cv_asm_align_log" = "yes" -o "$ompi_cv_asm_align_log" = "1" ; then
22962 ompi_asm_align_log_result=1
22963 else
22964 ompi_asm_align_log_result=0
22968 cat >>confdefs.h <<_ACEOF
22969 #define OMPI_ASM_ALIGN_LOG $asm_align_log_result
22970 _ACEOF
22973 unset omp_asm_addr asm_result
22976 # find our architecture for purposes of assembly stuff
22977 ompi_cv_asm_arch="UNSUPPORTED"
22978 OMPI_GCC_INLINE_ASSIGN=""
22979 OMPI_ASM_SUPPORT_64BIT=0
22980 case "${host}" in
22981 i?86-*|x86_64*)
22982 if test "$ac_cv_sizeof_long" = "4" ; then
22983 ompi_cv_asm_arch="IA32"
22984 else
22985 ompi_cv_asm_arch="AMD64"
22987 OMPI_ASM_SUPPORT_64BIT=1
22988 OMPI_GCC_INLINE_ASSIGN='"movl $0, %0" : "=&r"(ret)'
22991 ia64-*)
22992 ompi_cv_asm_arch="IA64"
22993 OMPI_ASM_SUPPORT_64BIT=1
22994 OMPI_GCC_INLINE_ASSIGN='"mov %0=r0\n;;\n" : "=&r"(ret)'
22997 alpha-*)
22998 ompi_cv_asm_arch="ALPHA"
22999 OMPI_ASM_SUPPORT_64BIT=1
23000 OMPI_GCC_INLINE_ASSIGN='"bis zero,zero,%0" : "=&r"(ret)'
23003 mips-*|mips64-*)
23004 # Should really find some way to make sure that we are on
23005 # a MIPS III machine (r4000 and later)
23006 ompi_cv_asm_arch="MIPS"
23007 OMPI_ASM_SUPPORT_64BIT=1
23008 OMPI_GCC_INLINE_ASSIGN='"or %0,$0,$0" : "=&r"(ret)'
23011 powerpc-*|powerpc64-*)
23013 { echo "$as_me:$LINENO: checking if PowerPC registers have r prefix" >&5
23014 echo $ECHO_N "checking if PowerPC registers have r prefix... $ECHO_C" >&6; }
23015 cat >conftest.s <<EOF
23016 $ompi_cv_asm_text
23017 addi 1,1,0
23019 if test "$CC" = "$CCAS" ; then
23020 ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
23021 else
23022 ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
23024 if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
23025 (eval $ompi_assemble) 2>&5
23026 ac_status=$?
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); }; then
23029 # save the warnings
23030 cat conftest.out >&5
23031 ompi_cv_asm_powerpc_r_reg=0
23032 else
23033 # save compiler output and failed program
23034 cat conftest.out >&5
23035 echo "configure: failed program was:" >&5
23036 cat conftest.s >&5
23037 cat >conftest.s <<EOF
23038 $ompi_cv_asm_text
23039 addi r1,r1,0
23041 if test "$CC" = "$CCAS" ; then
23042 ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
23043 else
23044 ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
23046 if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
23047 (eval $ompi_assemble) 2>&5
23048 ac_status=$?
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; then
23051 # save the warnings
23052 cat conftest.out >&5
23053 ompi_cv_asm_powerpc_r_reg=1
23054 else
23055 # save compiler output and failed program
23056 cat conftest.out >&5
23057 echo "configure: failed program was:" >&5
23058 cat conftest.s >&5
23059 { { echo "$as_me:$LINENO: error: Can not determine how to use PPC registers" >&5
23060 echo "$as_me: error: Can not determine how to use PPC registers" >&2;}
23061 { (exit 1); exit 1; }; }
23063 rm -f conftest*
23064 unset ompi_assemble
23067 rm -f conftest*
23068 unset ompi_assemble
23070 if test "$ompi_cv_asm_powerpc_r_reg" = "1" ; then
23071 { echo "$as_me:$LINENO: result: yes" >&5
23072 echo "${ECHO_T}yes" >&6; }
23073 else
23074 { echo "$as_me:$LINENO: result: no" >&5
23075 echo "${ECHO_T}no" >&6; }
23079 cat >>confdefs.h <<_ACEOF
23080 #define OMPI_POWERPC_R_REGISTERS $ompi_cv_asm_powerpc_r_reg
23081 _ACEOF
23084 if test "$ac_cv_sizeof_long" = "4" ; then
23085 ompi_cv_asm_arch="POWERPC32"
23087 # Note that on some platforms (Apple G5), even if we are
23088 # compiling in 32 bit mode (and therefore should assume
23089 # sizeof(long) == 4), we can use the 64 bit test and set
23090 # operations.
23092 if test "$ac_cv_sizeof_long" != "4" ; then
23093 # this function should only be called in the 32 bit case
23094 { { echo "$as_me:$LINENO: error: CHECK_POWERPC_64BIT called on 64 bit platform. Internal error." >&5
23095 echo "$as_me: error: CHECK_POWERPC_64BIT called on 64 bit platform. Internal error." >&2;}
23096 { (exit 1); exit 1; }; }
23098 { echo "$as_me:$LINENO: checking for 64-bit PowerPC assembly support" >&5
23099 echo $ECHO_N "checking for 64-bit PowerPC assembly support... $ECHO_C" >&6; }
23100 case $host in
23101 *-darwin*)
23102 ppc64_result=0
23103 if test "$ompi_cv_asm_powerpc_r_reg" = "1" ; then
23104 ldarx_asm=" ldarx r1,r1,r1";
23105 else
23106 ldarx_asm=" ldarx 1,1,1";
23108 cat >conftest.s <<EOF
23109 $ompi_cv_asm_text
23110 $ldarx_asm
23112 if test "$CC" = "$CCAS" ; then
23113 ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
23114 else
23115 ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
23117 if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
23118 (eval $ompi_assemble) 2>&5
23119 ac_status=$?
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); }; then
23122 # save the warnings
23123 cat conftest.out >&5
23124 ppc64_result=1
23125 else
23126 # save compiler output and failed program
23127 cat conftest.out >&5
23128 echo "configure: failed program was:" >&5
23129 cat conftest.s >&5
23130 ppc64_result=0
23132 rm -f conftest*
23133 unset ompi_assemble
23137 ppc64_result=0
23139 esac
23141 if test "$ppc64_result" = "1" ; then
23142 { echo "$as_me:$LINENO: result: yes" >&5
23143 echo "${ECHO_T}yes" >&6; }
23144 OMPI_ASM_SUPPORT_64BIT=1
23145 else
23146 { echo "$as_me:$LINENO: result: no" >&5
23147 echo "${ECHO_T}no" >&6; }
23151 unset ppc64_result ldarx_asm
23153 elif test "$ac_cv_sizeof_long" = "8" ; then
23154 OMPI_ASM_SUPPORT_64BIT=1
23155 ompi_cv_asm_arch="POWERPC64"
23156 else
23157 { { echo "$as_me:$LINENO: error: Could not determine PowerPC word size: $ac_cv_sizeof_long" >&5
23158 echo "$as_me: error: Could not determine PowerPC word size: $ac_cv_sizeof_long" >&2;}
23159 { (exit 1); exit 1; }; }
23161 OMPI_GCC_INLINE_ASSIGN='"1: li %0,0" : "=&r"(ret)'
23164 sparc*-*)
23165 # SPARC v9 (and above) are the only ones with 64bit support
23166 # if compiling 32 bit, see if we are v9 (aka v8plus) or
23167 # earlier (casa is v8+/v9).
23168 if test "$ac_cv_sizeof_long" = "4" ; then
23169 have_v8plus=0
23171 { echo "$as_me:$LINENO: checking if have Sparc v8+/v9 support" >&5
23172 echo $ECHO_N "checking if have Sparc v8+/v9 support... $ECHO_C" >&6; }
23173 sparc_result=0
23174 cat >conftest.s <<EOF
23175 $ompi_cv_asm_text
23176 casa [%o0] 0x80, %o1, %o2
23178 if test "$CC" = "$CCAS" ; then
23179 ompi_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
23180 else
23181 ompi_assemble="$CCAS $CCASFLAGS conftest.s >conftest.out 2>&1"
23183 if { (eval echo "$as_me:$LINENO: \"$ompi_assemble\"") >&5
23184 (eval $ompi_assemble) 2>&5
23185 ac_status=$?
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); }; then
23188 # save the warnings
23189 cat conftest.out >&5
23190 sparc_result=1
23191 else
23192 # save compiler output and failed program
23193 cat conftest.out >&5
23194 echo "configure: failed program was:" >&5
23195 cat conftest.s >&5
23196 sparc_result=0
23198 rm -f conftest*
23199 unset ompi_assemble
23201 if test "$sparc_result" = "1" ; then
23202 { echo "$as_me:$LINENO: result: yes" >&5
23203 echo "${ECHO_T}yes" >&6; }
23204 have_v8plus=1
23205 else
23206 { echo "$as_me:$LINENO: result: no" >&5
23207 echo "${ECHO_T}no" >&6; }
23211 unset sparc_result
23213 if test "$have_v8plus" = "0" ; then
23214 OMPI_ASM_SUPPORT_64BIT=0
23215 ompi_cv_asm_arch="SPARC"
23216 { echo "$as_me:$LINENO: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&5
23217 echo "$as_me: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&2;}
23218 { echo "$as_me:$LINENO: WARNING: You must specify the target architecture v8plus" >&5
23219 echo "$as_me: WARNING: You must specify the target architecture v8plus" >&2;}
23220 { echo "$as_me:$LINENO: WARNING: (cc: -xarch=v8plus, gcc: -mcpu=v9) for CFLAGS, CCXXFLAGS," >&5
23221 echo "$as_me: WARNING: (cc: -xarch=v8plus, gcc: -mcpu=v9) for CFLAGS, CCXXFLAGS," >&2;}
23222 { echo "$as_me:$LINENO: WARNING: FFLAGS, and FCFLAGS to compile Open MPI in 32 bit mode on" >&5
23223 echo "$as_me: WARNING: FFLAGS, and FCFLAGS to compile Open MPI in 32 bit mode on" >&2;}
23224 { echo "$as_me:$LINENO: WARNING: Sparc processors" >&5
23225 echo "$as_me: WARNING: Sparc processors" >&2;}
23226 { { echo "$as_me:$LINENO: error: Can not continue." >&5
23227 echo "$as_me: error: Can not continue." >&2;}
23228 { (exit 1); exit 1; }; }
23229 else
23230 OMPI_ASM_SUPPORT_64BIT=1
23231 ompi_cv_asm_arch="SPARCV9_32"
23234 elif test "$ac_cv_sizeof_long" = "8" ; then
23235 OMPI_ASM_SUPPORT_64BIT=1
23236 ompi_cv_asm_arch="SPARCV9_64"
23237 else
23238 { { echo "$as_me:$LINENO: error: Could not determine Sparc word size: $ac_cv_sizeof_long" >&5
23239 echo "$as_me: error: Could not determine Sparc word size: $ac_cv_sizeof_long" >&2;}
23240 { (exit 1); exit 1; }; }
23242 OMPI_GCC_INLINE_ASSIGN='"mov 0,%0" : "=&r"(ret)'
23246 { { echo "$as_me:$LINENO: error: No atomic primitives available for $host" >&5
23247 echo "$as_me: error: No atomic primitives available for $host" >&2;}
23248 { (exit 1); exit 1; }; }
23250 esac
23253 cat >>confdefs.h <<_ACEOF
23254 #define OMPI_ASM_SUPPORT_64BIT $OMPI_ASM_SUPPORT_64BIT
23255 _ACEOF
23260 # figure out if we need any special function start / stop code
23262 case $host_os in
23263 aix*)
23264 ompi_asm_arch_config="aix"
23267 ompi_asm_arch_config="default"
23269 esac
23271 # now that we know our architecture, try to inline assemble
23273 assembly="$OMPI_GCC_INLINE_ASSIGN"
23274 asm_result="unknown"
23276 { echo "$as_me:$LINENO: checking if $CC supports GCC inline assembly" >&5
23277 echo $ECHO_N "checking if $CC supports GCC inline assembly... $ECHO_C" >&6; }
23279 if test "$ompi_cv_c_compiler_vendor" = "portland group" ; then
23280 # PGI seems to have some issues with our inline assembly.
23281 # Disable for now.
23282 asm_result="no (Portland Group)"
23283 else
23284 case $host in
23285 *-aix*)
23286 # the AIX compilers and linkers really don't do gcc
23287 # inline assembly right - disable for now.
23288 asm_result="no (AIX)"
23291 if test ! "$assembly" = "" ; then
23292 if test "$cross_compiling" = yes; then
23293 asm_result="unknown"
23294 else
23295 cat >conftest.$ac_ext <<_ACEOF
23296 /* confdefs.h. */
23297 _ACEOF
23298 cat confdefs.h >>conftest.$ac_ext
23299 cat >>conftest.$ac_ext <<_ACEOF
23300 /* end confdefs.h. */
23302 $ac_includes_default
23304 main ()
23306 int ret = 1;
23307 __asm__ __volatile__ ($assembly);
23308 return ret;
23310 return 0;
23312 _ACEOF
23313 rm -f conftest$ac_exeext
23314 if { (ac_try="$ac_link"
23315 case "(($ac_try" in
23316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23317 *) ac_try_echo=$ac_try;;
23318 esac
23319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23320 (eval "$ac_link") 2>&5
23321 ac_status=$?
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23324 { (case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23327 esac
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_try") 2>&5
23330 ac_status=$?
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); }; }; then
23333 asm_result="yes"
23334 else
23335 echo "$as_me: program exited with status $ac_status" >&5
23336 echo "$as_me: failed program was:" >&5
23337 sed 's/^/| /' conftest.$ac_ext >&5
23339 ( exit $ac_status )
23340 asm_result="no"
23342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23346 else
23347 assembly="test skipped - assuming no"
23350 esac
23352 # if we're cross compiling, just try to compile and figure good enough
23353 if test "$asm_result" = "unknown" ; then
23354 cat >conftest.$ac_ext <<_ACEOF
23355 /* confdefs.h. */
23356 _ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h. */
23361 $ac_includes_default
23363 main ()
23365 int ret = 1;
23366 __asm__ __volatile__ ($assembly);
23367 return ret;
23369 return 0;
23371 _ACEOF
23372 rm -f conftest.$ac_objext conftest$ac_exeext
23373 if { (ac_try="$ac_link"
23374 case "(($ac_try" in
23375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23376 *) ac_try_echo=$ac_try;;
23377 esac
23378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23379 (eval "$ac_link") 2>conftest.er1
23380 ac_status=$?
23381 grep -v '^ *+' conftest.er1 >conftest.err
23382 rm -f conftest.er1
23383 cat conftest.err >&5
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); } && {
23386 test -z "$ac_c_werror_flag" ||
23387 test ! -s conftest.err
23388 } && test -s conftest$ac_exeext &&
23389 $as_test_x conftest$ac_exeext; then
23390 asm_result="yes"
23391 else
23392 echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23395 asm_result="no"
23398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23399 conftest$ac_exeext conftest.$ac_ext
23403 { echo "$as_me:$LINENO: result: $asm_result" >&5
23404 echo "${ECHO_T}$asm_result" >&6; }
23406 if test "$asm_result" = "yes" ; then
23407 OMPI_C_GCC_INLINE_ASSEMBLY=1
23408 else
23409 OMPI_C_GCC_INLINE_ASSEMBLY=0
23413 cat >>confdefs.h <<_ACEOF
23414 #define OMPI_C_GCC_INLINE_ASSEMBLY $OMPI_C_GCC_INLINE_ASSEMBLY
23415 _ACEOF
23418 unset OMPI_C_GCC_INLINE_ASSEMBLY assembly asm_result
23422 { echo "$as_me:$LINENO: checking if $CC supports DEC inline assembly" >&5
23423 echo $ECHO_N "checking if $CC supports DEC inline assembly... $ECHO_C" >&6; }
23425 cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h. */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23432 $ac_includes_default
23433 #include <c_asm.h>
23435 main ()
23437 asm("");
23438 return 0;
23440 return 0;
23442 _ACEOF
23443 rm -f conftest.$ac_objext conftest$ac_exeext
23444 if { (ac_try="$ac_link"
23445 case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23448 esac
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450 (eval "$ac_link") 2>conftest.er1
23451 ac_status=$?
23452 grep -v '^ *+' conftest.er1 >conftest.err
23453 rm -f conftest.er1
23454 cat conftest.err >&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); } && {
23457 test -z "$ac_c_werror_flag" ||
23458 test ! -s conftest.err
23459 } && test -s conftest$ac_exeext &&
23460 $as_test_x conftest$ac_exeext; then
23461 asm_result="yes"
23462 else
23463 echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 asm_result="no"
23469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23470 conftest$ac_exeext conftest.$ac_ext
23472 { echo "$as_me:$LINENO: result: $asm_result" >&5
23473 echo "${ECHO_T}$asm_result" >&6; }
23475 if test "$asm_result" = "yes" ; then
23476 OMPI_C_DEC_INLINE_ASSEMBLY=1
23477 else
23478 OMPI_C_DEC_INLINE_ASSEMBLY=0
23482 cat >>confdefs.h <<_ACEOF
23483 #define OMPI_C_DEC_INLINE_ASSEMBLY $OMPI_C_DEC_INLINE_ASSEMBLY
23484 _ACEOF
23487 unset OMPI_C_DEC_INLINE_ASSEMBLY asm_result
23491 { echo "$as_me:$LINENO: checking if $CC supports XLC inline assembly" >&5
23492 echo $ECHO_N "checking if $CC supports XLC inline assembly... $ECHO_C" >&6; }
23494 OMPI_C_XLC_INLINE_ASSEMBLY=0
23495 asm_result="no"
23496 if test "$CC" = "xlc" ; then
23497 OMPI_XLC_INLINE_ASSEMBLY=1
23498 asm_result="yes"
23501 { echo "$as_me:$LINENO: result: $asm_result" >&5
23502 echo "${ECHO_T}$asm_result" >&6; }
23504 cat >>confdefs.h <<_ACEOF
23505 #define OMPI_C_XLC_INLINE_ASSEMBLY $OMPI_C_XLC_INLINE_ASSEMBLY
23506 _ACEOF
23509 unset OMPI_C_XLC_INLINE_ASSEMBLY
23512 assembly="$OMPI_GCC_INLINE_ASSIGN"
23513 asm_result="unknown"
23515 ac_ext=cpp
23516 ac_cpp='$CXXCPP $CPPFLAGS'
23517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23521 { echo "$as_me:$LINENO: checking if $CXX supports GCC inline assembly" >&5
23522 echo $ECHO_N "checking if $CXX supports GCC inline assembly... $ECHO_C" >&6; }
23524 case $host in
23525 *-aix*)
23526 # the AIX compilers and linkers really don't do gcc
23527 # inline assembly right - disable for now.
23528 asm_result="no (AIX)"
23531 if test ! "$assembly" = "" ; then
23532 if test "$cross_compiling" = yes; then
23533 asm_result="unknown"
23534 else
23535 cat >conftest.$ac_ext <<_ACEOF
23536 /* confdefs.h. */
23537 _ACEOF
23538 cat confdefs.h >>conftest.$ac_ext
23539 cat >>conftest.$ac_ext <<_ACEOF
23540 /* end confdefs.h. */
23542 $ac_includes_default
23544 main ()
23546 int ret = 1;
23547 __asm__ __volatile__ ($assembly);
23548 return ret;
23550 return 0;
23552 _ACEOF
23553 rm -f conftest$ac_exeext
23554 if { (ac_try="$ac_link"
23555 case "(($ac_try" in
23556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557 *) ac_try_echo=$ac_try;;
23558 esac
23559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23560 (eval "$ac_link") 2>&5
23561 ac_status=$?
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23564 { (case "(($ac_try" in
23565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23566 *) ac_try_echo=$ac_try;;
23567 esac
23568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23569 (eval "$ac_try") 2>&5
23570 ac_status=$?
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; }; then
23573 asm_result="yes"
23574 else
23575 echo "$as_me: program exited with status $ac_status" >&5
23576 echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23579 ( exit $ac_status )
23580 asm_result="no"
23582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23586 else
23587 assembly="test skipped - assuming no"
23590 esac
23591 # if we're cross compiling, just try to compile and figure good enough
23592 if test "$asm_result" = "unknown" ; then
23593 cat >conftest.$ac_ext <<_ACEOF
23594 /* confdefs.h. */
23595 _ACEOF
23596 cat confdefs.h >>conftest.$ac_ext
23597 cat >>conftest.$ac_ext <<_ACEOF
23598 /* end confdefs.h. */
23600 $ac_includes_default
23602 main ()
23604 int ret = 1;
23605 __asm__ __volatile__ ($assembly);
23606 return ret;
23608 return 0;
23610 _ACEOF
23611 rm -f conftest.$ac_objext conftest$ac_exeext
23612 if { (ac_try="$ac_link"
23613 case "(($ac_try" in
23614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23615 *) ac_try_echo=$ac_try;;
23616 esac
23617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23618 (eval "$ac_link") 2>conftest.er1
23619 ac_status=$?
23620 grep -v '^ *+' conftest.er1 >conftest.err
23621 rm -f conftest.er1
23622 cat conftest.err >&5
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); } && {
23625 test -z "$ac_cxx_werror_flag" ||
23626 test ! -s conftest.err
23627 } && test -s conftest$ac_exeext &&
23628 $as_test_x conftest$ac_exeext; then
23629 asm_result="yes"
23630 else
23631 echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23634 asm_result="no"
23637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23638 conftest$ac_exeext conftest.$ac_ext
23641 { echo "$as_me:$LINENO: result: $asm_result" >&5
23642 echo "${ECHO_T}$asm_result" >&6; }
23644 if test "$asm_result" = "yes" ; then
23645 OMPI_CXX_GCC_INLINE_ASSEMBLY=1
23646 else
23647 OMPI_CXX_GCC_INLINE_ASSEMBLY=0
23651 cat >>confdefs.h <<_ACEOF
23652 #define OMPI_CXX_GCC_INLINE_ASSEMBLY $OMPI_CXX_GCC_INLINE_ASSEMBLY
23653 _ACEOF
23655 ac_ext=c
23656 ac_cpp='$CPP $CPPFLAGS'
23657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23662 unset OMPI_CXX_GCC_INLINE_ASSEMBLY assembly asm_result
23666 ac_ext=cpp
23667 ac_cpp='$CXXCPP $CPPFLAGS'
23668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23672 { echo "$as_me:$LINENO: checking if $CXX supports DEC inline assembly" >&5
23673 echo $ECHO_N "checking if $CXX supports DEC inline assembly... $ECHO_C" >&6; }
23675 cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h. */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23682 $ac_includes_default
23683 #include <c_asm.h>
23685 main ()
23687 asm("");
23688 return 0;
23690 return 0;
23692 _ACEOF
23693 rm -f conftest.$ac_objext conftest$ac_exeext
23694 if { (ac_try="$ac_link"
23695 case "(($ac_try" in
23696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697 *) ac_try_echo=$ac_try;;
23698 esac
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700 (eval "$ac_link") 2>conftest.er1
23701 ac_status=$?
23702 grep -v '^ *+' conftest.er1 >conftest.err
23703 rm -f conftest.er1
23704 cat conftest.err >&5
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); } && {
23707 test -z "$ac_cxx_werror_flag" ||
23708 test ! -s conftest.err
23709 } && test -s conftest$ac_exeext &&
23710 $as_test_x conftest$ac_exeext; then
23711 asm_result="yes"
23712 else
23713 echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23716 asm_result="no"
23719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23720 conftest$ac_exeext conftest.$ac_ext
23722 { echo "$as_me:$LINENO: result: $asm_result" >&5
23723 echo "${ECHO_T}$asm_result" >&6; }
23725 if test "$asm_result" = "yes" ; then
23726 OMPI_CXX_DEC_INLINE_ASSEMBLY=1
23727 else
23728 OMPI_CXX_DEC_INLINE_ASSEMBLY=0
23732 cat >>confdefs.h <<_ACEOF
23733 #define OMPI_CXX_DEC_INLINE_ASSEMBLY $OMPI_CXX_DEC_INLINE_ASSEMBLY
23734 _ACEOF
23736 ac_ext=c
23737 ac_cpp='$CPP $CPPFLAGS'
23738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23743 unset OMPI_CXX_DEC_INLINE_ASSEMBLY asm_result
23747 { echo "$as_me:$LINENO: checking if $CXX supports XLC inline assembly" >&5
23748 echo $ECHO_N "checking if $CXX supports XLC inline assembly... $ECHO_C" >&6; }
23750 OMPI_CXX_XLC_INLINE_ASSEMBLY=0
23751 asm_result="no"
23752 if test "$CXX" = "xlC" -o "$CXX" = "xlc++" ; then
23753 OMPI_CXX_XLC_INLINE_ASSEMBLY=1
23754 asm_result="yes"
23757 { echo "$as_me:$LINENO: result: $asm_result" >&5
23758 echo "${ECHO_T}$asm_result" >&6; }
23760 cat >>confdefs.h <<_ACEOF
23761 #define OMPI_CXX_XLC_INLINE_ASSEMBLY $OMPI_CXX_XLC_INLINE_ASSEMBLY
23762 _ACEOF
23765 unset OMPI_CXX_XLC_INLINE_ASSEMBLY
23768 # format:
23769 # config_file-text-global-label_suffix-gsym-lsym-type-size-align_log-ppc_r_reg-64_bit-gnu_stack
23770 asm_format="${ompi_asm_arch_config}"
23771 asm_format="${asm_format}-${ompi_cv_asm_text}-${ompi_cv_asm_global}"
23772 asm_format="${asm_format}-${ompi_cv_asm_label_suffix}-${ompi_cv_asm_gsym}"
23773 asm_format="${asm_format}-${ompi_cv_asm_lsym}"
23774 asm_format="${asm_format}-${ompi_cv_asm_type}-${ompi_asm_size}"
23775 asm_format="${asm_format}-${ompi_asm_align_log_result}"
23776 if test "$ompi_cv_asm_arch" = "POWERPC32" -o "$ompi_cv_asm_arch" = "POWERPC64" ; then
23777 asm_format="${asm_format}-${ompi_cv_asm_powerpc_r_reg}"
23778 else
23779 asm_format="${asm_format}-1"
23781 asm_format="${asm_format}-${OMPI_ASM_SUPPORT_64BIT}"
23782 ompi_cv_asm_format="${asm_format}-${ompi_cv_asm_gnu_stack}"
23783 OMPI_ASSEMBLY_FORMAT="$ompi_cv_asm_format"
23785 { echo "$as_me:$LINENO: checking for assembly format" >&5
23786 echo $ECHO_N "checking for assembly format... $ECHO_C" >&6; }
23787 { echo "$as_me:$LINENO: result: $OMPI_ASSEMBLY_FORMAT" >&5
23788 echo "${ECHO_T}$OMPI_ASSEMBLY_FORMAT" >&6; }
23790 cat >>confdefs.h <<_ACEOF
23791 #define OMPI_ASSEMBLY_FORMAT "$OMPI_ASSEMBLY_FORMAT"
23792 _ACEOF
23795 fi # if cv_c_compiler_vendor = microsoft
23797 result="OMPI_$ompi_cv_asm_arch"
23798 OMPI_ASSEMBLY_ARCH="$ompi_cv_asm_arch"
23799 { echo "$as_me:$LINENO: checking for asssembly architecture" >&5
23800 echo $ECHO_N "checking for asssembly architecture... $ECHO_C" >&6; }
23801 { echo "$as_me:$LINENO: result: $ompi_cv_asm_arch" >&5
23802 echo "${ECHO_T}$ompi_cv_asm_arch" >&6; }
23804 cat >>confdefs.h <<_ACEOF
23805 #define OMPI_ASSEMBLY_ARCH $result
23806 _ACEOF
23813 if test "$ompi_cv_asm_arch" != "WINDOWS" ; then
23814 # Extract the first word of "perl", so it can be a program name with args.
23815 set dummy perl; ac_word=$2
23816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23818 if test "${ac_cv_prog_PERL+set}" = set; then
23819 echo $ECHO_N "(cached) $ECHO_C" >&6
23820 else
23821 if test -n "$PERL"; then
23822 ac_cv_prog_PERL="$PERL" # Let the user override the test.
23823 else
23824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23825 for as_dir in $PATH
23827 IFS=$as_save_IFS
23828 test -z "$as_dir" && as_dir=.
23829 for ac_exec_ext in '' $ac_executable_extensions; do
23830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23831 ac_cv_prog_PERL="perl"
23832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23833 break 2
23835 done
23836 done
23837 IFS=$as_save_IFS
23841 PERL=$ac_cv_prog_PERL
23842 if test -n "$PERL"; then
23843 { echo "$as_me:$LINENO: result: $PERL" >&5
23844 echo "${ECHO_T}$PERL" >&6; }
23845 else
23846 { echo "$as_me:$LINENO: result: no" >&5
23847 echo "${ECHO_T}no" >&6; }
23852 # see if we have a pre-built one already
23853 { echo "$as_me:$LINENO: checking for pre-built assembly file" >&5
23854 echo $ECHO_N "checking for pre-built assembly file... $ECHO_C" >&6; }
23855 ompi_cv_asm_file=""
23856 if grep "$ompi_cv_asm_arch" "${top_ompi_srcdir}/opal/asm/asm-data.txt" | $FGREP "$ompi_cv_asm_format" >conftest.out 2>&1 ; then
23857 ompi_cv_asm_file="`cut -f3 conftest.out`"
23858 if test ! "$ompi_cv_asm_file" = "" ; then
23859 ompi_cv_asm_file="atomic-${ompi_cv_asm_file}.s"
23860 if test -f "${top_ompi_srcdir}/opal/asm/generated/${ompi_cv_asm_file}" ; then
23861 { echo "$as_me:$LINENO: result: yes ($ompi_cv_asm_file)" >&5
23862 echo "${ECHO_T}yes ($ompi_cv_asm_file)" >&6; }
23863 else
23864 { echo "$as_me:$LINENO: result: no ($ompi_cv_asm_file not found)" >&5
23865 echo "${ECHO_T}no ($ompi_cv_asm_file not found)" >&6; }
23866 ompi_cv_asm_file=""
23869 else
23870 { echo "$as_me:$LINENO: result: no (not in asm-data)" >&5
23871 echo "${ECHO_T}no (not in asm-data)" >&6; }
23873 rm -f conftest.*
23875 if test "$ompi_cv_asm_file" = "" ; then
23876 if test ! "$PERL" = "" ; then
23877 # we have perl... Can we generate a file?
23878 { echo "$as_me:$LINENO: checking whether possible to generate assembly file" >&5
23879 echo $ECHO_N "checking whether possible to generate assembly file... $ECHO_C" >&6; }
23880 mkdir -p opal/asm/generated
23881 ompi_cv_asm_file="atomic-local.s"
23882 ompi_try="$PERL \"$top_ompi_srcdir/opal/asm/generate-asm.pl\" \"$ompi_cv_asm_arch\" \"$ompi_cv_asm_format\" \"$top_ompi_srcdir/opal/asm/base\" \"$top_ompi_builddir/opal/asm/generated/$ompi_cv_asm_file\" >conftest.out 2>&1"
23883 if { (eval echo "$as_me:$LINENO: \"$ompi_try\"") >&5
23884 (eval $ompi_try) 2>&5
23885 ac_status=$?
23886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887 (exit $ac_status); } ; then
23888 # save the warnings
23889 cat conftest.out >&5
23890 { echo "$as_me:$LINENO: result: yes" >&5
23891 echo "${ECHO_T}yes" >&6; }
23892 else
23893 # save output
23894 cat conftest.out >&5
23895 ompi_cv_asm_file=""
23896 { echo "$as_me:$LINENO: result: failed" >&5
23897 echo "${ECHO_T}failed" >&6; }
23898 { echo "$as_me:$LINENO: WARNING: Could not build atomic operations assembly file." >&5
23899 echo "$as_me: WARNING: Could not build atomic operations assembly file." >&2;}
23900 { echo "$as_me:$LINENO: WARNING: There will be no atomic operations for this build." >&5
23901 echo "$as_me: WARNING: There will be no atomic operations for this build." >&2;}
23903 else
23904 { echo "$as_me:$LINENO: WARNING: Could not find prebuilt atomic operations file and could not" >&5
23905 echo "$as_me: WARNING: Could not find prebuilt atomic operations file and could not" >&2;}
23906 { echo "$as_me:$LINENO: WARNING: find perl to attempt to generate a custom assembly file." >&5
23907 echo "$as_me: WARNING: find perl to attempt to generate a custom assembly file." >&2;}
23908 { echo "$as_me:$LINENO: WARNING: There will be no atomic operations for this build." >&5
23909 echo "$as_me: WARNING: There will be no atomic operations for this build." >&2;}
23912 rm -f conftest.*
23913 else
23914 # On windows with VC++, atomics are done with compiler primitives
23915 ompi_cv_asm_file=""
23918 { echo "$as_me:$LINENO: checking for atomic assembly filename" >&5
23919 echo $ECHO_N "checking for atomic assembly filename... $ECHO_C" >&6; }
23920 if test "$ompi_cv_asm_file" = "" ; then
23921 { echo "$as_me:$LINENO: result: none" >&5
23922 echo "${ECHO_T}none" >&6; }
23923 result=0
23924 else
23925 { echo "$as_me:$LINENO: result: $ompi_cv_asm_file" >&5
23926 echo "${ECHO_T}$ompi_cv_asm_file" >&6; }
23927 result=1
23931 cat >>confdefs.h <<_ACEOF
23932 #define OMPI_HAVE_ASM_FILE $result
23933 _ACEOF
23937 if test "$result" = "1"; then
23938 OMPI_HAVE_ASM_FILE_TRUE=
23939 OMPI_HAVE_ASM_FILE_FALSE='#'
23940 else
23941 OMPI_HAVE_ASM_FILE_TRUE='#'
23942 OMPI_HAVE_ASM_FILE_FALSE=
23946 OMPI_ASM_FILE=$ompi_cv_asm_file
23950 unset result asm_format
23954 ##################################
23955 # Fortran
23956 ##################################
23958 #-----------
23959 # Fortran 77
23960 #-----------
23965 # Modularize this setup so that sub-configure.in scripts can use this
23966 # same setup code.
23968 ompi_show_subtitle "Fortran 77 compiler"
23971 # Check for the compiler
23973 # Note that we don't actually *use* the fortran compiler to build
23974 # anything in OMPI; it's only used here in configure to find out
23975 # symbol conventions, type sizes, etc. We also pass it down to
23976 # the wrapper compiler mpif77.
23978 # Always run this test, even if fortran isn't wanted so that F77 has
23979 # value for the Fint tests
23981 ompi_fflags_save="$FFLAGS"
23982 ac_ext=f
23983 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23984 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23985 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23986 if test -n "$ac_tool_prefix"; then
23987 for ac_prog in gfortran g77 f77 xlf frt ifort pgf77 fort77 fl32 af77
23989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23993 if test "${ac_cv_prog_F77+set}" = set; then
23994 echo $ECHO_N "(cached) $ECHO_C" >&6
23995 else
23996 if test -n "$F77"; then
23997 ac_cv_prog_F77="$F77" # Let the user override the test.
23998 else
23999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24000 for as_dir in $PATH
24002 IFS=$as_save_IFS
24003 test -z "$as_dir" && as_dir=.
24004 for ac_exec_ext in '' $ac_executable_extensions; do
24005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24006 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
24007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24008 break 2
24010 done
24011 done
24012 IFS=$as_save_IFS
24016 F77=$ac_cv_prog_F77
24017 if test -n "$F77"; then
24018 { echo "$as_me:$LINENO: result: $F77" >&5
24019 echo "${ECHO_T}$F77" >&6; }
24020 else
24021 { echo "$as_me:$LINENO: result: no" >&5
24022 echo "${ECHO_T}no" >&6; }
24026 test -n "$F77" && break
24027 done
24029 if test -z "$F77"; then
24030 ac_ct_F77=$F77
24031 for ac_prog in gfortran g77 f77 xlf frt ifort pgf77 fort77 fl32 af77
24033 # Extract the first word of "$ac_prog", so it can be a program name with args.
24034 set dummy $ac_prog; ac_word=$2
24035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24037 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
24038 echo $ECHO_N "(cached) $ECHO_C" >&6
24039 else
24040 if test -n "$ac_ct_F77"; then
24041 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
24042 else
24043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24044 for as_dir in $PATH
24046 IFS=$as_save_IFS
24047 test -z "$as_dir" && as_dir=.
24048 for ac_exec_ext in '' $ac_executable_extensions; do
24049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24050 ac_cv_prog_ac_ct_F77="$ac_prog"
24051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24052 break 2
24054 done
24055 done
24056 IFS=$as_save_IFS
24060 ac_ct_F77=$ac_cv_prog_ac_ct_F77
24061 if test -n "$ac_ct_F77"; then
24062 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
24063 echo "${ECHO_T}$ac_ct_F77" >&6; }
24064 else
24065 { echo "$as_me:$LINENO: result: no" >&5
24066 echo "${ECHO_T}no" >&6; }
24070 test -n "$ac_ct_F77" && break
24071 done
24073 if test "x$ac_ct_F77" = x; then
24074 F77=""
24075 else
24076 case $cross_compiling:$ac_tool_warned in
24077 yes:)
24078 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
24079 whose name does not start with the host triplet. If you think this
24080 configuration is useful to you, please write to autoconf@gnu.org." >&5
24081 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
24082 whose name does not start with the host triplet. If you think this
24083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
24084 ac_tool_warned=yes ;;
24085 esac
24086 F77=$ac_ct_F77
24091 # Provide some information about the compiler.
24092 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
24093 ac_compiler=`set X $ac_compile; echo $2`
24094 { (ac_try="$ac_compiler --version >&5"
24095 case "(($ac_try" in
24096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097 *) ac_try_echo=$ac_try;;
24098 esac
24099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24100 (eval "$ac_compiler --version >&5") 2>&5
24101 ac_status=$?
24102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103 (exit $ac_status); }
24104 { (ac_try="$ac_compiler -v >&5"
24105 case "(($ac_try" in
24106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24107 *) ac_try_echo=$ac_try;;
24108 esac
24109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24110 (eval "$ac_compiler -v >&5") 2>&5
24111 ac_status=$?
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); }
24114 { (ac_try="$ac_compiler -V >&5"
24115 case "(($ac_try" in
24116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24117 *) ac_try_echo=$ac_try;;
24118 esac
24119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24120 (eval "$ac_compiler -V >&5") 2>&5
24121 ac_status=$?
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); }
24124 rm -f a.out
24126 # If we don't use `.F' as extension, the preprocessor is not run on the
24127 # input file. (Note that this only needs to work for GNU compilers.)
24128 ac_save_ext=$ac_ext
24129 ac_ext=F
24130 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
24131 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
24132 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
24133 echo $ECHO_N "(cached) $ECHO_C" >&6
24134 else
24135 cat >conftest.$ac_ext <<_ACEOF
24136 program main
24137 #ifndef __GNUC__
24138 choke me
24139 #endif
24142 _ACEOF
24143 rm -f conftest.$ac_objext
24144 if { (ac_try="$ac_compile"
24145 case "(($ac_try" in
24146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24147 *) ac_try_echo=$ac_try;;
24148 esac
24149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24150 (eval "$ac_compile") 2>conftest.er1
24151 ac_status=$?
24152 grep -v '^ *+' conftest.er1 >conftest.err
24153 rm -f conftest.er1
24154 cat conftest.err >&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); } && {
24157 test -z "$ac_f77_werror_flag" ||
24158 test ! -s conftest.err
24159 } && test -s conftest.$ac_objext; then
24160 ac_compiler_gnu=yes
24161 else
24162 echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24165 ac_compiler_gnu=no
24168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24169 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
24172 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
24173 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
24174 ac_ext=$ac_save_ext
24175 ac_test_FFLAGS=${FFLAGS+set}
24176 ac_save_FFLAGS=$FFLAGS
24177 FFLAGS=
24178 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
24179 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
24180 if test "${ac_cv_prog_f77_g+set}" = set; then
24181 echo $ECHO_N "(cached) $ECHO_C" >&6
24182 else
24183 FFLAGS=-g
24184 cat >conftest.$ac_ext <<_ACEOF
24185 program main
24188 _ACEOF
24189 rm -f conftest.$ac_objext
24190 if { (ac_try="$ac_compile"
24191 case "(($ac_try" in
24192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193 *) ac_try_echo=$ac_try;;
24194 esac
24195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24196 (eval "$ac_compile") 2>conftest.er1
24197 ac_status=$?
24198 grep -v '^ *+' conftest.er1 >conftest.err
24199 rm -f conftest.er1
24200 cat conftest.err >&5
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); } && {
24203 test -z "$ac_f77_werror_flag" ||
24204 test ! -s conftest.err
24205 } && test -s conftest.$ac_objext; then
24206 ac_cv_prog_f77_g=yes
24207 else
24208 echo "$as_me: failed program was:" >&5
24209 sed 's/^/| /' conftest.$ac_ext >&5
24211 ac_cv_prog_f77_g=no
24214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24217 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
24218 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
24219 if test "$ac_test_FFLAGS" = set; then
24220 FFLAGS=$ac_save_FFLAGS
24221 elif test $ac_cv_prog_f77_g = yes; then
24222 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
24223 FFLAGS="-g -O2"
24224 else
24225 FFLAGS="-g"
24227 else
24228 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
24229 FFLAGS="-O2"
24230 else
24231 FFLAGS=
24235 G77=`test $ac_compiler_gnu = yes && echo yes`
24236 ac_ext=c
24237 ac_cpp='$CPP $CPPFLAGS'
24238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24242 FFLAGS="$ompi_fflags_save"
24243 if test -z "$F77"; then
24244 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings disabled (could not find compiler)" >&5
24245 echo "$as_me: WARNING: *** Fortran 77 bindings disabled (could not find compiler)" >&2;}
24246 OMPI_WANT_F77_BINDINGS=0
24247 OMPI_F77="none"
24248 BASEF77="none"
24249 OMPI_F77_ABSOLUTE="none"
24250 else
24251 OMPI_F77="$F77"
24252 BASEF77="`basename $OMPI_F77`"
24253 OMPI_F77_ABSOLUTE="`which $F77`"
24255 if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then
24256 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings disabled by user" >&5
24257 echo "$as_me: WARNING: *** Fortran 77 bindings disabled by user" >&2;}
24258 OMPI_WANT_F77_BINDINGS=0
24259 else
24260 OMPI_WANT_F77_BINDINGS=1
24264 # make sure the compiler actually works, if not cross-compiling
24265 # Don't just use the AC macro so that we can have a pretty
24266 # message.
24267 if test $OMPI_WANT_F77_BINDINGS -eq 1; then
24270 { echo "$as_me:$LINENO: checking if Fortran 77 compiler works" >&5
24271 echo $ECHO_N "checking if Fortran 77 compiler works... $ECHO_C" >&6; }
24272 if test "${ompi_cv_Fortran_77_works+set}" = set; then
24273 echo $ECHO_N "(cached) $ECHO_C" >&6
24274 else
24275 ac_ext=f
24276 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24277 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24278 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24280 if test "$cross_compiling" = yes; then
24281 ompi_cv_Fortran_77_works="cross compiling"
24282 else
24283 cat >conftest.$ac_ext <<_ACEOF
24284 program main
24287 _ACEOF
24288 rm -f conftest$ac_exeext
24289 if { (ac_try="$ac_link"
24290 case "(($ac_try" in
24291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292 *) ac_try_echo=$ac_try;;
24293 esac
24294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24295 (eval "$ac_link") 2>&5
24296 ac_status=$?
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24299 { (case "(($ac_try" in
24300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24301 *) ac_try_echo=$ac_try;;
24302 esac
24303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24304 (eval "$ac_try") 2>&5
24305 ac_status=$?
24306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307 (exit $ac_status); }; }; then
24308 ompi_cv_Fortran_77_works="yes"
24309 else
24310 echo "$as_me: program exited with status $ac_status" >&5
24311 echo "$as_me: failed program was:" >&5
24312 sed 's/^/| /' conftest.$ac_ext >&5
24314 ( exit $ac_status )
24315 ompi_cv_Fortran_77_works="no"
24317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24321 ac_ext=c
24322 ac_cpp='$CPP $CPPFLAGS'
24323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24328 { echo "$as_me:$LINENO: result: $ompi_cv_Fortran_77_works" >&5
24329 echo "${ECHO_T}$ompi_cv_Fortran_77_works" >&6; }
24330 if test "$ompi_cv_Fortran_77_works" = "no"; then
24331 cat <<EOF >&2
24332 **********************************************************************
24333 * It appears that your Fortran 77 compiler is unable to produce working
24334 * executables. A simple test application failed to properly
24335 * execute. Note that this is likely not a problem with Open MPI,
24336 * but a problem with the local compiler installation. More
24337 * information (including exactly what command was given to the
24338 * compiler and what error resulted when the command was executed) is
24339 * available in the config.log file in this directory.
24340 **********************************************************************
24342 { { echo "$as_me:$LINENO: error: Could not run a simple Fortran 77 program. Aborting." >&5
24343 echo "$as_me: error: Could not run a simple Fortran 77 program. Aborting." >&2;}
24344 { (exit 1); exit 1; }; }
24353 cat >>confdefs.h <<_ACEOF
24354 #define OMPI_WANT_F77_BINDINGS $OMPI_WANT_F77_BINDINGS
24355 _ACEOF
24358 cat >>confdefs.h <<_ACEOF
24359 #define OMPI_F77 "$OMPI_F77"
24360 _ACEOF
24364 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
24365 OMPI_WANT_F77_BINDINGS_TRUE=
24366 OMPI_WANT_F77_BINDINGS_FALSE='#'
24367 else
24368 OMPI_WANT_F77_BINDINGS_TRUE='#'
24369 OMPI_WANT_F77_BINDINGS_FALSE=
24377 # invalidate cache if result came from a run where F77 was disabled
24378 if test "$ompi_cv_f77_external_symbol" = "skipped" ; then
24379 unset ompi_cv_f77_external_symbol
24382 { echo "$as_me:$LINENO: checking $F77 external symbol convention" >&5
24383 echo $ECHO_N "checking $F77 external symbol convention... $ECHO_C" >&6; }
24384 if test "${ompi_cv_f77_external_symbol+set}" = set; then
24385 echo $ECHO_N "(cached) $ECHO_C" >&6
24386 else
24387 if test "$F77" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0"; then
24388 ompi_cv_f77_external_symbol="skipped"
24389 else
24390 cat >conftest.f <<EOF
24391 subroutine FOO_bar(a)
24392 integer a
24393 a = 1
24394 return
24398 # 1 is the command
24399 # 2 is actions to do if success
24400 # 3 is actions to do if fail
24401 echo "configure:24401: $F77 $FFLAGS -c conftest.f $LDFLAGS $LIBS" >&5
24402 $F77 $FFLAGS -c conftest.f $LDFLAGS $LIBS 1>&5 2>&1
24403 ompi_status=$?
24405 # 1 is the message
24406 # 2 is whether to put a prefix or not
24407 if test -n "1"; then
24408 echo "configure:24408: \$? = $ompi_status" >&5
24409 else
24410 echo \$? = $ompi_status >&5
24412 if test "$ompi_status" = "0"; then
24413 unset ompi_status
24414 if $NM conftest.o | grep foo_bar__ >/dev/null 2>&1 ; then
24415 ompi_cv_f77_external_symbol="double underscore"
24416 elif $NM conftest.o | grep foo_bar_ >/dev/null 2>&1 ; then
24417 ompi_cv_f77_external_symbol="single underscore"
24418 elif $NM conftest.o | grep FOO_bar >/dev/null 2>&1 ; then
24419 ompi_cv_f77_external_symbol="mixed case"
24420 elif $NM conftest.o | grep foo_bar >/dev/null 2>&1 ; then
24421 ompi_cv_f77_external_symbol="no underscore"
24422 elif $NM conftest.o | grep FOO_BAR >/dev/null 2>&1 ; then
24423 ompi_cv_f77_external_symbol="upper case"
24424 else
24425 $NM conftest.o >conftest.out 2>&1
24427 # 1 is the message
24428 # 2 is whether to put a prefix or not
24429 if test -n ""; then
24430 echo "configure:24430: output from $NM:" >&5
24431 else
24432 echo output from $NM: >&5
24435 # 1 is the filename
24436 if test -n "conftest.out" -a -f "conftest.out"; then
24437 cat conftest.out >&5
24439 { { echo "$as_me:$LINENO: error: Could not determine Fortran naming convention." >&5
24440 echo "$as_me: error: Could not determine Fortran naming convention." >&2;}
24441 { (exit 1); exit 1; }; }
24443 else
24444 unset ompi_status
24445 { { echo "$as_me:$LINENO: error: Fortran compiler did not produce object file" >&5
24446 echo "$as_me: error: Fortran compiler did not produce object file" >&2;}
24447 { (exit 1); exit 1; }; }
24451 { echo "$as_me:$LINENO: result: $ompi_cv_f77_external_symbol" >&5
24452 echo "${ECHO_T}$ompi_cv_f77_external_symbol" >&6; }
24454 ompi_fortran_double_underscore=0
24455 ompi_fortran_single_underscore=0
24456 ompi_fortran_caps=0
24457 ompi_fortran_plain=0
24459 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
24460 ompi_fortran_double_underscore=1
24461 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
24462 ompi_fortran_single_underscore=1
24463 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
24464 ompi_fortran_caps=1
24465 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
24466 ompi_fortran_plain=1
24467 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
24468 ompi_fortran_caps=1
24469 elif test "$ompi_cv_f77_external_symbol" != "skipped" ; then
24470 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
24471 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
24472 { (exit 1); exit 1; }; }
24476 cat >>confdefs.h <<_ACEOF
24477 #define OMPI_F77_DOUBLE_UNDERSCORE $ompi_fortran_double_underscore
24478 _ACEOF
24481 cat >>confdefs.h <<_ACEOF
24482 #define OMPI_F77_SINGLE_UNDERSCORE $ompi_fortran_single_underscore
24483 _ACEOF
24486 cat >>confdefs.h <<_ACEOF
24487 #define OMPI_F77_CAPS $ompi_fortran_caps
24488 _ACEOF
24491 cat >>confdefs.h <<_ACEOF
24492 #define OMPI_F77_PLAIN $ompi_fortran_plain
24493 _ACEOF
24496 rm -f conftest.*
24499 # This allows us to mark bogus types, but still have them be a valid
24500 # [sentinel] value
24503 cat >>confdefs.h <<\_ACEOF
24504 #define ompi_fortran_bogus_type_t int
24505 _ACEOF
24508 # We want to set the #define's for all of these, so invoke the macros
24509 # regardless of whether we have F77 support or not.
24512 ofc_expected_size=-1
24513 ofc_have_type=0
24514 ofc_type_size=$ac_cv_sizeof_int
24515 ofc_type_alignment=$ac_cv_sizeof_int
24516 ofc_c_type=ompi_fortran_bogus_type_t
24518 # Only check if we actually want the F77 bindings / have a F77
24519 # compiler. This allows us to call this macro, even if there is
24520 # no F77 compiler. If we have no f77 compiler, then just set a
24521 # bunch of defaults.
24522 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
24526 # Determine FORTRAN datatype size.
24527 # First arg is type, 2nd arg is config var to define
24528 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL" >&5
24529 echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL... $ECHO_C" >&6; }
24530 if test "${ompi_cv_f77_have_LOGICAL+set}" = set; then
24531 echo $ECHO_N "(cached) $ECHO_C" >&6
24532 else
24533 ac_ext=f
24534 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24535 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24536 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24538 cat >conftest.$ac_ext <<_ACEOF
24540 program main
24541 LOGICAL bogus_variable
24543 _ACEOF
24544 rm -f conftest.$ac_objext
24545 if { (ac_try="$ac_compile"
24546 case "(($ac_try" in
24547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548 *) ac_try_echo=$ac_try;;
24549 esac
24550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24551 (eval "$ac_compile") 2>conftest.er1
24552 ac_status=$?
24553 grep -v '^ *+' conftest.er1 >conftest.err
24554 rm -f conftest.er1
24555 cat conftest.err >&5
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } && {
24558 test -z "$ac_f77_werror_flag" ||
24559 test ! -s conftest.err
24560 } && test -s conftest.$ac_objext; then
24561 ompi_cv_f77_have_LOGICAL="yes"
24562 else
24563 echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24566 ompi_cv_f77_have_LOGICAL="no"
24569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24570 ac_ext=c
24571 ac_cpp='$CPP $CPPFLAGS'
24572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24577 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICAL" >&5
24578 echo "${ECHO_T}$ompi_cv_f77_have_LOGICAL" >&6; }
24580 if test "$ompi_cv_f77_have_LOGICAL" = "yes"; then
24581 ofc_have_type=1
24582 else
24583 ofc_have_type=0
24587 else
24588 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL" >&5
24589 echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL... $ECHO_C" >&6; }
24590 { echo "$as_me:$LINENO: result: skipped" >&5
24591 echo "${ECHO_T}skipped" >&6; }
24594 if test "$ofc_have_type" = "1"; then
24595 # What is the size of this type?
24597 # NOTE: Some Fortran compilers actually will return that a
24598 # type exists even if it doesn't support it -- the compiler
24599 # will automatically convert the unsupported type to a type
24600 # that it *does* support. For example, if you try to use
24601 # INTEGER*16 and the compiler doesn't support it, it may well
24602 # automatically convert it to INTEGER*8 for you (!). So we
24603 # have to check the actual size of the type once we determine
24604 # that the compiler doesn't error if we try to use it
24605 # (i.e,. the compiler *might* support that type). If the size
24606 # doesn't match the expected size, then the compiler doesn't
24607 # really support it.
24611 { echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL" >&5
24612 echo $ECHO_N "checking size of Fortran 77 LOGICAL... $ECHO_C" >&6; }
24613 if test "${ompi_cv_f77_sizeof_LOGICAL+set}" = set; then
24614 echo $ECHO_N "(cached) $ECHO_C" >&6
24615 else
24617 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
24618 # so the general rule is that if there is an _ in the function
24619 # name, then there are two trailing underscores. Otherwise,
24620 # there is only one trailing underscore. Any idea how to do
24621 # that with m4_translit?
24622 if echo size | grep _ >/dev/null 2>&1 ; then
24623 ompi_ac_size_fn=size__
24624 else
24625 ompi_ac_size_fn=size_
24627 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
24628 ompi_ac_size_fn=size_
24629 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
24630 ompi_ac_size_fn=size
24631 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
24632 ompi_ac_size_fn=size
24633 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
24634 ompi_ac_size_fn=SIZE
24635 else
24636 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
24637 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
24638 { (exit 1); exit 1; }; }
24641 # Fortran module
24642 cat > conftestf.f <<EOF
24643 program fsize
24644 external size
24645 LOGICAL x(2)
24646 call size(x(1),x(2))
24650 # C module
24651 if test -f conftest.h; then
24652 ompi_conftest_h="#include \"conftest.h\""
24653 else
24654 ompi_conftest_h=""
24656 cat > conftest.c <<EOF
24657 #include <stdio.h>
24658 #include <stdlib.h>
24659 $ompi_conftest_h
24661 #ifdef __cplusplus
24662 extern "C" {
24663 #endif
24664 void $ompi_ac_size_fn(char *a, char *b)
24666 int diff = (int) (b - a);
24667 FILE *f=fopen("conftestval", "w");
24668 if (!f) exit(1);
24669 fprintf(f, "%d\n", diff);
24670 fclose(f);
24672 #ifdef __cplusplus
24674 #endif
24678 # 1 is the command
24679 # 2 is actions to do if success
24680 # 3 is actions to do if fail
24681 echo "configure:24681: $CC $CFLAGS -I. -c conftest.c" >&5
24682 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
24683 ompi_status=$?
24685 # 1 is the message
24686 # 2 is whether to put a prefix or not
24687 if test -n "1"; then
24688 echo "configure:24688: \$? = $ompi_status" >&5
24689 else
24690 echo \$? = $ompi_status >&5
24692 if test "$ompi_status" = "0"; then
24693 unset ompi_status
24695 # 1 is the command
24696 # 2 is actions to do if success
24697 # 3 is actions to do if fail
24698 echo "configure:24698: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
24699 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
24700 ompi_status=$?
24702 # 1 is the message
24703 # 2 is whether to put a prefix or not
24704 if test -n "1"; then
24705 echo "configure:24705: \$? = $ompi_status" >&5
24706 else
24707 echo \$? = $ompi_status >&5
24709 if test "$ompi_status" = "0"; then
24710 unset ompi_status
24711 happy="yes"
24712 else
24713 unset ompi_status
24714 happy="no"
24716 else
24717 unset ompi_status
24718 happy="no"
24721 if test "$happy" = "no" ; then
24722 { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5
24723 echo "$as_me: error: Could not determine size of LOGICAL" >&2;}
24724 { (exit 1); exit 1; }; }
24727 if test "$cross_compiling" = "yes"; then
24728 { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL when cross-compiling" >&5
24729 echo "$as_me: error: Can not determine size of LOGICAL when cross-compiling" >&2;}
24730 { (exit 1); exit 1; }; }
24731 else
24733 # 1 is the command
24734 # 2 is actions to do if success
24735 # 3 is actions to do if fail
24736 echo "configure:24736: ./conftest" >&5
24737 ./conftest 1>&5 2>&1
24738 ompi_status=$?
24740 # 1 is the message
24741 # 2 is whether to put a prefix or not
24742 if test -n "1"; then
24743 echo "configure:24743: \$? = $ompi_status" >&5
24744 else
24745 echo \$? = $ompi_status >&5
24747 if test "$ompi_status" = "0"; then
24748 unset ompi_status
24749 if test -f conftestval; then
24750 ompi_cv_f77_sizeof_LOGICAL=`cat conftestval`
24751 else
24753 # 1 is the message
24754 # 2 is whether to put a prefix or not
24755 if test -n "1"; then
24756 echo "configure:24756: conftestval not found." >&5
24757 else
24758 echo conftestval not found. >&5
24760 { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5
24761 echo "$as_me: error: Could not determine size of LOGICAL" >&2;}
24762 { (exit 1); exit 1; }; }
24765 else
24766 unset ompi_status
24767 { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5
24768 echo "$as_me: error: Could not determine size of LOGICAL" >&2;}
24769 { (exit 1); exit 1; }; }
24774 unset happy ompi_conftest_h
24775 rm -f conftest*
24777 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICAL" >&5
24778 echo "${ECHO_T}$ompi_cv_f77_sizeof_LOGICAL" >&6; }
24780 ofc_type_size=$ompi_cv_f77_sizeof_LOGICAL
24782 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
24783 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&5
24784 echo "$as_me: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&2;}
24785 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
24786 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
24787 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL" >&5
24788 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL" >&2;}
24789 ofc_have_type=0
24790 else
24791 # Look for a corresponding C type (will abort by itself if the
24792 # type isn't found and we need it)
24793 ofc_c_type=
24797 oft_abort_on_fail="yes"
24798 oft_target_size="$ofc_type_size"
24800 { echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL" >&5
24801 echo $ECHO_N "checking for C type corresponding to LOGICAL... $ECHO_C" >&6; }
24802 if test "${ompi_cv_find_type_LOGICAL+set}" = set; then
24803 echo $ECHO_N "(cached) $ECHO_C" >&6
24804 else
24805 # Loop over all the types handed to us
24806 oft_real_type=
24807 if test "$oft_target_size" != ""; then
24808 if test -z "$oft_real_type"; then
24809 if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then
24810 oft_real_type="char"
24813 if test -z "$oft_real_type"; then
24814 if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
24815 oft_real_type="int32_t"
24818 if test -z "$oft_real_type"; then
24819 if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
24820 oft_real_type="int"
24823 if test -z "$oft_real_type"; then
24824 if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
24825 oft_real_type="int64_t"
24828 if test -z "$oft_real_type"; then
24829 if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
24830 oft_real_type="long long"
24833 if test -z "$oft_real_type"; then
24834 if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
24835 oft_real_type="long"
24841 if test -z "$oft_real_type"; then
24842 ompi_cv_find_type_LOGICAL="not found"
24843 else
24844 ompi_cv_find_type_LOGICAL="$oft_real_type"
24848 { echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICAL" >&5
24849 echo "${ECHO_T}$ompi_cv_find_type_LOGICAL" >&6; }
24851 if test "$ompi_cv_find_type_LOGICAL" == "not found"; then
24852 { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
24853 echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
24854 if test "$oft_abort_on_fail" != "no"; then
24855 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
24856 echo "$as_me: error: Cannot continue" >&2;}
24857 { (exit 1); exit 1; }; }
24863 if test "$ompi_cv_find_type_LOGICAL" = "not found" ; then
24864 ofc_c_type=
24865 else
24866 ofc_c_type=$ompi_cv_find_type_LOGICAL
24869 unset oft_real_type oft_target_size
24872 if test -z "$ofc_c_type" ; then
24873 ofc_have_type=0
24876 # Get the alignment of the type
24877 if test "$ofc_have_type" = "1"; then
24881 { echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL" >&5
24882 echo $ECHO_N "checking alignment of Fortran LOGICAL... $ECHO_C" >&6; }
24883 if test "${ompi_cv_f77_alignment_LOGICAL+set}" = set; then
24884 echo $ECHO_N "(cached) $ECHO_C" >&6
24885 else
24887 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
24888 # so the general rule is that if there is an _ in the function
24889 # name, then there are two trailing underscores. Otherwise,
24890 # there is only one trailing underscore. Any idea how to do
24891 # that with m4_translit?
24892 if echo align | grep _ >/dev/null 2>&1 ; then
24893 ompi_ac_align_fn=align__
24894 else
24895 ompi_ac_align_fn=align_
24897 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
24898 ompi_ac_align_fn=align_
24899 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
24900 ompi_ac_align_fn=align
24901 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
24902 ompi_ac_align_fn=align
24903 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
24904 ompi_ac_align_fn=ALIGN
24905 else
24906 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
24907 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
24908 { (exit 1); exit 1; }; }
24911 # Fortran module
24912 cat > conftestf.f <<EOF
24913 program falign
24914 external align
24915 LOGICAL w,x,y,z
24916 CHARACTER a,b,c
24917 common /foo/a,w,b,x,y,c,z
24918 call align(w,x,y,z)
24922 # C module
24923 if test -f conftest.h; then
24924 ompi_conftest_h="#include \"conftest.h\""
24925 else
24926 ompi_conftest_h=""
24928 cat > conftest.c <<EOF
24929 #include <stdio.h>
24930 #include <stdlib.h>
24931 $conftest
24933 #ifdef __cplusplus
24934 extern "C" {
24935 #endif
24936 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
24937 { unsigned long aw, ax, ay, az;
24938 FILE *f=fopen("conftestval", "w");
24939 if (!f) exit(1);
24940 aw = (unsigned long) w;
24941 ax = (unsigned long) x;
24942 ay = (unsigned long) y;
24943 az = (unsigned long) z;
24944 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
24945 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
24946 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
24947 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
24948 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
24949 else fprintf(f, "%d\n", 1);
24950 fclose(f);
24952 #ifdef __cplusplus
24954 #endif
24958 # 1 is the command
24959 # 2 is actions to do if success
24960 # 3 is actions to do if fail
24961 echo "configure:24961: $CC $CFLAGS -I. -c conftest.c" >&5
24962 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
24963 ompi_status=$?
24965 # 1 is the message
24966 # 2 is whether to put a prefix or not
24967 if test -n "1"; then
24968 echo "configure:24968: \$? = $ompi_status" >&5
24969 else
24970 echo \$? = $ompi_status >&5
24972 if test "$ompi_status" = "0"; then
24973 unset ompi_status
24975 # 1 is the command
24976 # 2 is actions to do if success
24977 # 3 is actions to do if fail
24978 echo "configure:24978: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
24979 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
24980 ompi_status=$?
24982 # 1 is the message
24983 # 2 is whether to put a prefix or not
24984 if test -n "1"; then
24985 echo "configure:24985: \$? = $ompi_status" >&5
24986 else
24987 echo \$? = $ompi_status >&5
24989 if test "$ompi_status" = "0"; then
24990 unset ompi_status
24991 happy="yes"
24992 else
24993 unset ompi_status
24994 happy="no"
24996 else
24997 unset ompi_status
24998 happy="no"
25001 if test "$happy" = "no" ; then
25002 { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL" >&5
25003 echo "$as_me: error: Could not determine alignment of LOGICAL" >&2;}
25004 { (exit 1); exit 1; }; }
25007 if test "$cross_compiling" = "yes"; then
25008 { { echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL when cross-compiling" >&5
25009 echo "$as_me: error: Can not determine alignment of LOGICAL when cross-compiling" >&2;}
25010 { (exit 1); exit 1; }; }
25011 else
25013 # 1 is the command
25014 # 2 is actions to do if success
25015 # 3 is actions to do if fail
25016 echo "configure:25016: ./conftest" >&5
25017 ./conftest 1>&5 2>&1
25018 ompi_status=$?
25020 # 1 is the message
25021 # 2 is whether to put a prefix or not
25022 if test -n "1"; then
25023 echo "configure:25023: \$? = $ompi_status" >&5
25024 else
25025 echo \$? = $ompi_status >&5
25027 if test "$ompi_status" = "0"; then
25028 unset ompi_status
25029 ompi_cv_f77_alignment_LOGICAL=`cat conftestval`
25030 else
25031 unset ompi_status
25032 { { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL" >&5
25033 echo "$as_me: error: Could not determine alignment of LOGICAL" >&2;}
25034 { (exit 1); exit 1; }; }
25039 unset happy ompi_conf
25040 rm -f conftest*
25042 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICAL" >&5
25043 echo "${ECHO_T}$ompi_cv_f77_alignment_LOGICAL" >&6; }
25045 ofc_type_alignment=$ompi_cv_f77_alignment_LOGICAL
25051 # We always need these defines -- even if we don't have a given type,
25052 # there are some places in the code where we have to have *something*.
25054 cat >>confdefs.h <<_ACEOF
25055 #define OMPI_HAVE_FORTRAN_LOGICAL $ofc_have_type
25056 _ACEOF
25059 cat >>confdefs.h <<_ACEOF
25060 #define OMPI_SIZEOF_FORTRAN_LOGICAL $ofc_type_size
25061 _ACEOF
25064 cat >>confdefs.h <<_ACEOF
25065 #define OMPI_ALIGNMENT_FORTRAN_LOGICAL $ofc_type_alignment
25066 _ACEOF
25068 if test "char, int32_t, int, int64_t, long long, long" != ""; then
25070 cat >>confdefs.h <<_ACEOF
25071 #define ompi_fortran_logical_t $ofc_c_type
25072 _ACEOF
25076 # Save some in shell variables for later use (e.g., need
25077 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
25078 OMPI_FORTRAN_LOGICAL_C_TYPE=$ofc_c_type
25079 OMPI_HAVE_FORTRAN_LOGICAL=$ofc_have_type
25080 OMPI_SIZEOF_FORTRAN_LOGICAL=$ofc_type_size
25081 OMPI_ALIGNMENT_FORTRAN_LOGICAL=$ofc_type_alignment
25083 # Clean up
25084 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
25085 unset ofc_expected_size
25088 ofc_expected_size=-1
25089 ofc_have_type=0
25090 ofc_type_size=$ac_cv_sizeof_int
25091 ofc_type_alignment=$ac_cv_sizeof_int
25092 ofc_c_type=ompi_fortran_bogus_type_t
25094 # Only check if we actually want the F77 bindings / have a F77
25095 # compiler. This allows us to call this macro, even if there is
25096 # no F77 compiler. If we have no f77 compiler, then just set a
25097 # bunch of defaults.
25098 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
25102 # Determine FORTRAN datatype size.
25103 # First arg is type, 2nd arg is config var to define
25104 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER" >&5
25105 echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER... $ECHO_C" >&6; }
25106 if test "${ompi_cv_f77_have_INTEGER+set}" = set; then
25107 echo $ECHO_N "(cached) $ECHO_C" >&6
25108 else
25109 ac_ext=f
25110 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25111 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25112 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25114 cat >conftest.$ac_ext <<_ACEOF
25116 program main
25117 INTEGER bogus_variable
25119 _ACEOF
25120 rm -f conftest.$ac_objext
25121 if { (ac_try="$ac_compile"
25122 case "(($ac_try" in
25123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25124 *) ac_try_echo=$ac_try;;
25125 esac
25126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25127 (eval "$ac_compile") 2>conftest.er1
25128 ac_status=$?
25129 grep -v '^ *+' conftest.er1 >conftest.err
25130 rm -f conftest.er1
25131 cat conftest.err >&5
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); } && {
25134 test -z "$ac_f77_werror_flag" ||
25135 test ! -s conftest.err
25136 } && test -s conftest.$ac_objext; then
25137 ompi_cv_f77_have_INTEGER="yes"
25138 else
25139 echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25142 ompi_cv_f77_have_INTEGER="no"
25145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25146 ac_ext=c
25147 ac_cpp='$CPP $CPPFLAGS'
25148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25153 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGER" >&5
25154 echo "${ECHO_T}$ompi_cv_f77_have_INTEGER" >&6; }
25156 if test "$ompi_cv_f77_have_INTEGER" = "yes"; then
25157 ofc_have_type=1
25158 else
25159 ofc_have_type=0
25163 else
25164 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER" >&5
25165 echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER... $ECHO_C" >&6; }
25166 { echo "$as_me:$LINENO: result: skipped" >&5
25167 echo "${ECHO_T}skipped" >&6; }
25170 if test "$ofc_have_type" = "1"; then
25171 # What is the size of this type?
25173 # NOTE: Some Fortran compilers actually will return that a
25174 # type exists even if it doesn't support it -- the compiler
25175 # will automatically convert the unsupported type to a type
25176 # that it *does* support. For example, if you try to use
25177 # INTEGER*16 and the compiler doesn't support it, it may well
25178 # automatically convert it to INTEGER*8 for you (!). So we
25179 # have to check the actual size of the type once we determine
25180 # that the compiler doesn't error if we try to use it
25181 # (i.e,. the compiler *might* support that type). If the size
25182 # doesn't match the expected size, then the compiler doesn't
25183 # really support it.
25187 { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER" >&5
25188 echo $ECHO_N "checking size of Fortran 77 INTEGER... $ECHO_C" >&6; }
25189 if test "${ompi_cv_f77_sizeof_INTEGER+set}" = set; then
25190 echo $ECHO_N "(cached) $ECHO_C" >&6
25191 else
25193 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
25194 # so the general rule is that if there is an _ in the function
25195 # name, then there are two trailing underscores. Otherwise,
25196 # there is only one trailing underscore. Any idea how to do
25197 # that with m4_translit?
25198 if echo size | grep _ >/dev/null 2>&1 ; then
25199 ompi_ac_size_fn=size__
25200 else
25201 ompi_ac_size_fn=size_
25203 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
25204 ompi_ac_size_fn=size_
25205 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
25206 ompi_ac_size_fn=size
25207 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
25208 ompi_ac_size_fn=size
25209 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
25210 ompi_ac_size_fn=SIZE
25211 else
25212 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
25213 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
25214 { (exit 1); exit 1; }; }
25217 # Fortran module
25218 cat > conftestf.f <<EOF
25219 program fsize
25220 external size
25221 INTEGER x(2)
25222 call size(x(1),x(2))
25226 # C module
25227 if test -f conftest.h; then
25228 ompi_conftest_h="#include \"conftest.h\""
25229 else
25230 ompi_conftest_h=""
25232 cat > conftest.c <<EOF
25233 #include <stdio.h>
25234 #include <stdlib.h>
25235 $ompi_conftest_h
25237 #ifdef __cplusplus
25238 extern "C" {
25239 #endif
25240 void $ompi_ac_size_fn(char *a, char *b)
25242 int diff = (int) (b - a);
25243 FILE *f=fopen("conftestval", "w");
25244 if (!f) exit(1);
25245 fprintf(f, "%d\n", diff);
25246 fclose(f);
25248 #ifdef __cplusplus
25250 #endif
25254 # 1 is the command
25255 # 2 is actions to do if success
25256 # 3 is actions to do if fail
25257 echo "configure:25257: $CC $CFLAGS -I. -c conftest.c" >&5
25258 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
25259 ompi_status=$?
25261 # 1 is the message
25262 # 2 is whether to put a prefix or not
25263 if test -n "1"; then
25264 echo "configure:25264: \$? = $ompi_status" >&5
25265 else
25266 echo \$? = $ompi_status >&5
25268 if test "$ompi_status" = "0"; then
25269 unset ompi_status
25271 # 1 is the command
25272 # 2 is actions to do if success
25273 # 3 is actions to do if fail
25274 echo "configure:25274: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
25275 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
25276 ompi_status=$?
25278 # 1 is the message
25279 # 2 is whether to put a prefix or not
25280 if test -n "1"; then
25281 echo "configure:25281: \$? = $ompi_status" >&5
25282 else
25283 echo \$? = $ompi_status >&5
25285 if test "$ompi_status" = "0"; then
25286 unset ompi_status
25287 happy="yes"
25288 else
25289 unset ompi_status
25290 happy="no"
25292 else
25293 unset ompi_status
25294 happy="no"
25297 if test "$happy" = "no" ; then
25298 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5
25299 echo "$as_me: error: Could not determine size of INTEGER" >&2;}
25300 { (exit 1); exit 1; }; }
25303 if test "$cross_compiling" = "yes"; then
25304 { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER when cross-compiling" >&5
25305 echo "$as_me: error: Can not determine size of INTEGER when cross-compiling" >&2;}
25306 { (exit 1); exit 1; }; }
25307 else
25309 # 1 is the command
25310 # 2 is actions to do if success
25311 # 3 is actions to do if fail
25312 echo "configure:25312: ./conftest" >&5
25313 ./conftest 1>&5 2>&1
25314 ompi_status=$?
25316 # 1 is the message
25317 # 2 is whether to put a prefix or not
25318 if test -n "1"; then
25319 echo "configure:25319: \$? = $ompi_status" >&5
25320 else
25321 echo \$? = $ompi_status >&5
25323 if test "$ompi_status" = "0"; then
25324 unset ompi_status
25325 if test -f conftestval; then
25326 ompi_cv_f77_sizeof_INTEGER=`cat conftestval`
25327 else
25329 # 1 is the message
25330 # 2 is whether to put a prefix or not
25331 if test -n "1"; then
25332 echo "configure:25332: conftestval not found." >&5
25333 else
25334 echo conftestval not found. >&5
25336 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5
25337 echo "$as_me: error: Could not determine size of INTEGER" >&2;}
25338 { (exit 1); exit 1; }; }
25341 else
25342 unset ompi_status
25343 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5
25344 echo "$as_me: error: Could not determine size of INTEGER" >&2;}
25345 { (exit 1); exit 1; }; }
25350 unset happy ompi_conftest_h
25351 rm -f conftest*
25353 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGER" >&5
25354 echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGER" >&6; }
25356 ofc_type_size=$ompi_cv_f77_sizeof_INTEGER
25358 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
25359 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&5
25360 echo "$as_me: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&2;}
25361 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
25362 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
25363 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER" >&5
25364 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER" >&2;}
25365 ofc_have_type=0
25366 else
25367 # Look for a corresponding C type (will abort by itself if the
25368 # type isn't found and we need it)
25369 ofc_c_type=
25373 oft_abort_on_fail="yes"
25374 oft_target_size="$ofc_type_size"
25376 { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER" >&5
25377 echo $ECHO_N "checking for C type corresponding to INTEGER... $ECHO_C" >&6; }
25378 if test "${ompi_cv_find_type_INTEGER+set}" = set; then
25379 echo $ECHO_N "(cached) $ECHO_C" >&6
25380 else
25381 # Loop over all the types handed to us
25382 oft_real_type=
25383 if test "$oft_target_size" != ""; then
25384 if test -z "$oft_real_type"; then
25385 if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
25386 oft_real_type="int32_t"
25389 if test -z "$oft_real_type"; then
25390 if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
25391 oft_real_type="int"
25394 if test -z "$oft_real_type"; then
25395 if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
25396 oft_real_type="int64_t"
25399 if test -z "$oft_real_type"; then
25400 if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
25401 oft_real_type="long long"
25404 if test -z "$oft_real_type"; then
25405 if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
25406 oft_real_type="long"
25412 if test -z "$oft_real_type"; then
25413 ompi_cv_find_type_INTEGER="not found"
25414 else
25415 ompi_cv_find_type_INTEGER="$oft_real_type"
25419 { echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGER" >&5
25420 echo "${ECHO_T}$ompi_cv_find_type_INTEGER" >&6; }
25422 if test "$ompi_cv_find_type_INTEGER" == "not found"; then
25423 { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
25424 echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
25425 if test "$oft_abort_on_fail" != "no"; then
25426 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
25427 echo "$as_me: error: Cannot continue" >&2;}
25428 { (exit 1); exit 1; }; }
25434 if test "$ompi_cv_find_type_INTEGER" = "not found" ; then
25435 ofc_c_type=
25436 else
25437 ofc_c_type=$ompi_cv_find_type_INTEGER
25440 unset oft_real_type oft_target_size
25443 if test -z "$ofc_c_type" ; then
25444 ofc_have_type=0
25447 # Get the alignment of the type
25448 if test "$ofc_have_type" = "1"; then
25452 { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER" >&5
25453 echo $ECHO_N "checking alignment of Fortran INTEGER... $ECHO_C" >&6; }
25454 if test "${ompi_cv_f77_alignment_INTEGER+set}" = set; then
25455 echo $ECHO_N "(cached) $ECHO_C" >&6
25456 else
25458 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
25459 # so the general rule is that if there is an _ in the function
25460 # name, then there are two trailing underscores. Otherwise,
25461 # there is only one trailing underscore. Any idea how to do
25462 # that with m4_translit?
25463 if echo align | grep _ >/dev/null 2>&1 ; then
25464 ompi_ac_align_fn=align__
25465 else
25466 ompi_ac_align_fn=align_
25468 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
25469 ompi_ac_align_fn=align_
25470 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
25471 ompi_ac_align_fn=align
25472 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
25473 ompi_ac_align_fn=align
25474 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
25475 ompi_ac_align_fn=ALIGN
25476 else
25477 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
25478 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
25479 { (exit 1); exit 1; }; }
25482 # Fortran module
25483 cat > conftestf.f <<EOF
25484 program falign
25485 external align
25486 INTEGER w,x,y,z
25487 CHARACTER a,b,c
25488 common /foo/a,w,b,x,y,c,z
25489 call align(w,x,y,z)
25493 # C module
25494 if test -f conftest.h; then
25495 ompi_conftest_h="#include \"conftest.h\""
25496 else
25497 ompi_conftest_h=""
25499 cat > conftest.c <<EOF
25500 #include <stdio.h>
25501 #include <stdlib.h>
25502 $conftest
25504 #ifdef __cplusplus
25505 extern "C" {
25506 #endif
25507 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
25508 { unsigned long aw, ax, ay, az;
25509 FILE *f=fopen("conftestval", "w");
25510 if (!f) exit(1);
25511 aw = (unsigned long) w;
25512 ax = (unsigned long) x;
25513 ay = (unsigned long) y;
25514 az = (unsigned long) z;
25515 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
25516 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
25517 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
25518 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
25519 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
25520 else fprintf(f, "%d\n", 1);
25521 fclose(f);
25523 #ifdef __cplusplus
25525 #endif
25529 # 1 is the command
25530 # 2 is actions to do if success
25531 # 3 is actions to do if fail
25532 echo "configure:25532: $CC $CFLAGS -I. -c conftest.c" >&5
25533 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
25534 ompi_status=$?
25536 # 1 is the message
25537 # 2 is whether to put a prefix or not
25538 if test -n "1"; then
25539 echo "configure:25539: \$? = $ompi_status" >&5
25540 else
25541 echo \$? = $ompi_status >&5
25543 if test "$ompi_status" = "0"; then
25544 unset ompi_status
25546 # 1 is the command
25547 # 2 is actions to do if success
25548 # 3 is actions to do if fail
25549 echo "configure:25549: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
25550 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
25551 ompi_status=$?
25553 # 1 is the message
25554 # 2 is whether to put a prefix or not
25555 if test -n "1"; then
25556 echo "configure:25556: \$? = $ompi_status" >&5
25557 else
25558 echo \$? = $ompi_status >&5
25560 if test "$ompi_status" = "0"; then
25561 unset ompi_status
25562 happy="yes"
25563 else
25564 unset ompi_status
25565 happy="no"
25567 else
25568 unset ompi_status
25569 happy="no"
25572 if test "$happy" = "no" ; then
25573 { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER" >&5
25574 echo "$as_me: error: Could not determine alignment of INTEGER" >&2;}
25575 { (exit 1); exit 1; }; }
25578 if test "$cross_compiling" = "yes"; then
25579 { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER when cross-compiling" >&5
25580 echo "$as_me: error: Can not determine alignment of INTEGER when cross-compiling" >&2;}
25581 { (exit 1); exit 1; }; }
25582 else
25584 # 1 is the command
25585 # 2 is actions to do if success
25586 # 3 is actions to do if fail
25587 echo "configure:25587: ./conftest" >&5
25588 ./conftest 1>&5 2>&1
25589 ompi_status=$?
25591 # 1 is the message
25592 # 2 is whether to put a prefix or not
25593 if test -n "1"; then
25594 echo "configure:25594: \$? = $ompi_status" >&5
25595 else
25596 echo \$? = $ompi_status >&5
25598 if test "$ompi_status" = "0"; then
25599 unset ompi_status
25600 ompi_cv_f77_alignment_INTEGER=`cat conftestval`
25601 else
25602 unset ompi_status
25603 { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER" >&5
25604 echo "$as_me: error: Could not determine alignment of INTEGER" >&2;}
25605 { (exit 1); exit 1; }; }
25610 unset happy ompi_conf
25611 rm -f conftest*
25613 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGER" >&5
25614 echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGER" >&6; }
25616 ofc_type_alignment=$ompi_cv_f77_alignment_INTEGER
25622 # We always need these defines -- even if we don't have a given type,
25623 # there are some places in the code where we have to have *something*.
25625 cat >>confdefs.h <<_ACEOF
25626 #define OMPI_HAVE_FORTRAN_INTEGER $ofc_have_type
25627 _ACEOF
25630 cat >>confdefs.h <<_ACEOF
25631 #define OMPI_SIZEOF_FORTRAN_INTEGER $ofc_type_size
25632 _ACEOF
25635 cat >>confdefs.h <<_ACEOF
25636 #define OMPI_ALIGNMENT_FORTRAN_INTEGER $ofc_type_alignment
25637 _ACEOF
25639 if test "int32_t, int, int64_t, long long, long" != ""; then
25641 cat >>confdefs.h <<_ACEOF
25642 #define ompi_fortran_integer_t $ofc_c_type
25643 _ACEOF
25647 # Save some in shell variables for later use (e.g., need
25648 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
25649 OMPI_FORTRAN_INTEGER_C_TYPE=$ofc_c_type
25650 OMPI_HAVE_FORTRAN_INTEGER=$ofc_have_type
25651 OMPI_SIZEOF_FORTRAN_INTEGER=$ofc_type_size
25652 OMPI_ALIGNMENT_FORTRAN_INTEGER=$ofc_type_alignment
25654 # Clean up
25655 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
25656 unset ofc_expected_size
25659 ofc_expected_size=1
25660 ofc_have_type=0
25661 ofc_type_size=$ac_cv_sizeof_int
25662 ofc_type_alignment=$ac_cv_sizeof_int
25663 ofc_c_type=ompi_fortran_bogus_type_t
25665 # Only check if we actually want the F77 bindings / have a F77
25666 # compiler. This allows us to call this macro, even if there is
25667 # no F77 compiler. If we have no f77 compiler, then just set a
25668 # bunch of defaults.
25669 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
25673 # Determine FORTRAN datatype size.
25674 # First arg is type, 2nd arg is config var to define
25675 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*1" >&5
25676 echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*1... $ECHO_C" >&6; }
25677 if test "${ompi_cv_f77_have_INTEGERp1+set}" = set; then
25678 echo $ECHO_N "(cached) $ECHO_C" >&6
25679 else
25680 ac_ext=f
25681 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25682 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25683 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25685 cat >conftest.$ac_ext <<_ACEOF
25687 program main
25688 INTEGER*1 bogus_variable
25690 _ACEOF
25691 rm -f conftest.$ac_objext
25692 if { (ac_try="$ac_compile"
25693 case "(($ac_try" in
25694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25695 *) ac_try_echo=$ac_try;;
25696 esac
25697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25698 (eval "$ac_compile") 2>conftest.er1
25699 ac_status=$?
25700 grep -v '^ *+' conftest.er1 >conftest.err
25701 rm -f conftest.er1
25702 cat conftest.err >&5
25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704 (exit $ac_status); } && {
25705 test -z "$ac_f77_werror_flag" ||
25706 test ! -s conftest.err
25707 } && test -s conftest.$ac_objext; then
25708 ompi_cv_f77_have_INTEGERp1="yes"
25709 else
25710 echo "$as_me: failed program was:" >&5
25711 sed 's/^/| /' conftest.$ac_ext >&5
25713 ompi_cv_f77_have_INTEGERp1="no"
25716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25717 ac_ext=c
25718 ac_cpp='$CPP $CPPFLAGS'
25719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25724 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp1" >&5
25725 echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp1" >&6; }
25727 if test "$ompi_cv_f77_have_INTEGERp1" = "yes"; then
25728 ofc_have_type=1
25729 else
25730 ofc_have_type=0
25734 else
25735 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*1" >&5
25736 echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*1... $ECHO_C" >&6; }
25737 { echo "$as_me:$LINENO: result: skipped" >&5
25738 echo "${ECHO_T}skipped" >&6; }
25741 if test "$ofc_have_type" = "1"; then
25742 # What is the size of this type?
25744 # NOTE: Some Fortran compilers actually will return that a
25745 # type exists even if it doesn't support it -- the compiler
25746 # will automatically convert the unsupported type to a type
25747 # that it *does* support. For example, if you try to use
25748 # INTEGER*16 and the compiler doesn't support it, it may well
25749 # automatically convert it to INTEGER*8 for you (!). So we
25750 # have to check the actual size of the type once we determine
25751 # that the compiler doesn't error if we try to use it
25752 # (i.e,. the compiler *might* support that type). If the size
25753 # doesn't match the expected size, then the compiler doesn't
25754 # really support it.
25758 { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*1" >&5
25759 echo $ECHO_N "checking size of Fortran 77 INTEGER*1... $ECHO_C" >&6; }
25760 if test "${ompi_cv_f77_sizeof_INTEGERp1+set}" = set; then
25761 echo $ECHO_N "(cached) $ECHO_C" >&6
25762 else
25764 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
25765 # so the general rule is that if there is an _ in the function
25766 # name, then there are two trailing underscores. Otherwise,
25767 # there is only one trailing underscore. Any idea how to do
25768 # that with m4_translit?
25769 if echo size | grep _ >/dev/null 2>&1 ; then
25770 ompi_ac_size_fn=size__
25771 else
25772 ompi_ac_size_fn=size_
25774 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
25775 ompi_ac_size_fn=size_
25776 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
25777 ompi_ac_size_fn=size
25778 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
25779 ompi_ac_size_fn=size
25780 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
25781 ompi_ac_size_fn=SIZE
25782 else
25783 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
25784 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
25785 { (exit 1); exit 1; }; }
25788 # Fortran module
25789 cat > conftestf.f <<EOF
25790 program fsize
25791 external size
25792 INTEGER*1 x(2)
25793 call size(x(1),x(2))
25797 # C module
25798 if test -f conftest.h; then
25799 ompi_conftest_h="#include \"conftest.h\""
25800 else
25801 ompi_conftest_h=""
25803 cat > conftest.c <<EOF
25804 #include <stdio.h>
25805 #include <stdlib.h>
25806 $ompi_conftest_h
25808 #ifdef __cplusplus
25809 extern "C" {
25810 #endif
25811 void $ompi_ac_size_fn(char *a, char *b)
25813 int diff = (int) (b - a);
25814 FILE *f=fopen("conftestval", "w");
25815 if (!f) exit(1);
25816 fprintf(f, "%d\n", diff);
25817 fclose(f);
25819 #ifdef __cplusplus
25821 #endif
25825 # 1 is the command
25826 # 2 is actions to do if success
25827 # 3 is actions to do if fail
25828 echo "configure:25828: $CC $CFLAGS -I. -c conftest.c" >&5
25829 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
25830 ompi_status=$?
25832 # 1 is the message
25833 # 2 is whether to put a prefix or not
25834 if test -n "1"; then
25835 echo "configure:25835: \$? = $ompi_status" >&5
25836 else
25837 echo \$? = $ompi_status >&5
25839 if test "$ompi_status" = "0"; then
25840 unset ompi_status
25842 # 1 is the command
25843 # 2 is actions to do if success
25844 # 3 is actions to do if fail
25845 echo "configure:25845: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
25846 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
25847 ompi_status=$?
25849 # 1 is the message
25850 # 2 is whether to put a prefix or not
25851 if test -n "1"; then
25852 echo "configure:25852: \$? = $ompi_status" >&5
25853 else
25854 echo \$? = $ompi_status >&5
25856 if test "$ompi_status" = "0"; then
25857 unset ompi_status
25858 happy="yes"
25859 else
25860 unset ompi_status
25861 happy="no"
25863 else
25864 unset ompi_status
25865 happy="no"
25868 if test "$happy" = "no" ; then
25869 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5
25870 echo "$as_me: error: Could not determine size of INTEGER*1" >&2;}
25871 { (exit 1); exit 1; }; }
25874 if test "$cross_compiling" = "yes"; then
25875 { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*1 when cross-compiling" >&5
25876 echo "$as_me: error: Can not determine size of INTEGER*1 when cross-compiling" >&2;}
25877 { (exit 1); exit 1; }; }
25878 else
25880 # 1 is the command
25881 # 2 is actions to do if success
25882 # 3 is actions to do if fail
25883 echo "configure:25883: ./conftest" >&5
25884 ./conftest 1>&5 2>&1
25885 ompi_status=$?
25887 # 1 is the message
25888 # 2 is whether to put a prefix or not
25889 if test -n "1"; then
25890 echo "configure:25890: \$? = $ompi_status" >&5
25891 else
25892 echo \$? = $ompi_status >&5
25894 if test "$ompi_status" = "0"; then
25895 unset ompi_status
25896 if test -f conftestval; then
25897 ompi_cv_f77_sizeof_INTEGERp1=`cat conftestval`
25898 else
25900 # 1 is the message
25901 # 2 is whether to put a prefix or not
25902 if test -n "1"; then
25903 echo "configure:25903: conftestval not found." >&5
25904 else
25905 echo conftestval not found. >&5
25907 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5
25908 echo "$as_me: error: Could not determine size of INTEGER*1" >&2;}
25909 { (exit 1); exit 1; }; }
25912 else
25913 unset ompi_status
25914 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5
25915 echo "$as_me: error: Could not determine size of INTEGER*1" >&2;}
25916 { (exit 1); exit 1; }; }
25921 unset happy ompi_conftest_h
25922 rm -f conftest*
25924 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp1" >&5
25925 echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp1" >&6; }
25927 ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp1
25929 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
25930 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*1 does not have expected size!" >&5
25931 echo "$as_me: WARNING: *** Fortran 77 INTEGER*1 does not have expected size!" >&2;}
25932 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
25933 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
25934 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*1" >&5
25935 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*1" >&2;}
25936 ofc_have_type=0
25937 else
25938 # Look for a corresponding C type (will abort by itself if the
25939 # type isn't found and we need it)
25940 ofc_c_type=
25944 oft_abort_on_fail="no"
25945 oft_target_size="$ofc_type_size"
25947 { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*1" >&5
25948 echo $ECHO_N "checking for C type corresponding to INTEGER*1... $ECHO_C" >&6; }
25949 if test "${ompi_cv_find_type_INTEGERp1+set}" = set; then
25950 echo $ECHO_N "(cached) $ECHO_C" >&6
25951 else
25952 # Loop over all the types handed to us
25953 oft_real_type=
25954 if test "$oft_target_size" != ""; then
25955 if test -z "$oft_real_type"; then
25956 if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then
25957 oft_real_type="char"
25960 if test -z "$oft_real_type"; then
25961 if test "$ac_cv_sizeof_int8_t" = "$oft_target_size" ; then
25962 oft_real_type="int8_t"
25965 if test -z "$oft_real_type"; then
25966 if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then
25967 oft_real_type="short"
25970 if test -z "$oft_real_type"; then
25971 if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
25972 oft_real_type="int"
25975 if test -z "$oft_real_type"; then
25976 if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
25977 oft_real_type="int64_t"
25980 if test -z "$oft_real_type"; then
25981 if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
25982 oft_real_type="long long"
25985 if test -z "$oft_real_type"; then
25986 if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
25987 oft_real_type="long"
25993 if test -z "$oft_real_type"; then
25994 ompi_cv_find_type_INTEGERp1="not found"
25995 else
25996 ompi_cv_find_type_INTEGERp1="$oft_real_type"
26000 { echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp1" >&5
26001 echo "${ECHO_T}$ompi_cv_find_type_INTEGERp1" >&6; }
26003 if test "$ompi_cv_find_type_INTEGERp1" == "not found"; then
26004 { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
26005 echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
26006 if test "$oft_abort_on_fail" != "no"; then
26007 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
26008 echo "$as_me: error: Cannot continue" >&2;}
26009 { (exit 1); exit 1; }; }
26015 if test "$ompi_cv_find_type_INTEGERp1" = "not found" ; then
26016 ofc_c_type=
26017 else
26018 ofc_c_type=$ompi_cv_find_type_INTEGERp1
26021 unset oft_real_type oft_target_size
26024 if test -z "$ofc_c_type" ; then
26025 ofc_have_type=0
26028 # Get the alignment of the type
26029 if test "$ofc_have_type" = "1"; then
26033 { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*1" >&5
26034 echo $ECHO_N "checking alignment of Fortran INTEGER*1... $ECHO_C" >&6; }
26035 if test "${ompi_cv_f77_alignment_INTEGERp1+set}" = set; then
26036 echo $ECHO_N "(cached) $ECHO_C" >&6
26037 else
26039 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
26040 # so the general rule is that if there is an _ in the function
26041 # name, then there are two trailing underscores. Otherwise,
26042 # there is only one trailing underscore. Any idea how to do
26043 # that with m4_translit?
26044 if echo align | grep _ >/dev/null 2>&1 ; then
26045 ompi_ac_align_fn=align__
26046 else
26047 ompi_ac_align_fn=align_
26049 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
26050 ompi_ac_align_fn=align_
26051 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
26052 ompi_ac_align_fn=align
26053 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
26054 ompi_ac_align_fn=align
26055 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
26056 ompi_ac_align_fn=ALIGN
26057 else
26058 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
26059 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
26060 { (exit 1); exit 1; }; }
26063 # Fortran module
26064 cat > conftestf.f <<EOF
26065 program falign
26066 external align
26067 INTEGER*1 w,x,y,z
26068 CHARACTER a,b,c
26069 common /foo/a,w,b,x,y,c,z
26070 call align(w,x,y,z)
26074 # C module
26075 if test -f conftest.h; then
26076 ompi_conftest_h="#include \"conftest.h\""
26077 else
26078 ompi_conftest_h=""
26080 cat > conftest.c <<EOF
26081 #include <stdio.h>
26082 #include <stdlib.h>
26083 $conftest
26085 #ifdef __cplusplus
26086 extern "C" {
26087 #endif
26088 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
26089 { unsigned long aw, ax, ay, az;
26090 FILE *f=fopen("conftestval", "w");
26091 if (!f) exit(1);
26092 aw = (unsigned long) w;
26093 ax = (unsigned long) x;
26094 ay = (unsigned long) y;
26095 az = (unsigned long) z;
26096 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
26097 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
26098 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
26099 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
26100 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
26101 else fprintf(f, "%d\n", 1);
26102 fclose(f);
26104 #ifdef __cplusplus
26106 #endif
26110 # 1 is the command
26111 # 2 is actions to do if success
26112 # 3 is actions to do if fail
26113 echo "configure:26113: $CC $CFLAGS -I. -c conftest.c" >&5
26114 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
26115 ompi_status=$?
26117 # 1 is the message
26118 # 2 is whether to put a prefix or not
26119 if test -n "1"; then
26120 echo "configure:26120: \$? = $ompi_status" >&5
26121 else
26122 echo \$? = $ompi_status >&5
26124 if test "$ompi_status" = "0"; then
26125 unset ompi_status
26127 # 1 is the command
26128 # 2 is actions to do if success
26129 # 3 is actions to do if fail
26130 echo "configure:26130: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
26131 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
26132 ompi_status=$?
26134 # 1 is the message
26135 # 2 is whether to put a prefix or not
26136 if test -n "1"; then
26137 echo "configure:26137: \$? = $ompi_status" >&5
26138 else
26139 echo \$? = $ompi_status >&5
26141 if test "$ompi_status" = "0"; then
26142 unset ompi_status
26143 happy="yes"
26144 else
26145 unset ompi_status
26146 happy="no"
26148 else
26149 unset ompi_status
26150 happy="no"
26153 if test "$happy" = "no" ; then
26154 { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*1" >&5
26155 echo "$as_me: error: Could not determine alignment of INTEGER*1" >&2;}
26156 { (exit 1); exit 1; }; }
26159 if test "$cross_compiling" = "yes"; then
26160 { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*1 when cross-compiling" >&5
26161 echo "$as_me: error: Can not determine alignment of INTEGER*1 when cross-compiling" >&2;}
26162 { (exit 1); exit 1; }; }
26163 else
26165 # 1 is the command
26166 # 2 is actions to do if success
26167 # 3 is actions to do if fail
26168 echo "configure:26168: ./conftest" >&5
26169 ./conftest 1>&5 2>&1
26170 ompi_status=$?
26172 # 1 is the message
26173 # 2 is whether to put a prefix or not
26174 if test -n "1"; then
26175 echo "configure:26175: \$? = $ompi_status" >&5
26176 else
26177 echo \$? = $ompi_status >&5
26179 if test "$ompi_status" = "0"; then
26180 unset ompi_status
26181 ompi_cv_f77_alignment_INTEGERp1=`cat conftestval`
26182 else
26183 unset ompi_status
26184 { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*1" >&5
26185 echo "$as_me: error: Could not determine alignment of INTEGER*1" >&2;}
26186 { (exit 1); exit 1; }; }
26191 unset happy ompi_conf
26192 rm -f conftest*
26194 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp1" >&5
26195 echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp1" >&6; }
26197 ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp1
26203 # We always need these defines -- even if we don't have a given type,
26204 # there are some places in the code where we have to have *something*.
26206 cat >>confdefs.h <<_ACEOF
26207 #define OMPI_HAVE_FORTRAN_INTEGER1 $ofc_have_type
26208 _ACEOF
26211 cat >>confdefs.h <<_ACEOF
26212 #define OMPI_SIZEOF_FORTRAN_INTEGER1 $ofc_type_size
26213 _ACEOF
26216 cat >>confdefs.h <<_ACEOF
26217 #define OMPI_ALIGNMENT_FORTRAN_INTEGER1 $ofc_type_alignment
26218 _ACEOF
26220 if test "char, int8_t, short, int, int64_t, long long, long" != ""; then
26222 cat >>confdefs.h <<_ACEOF
26223 #define ompi_fortran_integer1_t $ofc_c_type
26224 _ACEOF
26228 # Save some in shell variables for later use (e.g., need
26229 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
26230 OMPI_FORTRAN_INTEGER1_C_TYPE=$ofc_c_type
26231 OMPI_HAVE_FORTRAN_INTEGER1=$ofc_have_type
26232 OMPI_SIZEOF_FORTRAN_INTEGER1=$ofc_type_size
26233 OMPI_ALIGNMENT_FORTRAN_INTEGER1=$ofc_type_alignment
26235 # Clean up
26236 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
26237 unset ofc_expected_size
26240 ofc_expected_size=2
26241 ofc_have_type=0
26242 ofc_type_size=$ac_cv_sizeof_int
26243 ofc_type_alignment=$ac_cv_sizeof_int
26244 ofc_c_type=ompi_fortran_bogus_type_t
26246 # Only check if we actually want the F77 bindings / have a F77
26247 # compiler. This allows us to call this macro, even if there is
26248 # no F77 compiler. If we have no f77 compiler, then just set a
26249 # bunch of defaults.
26250 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
26254 # Determine FORTRAN datatype size.
26255 # First arg is type, 2nd arg is config var to define
26256 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*2" >&5
26257 echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*2... $ECHO_C" >&6; }
26258 if test "${ompi_cv_f77_have_INTEGERp2+set}" = set; then
26259 echo $ECHO_N "(cached) $ECHO_C" >&6
26260 else
26261 ac_ext=f
26262 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26263 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26264 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26266 cat >conftest.$ac_ext <<_ACEOF
26268 program main
26269 INTEGER*2 bogus_variable
26271 _ACEOF
26272 rm -f conftest.$ac_objext
26273 if { (ac_try="$ac_compile"
26274 case "(($ac_try" in
26275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26276 *) ac_try_echo=$ac_try;;
26277 esac
26278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26279 (eval "$ac_compile") 2>conftest.er1
26280 ac_status=$?
26281 grep -v '^ *+' conftest.er1 >conftest.err
26282 rm -f conftest.er1
26283 cat conftest.err >&5
26284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285 (exit $ac_status); } && {
26286 test -z "$ac_f77_werror_flag" ||
26287 test ! -s conftest.err
26288 } && test -s conftest.$ac_objext; then
26289 ompi_cv_f77_have_INTEGERp2="yes"
26290 else
26291 echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26294 ompi_cv_f77_have_INTEGERp2="no"
26297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26298 ac_ext=c
26299 ac_cpp='$CPP $CPPFLAGS'
26300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26305 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp2" >&5
26306 echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp2" >&6; }
26308 if test "$ompi_cv_f77_have_INTEGERp2" = "yes"; then
26309 ofc_have_type=1
26310 else
26311 ofc_have_type=0
26315 else
26316 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*2" >&5
26317 echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*2... $ECHO_C" >&6; }
26318 { echo "$as_me:$LINENO: result: skipped" >&5
26319 echo "${ECHO_T}skipped" >&6; }
26322 if test "$ofc_have_type" = "1"; then
26323 # What is the size of this type?
26325 # NOTE: Some Fortran compilers actually will return that a
26326 # type exists even if it doesn't support it -- the compiler
26327 # will automatically convert the unsupported type to a type
26328 # that it *does* support. For example, if you try to use
26329 # INTEGER*16 and the compiler doesn't support it, it may well
26330 # automatically convert it to INTEGER*8 for you (!). So we
26331 # have to check the actual size of the type once we determine
26332 # that the compiler doesn't error if we try to use it
26333 # (i.e,. the compiler *might* support that type). If the size
26334 # doesn't match the expected size, then the compiler doesn't
26335 # really support it.
26339 { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*2" >&5
26340 echo $ECHO_N "checking size of Fortran 77 INTEGER*2... $ECHO_C" >&6; }
26341 if test "${ompi_cv_f77_sizeof_INTEGERp2+set}" = set; then
26342 echo $ECHO_N "(cached) $ECHO_C" >&6
26343 else
26345 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
26346 # so the general rule is that if there is an _ in the function
26347 # name, then there are two trailing underscores. Otherwise,
26348 # there is only one trailing underscore. Any idea how to do
26349 # that with m4_translit?
26350 if echo size | grep _ >/dev/null 2>&1 ; then
26351 ompi_ac_size_fn=size__
26352 else
26353 ompi_ac_size_fn=size_
26355 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
26356 ompi_ac_size_fn=size_
26357 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
26358 ompi_ac_size_fn=size
26359 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
26360 ompi_ac_size_fn=size
26361 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
26362 ompi_ac_size_fn=SIZE
26363 else
26364 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
26365 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
26366 { (exit 1); exit 1; }; }
26369 # Fortran module
26370 cat > conftestf.f <<EOF
26371 program fsize
26372 external size
26373 INTEGER*2 x(2)
26374 call size(x(1),x(2))
26378 # C module
26379 if test -f conftest.h; then
26380 ompi_conftest_h="#include \"conftest.h\""
26381 else
26382 ompi_conftest_h=""
26384 cat > conftest.c <<EOF
26385 #include <stdio.h>
26386 #include <stdlib.h>
26387 $ompi_conftest_h
26389 #ifdef __cplusplus
26390 extern "C" {
26391 #endif
26392 void $ompi_ac_size_fn(char *a, char *b)
26394 int diff = (int) (b - a);
26395 FILE *f=fopen("conftestval", "w");
26396 if (!f) exit(1);
26397 fprintf(f, "%d\n", diff);
26398 fclose(f);
26400 #ifdef __cplusplus
26402 #endif
26406 # 1 is the command
26407 # 2 is actions to do if success
26408 # 3 is actions to do if fail
26409 echo "configure:26409: $CC $CFLAGS -I. -c conftest.c" >&5
26410 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
26411 ompi_status=$?
26413 # 1 is the message
26414 # 2 is whether to put a prefix or not
26415 if test -n "1"; then
26416 echo "configure:26416: \$? = $ompi_status" >&5
26417 else
26418 echo \$? = $ompi_status >&5
26420 if test "$ompi_status" = "0"; then
26421 unset ompi_status
26423 # 1 is the command
26424 # 2 is actions to do if success
26425 # 3 is actions to do if fail
26426 echo "configure:26426: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
26427 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
26428 ompi_status=$?
26430 # 1 is the message
26431 # 2 is whether to put a prefix or not
26432 if test -n "1"; then
26433 echo "configure:26433: \$? = $ompi_status" >&5
26434 else
26435 echo \$? = $ompi_status >&5
26437 if test "$ompi_status" = "0"; then
26438 unset ompi_status
26439 happy="yes"
26440 else
26441 unset ompi_status
26442 happy="no"
26444 else
26445 unset ompi_status
26446 happy="no"
26449 if test "$happy" = "no" ; then
26450 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5
26451 echo "$as_me: error: Could not determine size of INTEGER*2" >&2;}
26452 { (exit 1); exit 1; }; }
26455 if test "$cross_compiling" = "yes"; then
26456 { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*2 when cross-compiling" >&5
26457 echo "$as_me: error: Can not determine size of INTEGER*2 when cross-compiling" >&2;}
26458 { (exit 1); exit 1; }; }
26459 else
26461 # 1 is the command
26462 # 2 is actions to do if success
26463 # 3 is actions to do if fail
26464 echo "configure:26464: ./conftest" >&5
26465 ./conftest 1>&5 2>&1
26466 ompi_status=$?
26468 # 1 is the message
26469 # 2 is whether to put a prefix or not
26470 if test -n "1"; then
26471 echo "configure:26471: \$? = $ompi_status" >&5
26472 else
26473 echo \$? = $ompi_status >&5
26475 if test "$ompi_status" = "0"; then
26476 unset ompi_status
26477 if test -f conftestval; then
26478 ompi_cv_f77_sizeof_INTEGERp2=`cat conftestval`
26479 else
26481 # 1 is the message
26482 # 2 is whether to put a prefix or not
26483 if test -n "1"; then
26484 echo "configure:26484: conftestval not found." >&5
26485 else
26486 echo conftestval not found. >&5
26488 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5
26489 echo "$as_me: error: Could not determine size of INTEGER*2" >&2;}
26490 { (exit 1); exit 1; }; }
26493 else
26494 unset ompi_status
26495 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5
26496 echo "$as_me: error: Could not determine size of INTEGER*2" >&2;}
26497 { (exit 1); exit 1; }; }
26502 unset happy ompi_conftest_h
26503 rm -f conftest*
26505 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp2" >&5
26506 echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp2" >&6; }
26508 ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp2
26510 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
26511 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*2 does not have expected size!" >&5
26512 echo "$as_me: WARNING: *** Fortran 77 INTEGER*2 does not have expected size!" >&2;}
26513 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
26514 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
26515 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*2" >&5
26516 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*2" >&2;}
26517 ofc_have_type=0
26518 else
26519 # Look for a corresponding C type (will abort by itself if the
26520 # type isn't found and we need it)
26521 ofc_c_type=
26525 oft_abort_on_fail="no"
26526 oft_target_size="$ofc_type_size"
26528 { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*2" >&5
26529 echo $ECHO_N "checking for C type corresponding to INTEGER*2... $ECHO_C" >&6; }
26530 if test "${ompi_cv_find_type_INTEGERp2+set}" = set; then
26531 echo $ECHO_N "(cached) $ECHO_C" >&6
26532 else
26533 # Loop over all the types handed to us
26534 oft_real_type=
26535 if test "$oft_target_size" != ""; then
26536 if test -z "$oft_real_type"; then
26537 if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then
26538 oft_real_type="short"
26541 if test -z "$oft_real_type"; then
26542 if test "$ac_cv_sizeof_int16_t" = "$oft_target_size" ; then
26543 oft_real_type="int16_t"
26546 if test -z "$oft_real_type"; then
26547 if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
26548 oft_real_type="int32_t"
26551 if test -z "$oft_real_type"; then
26552 if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
26553 oft_real_type="int"
26556 if test -z "$oft_real_type"; then
26557 if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
26558 oft_real_type="int64_t"
26561 if test -z "$oft_real_type"; then
26562 if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
26563 oft_real_type="long long"
26566 if test -z "$oft_real_type"; then
26567 if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
26568 oft_real_type="long"
26574 if test -z "$oft_real_type"; then
26575 ompi_cv_find_type_INTEGERp2="not found"
26576 else
26577 ompi_cv_find_type_INTEGERp2="$oft_real_type"
26581 { echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp2" >&5
26582 echo "${ECHO_T}$ompi_cv_find_type_INTEGERp2" >&6; }
26584 if test "$ompi_cv_find_type_INTEGERp2" == "not found"; then
26585 { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
26586 echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
26587 if test "$oft_abort_on_fail" != "no"; then
26588 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
26589 echo "$as_me: error: Cannot continue" >&2;}
26590 { (exit 1); exit 1; }; }
26596 if test "$ompi_cv_find_type_INTEGERp2" = "not found" ; then
26597 ofc_c_type=
26598 else
26599 ofc_c_type=$ompi_cv_find_type_INTEGERp2
26602 unset oft_real_type oft_target_size
26605 if test -z "$ofc_c_type" ; then
26606 ofc_have_type=0
26609 # Get the alignment of the type
26610 if test "$ofc_have_type" = "1"; then
26614 { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*2" >&5
26615 echo $ECHO_N "checking alignment of Fortran INTEGER*2... $ECHO_C" >&6; }
26616 if test "${ompi_cv_f77_alignment_INTEGERp2+set}" = set; then
26617 echo $ECHO_N "(cached) $ECHO_C" >&6
26618 else
26620 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
26621 # so the general rule is that if there is an _ in the function
26622 # name, then there are two trailing underscores. Otherwise,
26623 # there is only one trailing underscore. Any idea how to do
26624 # that with m4_translit?
26625 if echo align | grep _ >/dev/null 2>&1 ; then
26626 ompi_ac_align_fn=align__
26627 else
26628 ompi_ac_align_fn=align_
26630 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
26631 ompi_ac_align_fn=align_
26632 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
26633 ompi_ac_align_fn=align
26634 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
26635 ompi_ac_align_fn=align
26636 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
26637 ompi_ac_align_fn=ALIGN
26638 else
26639 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
26640 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
26641 { (exit 1); exit 1; }; }
26644 # Fortran module
26645 cat > conftestf.f <<EOF
26646 program falign
26647 external align
26648 INTEGER*2 w,x,y,z
26649 CHARACTER a,b,c
26650 common /foo/a,w,b,x,y,c,z
26651 call align(w,x,y,z)
26655 # C module
26656 if test -f conftest.h; then
26657 ompi_conftest_h="#include \"conftest.h\""
26658 else
26659 ompi_conftest_h=""
26661 cat > conftest.c <<EOF
26662 #include <stdio.h>
26663 #include <stdlib.h>
26664 $conftest
26666 #ifdef __cplusplus
26667 extern "C" {
26668 #endif
26669 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
26670 { unsigned long aw, ax, ay, az;
26671 FILE *f=fopen("conftestval", "w");
26672 if (!f) exit(1);
26673 aw = (unsigned long) w;
26674 ax = (unsigned long) x;
26675 ay = (unsigned long) y;
26676 az = (unsigned long) z;
26677 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
26678 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
26679 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
26680 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
26681 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
26682 else fprintf(f, "%d\n", 1);
26683 fclose(f);
26685 #ifdef __cplusplus
26687 #endif
26691 # 1 is the command
26692 # 2 is actions to do if success
26693 # 3 is actions to do if fail
26694 echo "configure:26694: $CC $CFLAGS -I. -c conftest.c" >&5
26695 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
26696 ompi_status=$?
26698 # 1 is the message
26699 # 2 is whether to put a prefix or not
26700 if test -n "1"; then
26701 echo "configure:26701: \$? = $ompi_status" >&5
26702 else
26703 echo \$? = $ompi_status >&5
26705 if test "$ompi_status" = "0"; then
26706 unset ompi_status
26708 # 1 is the command
26709 # 2 is actions to do if success
26710 # 3 is actions to do if fail
26711 echo "configure:26711: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
26712 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
26713 ompi_status=$?
26715 # 1 is the message
26716 # 2 is whether to put a prefix or not
26717 if test -n "1"; then
26718 echo "configure:26718: \$? = $ompi_status" >&5
26719 else
26720 echo \$? = $ompi_status >&5
26722 if test "$ompi_status" = "0"; then
26723 unset ompi_status
26724 happy="yes"
26725 else
26726 unset ompi_status
26727 happy="no"
26729 else
26730 unset ompi_status
26731 happy="no"
26734 if test "$happy" = "no" ; then
26735 { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*2" >&5
26736 echo "$as_me: error: Could not determine alignment of INTEGER*2" >&2;}
26737 { (exit 1); exit 1; }; }
26740 if test "$cross_compiling" = "yes"; then
26741 { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*2 when cross-compiling" >&5
26742 echo "$as_me: error: Can not determine alignment of INTEGER*2 when cross-compiling" >&2;}
26743 { (exit 1); exit 1; }; }
26744 else
26746 # 1 is the command
26747 # 2 is actions to do if success
26748 # 3 is actions to do if fail
26749 echo "configure:26749: ./conftest" >&5
26750 ./conftest 1>&5 2>&1
26751 ompi_status=$?
26753 # 1 is the message
26754 # 2 is whether to put a prefix or not
26755 if test -n "1"; then
26756 echo "configure:26756: \$? = $ompi_status" >&5
26757 else
26758 echo \$? = $ompi_status >&5
26760 if test "$ompi_status" = "0"; then
26761 unset ompi_status
26762 ompi_cv_f77_alignment_INTEGERp2=`cat conftestval`
26763 else
26764 unset ompi_status
26765 { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*2" >&5
26766 echo "$as_me: error: Could not determine alignment of INTEGER*2" >&2;}
26767 { (exit 1); exit 1; }; }
26772 unset happy ompi_conf
26773 rm -f conftest*
26775 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp2" >&5
26776 echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp2" >&6; }
26778 ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp2
26784 # We always need these defines -- even if we don't have a given type,
26785 # there are some places in the code where we have to have *something*.
26787 cat >>confdefs.h <<_ACEOF
26788 #define OMPI_HAVE_FORTRAN_INTEGER2 $ofc_have_type
26789 _ACEOF
26792 cat >>confdefs.h <<_ACEOF
26793 #define OMPI_SIZEOF_FORTRAN_INTEGER2 $ofc_type_size
26794 _ACEOF
26797 cat >>confdefs.h <<_ACEOF
26798 #define OMPI_ALIGNMENT_FORTRAN_INTEGER2 $ofc_type_alignment
26799 _ACEOF
26801 if test "short, int16_t, int32_t, int, int64_t, long long, long" != ""; then
26803 cat >>confdefs.h <<_ACEOF
26804 #define ompi_fortran_integer2_t $ofc_c_type
26805 _ACEOF
26809 # Save some in shell variables for later use (e.g., need
26810 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
26811 OMPI_FORTRAN_INTEGER2_C_TYPE=$ofc_c_type
26812 OMPI_HAVE_FORTRAN_INTEGER2=$ofc_have_type
26813 OMPI_SIZEOF_FORTRAN_INTEGER2=$ofc_type_size
26814 OMPI_ALIGNMENT_FORTRAN_INTEGER2=$ofc_type_alignment
26816 # Clean up
26817 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
26818 unset ofc_expected_size
26821 ofc_expected_size=4
26822 ofc_have_type=0
26823 ofc_type_size=$ac_cv_sizeof_int
26824 ofc_type_alignment=$ac_cv_sizeof_int
26825 ofc_c_type=ompi_fortran_bogus_type_t
26827 # Only check if we actually want the F77 bindings / have a F77
26828 # compiler. This allows us to call this macro, even if there is
26829 # no F77 compiler. If we have no f77 compiler, then just set a
26830 # bunch of defaults.
26831 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
26835 # Determine FORTRAN datatype size.
26836 # First arg is type, 2nd arg is config var to define
26837 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*4" >&5
26838 echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*4... $ECHO_C" >&6; }
26839 if test "${ompi_cv_f77_have_INTEGERp4+set}" = set; then
26840 echo $ECHO_N "(cached) $ECHO_C" >&6
26841 else
26842 ac_ext=f
26843 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26844 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26845 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26847 cat >conftest.$ac_ext <<_ACEOF
26849 program main
26850 INTEGER*4 bogus_variable
26852 _ACEOF
26853 rm -f conftest.$ac_objext
26854 if { (ac_try="$ac_compile"
26855 case "(($ac_try" in
26856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26857 *) ac_try_echo=$ac_try;;
26858 esac
26859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26860 (eval "$ac_compile") 2>conftest.er1
26861 ac_status=$?
26862 grep -v '^ *+' conftest.er1 >conftest.err
26863 rm -f conftest.er1
26864 cat conftest.err >&5
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); } && {
26867 test -z "$ac_f77_werror_flag" ||
26868 test ! -s conftest.err
26869 } && test -s conftest.$ac_objext; then
26870 ompi_cv_f77_have_INTEGERp4="yes"
26871 else
26872 echo "$as_me: failed program was:" >&5
26873 sed 's/^/| /' conftest.$ac_ext >&5
26875 ompi_cv_f77_have_INTEGERp4="no"
26878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26879 ac_ext=c
26880 ac_cpp='$CPP $CPPFLAGS'
26881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26886 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp4" >&5
26887 echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp4" >&6; }
26889 if test "$ompi_cv_f77_have_INTEGERp4" = "yes"; then
26890 ofc_have_type=1
26891 else
26892 ofc_have_type=0
26896 else
26897 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*4" >&5
26898 echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*4... $ECHO_C" >&6; }
26899 { echo "$as_me:$LINENO: result: skipped" >&5
26900 echo "${ECHO_T}skipped" >&6; }
26903 if test "$ofc_have_type" = "1"; then
26904 # What is the size of this type?
26906 # NOTE: Some Fortran compilers actually will return that a
26907 # type exists even if it doesn't support it -- the compiler
26908 # will automatically convert the unsupported type to a type
26909 # that it *does* support. For example, if you try to use
26910 # INTEGER*16 and the compiler doesn't support it, it may well
26911 # automatically convert it to INTEGER*8 for you (!). So we
26912 # have to check the actual size of the type once we determine
26913 # that the compiler doesn't error if we try to use it
26914 # (i.e,. the compiler *might* support that type). If the size
26915 # doesn't match the expected size, then the compiler doesn't
26916 # really support it.
26920 { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*4" >&5
26921 echo $ECHO_N "checking size of Fortran 77 INTEGER*4... $ECHO_C" >&6; }
26922 if test "${ompi_cv_f77_sizeof_INTEGERp4+set}" = set; then
26923 echo $ECHO_N "(cached) $ECHO_C" >&6
26924 else
26926 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
26927 # so the general rule is that if there is an _ in the function
26928 # name, then there are two trailing underscores. Otherwise,
26929 # there is only one trailing underscore. Any idea how to do
26930 # that with m4_translit?
26931 if echo size | grep _ >/dev/null 2>&1 ; then
26932 ompi_ac_size_fn=size__
26933 else
26934 ompi_ac_size_fn=size_
26936 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
26937 ompi_ac_size_fn=size_
26938 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
26939 ompi_ac_size_fn=size
26940 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
26941 ompi_ac_size_fn=size
26942 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
26943 ompi_ac_size_fn=SIZE
26944 else
26945 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
26946 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
26947 { (exit 1); exit 1; }; }
26950 # Fortran module
26951 cat > conftestf.f <<EOF
26952 program fsize
26953 external size
26954 INTEGER*4 x(2)
26955 call size(x(1),x(2))
26959 # C module
26960 if test -f conftest.h; then
26961 ompi_conftest_h="#include \"conftest.h\""
26962 else
26963 ompi_conftest_h=""
26965 cat > conftest.c <<EOF
26966 #include <stdio.h>
26967 #include <stdlib.h>
26968 $ompi_conftest_h
26970 #ifdef __cplusplus
26971 extern "C" {
26972 #endif
26973 void $ompi_ac_size_fn(char *a, char *b)
26975 int diff = (int) (b - a);
26976 FILE *f=fopen("conftestval", "w");
26977 if (!f) exit(1);
26978 fprintf(f, "%d\n", diff);
26979 fclose(f);
26981 #ifdef __cplusplus
26983 #endif
26987 # 1 is the command
26988 # 2 is actions to do if success
26989 # 3 is actions to do if fail
26990 echo "configure:26990: $CC $CFLAGS -I. -c conftest.c" >&5
26991 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
26992 ompi_status=$?
26994 # 1 is the message
26995 # 2 is whether to put a prefix or not
26996 if test -n "1"; then
26997 echo "configure:26997: \$? = $ompi_status" >&5
26998 else
26999 echo \$? = $ompi_status >&5
27001 if test "$ompi_status" = "0"; then
27002 unset ompi_status
27004 # 1 is the command
27005 # 2 is actions to do if success
27006 # 3 is actions to do if fail
27007 echo "configure:27007: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
27008 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
27009 ompi_status=$?
27011 # 1 is the message
27012 # 2 is whether to put a prefix or not
27013 if test -n "1"; then
27014 echo "configure:27014: \$? = $ompi_status" >&5
27015 else
27016 echo \$? = $ompi_status >&5
27018 if test "$ompi_status" = "0"; then
27019 unset ompi_status
27020 happy="yes"
27021 else
27022 unset ompi_status
27023 happy="no"
27025 else
27026 unset ompi_status
27027 happy="no"
27030 if test "$happy" = "no" ; then
27031 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5
27032 echo "$as_me: error: Could not determine size of INTEGER*4" >&2;}
27033 { (exit 1); exit 1; }; }
27036 if test "$cross_compiling" = "yes"; then
27037 { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*4 when cross-compiling" >&5
27038 echo "$as_me: error: Can not determine size of INTEGER*4 when cross-compiling" >&2;}
27039 { (exit 1); exit 1; }; }
27040 else
27042 # 1 is the command
27043 # 2 is actions to do if success
27044 # 3 is actions to do if fail
27045 echo "configure:27045: ./conftest" >&5
27046 ./conftest 1>&5 2>&1
27047 ompi_status=$?
27049 # 1 is the message
27050 # 2 is whether to put a prefix or not
27051 if test -n "1"; then
27052 echo "configure:27052: \$? = $ompi_status" >&5
27053 else
27054 echo \$? = $ompi_status >&5
27056 if test "$ompi_status" = "0"; then
27057 unset ompi_status
27058 if test -f conftestval; then
27059 ompi_cv_f77_sizeof_INTEGERp4=`cat conftestval`
27060 else
27062 # 1 is the message
27063 # 2 is whether to put a prefix or not
27064 if test -n "1"; then
27065 echo "configure:27065: conftestval not found." >&5
27066 else
27067 echo conftestval not found. >&5
27069 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5
27070 echo "$as_me: error: Could not determine size of INTEGER*4" >&2;}
27071 { (exit 1); exit 1; }; }
27074 else
27075 unset ompi_status
27076 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5
27077 echo "$as_me: error: Could not determine size of INTEGER*4" >&2;}
27078 { (exit 1); exit 1; }; }
27083 unset happy ompi_conftest_h
27084 rm -f conftest*
27086 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp4" >&5
27087 echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp4" >&6; }
27089 ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp4
27091 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
27092 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*4 does not have expected size!" >&5
27093 echo "$as_me: WARNING: *** Fortran 77 INTEGER*4 does not have expected size!" >&2;}
27094 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
27095 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
27096 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*4" >&5
27097 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*4" >&2;}
27098 ofc_have_type=0
27099 else
27100 # Look for a corresponding C type (will abort by itself if the
27101 # type isn't found and we need it)
27102 ofc_c_type=
27106 oft_abort_on_fail="no"
27107 oft_target_size="$ofc_type_size"
27109 { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*4" >&5
27110 echo $ECHO_N "checking for C type corresponding to INTEGER*4... $ECHO_C" >&6; }
27111 if test "${ompi_cv_find_type_INTEGERp4+set}" = set; then
27112 echo $ECHO_N "(cached) $ECHO_C" >&6
27113 else
27114 # Loop over all the types handed to us
27115 oft_real_type=
27116 if test "$oft_target_size" != ""; then
27117 if test -z "$oft_real_type"; then
27118 if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
27119 oft_real_type="int32_t"
27122 if test -z "$oft_real_type"; then
27123 if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
27124 oft_real_type="int"
27127 if test -z "$oft_real_type"; then
27128 if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
27129 oft_real_type="int64_t"
27132 if test -z "$oft_real_type"; then
27133 if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
27134 oft_real_type="long long"
27137 if test -z "$oft_real_type"; then
27138 if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
27139 oft_real_type="long"
27145 if test -z "$oft_real_type"; then
27146 ompi_cv_find_type_INTEGERp4="not found"
27147 else
27148 ompi_cv_find_type_INTEGERp4="$oft_real_type"
27152 { echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp4" >&5
27153 echo "${ECHO_T}$ompi_cv_find_type_INTEGERp4" >&6; }
27155 if test "$ompi_cv_find_type_INTEGERp4" == "not found"; then
27156 { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
27157 echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
27158 if test "$oft_abort_on_fail" != "no"; then
27159 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
27160 echo "$as_me: error: Cannot continue" >&2;}
27161 { (exit 1); exit 1; }; }
27167 if test "$ompi_cv_find_type_INTEGERp4" = "not found" ; then
27168 ofc_c_type=
27169 else
27170 ofc_c_type=$ompi_cv_find_type_INTEGERp4
27173 unset oft_real_type oft_target_size
27176 if test -z "$ofc_c_type" ; then
27177 ofc_have_type=0
27180 # Get the alignment of the type
27181 if test "$ofc_have_type" = "1"; then
27185 { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*4" >&5
27186 echo $ECHO_N "checking alignment of Fortran INTEGER*4... $ECHO_C" >&6; }
27187 if test "${ompi_cv_f77_alignment_INTEGERp4+set}" = set; then
27188 echo $ECHO_N "(cached) $ECHO_C" >&6
27189 else
27191 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
27192 # so the general rule is that if there is an _ in the function
27193 # name, then there are two trailing underscores. Otherwise,
27194 # there is only one trailing underscore. Any idea how to do
27195 # that with m4_translit?
27196 if echo align | grep _ >/dev/null 2>&1 ; then
27197 ompi_ac_align_fn=align__
27198 else
27199 ompi_ac_align_fn=align_
27201 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
27202 ompi_ac_align_fn=align_
27203 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
27204 ompi_ac_align_fn=align
27205 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
27206 ompi_ac_align_fn=align
27207 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
27208 ompi_ac_align_fn=ALIGN
27209 else
27210 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
27211 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
27212 { (exit 1); exit 1; }; }
27215 # Fortran module
27216 cat > conftestf.f <<EOF
27217 program falign
27218 external align
27219 INTEGER*4 w,x,y,z
27220 CHARACTER a,b,c
27221 common /foo/a,w,b,x,y,c,z
27222 call align(w,x,y,z)
27226 # C module
27227 if test -f conftest.h; then
27228 ompi_conftest_h="#include \"conftest.h\""
27229 else
27230 ompi_conftest_h=""
27232 cat > conftest.c <<EOF
27233 #include <stdio.h>
27234 #include <stdlib.h>
27235 $conftest
27237 #ifdef __cplusplus
27238 extern "C" {
27239 #endif
27240 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
27241 { unsigned long aw, ax, ay, az;
27242 FILE *f=fopen("conftestval", "w");
27243 if (!f) exit(1);
27244 aw = (unsigned long) w;
27245 ax = (unsigned long) x;
27246 ay = (unsigned long) y;
27247 az = (unsigned long) z;
27248 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
27249 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
27250 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
27251 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
27252 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
27253 else fprintf(f, "%d\n", 1);
27254 fclose(f);
27256 #ifdef __cplusplus
27258 #endif
27262 # 1 is the command
27263 # 2 is actions to do if success
27264 # 3 is actions to do if fail
27265 echo "configure:27265: $CC $CFLAGS -I. -c conftest.c" >&5
27266 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
27267 ompi_status=$?
27269 # 1 is the message
27270 # 2 is whether to put a prefix or not
27271 if test -n "1"; then
27272 echo "configure:27272: \$? = $ompi_status" >&5
27273 else
27274 echo \$? = $ompi_status >&5
27276 if test "$ompi_status" = "0"; then
27277 unset ompi_status
27279 # 1 is the command
27280 # 2 is actions to do if success
27281 # 3 is actions to do if fail
27282 echo "configure:27282: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
27283 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
27284 ompi_status=$?
27286 # 1 is the message
27287 # 2 is whether to put a prefix or not
27288 if test -n "1"; then
27289 echo "configure:27289: \$? = $ompi_status" >&5
27290 else
27291 echo \$? = $ompi_status >&5
27293 if test "$ompi_status" = "0"; then
27294 unset ompi_status
27295 happy="yes"
27296 else
27297 unset ompi_status
27298 happy="no"
27300 else
27301 unset ompi_status
27302 happy="no"
27305 if test "$happy" = "no" ; then
27306 { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*4" >&5
27307 echo "$as_me: error: Could not determine alignment of INTEGER*4" >&2;}
27308 { (exit 1); exit 1; }; }
27311 if test "$cross_compiling" = "yes"; then
27312 { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*4 when cross-compiling" >&5
27313 echo "$as_me: error: Can not determine alignment of INTEGER*4 when cross-compiling" >&2;}
27314 { (exit 1); exit 1; }; }
27315 else
27317 # 1 is the command
27318 # 2 is actions to do if success
27319 # 3 is actions to do if fail
27320 echo "configure:27320: ./conftest" >&5
27321 ./conftest 1>&5 2>&1
27322 ompi_status=$?
27324 # 1 is the message
27325 # 2 is whether to put a prefix or not
27326 if test -n "1"; then
27327 echo "configure:27327: \$? = $ompi_status" >&5
27328 else
27329 echo \$? = $ompi_status >&5
27331 if test "$ompi_status" = "0"; then
27332 unset ompi_status
27333 ompi_cv_f77_alignment_INTEGERp4=`cat conftestval`
27334 else
27335 unset ompi_status
27336 { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*4" >&5
27337 echo "$as_me: error: Could not determine alignment of INTEGER*4" >&2;}
27338 { (exit 1); exit 1; }; }
27343 unset happy ompi_conf
27344 rm -f conftest*
27346 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp4" >&5
27347 echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp4" >&6; }
27349 ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp4
27355 # We always need these defines -- even if we don't have a given type,
27356 # there are some places in the code where we have to have *something*.
27358 cat >>confdefs.h <<_ACEOF
27359 #define OMPI_HAVE_FORTRAN_INTEGER4 $ofc_have_type
27360 _ACEOF
27363 cat >>confdefs.h <<_ACEOF
27364 #define OMPI_SIZEOF_FORTRAN_INTEGER4 $ofc_type_size
27365 _ACEOF
27368 cat >>confdefs.h <<_ACEOF
27369 #define OMPI_ALIGNMENT_FORTRAN_INTEGER4 $ofc_type_alignment
27370 _ACEOF
27372 if test "int32_t, int, int64_t, long long, long" != ""; then
27374 cat >>confdefs.h <<_ACEOF
27375 #define ompi_fortran_integer4_t $ofc_c_type
27376 _ACEOF
27380 # Save some in shell variables for later use (e.g., need
27381 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
27382 OMPI_FORTRAN_INTEGER4_C_TYPE=$ofc_c_type
27383 OMPI_HAVE_FORTRAN_INTEGER4=$ofc_have_type
27384 OMPI_SIZEOF_FORTRAN_INTEGER4=$ofc_type_size
27385 OMPI_ALIGNMENT_FORTRAN_INTEGER4=$ofc_type_alignment
27387 # Clean up
27388 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
27389 unset ofc_expected_size
27392 ofc_expected_size=8
27393 ofc_have_type=0
27394 ofc_type_size=$ac_cv_sizeof_int
27395 ofc_type_alignment=$ac_cv_sizeof_int
27396 ofc_c_type=ompi_fortran_bogus_type_t
27398 # Only check if we actually want the F77 bindings / have a F77
27399 # compiler. This allows us to call this macro, even if there is
27400 # no F77 compiler. If we have no f77 compiler, then just set a
27401 # bunch of defaults.
27402 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
27406 # Determine FORTRAN datatype size.
27407 # First arg is type, 2nd arg is config var to define
27408 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*8" >&5
27409 echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*8... $ECHO_C" >&6; }
27410 if test "${ompi_cv_f77_have_INTEGERp8+set}" = set; then
27411 echo $ECHO_N "(cached) $ECHO_C" >&6
27412 else
27413 ac_ext=f
27414 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27415 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27416 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27418 cat >conftest.$ac_ext <<_ACEOF
27420 program main
27421 INTEGER*8 bogus_variable
27423 _ACEOF
27424 rm -f conftest.$ac_objext
27425 if { (ac_try="$ac_compile"
27426 case "(($ac_try" in
27427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27428 *) ac_try_echo=$ac_try;;
27429 esac
27430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27431 (eval "$ac_compile") 2>conftest.er1
27432 ac_status=$?
27433 grep -v '^ *+' conftest.er1 >conftest.err
27434 rm -f conftest.er1
27435 cat conftest.err >&5
27436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437 (exit $ac_status); } && {
27438 test -z "$ac_f77_werror_flag" ||
27439 test ! -s conftest.err
27440 } && test -s conftest.$ac_objext; then
27441 ompi_cv_f77_have_INTEGERp8="yes"
27442 else
27443 echo "$as_me: failed program was:" >&5
27444 sed 's/^/| /' conftest.$ac_ext >&5
27446 ompi_cv_f77_have_INTEGERp8="no"
27449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27450 ac_ext=c
27451 ac_cpp='$CPP $CPPFLAGS'
27452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27457 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp8" >&5
27458 echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp8" >&6; }
27460 if test "$ompi_cv_f77_have_INTEGERp8" = "yes"; then
27461 ofc_have_type=1
27462 else
27463 ofc_have_type=0
27467 else
27468 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*8" >&5
27469 echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*8... $ECHO_C" >&6; }
27470 { echo "$as_me:$LINENO: result: skipped" >&5
27471 echo "${ECHO_T}skipped" >&6; }
27474 if test "$ofc_have_type" = "1"; then
27475 # What is the size of this type?
27477 # NOTE: Some Fortran compilers actually will return that a
27478 # type exists even if it doesn't support it -- the compiler
27479 # will automatically convert the unsupported type to a type
27480 # that it *does* support. For example, if you try to use
27481 # INTEGER*16 and the compiler doesn't support it, it may well
27482 # automatically convert it to INTEGER*8 for you (!). So we
27483 # have to check the actual size of the type once we determine
27484 # that the compiler doesn't error if we try to use it
27485 # (i.e,. the compiler *might* support that type). If the size
27486 # doesn't match the expected size, then the compiler doesn't
27487 # really support it.
27491 { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*8" >&5
27492 echo $ECHO_N "checking size of Fortran 77 INTEGER*8... $ECHO_C" >&6; }
27493 if test "${ompi_cv_f77_sizeof_INTEGERp8+set}" = set; then
27494 echo $ECHO_N "(cached) $ECHO_C" >&6
27495 else
27497 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
27498 # so the general rule is that if there is an _ in the function
27499 # name, then there are two trailing underscores. Otherwise,
27500 # there is only one trailing underscore. Any idea how to do
27501 # that with m4_translit?
27502 if echo size | grep _ >/dev/null 2>&1 ; then
27503 ompi_ac_size_fn=size__
27504 else
27505 ompi_ac_size_fn=size_
27507 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
27508 ompi_ac_size_fn=size_
27509 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
27510 ompi_ac_size_fn=size
27511 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
27512 ompi_ac_size_fn=size
27513 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
27514 ompi_ac_size_fn=SIZE
27515 else
27516 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
27517 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
27518 { (exit 1); exit 1; }; }
27521 # Fortran module
27522 cat > conftestf.f <<EOF
27523 program fsize
27524 external size
27525 INTEGER*8 x(2)
27526 call size(x(1),x(2))
27530 # C module
27531 if test -f conftest.h; then
27532 ompi_conftest_h="#include \"conftest.h\""
27533 else
27534 ompi_conftest_h=""
27536 cat > conftest.c <<EOF
27537 #include <stdio.h>
27538 #include <stdlib.h>
27539 $ompi_conftest_h
27541 #ifdef __cplusplus
27542 extern "C" {
27543 #endif
27544 void $ompi_ac_size_fn(char *a, char *b)
27546 int diff = (int) (b - a);
27547 FILE *f=fopen("conftestval", "w");
27548 if (!f) exit(1);
27549 fprintf(f, "%d\n", diff);
27550 fclose(f);
27552 #ifdef __cplusplus
27554 #endif
27558 # 1 is the command
27559 # 2 is actions to do if success
27560 # 3 is actions to do if fail
27561 echo "configure:27561: $CC $CFLAGS -I. -c conftest.c" >&5
27562 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
27563 ompi_status=$?
27565 # 1 is the message
27566 # 2 is whether to put a prefix or not
27567 if test -n "1"; then
27568 echo "configure:27568: \$? = $ompi_status" >&5
27569 else
27570 echo \$? = $ompi_status >&5
27572 if test "$ompi_status" = "0"; then
27573 unset ompi_status
27575 # 1 is the command
27576 # 2 is actions to do if success
27577 # 3 is actions to do if fail
27578 echo "configure:27578: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
27579 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
27580 ompi_status=$?
27582 # 1 is the message
27583 # 2 is whether to put a prefix or not
27584 if test -n "1"; then
27585 echo "configure:27585: \$? = $ompi_status" >&5
27586 else
27587 echo \$? = $ompi_status >&5
27589 if test "$ompi_status" = "0"; then
27590 unset ompi_status
27591 happy="yes"
27592 else
27593 unset ompi_status
27594 happy="no"
27596 else
27597 unset ompi_status
27598 happy="no"
27601 if test "$happy" = "no" ; then
27602 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5
27603 echo "$as_me: error: Could not determine size of INTEGER*8" >&2;}
27604 { (exit 1); exit 1; }; }
27607 if test "$cross_compiling" = "yes"; then
27608 { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*8 when cross-compiling" >&5
27609 echo "$as_me: error: Can not determine size of INTEGER*8 when cross-compiling" >&2;}
27610 { (exit 1); exit 1; }; }
27611 else
27613 # 1 is the command
27614 # 2 is actions to do if success
27615 # 3 is actions to do if fail
27616 echo "configure:27616: ./conftest" >&5
27617 ./conftest 1>&5 2>&1
27618 ompi_status=$?
27620 # 1 is the message
27621 # 2 is whether to put a prefix or not
27622 if test -n "1"; then
27623 echo "configure:27623: \$? = $ompi_status" >&5
27624 else
27625 echo \$? = $ompi_status >&5
27627 if test "$ompi_status" = "0"; then
27628 unset ompi_status
27629 if test -f conftestval; then
27630 ompi_cv_f77_sizeof_INTEGERp8=`cat conftestval`
27631 else
27633 # 1 is the message
27634 # 2 is whether to put a prefix or not
27635 if test -n "1"; then
27636 echo "configure:27636: conftestval not found." >&5
27637 else
27638 echo conftestval not found. >&5
27640 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5
27641 echo "$as_me: error: Could not determine size of INTEGER*8" >&2;}
27642 { (exit 1); exit 1; }; }
27645 else
27646 unset ompi_status
27647 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5
27648 echo "$as_me: error: Could not determine size of INTEGER*8" >&2;}
27649 { (exit 1); exit 1; }; }
27654 unset happy ompi_conftest_h
27655 rm -f conftest*
27657 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp8" >&5
27658 echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp8" >&6; }
27660 ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp8
27662 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
27663 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*8 does not have expected size!" >&5
27664 echo "$as_me: WARNING: *** Fortran 77 INTEGER*8 does not have expected size!" >&2;}
27665 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
27666 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
27667 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*8" >&5
27668 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*8" >&2;}
27669 ofc_have_type=0
27670 else
27671 # Look for a corresponding C type (will abort by itself if the
27672 # type isn't found and we need it)
27673 ofc_c_type=
27677 oft_abort_on_fail="no"
27678 oft_target_size="$ofc_type_size"
27680 { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*8" >&5
27681 echo $ECHO_N "checking for C type corresponding to INTEGER*8... $ECHO_C" >&6; }
27682 if test "${ompi_cv_find_type_INTEGERp8+set}" = set; then
27683 echo $ECHO_N "(cached) $ECHO_C" >&6
27684 else
27685 # Loop over all the types handed to us
27686 oft_real_type=
27687 if test "$oft_target_size" != ""; then
27688 if test -z "$oft_real_type"; then
27689 if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
27690 oft_real_type="int"
27693 if test -z "$oft_real_type"; then
27694 if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
27695 oft_real_type="int64_t"
27698 if test -z "$oft_real_type"; then
27699 if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
27700 oft_real_type="long long"
27703 if test -z "$oft_real_type"; then
27704 if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
27705 oft_real_type="long"
27711 if test -z "$oft_real_type"; then
27712 ompi_cv_find_type_INTEGERp8="not found"
27713 else
27714 ompi_cv_find_type_INTEGERp8="$oft_real_type"
27718 { echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp8" >&5
27719 echo "${ECHO_T}$ompi_cv_find_type_INTEGERp8" >&6; }
27721 if test "$ompi_cv_find_type_INTEGERp8" == "not found"; then
27722 { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
27723 echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
27724 if test "$oft_abort_on_fail" != "no"; then
27725 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
27726 echo "$as_me: error: Cannot continue" >&2;}
27727 { (exit 1); exit 1; }; }
27733 if test "$ompi_cv_find_type_INTEGERp8" = "not found" ; then
27734 ofc_c_type=
27735 else
27736 ofc_c_type=$ompi_cv_find_type_INTEGERp8
27739 unset oft_real_type oft_target_size
27742 if test -z "$ofc_c_type" ; then
27743 ofc_have_type=0
27746 # Get the alignment of the type
27747 if test "$ofc_have_type" = "1"; then
27751 { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*8" >&5
27752 echo $ECHO_N "checking alignment of Fortran INTEGER*8... $ECHO_C" >&6; }
27753 if test "${ompi_cv_f77_alignment_INTEGERp8+set}" = set; then
27754 echo $ECHO_N "(cached) $ECHO_C" >&6
27755 else
27757 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
27758 # so the general rule is that if there is an _ in the function
27759 # name, then there are two trailing underscores. Otherwise,
27760 # there is only one trailing underscore. Any idea how to do
27761 # that with m4_translit?
27762 if echo align | grep _ >/dev/null 2>&1 ; then
27763 ompi_ac_align_fn=align__
27764 else
27765 ompi_ac_align_fn=align_
27767 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
27768 ompi_ac_align_fn=align_
27769 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
27770 ompi_ac_align_fn=align
27771 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
27772 ompi_ac_align_fn=align
27773 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
27774 ompi_ac_align_fn=ALIGN
27775 else
27776 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
27777 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
27778 { (exit 1); exit 1; }; }
27781 # Fortran module
27782 cat > conftestf.f <<EOF
27783 program falign
27784 external align
27785 INTEGER*8 w,x,y,z
27786 CHARACTER a,b,c
27787 common /foo/a,w,b,x,y,c,z
27788 call align(w,x,y,z)
27792 # C module
27793 if test -f conftest.h; then
27794 ompi_conftest_h="#include \"conftest.h\""
27795 else
27796 ompi_conftest_h=""
27798 cat > conftest.c <<EOF
27799 #include <stdio.h>
27800 #include <stdlib.h>
27801 $conftest
27803 #ifdef __cplusplus
27804 extern "C" {
27805 #endif
27806 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
27807 { unsigned long aw, ax, ay, az;
27808 FILE *f=fopen("conftestval", "w");
27809 if (!f) exit(1);
27810 aw = (unsigned long) w;
27811 ax = (unsigned long) x;
27812 ay = (unsigned long) y;
27813 az = (unsigned long) z;
27814 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
27815 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
27816 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
27817 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
27818 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
27819 else fprintf(f, "%d\n", 1);
27820 fclose(f);
27822 #ifdef __cplusplus
27824 #endif
27828 # 1 is the command
27829 # 2 is actions to do if success
27830 # 3 is actions to do if fail
27831 echo "configure:27831: $CC $CFLAGS -I. -c conftest.c" >&5
27832 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
27833 ompi_status=$?
27835 # 1 is the message
27836 # 2 is whether to put a prefix or not
27837 if test -n "1"; then
27838 echo "configure:27838: \$? = $ompi_status" >&5
27839 else
27840 echo \$? = $ompi_status >&5
27842 if test "$ompi_status" = "0"; then
27843 unset ompi_status
27845 # 1 is the command
27846 # 2 is actions to do if success
27847 # 3 is actions to do if fail
27848 echo "configure:27848: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
27849 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
27850 ompi_status=$?
27852 # 1 is the message
27853 # 2 is whether to put a prefix or not
27854 if test -n "1"; then
27855 echo "configure:27855: \$? = $ompi_status" >&5
27856 else
27857 echo \$? = $ompi_status >&5
27859 if test "$ompi_status" = "0"; then
27860 unset ompi_status
27861 happy="yes"
27862 else
27863 unset ompi_status
27864 happy="no"
27866 else
27867 unset ompi_status
27868 happy="no"
27871 if test "$happy" = "no" ; then
27872 { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*8" >&5
27873 echo "$as_me: error: Could not determine alignment of INTEGER*8" >&2;}
27874 { (exit 1); exit 1; }; }
27877 if test "$cross_compiling" = "yes"; then
27878 { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*8 when cross-compiling" >&5
27879 echo "$as_me: error: Can not determine alignment of INTEGER*8 when cross-compiling" >&2;}
27880 { (exit 1); exit 1; }; }
27881 else
27883 # 1 is the command
27884 # 2 is actions to do if success
27885 # 3 is actions to do if fail
27886 echo "configure:27886: ./conftest" >&5
27887 ./conftest 1>&5 2>&1
27888 ompi_status=$?
27890 # 1 is the message
27891 # 2 is whether to put a prefix or not
27892 if test -n "1"; then
27893 echo "configure:27893: \$? = $ompi_status" >&5
27894 else
27895 echo \$? = $ompi_status >&5
27897 if test "$ompi_status" = "0"; then
27898 unset ompi_status
27899 ompi_cv_f77_alignment_INTEGERp8=`cat conftestval`
27900 else
27901 unset ompi_status
27902 { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*8" >&5
27903 echo "$as_me: error: Could not determine alignment of INTEGER*8" >&2;}
27904 { (exit 1); exit 1; }; }
27909 unset happy ompi_conf
27910 rm -f conftest*
27912 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp8" >&5
27913 echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp8" >&6; }
27915 ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp8
27921 # We always need these defines -- even if we don't have a given type,
27922 # there are some places in the code where we have to have *something*.
27924 cat >>confdefs.h <<_ACEOF
27925 #define OMPI_HAVE_FORTRAN_INTEGER8 $ofc_have_type
27926 _ACEOF
27929 cat >>confdefs.h <<_ACEOF
27930 #define OMPI_SIZEOF_FORTRAN_INTEGER8 $ofc_type_size
27931 _ACEOF
27934 cat >>confdefs.h <<_ACEOF
27935 #define OMPI_ALIGNMENT_FORTRAN_INTEGER8 $ofc_type_alignment
27936 _ACEOF
27938 if test "int, int64_t, long long, long" != ""; then
27940 cat >>confdefs.h <<_ACEOF
27941 #define ompi_fortran_integer8_t $ofc_c_type
27942 _ACEOF
27946 # Save some in shell variables for later use (e.g., need
27947 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
27948 OMPI_FORTRAN_INTEGER8_C_TYPE=$ofc_c_type
27949 OMPI_HAVE_FORTRAN_INTEGER8=$ofc_have_type
27950 OMPI_SIZEOF_FORTRAN_INTEGER8=$ofc_type_size
27951 OMPI_ALIGNMENT_FORTRAN_INTEGER8=$ofc_type_alignment
27953 # Clean up
27954 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
27955 unset ofc_expected_size
27958 ofc_expected_size=16
27959 ofc_have_type=0
27960 ofc_type_size=$ac_cv_sizeof_int
27961 ofc_type_alignment=$ac_cv_sizeof_int
27962 ofc_c_type=ompi_fortran_bogus_type_t
27964 # Only check if we actually want the F77 bindings / have a F77
27965 # compiler. This allows us to call this macro, even if there is
27966 # no F77 compiler. If we have no f77 compiler, then just set a
27967 # bunch of defaults.
27968 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
27972 # Determine FORTRAN datatype size.
27973 # First arg is type, 2nd arg is config var to define
27974 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*16" >&5
27975 echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*16... $ECHO_C" >&6; }
27976 if test "${ompi_cv_f77_have_INTEGERp16+set}" = set; then
27977 echo $ECHO_N "(cached) $ECHO_C" >&6
27978 else
27979 ac_ext=f
27980 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27981 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27982 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27984 cat >conftest.$ac_ext <<_ACEOF
27986 program main
27987 INTEGER*16 bogus_variable
27989 _ACEOF
27990 rm -f conftest.$ac_objext
27991 if { (ac_try="$ac_compile"
27992 case "(($ac_try" in
27993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27994 *) ac_try_echo=$ac_try;;
27995 esac
27996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27997 (eval "$ac_compile") 2>conftest.er1
27998 ac_status=$?
27999 grep -v '^ *+' conftest.er1 >conftest.err
28000 rm -f conftest.er1
28001 cat conftest.err >&5
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); } && {
28004 test -z "$ac_f77_werror_flag" ||
28005 test ! -s conftest.err
28006 } && test -s conftest.$ac_objext; then
28007 ompi_cv_f77_have_INTEGERp16="yes"
28008 else
28009 echo "$as_me: failed program was:" >&5
28010 sed 's/^/| /' conftest.$ac_ext >&5
28012 ompi_cv_f77_have_INTEGERp16="no"
28015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28016 ac_ext=c
28017 ac_cpp='$CPP $CPPFLAGS'
28018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28023 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp16" >&5
28024 echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp16" >&6; }
28026 if test "$ompi_cv_f77_have_INTEGERp16" = "yes"; then
28027 ofc_have_type=1
28028 else
28029 ofc_have_type=0
28033 else
28034 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*16" >&5
28035 echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*16... $ECHO_C" >&6; }
28036 { echo "$as_me:$LINENO: result: skipped" >&5
28037 echo "${ECHO_T}skipped" >&6; }
28040 if test "$ofc_have_type" = "1"; then
28041 # What is the size of this type?
28043 # NOTE: Some Fortran compilers actually will return that a
28044 # type exists even if it doesn't support it -- the compiler
28045 # will automatically convert the unsupported type to a type
28046 # that it *does* support. For example, if you try to use
28047 # INTEGER*16 and the compiler doesn't support it, it may well
28048 # automatically convert it to INTEGER*8 for you (!). So we
28049 # have to check the actual size of the type once we determine
28050 # that the compiler doesn't error if we try to use it
28051 # (i.e,. the compiler *might* support that type). If the size
28052 # doesn't match the expected size, then the compiler doesn't
28053 # really support it.
28057 { echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*16" >&5
28058 echo $ECHO_N "checking size of Fortran 77 INTEGER*16... $ECHO_C" >&6; }
28059 if test "${ompi_cv_f77_sizeof_INTEGERp16+set}" = set; then
28060 echo $ECHO_N "(cached) $ECHO_C" >&6
28061 else
28063 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
28064 # so the general rule is that if there is an _ in the function
28065 # name, then there are two trailing underscores. Otherwise,
28066 # there is only one trailing underscore. Any idea how to do
28067 # that with m4_translit?
28068 if echo size | grep _ >/dev/null 2>&1 ; then
28069 ompi_ac_size_fn=size__
28070 else
28071 ompi_ac_size_fn=size_
28073 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
28074 ompi_ac_size_fn=size_
28075 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
28076 ompi_ac_size_fn=size
28077 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
28078 ompi_ac_size_fn=size
28079 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
28080 ompi_ac_size_fn=SIZE
28081 else
28082 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
28083 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
28084 { (exit 1); exit 1; }; }
28087 # Fortran module
28088 cat > conftestf.f <<EOF
28089 program fsize
28090 external size
28091 INTEGER*16 x(2)
28092 call size(x(1),x(2))
28096 # C module
28097 if test -f conftest.h; then
28098 ompi_conftest_h="#include \"conftest.h\""
28099 else
28100 ompi_conftest_h=""
28102 cat > conftest.c <<EOF
28103 #include <stdio.h>
28104 #include <stdlib.h>
28105 $ompi_conftest_h
28107 #ifdef __cplusplus
28108 extern "C" {
28109 #endif
28110 void $ompi_ac_size_fn(char *a, char *b)
28112 int diff = (int) (b - a);
28113 FILE *f=fopen("conftestval", "w");
28114 if (!f) exit(1);
28115 fprintf(f, "%d\n", diff);
28116 fclose(f);
28118 #ifdef __cplusplus
28120 #endif
28124 # 1 is the command
28125 # 2 is actions to do if success
28126 # 3 is actions to do if fail
28127 echo "configure:28127: $CC $CFLAGS -I. -c conftest.c" >&5
28128 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
28129 ompi_status=$?
28131 # 1 is the message
28132 # 2 is whether to put a prefix or not
28133 if test -n "1"; then
28134 echo "configure:28134: \$? = $ompi_status" >&5
28135 else
28136 echo \$? = $ompi_status >&5
28138 if test "$ompi_status" = "0"; then
28139 unset ompi_status
28141 # 1 is the command
28142 # 2 is actions to do if success
28143 # 3 is actions to do if fail
28144 echo "configure:28144: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
28145 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
28146 ompi_status=$?
28148 # 1 is the message
28149 # 2 is whether to put a prefix or not
28150 if test -n "1"; then
28151 echo "configure:28151: \$? = $ompi_status" >&5
28152 else
28153 echo \$? = $ompi_status >&5
28155 if test "$ompi_status" = "0"; then
28156 unset ompi_status
28157 happy="yes"
28158 else
28159 unset ompi_status
28160 happy="no"
28162 else
28163 unset ompi_status
28164 happy="no"
28167 if test "$happy" = "no" ; then
28168 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5
28169 echo "$as_me: error: Could not determine size of INTEGER*16" >&2;}
28170 { (exit 1); exit 1; }; }
28173 if test "$cross_compiling" = "yes"; then
28174 { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*16 when cross-compiling" >&5
28175 echo "$as_me: error: Can not determine size of INTEGER*16 when cross-compiling" >&2;}
28176 { (exit 1); exit 1; }; }
28177 else
28179 # 1 is the command
28180 # 2 is actions to do if success
28181 # 3 is actions to do if fail
28182 echo "configure:28182: ./conftest" >&5
28183 ./conftest 1>&5 2>&1
28184 ompi_status=$?
28186 # 1 is the message
28187 # 2 is whether to put a prefix or not
28188 if test -n "1"; then
28189 echo "configure:28189: \$? = $ompi_status" >&5
28190 else
28191 echo \$? = $ompi_status >&5
28193 if test "$ompi_status" = "0"; then
28194 unset ompi_status
28195 if test -f conftestval; then
28196 ompi_cv_f77_sizeof_INTEGERp16=`cat conftestval`
28197 else
28199 # 1 is the message
28200 # 2 is whether to put a prefix or not
28201 if test -n "1"; then
28202 echo "configure:28202: conftestval not found." >&5
28203 else
28204 echo conftestval not found. >&5
28206 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5
28207 echo "$as_me: error: Could not determine size of INTEGER*16" >&2;}
28208 { (exit 1); exit 1; }; }
28211 else
28212 unset ompi_status
28213 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5
28214 echo "$as_me: error: Could not determine size of INTEGER*16" >&2;}
28215 { (exit 1); exit 1; }; }
28220 unset happy ompi_conftest_h
28221 rm -f conftest*
28223 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp16" >&5
28224 echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp16" >&6; }
28226 ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp16
28228 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
28229 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*16 does not have expected size!" >&5
28230 echo "$as_me: WARNING: *** Fortran 77 INTEGER*16 does not have expected size!" >&2;}
28231 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
28232 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
28233 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*16" >&5
28234 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*16" >&2;}
28235 ofc_have_type=0
28236 else
28237 # Look for a corresponding C type (will abort by itself if the
28238 # type isn't found and we need it)
28239 ofc_c_type=
28243 oft_abort_on_fail="no"
28244 oft_target_size="$ofc_type_size"
28246 { echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*16" >&5
28247 echo $ECHO_N "checking for C type corresponding to INTEGER*16... $ECHO_C" >&6; }
28248 if test "${ompi_cv_find_type_INTEGERp16+set}" = set; then
28249 echo $ECHO_N "(cached) $ECHO_C" >&6
28250 else
28251 # Loop over all the types handed to us
28252 oft_real_type=
28253 if test "$oft_target_size" != ""; then
28254 if test -z "$oft_real_type"; then
28255 if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
28256 oft_real_type="int"
28259 if test -z "$oft_real_type"; then
28260 if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
28261 oft_real_type="int64_t"
28264 if test -z "$oft_real_type"; then
28265 if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
28266 oft_real_type="long long"
28269 if test -z "$oft_real_type"; then
28270 if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
28271 oft_real_type="long"
28277 if test -z "$oft_real_type"; then
28278 ompi_cv_find_type_INTEGERp16="not found"
28279 else
28280 ompi_cv_find_type_INTEGERp16="$oft_real_type"
28284 { echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp16" >&5
28285 echo "${ECHO_T}$ompi_cv_find_type_INTEGERp16" >&6; }
28287 if test "$ompi_cv_find_type_INTEGERp16" == "not found"; then
28288 { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
28289 echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
28290 if test "$oft_abort_on_fail" != "no"; then
28291 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
28292 echo "$as_me: error: Cannot continue" >&2;}
28293 { (exit 1); exit 1; }; }
28299 if test "$ompi_cv_find_type_INTEGERp16" = "not found" ; then
28300 ofc_c_type=
28301 else
28302 ofc_c_type=$ompi_cv_find_type_INTEGERp16
28305 unset oft_real_type oft_target_size
28308 if test -z "$ofc_c_type" ; then
28309 ofc_have_type=0
28312 # Get the alignment of the type
28313 if test "$ofc_have_type" = "1"; then
28317 { echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*16" >&5
28318 echo $ECHO_N "checking alignment of Fortran INTEGER*16... $ECHO_C" >&6; }
28319 if test "${ompi_cv_f77_alignment_INTEGERp16+set}" = set; then
28320 echo $ECHO_N "(cached) $ECHO_C" >&6
28321 else
28323 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
28324 # so the general rule is that if there is an _ in the function
28325 # name, then there are two trailing underscores. Otherwise,
28326 # there is only one trailing underscore. Any idea how to do
28327 # that with m4_translit?
28328 if echo align | grep _ >/dev/null 2>&1 ; then
28329 ompi_ac_align_fn=align__
28330 else
28331 ompi_ac_align_fn=align_
28333 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
28334 ompi_ac_align_fn=align_
28335 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
28336 ompi_ac_align_fn=align
28337 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
28338 ompi_ac_align_fn=align
28339 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
28340 ompi_ac_align_fn=ALIGN
28341 else
28342 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
28343 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
28344 { (exit 1); exit 1; }; }
28347 # Fortran module
28348 cat > conftestf.f <<EOF
28349 program falign
28350 external align
28351 INTEGER*16 w,x,y,z
28352 CHARACTER a,b,c
28353 common /foo/a,w,b,x,y,c,z
28354 call align(w,x,y,z)
28358 # C module
28359 if test -f conftest.h; then
28360 ompi_conftest_h="#include \"conftest.h\""
28361 else
28362 ompi_conftest_h=""
28364 cat > conftest.c <<EOF
28365 #include <stdio.h>
28366 #include <stdlib.h>
28367 $conftest
28369 #ifdef __cplusplus
28370 extern "C" {
28371 #endif
28372 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
28373 { unsigned long aw, ax, ay, az;
28374 FILE *f=fopen("conftestval", "w");
28375 if (!f) exit(1);
28376 aw = (unsigned long) w;
28377 ax = (unsigned long) x;
28378 ay = (unsigned long) y;
28379 az = (unsigned long) z;
28380 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
28381 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
28382 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
28383 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
28384 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
28385 else fprintf(f, "%d\n", 1);
28386 fclose(f);
28388 #ifdef __cplusplus
28390 #endif
28394 # 1 is the command
28395 # 2 is actions to do if success
28396 # 3 is actions to do if fail
28397 echo "configure:28397: $CC $CFLAGS -I. -c conftest.c" >&5
28398 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
28399 ompi_status=$?
28401 # 1 is the message
28402 # 2 is whether to put a prefix or not
28403 if test -n "1"; then
28404 echo "configure:28404: \$? = $ompi_status" >&5
28405 else
28406 echo \$? = $ompi_status >&5
28408 if test "$ompi_status" = "0"; then
28409 unset ompi_status
28411 # 1 is the command
28412 # 2 is actions to do if success
28413 # 3 is actions to do if fail
28414 echo "configure:28414: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
28415 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
28416 ompi_status=$?
28418 # 1 is the message
28419 # 2 is whether to put a prefix or not
28420 if test -n "1"; then
28421 echo "configure:28421: \$? = $ompi_status" >&5
28422 else
28423 echo \$? = $ompi_status >&5
28425 if test "$ompi_status" = "0"; then
28426 unset ompi_status
28427 happy="yes"
28428 else
28429 unset ompi_status
28430 happy="no"
28432 else
28433 unset ompi_status
28434 happy="no"
28437 if test "$happy" = "no" ; then
28438 { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*16" >&5
28439 echo "$as_me: error: Could not determine alignment of INTEGER*16" >&2;}
28440 { (exit 1); exit 1; }; }
28443 if test "$cross_compiling" = "yes"; then
28444 { { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*16 when cross-compiling" >&5
28445 echo "$as_me: error: Can not determine alignment of INTEGER*16 when cross-compiling" >&2;}
28446 { (exit 1); exit 1; }; }
28447 else
28449 # 1 is the command
28450 # 2 is actions to do if success
28451 # 3 is actions to do if fail
28452 echo "configure:28452: ./conftest" >&5
28453 ./conftest 1>&5 2>&1
28454 ompi_status=$?
28456 # 1 is the message
28457 # 2 is whether to put a prefix or not
28458 if test -n "1"; then
28459 echo "configure:28459: \$? = $ompi_status" >&5
28460 else
28461 echo \$? = $ompi_status >&5
28463 if test "$ompi_status" = "0"; then
28464 unset ompi_status
28465 ompi_cv_f77_alignment_INTEGERp16=`cat conftestval`
28466 else
28467 unset ompi_status
28468 { { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*16" >&5
28469 echo "$as_me: error: Could not determine alignment of INTEGER*16" >&2;}
28470 { (exit 1); exit 1; }; }
28475 unset happy ompi_conf
28476 rm -f conftest*
28478 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp16" >&5
28479 echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp16" >&6; }
28481 ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp16
28487 # We always need these defines -- even if we don't have a given type,
28488 # there are some places in the code where we have to have *something*.
28490 cat >>confdefs.h <<_ACEOF
28491 #define OMPI_HAVE_FORTRAN_INTEGER16 $ofc_have_type
28492 _ACEOF
28495 cat >>confdefs.h <<_ACEOF
28496 #define OMPI_SIZEOF_FORTRAN_INTEGER16 $ofc_type_size
28497 _ACEOF
28500 cat >>confdefs.h <<_ACEOF
28501 #define OMPI_ALIGNMENT_FORTRAN_INTEGER16 $ofc_type_alignment
28502 _ACEOF
28504 if test "int, int64_t, long long, long" != ""; then
28506 cat >>confdefs.h <<_ACEOF
28507 #define ompi_fortran_integer16_t $ofc_c_type
28508 _ACEOF
28512 # Save some in shell variables for later use (e.g., need
28513 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
28514 OMPI_FORTRAN_INTEGER16_C_TYPE=$ofc_c_type
28515 OMPI_HAVE_FORTRAN_INTEGER16=$ofc_have_type
28516 OMPI_SIZEOF_FORTRAN_INTEGER16=$ofc_type_size
28517 OMPI_ALIGNMENT_FORTRAN_INTEGER16=$ofc_type_alignment
28519 # Clean up
28520 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
28521 unset ofc_expected_size
28525 ofc_expected_size=-1
28526 ofc_have_type=0
28527 ofc_type_size=$ac_cv_sizeof_int
28528 ofc_type_alignment=$ac_cv_sizeof_int
28529 ofc_c_type=ompi_fortran_bogus_type_t
28531 # Only check if we actually want the F77 bindings / have a F77
28532 # compiler. This allows us to call this macro, even if there is
28533 # no F77 compiler. If we have no f77 compiler, then just set a
28534 # bunch of defaults.
28535 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
28539 # Determine FORTRAN datatype size.
28540 # First arg is type, 2nd arg is config var to define
28541 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL" >&5
28542 echo $ECHO_N "checking if Fortran 77 compiler supports REAL... $ECHO_C" >&6; }
28543 if test "${ompi_cv_f77_have_REAL+set}" = set; then
28544 echo $ECHO_N "(cached) $ECHO_C" >&6
28545 else
28546 ac_ext=f
28547 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28548 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28549 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28551 cat >conftest.$ac_ext <<_ACEOF
28553 program main
28554 REAL bogus_variable
28556 _ACEOF
28557 rm -f conftest.$ac_objext
28558 if { (ac_try="$ac_compile"
28559 case "(($ac_try" in
28560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28561 *) ac_try_echo=$ac_try;;
28562 esac
28563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28564 (eval "$ac_compile") 2>conftest.er1
28565 ac_status=$?
28566 grep -v '^ *+' conftest.er1 >conftest.err
28567 rm -f conftest.er1
28568 cat conftest.err >&5
28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570 (exit $ac_status); } && {
28571 test -z "$ac_f77_werror_flag" ||
28572 test ! -s conftest.err
28573 } && test -s conftest.$ac_objext; then
28574 ompi_cv_f77_have_REAL="yes"
28575 else
28576 echo "$as_me: failed program was:" >&5
28577 sed 's/^/| /' conftest.$ac_ext >&5
28579 ompi_cv_f77_have_REAL="no"
28582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28583 ac_ext=c
28584 ac_cpp='$CPP $CPPFLAGS'
28585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28590 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REAL" >&5
28591 echo "${ECHO_T}$ompi_cv_f77_have_REAL" >&6; }
28593 if test "$ompi_cv_f77_have_REAL" = "yes"; then
28594 ofc_have_type=1
28595 else
28596 ofc_have_type=0
28600 else
28601 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL" >&5
28602 echo $ECHO_N "checking if Fortran 77 compiler supports REAL... $ECHO_C" >&6; }
28603 { echo "$as_me:$LINENO: result: skipped" >&5
28604 echo "${ECHO_T}skipped" >&6; }
28607 if test "$ofc_have_type" = "1"; then
28608 # What is the size of this type?
28610 # NOTE: Some Fortran compilers actually will return that a
28611 # type exists even if it doesn't support it -- the compiler
28612 # will automatically convert the unsupported type to a type
28613 # that it *does* support. For example, if you try to use
28614 # INTEGER*16 and the compiler doesn't support it, it may well
28615 # automatically convert it to INTEGER*8 for you (!). So we
28616 # have to check the actual size of the type once we determine
28617 # that the compiler doesn't error if we try to use it
28618 # (i.e,. the compiler *might* support that type). If the size
28619 # doesn't match the expected size, then the compiler doesn't
28620 # really support it.
28624 { echo "$as_me:$LINENO: checking size of Fortran 77 REAL" >&5
28625 echo $ECHO_N "checking size of Fortran 77 REAL... $ECHO_C" >&6; }
28626 if test "${ompi_cv_f77_sizeof_REAL+set}" = set; then
28627 echo $ECHO_N "(cached) $ECHO_C" >&6
28628 else
28630 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
28631 # so the general rule is that if there is an _ in the function
28632 # name, then there are two trailing underscores. Otherwise,
28633 # there is only one trailing underscore. Any idea how to do
28634 # that with m4_translit?
28635 if echo size | grep _ >/dev/null 2>&1 ; then
28636 ompi_ac_size_fn=size__
28637 else
28638 ompi_ac_size_fn=size_
28640 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
28641 ompi_ac_size_fn=size_
28642 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
28643 ompi_ac_size_fn=size
28644 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
28645 ompi_ac_size_fn=size
28646 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
28647 ompi_ac_size_fn=SIZE
28648 else
28649 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
28650 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
28651 { (exit 1); exit 1; }; }
28654 # Fortran module
28655 cat > conftestf.f <<EOF
28656 program fsize
28657 external size
28658 REAL x(2)
28659 call size(x(1),x(2))
28663 # C module
28664 if test -f conftest.h; then
28665 ompi_conftest_h="#include \"conftest.h\""
28666 else
28667 ompi_conftest_h=""
28669 cat > conftest.c <<EOF
28670 #include <stdio.h>
28671 #include <stdlib.h>
28672 $ompi_conftest_h
28674 #ifdef __cplusplus
28675 extern "C" {
28676 #endif
28677 void $ompi_ac_size_fn(char *a, char *b)
28679 int diff = (int) (b - a);
28680 FILE *f=fopen("conftestval", "w");
28681 if (!f) exit(1);
28682 fprintf(f, "%d\n", diff);
28683 fclose(f);
28685 #ifdef __cplusplus
28687 #endif
28691 # 1 is the command
28692 # 2 is actions to do if success
28693 # 3 is actions to do if fail
28694 echo "configure:28694: $CC $CFLAGS -I. -c conftest.c" >&5
28695 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
28696 ompi_status=$?
28698 # 1 is the message
28699 # 2 is whether to put a prefix or not
28700 if test -n "1"; then
28701 echo "configure:28701: \$? = $ompi_status" >&5
28702 else
28703 echo \$? = $ompi_status >&5
28705 if test "$ompi_status" = "0"; then
28706 unset ompi_status
28708 # 1 is the command
28709 # 2 is actions to do if success
28710 # 3 is actions to do if fail
28711 echo "configure:28711: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
28712 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
28713 ompi_status=$?
28715 # 1 is the message
28716 # 2 is whether to put a prefix or not
28717 if test -n "1"; then
28718 echo "configure:28718: \$? = $ompi_status" >&5
28719 else
28720 echo \$? = $ompi_status >&5
28722 if test "$ompi_status" = "0"; then
28723 unset ompi_status
28724 happy="yes"
28725 else
28726 unset ompi_status
28727 happy="no"
28729 else
28730 unset ompi_status
28731 happy="no"
28734 if test "$happy" = "no" ; then
28735 { { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5
28736 echo "$as_me: error: Could not determine size of REAL" >&2;}
28737 { (exit 1); exit 1; }; }
28740 if test "$cross_compiling" = "yes"; then
28741 { { echo "$as_me:$LINENO: error: Can not determine size of REAL when cross-compiling" >&5
28742 echo "$as_me: error: Can not determine size of REAL when cross-compiling" >&2;}
28743 { (exit 1); exit 1; }; }
28744 else
28746 # 1 is the command
28747 # 2 is actions to do if success
28748 # 3 is actions to do if fail
28749 echo "configure:28749: ./conftest" >&5
28750 ./conftest 1>&5 2>&1
28751 ompi_status=$?
28753 # 1 is the message
28754 # 2 is whether to put a prefix or not
28755 if test -n "1"; then
28756 echo "configure:28756: \$? = $ompi_status" >&5
28757 else
28758 echo \$? = $ompi_status >&5
28760 if test "$ompi_status" = "0"; then
28761 unset ompi_status
28762 if test -f conftestval; then
28763 ompi_cv_f77_sizeof_REAL=`cat conftestval`
28764 else
28766 # 1 is the message
28767 # 2 is whether to put a prefix or not
28768 if test -n "1"; then
28769 echo "configure:28769: conftestval not found." >&5
28770 else
28771 echo conftestval not found. >&5
28773 { { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5
28774 echo "$as_me: error: Could not determine size of REAL" >&2;}
28775 { (exit 1); exit 1; }; }
28778 else
28779 unset ompi_status
28780 { { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5
28781 echo "$as_me: error: Could not determine size of REAL" >&2;}
28782 { (exit 1); exit 1; }; }
28787 unset happy ompi_conftest_h
28788 rm -f conftest*
28790 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REAL" >&5
28791 echo "${ECHO_T}$ompi_cv_f77_sizeof_REAL" >&6; }
28793 ofc_type_size=$ompi_cv_f77_sizeof_REAL
28795 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
28796 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL does not have expected size!" >&5
28797 echo "$as_me: WARNING: *** Fortran 77 REAL does not have expected size!" >&2;}
28798 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
28799 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
28800 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL" >&5
28801 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL" >&2;}
28802 ofc_have_type=0
28803 else
28804 # Look for a corresponding C type (will abort by itself if the
28805 # type isn't found and we need it)
28806 ofc_c_type=
28810 oft_abort_on_fail="yes"
28811 oft_target_size="$ofc_type_size"
28813 { echo "$as_me:$LINENO: checking for C type corresponding to REAL" >&5
28814 echo $ECHO_N "checking for C type corresponding to REAL... $ECHO_C" >&6; }
28815 if test "${ompi_cv_find_type_REAL+set}" = set; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28817 else
28818 # Loop over all the types handed to us
28819 oft_real_type=
28820 if test "$oft_target_size" != ""; then
28821 if test -z "$oft_real_type"; then
28822 if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
28823 oft_real_type="float"
28826 if test -z "$oft_real_type"; then
28827 if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
28828 oft_real_type="double"
28831 if test -z "$oft_real_type"; then
28832 if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
28833 oft_real_type="long double"
28839 if test -z "$oft_real_type"; then
28840 ompi_cv_find_type_REAL="not found"
28841 else
28842 ompi_cv_find_type_REAL="$oft_real_type"
28846 { echo "$as_me:$LINENO: result: $ompi_cv_find_type_REAL" >&5
28847 echo "${ECHO_T}$ompi_cv_find_type_REAL" >&6; }
28849 if test "$ompi_cv_find_type_REAL" == "not found"; then
28850 { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
28851 echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
28852 if test "$oft_abort_on_fail" != "no"; then
28853 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
28854 echo "$as_me: error: Cannot continue" >&2;}
28855 { (exit 1); exit 1; }; }
28861 if test "$ompi_cv_find_type_REAL" = "not found" ; then
28862 ofc_c_type=
28863 else
28864 ofc_c_type=$ompi_cv_find_type_REAL
28867 unset oft_real_type oft_target_size
28870 if test -z "$ofc_c_type" ; then
28871 ofc_have_type=0
28874 # Get the alignment of the type
28875 if test "$ofc_have_type" = "1"; then
28879 { echo "$as_me:$LINENO: checking alignment of Fortran REAL" >&5
28880 echo $ECHO_N "checking alignment of Fortran REAL... $ECHO_C" >&6; }
28881 if test "${ompi_cv_f77_alignment_REAL+set}" = set; then
28882 echo $ECHO_N "(cached) $ECHO_C" >&6
28883 else
28885 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
28886 # so the general rule is that if there is an _ in the function
28887 # name, then there are two trailing underscores. Otherwise,
28888 # there is only one trailing underscore. Any idea how to do
28889 # that with m4_translit?
28890 if echo align | grep _ >/dev/null 2>&1 ; then
28891 ompi_ac_align_fn=align__
28892 else
28893 ompi_ac_align_fn=align_
28895 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
28896 ompi_ac_align_fn=align_
28897 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
28898 ompi_ac_align_fn=align
28899 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
28900 ompi_ac_align_fn=align
28901 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
28902 ompi_ac_align_fn=ALIGN
28903 else
28904 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
28905 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
28906 { (exit 1); exit 1; }; }
28909 # Fortran module
28910 cat > conftestf.f <<EOF
28911 program falign
28912 external align
28913 REAL w,x,y,z
28914 CHARACTER a,b,c
28915 common /foo/a,w,b,x,y,c,z
28916 call align(w,x,y,z)
28920 # C module
28921 if test -f conftest.h; then
28922 ompi_conftest_h="#include \"conftest.h\""
28923 else
28924 ompi_conftest_h=""
28926 cat > conftest.c <<EOF
28927 #include <stdio.h>
28928 #include <stdlib.h>
28929 $conftest
28931 #ifdef __cplusplus
28932 extern "C" {
28933 #endif
28934 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
28935 { unsigned long aw, ax, ay, az;
28936 FILE *f=fopen("conftestval", "w");
28937 if (!f) exit(1);
28938 aw = (unsigned long) w;
28939 ax = (unsigned long) x;
28940 ay = (unsigned long) y;
28941 az = (unsigned long) z;
28942 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
28943 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
28944 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
28945 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
28946 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
28947 else fprintf(f, "%d\n", 1);
28948 fclose(f);
28950 #ifdef __cplusplus
28952 #endif
28956 # 1 is the command
28957 # 2 is actions to do if success
28958 # 3 is actions to do if fail
28959 echo "configure:28959: $CC $CFLAGS -I. -c conftest.c" >&5
28960 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
28961 ompi_status=$?
28963 # 1 is the message
28964 # 2 is whether to put a prefix or not
28965 if test -n "1"; then
28966 echo "configure:28966: \$? = $ompi_status" >&5
28967 else
28968 echo \$? = $ompi_status >&5
28970 if test "$ompi_status" = "0"; then
28971 unset ompi_status
28973 # 1 is the command
28974 # 2 is actions to do if success
28975 # 3 is actions to do if fail
28976 echo "configure:28976: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
28977 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
28978 ompi_status=$?
28980 # 1 is the message
28981 # 2 is whether to put a prefix or not
28982 if test -n "1"; then
28983 echo "configure:28983: \$? = $ompi_status" >&5
28984 else
28985 echo \$? = $ompi_status >&5
28987 if test "$ompi_status" = "0"; then
28988 unset ompi_status
28989 happy="yes"
28990 else
28991 unset ompi_status
28992 happy="no"
28994 else
28995 unset ompi_status
28996 happy="no"
28999 if test "$happy" = "no" ; then
29000 { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL" >&5
29001 echo "$as_me: error: Could not determine alignment of REAL" >&2;}
29002 { (exit 1); exit 1; }; }
29005 if test "$cross_compiling" = "yes"; then
29006 { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL when cross-compiling" >&5
29007 echo "$as_me: error: Can not determine alignment of REAL when cross-compiling" >&2;}
29008 { (exit 1); exit 1; }; }
29009 else
29011 # 1 is the command
29012 # 2 is actions to do if success
29013 # 3 is actions to do if fail
29014 echo "configure:29014: ./conftest" >&5
29015 ./conftest 1>&5 2>&1
29016 ompi_status=$?
29018 # 1 is the message
29019 # 2 is whether to put a prefix or not
29020 if test -n "1"; then
29021 echo "configure:29021: \$? = $ompi_status" >&5
29022 else
29023 echo \$? = $ompi_status >&5
29025 if test "$ompi_status" = "0"; then
29026 unset ompi_status
29027 ompi_cv_f77_alignment_REAL=`cat conftestval`
29028 else
29029 unset ompi_status
29030 { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL" >&5
29031 echo "$as_me: error: Could not determine alignment of REAL" >&2;}
29032 { (exit 1); exit 1; }; }
29037 unset happy ompi_conf
29038 rm -f conftest*
29040 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REAL" >&5
29041 echo "${ECHO_T}$ompi_cv_f77_alignment_REAL" >&6; }
29043 ofc_type_alignment=$ompi_cv_f77_alignment_REAL
29049 # We always need these defines -- even if we don't have a given type,
29050 # there are some places in the code where we have to have *something*.
29052 cat >>confdefs.h <<_ACEOF
29053 #define OMPI_HAVE_FORTRAN_REAL $ofc_have_type
29054 _ACEOF
29057 cat >>confdefs.h <<_ACEOF
29058 #define OMPI_SIZEOF_FORTRAN_REAL $ofc_type_size
29059 _ACEOF
29062 cat >>confdefs.h <<_ACEOF
29063 #define OMPI_ALIGNMENT_FORTRAN_REAL $ofc_type_alignment
29064 _ACEOF
29066 if test "float, double, long double" != ""; then
29068 cat >>confdefs.h <<_ACEOF
29069 #define ompi_fortran_real_t $ofc_c_type
29070 _ACEOF
29074 # Save some in shell variables for later use (e.g., need
29075 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
29076 OMPI_FORTRAN_REAL_C_TYPE=$ofc_c_type
29077 OMPI_HAVE_FORTRAN_REAL=$ofc_have_type
29078 OMPI_SIZEOF_FORTRAN_REAL=$ofc_type_size
29079 OMPI_ALIGNMENT_FORTRAN_REAL=$ofc_type_alignment
29081 # Clean up
29082 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
29083 unset ofc_expected_size
29086 ofc_expected_size=4
29087 ofc_have_type=0
29088 ofc_type_size=$ac_cv_sizeof_int
29089 ofc_type_alignment=$ac_cv_sizeof_int
29090 ofc_c_type=ompi_fortran_bogus_type_t
29092 # Only check if we actually want the F77 bindings / have a F77
29093 # compiler. This allows us to call this macro, even if there is
29094 # no F77 compiler. If we have no f77 compiler, then just set a
29095 # bunch of defaults.
29096 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
29100 # Determine FORTRAN datatype size.
29101 # First arg is type, 2nd arg is config var to define
29102 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*4" >&5
29103 echo $ECHO_N "checking if Fortran 77 compiler supports REAL*4... $ECHO_C" >&6; }
29104 if test "${ompi_cv_f77_have_REALp4+set}" = set; then
29105 echo $ECHO_N "(cached) $ECHO_C" >&6
29106 else
29107 ac_ext=f
29108 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29109 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29110 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29112 cat >conftest.$ac_ext <<_ACEOF
29114 program main
29115 REAL*4 bogus_variable
29117 _ACEOF
29118 rm -f conftest.$ac_objext
29119 if { (ac_try="$ac_compile"
29120 case "(($ac_try" in
29121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29122 *) ac_try_echo=$ac_try;;
29123 esac
29124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29125 (eval "$ac_compile") 2>conftest.er1
29126 ac_status=$?
29127 grep -v '^ *+' conftest.er1 >conftest.err
29128 rm -f conftest.er1
29129 cat conftest.err >&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); } && {
29132 test -z "$ac_f77_werror_flag" ||
29133 test ! -s conftest.err
29134 } && test -s conftest.$ac_objext; then
29135 ompi_cv_f77_have_REALp4="yes"
29136 else
29137 echo "$as_me: failed program was:" >&5
29138 sed 's/^/| /' conftest.$ac_ext >&5
29140 ompi_cv_f77_have_REALp4="no"
29143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29144 ac_ext=c
29145 ac_cpp='$CPP $CPPFLAGS'
29146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29151 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp4" >&5
29152 echo "${ECHO_T}$ompi_cv_f77_have_REALp4" >&6; }
29154 if test "$ompi_cv_f77_have_REALp4" = "yes"; then
29155 ofc_have_type=1
29156 else
29157 ofc_have_type=0
29161 else
29162 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*4" >&5
29163 echo $ECHO_N "checking if Fortran 77 compiler supports REAL*4... $ECHO_C" >&6; }
29164 { echo "$as_me:$LINENO: result: skipped" >&5
29165 echo "${ECHO_T}skipped" >&6; }
29168 if test "$ofc_have_type" = "1"; then
29169 # What is the size of this type?
29171 # NOTE: Some Fortran compilers actually will return that a
29172 # type exists even if it doesn't support it -- the compiler
29173 # will automatically convert the unsupported type to a type
29174 # that it *does* support. For example, if you try to use
29175 # INTEGER*16 and the compiler doesn't support it, it may well
29176 # automatically convert it to INTEGER*8 for you (!). So we
29177 # have to check the actual size of the type once we determine
29178 # that the compiler doesn't error if we try to use it
29179 # (i.e,. the compiler *might* support that type). If the size
29180 # doesn't match the expected size, then the compiler doesn't
29181 # really support it.
29185 { echo "$as_me:$LINENO: checking size of Fortran 77 REAL*4" >&5
29186 echo $ECHO_N "checking size of Fortran 77 REAL*4... $ECHO_C" >&6; }
29187 if test "${ompi_cv_f77_sizeof_REALp4+set}" = set; then
29188 echo $ECHO_N "(cached) $ECHO_C" >&6
29189 else
29191 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
29192 # so the general rule is that if there is an _ in the function
29193 # name, then there are two trailing underscores. Otherwise,
29194 # there is only one trailing underscore. Any idea how to do
29195 # that with m4_translit?
29196 if echo size | grep _ >/dev/null 2>&1 ; then
29197 ompi_ac_size_fn=size__
29198 else
29199 ompi_ac_size_fn=size_
29201 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
29202 ompi_ac_size_fn=size_
29203 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
29204 ompi_ac_size_fn=size
29205 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
29206 ompi_ac_size_fn=size
29207 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
29208 ompi_ac_size_fn=SIZE
29209 else
29210 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
29211 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
29212 { (exit 1); exit 1; }; }
29215 # Fortran module
29216 cat > conftestf.f <<EOF
29217 program fsize
29218 external size
29219 REAL*4 x(2)
29220 call size(x(1),x(2))
29224 # C module
29225 if test -f conftest.h; then
29226 ompi_conftest_h="#include \"conftest.h\""
29227 else
29228 ompi_conftest_h=""
29230 cat > conftest.c <<EOF
29231 #include <stdio.h>
29232 #include <stdlib.h>
29233 $ompi_conftest_h
29235 #ifdef __cplusplus
29236 extern "C" {
29237 #endif
29238 void $ompi_ac_size_fn(char *a, char *b)
29240 int diff = (int) (b - a);
29241 FILE *f=fopen("conftestval", "w");
29242 if (!f) exit(1);
29243 fprintf(f, "%d\n", diff);
29244 fclose(f);
29246 #ifdef __cplusplus
29248 #endif
29252 # 1 is the command
29253 # 2 is actions to do if success
29254 # 3 is actions to do if fail
29255 echo "configure:29255: $CC $CFLAGS -I. -c conftest.c" >&5
29256 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
29257 ompi_status=$?
29259 # 1 is the message
29260 # 2 is whether to put a prefix or not
29261 if test -n "1"; then
29262 echo "configure:29262: \$? = $ompi_status" >&5
29263 else
29264 echo \$? = $ompi_status >&5
29266 if test "$ompi_status" = "0"; then
29267 unset ompi_status
29269 # 1 is the command
29270 # 2 is actions to do if success
29271 # 3 is actions to do if fail
29272 echo "configure:29272: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
29273 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
29274 ompi_status=$?
29276 # 1 is the message
29277 # 2 is whether to put a prefix or not
29278 if test -n "1"; then
29279 echo "configure:29279: \$? = $ompi_status" >&5
29280 else
29281 echo \$? = $ompi_status >&5
29283 if test "$ompi_status" = "0"; then
29284 unset ompi_status
29285 happy="yes"
29286 else
29287 unset ompi_status
29288 happy="no"
29290 else
29291 unset ompi_status
29292 happy="no"
29295 if test "$happy" = "no" ; then
29296 { { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5
29297 echo "$as_me: error: Could not determine size of REAL*4" >&2;}
29298 { (exit 1); exit 1; }; }
29301 if test "$cross_compiling" = "yes"; then
29302 { { echo "$as_me:$LINENO: error: Can not determine size of REAL*4 when cross-compiling" >&5
29303 echo "$as_me: error: Can not determine size of REAL*4 when cross-compiling" >&2;}
29304 { (exit 1); exit 1; }; }
29305 else
29307 # 1 is the command
29308 # 2 is actions to do if success
29309 # 3 is actions to do if fail
29310 echo "configure:29310: ./conftest" >&5
29311 ./conftest 1>&5 2>&1
29312 ompi_status=$?
29314 # 1 is the message
29315 # 2 is whether to put a prefix or not
29316 if test -n "1"; then
29317 echo "configure:29317: \$? = $ompi_status" >&5
29318 else
29319 echo \$? = $ompi_status >&5
29321 if test "$ompi_status" = "0"; then
29322 unset ompi_status
29323 if test -f conftestval; then
29324 ompi_cv_f77_sizeof_REALp4=`cat conftestval`
29325 else
29327 # 1 is the message
29328 # 2 is whether to put a prefix or not
29329 if test -n "1"; then
29330 echo "configure:29330: conftestval not found." >&5
29331 else
29332 echo conftestval not found. >&5
29334 { { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5
29335 echo "$as_me: error: Could not determine size of REAL*4" >&2;}
29336 { (exit 1); exit 1; }; }
29339 else
29340 unset ompi_status
29341 { { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5
29342 echo "$as_me: error: Could not determine size of REAL*4" >&2;}
29343 { (exit 1); exit 1; }; }
29348 unset happy ompi_conftest_h
29349 rm -f conftest*
29351 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp4" >&5
29352 echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp4" >&6; }
29354 ofc_type_size=$ompi_cv_f77_sizeof_REALp4
29356 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
29357 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*4 does not have expected size!" >&5
29358 echo "$as_me: WARNING: *** Fortran 77 REAL*4 does not have expected size!" >&2;}
29359 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
29360 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
29361 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*4" >&5
29362 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*4" >&2;}
29363 ofc_have_type=0
29364 else
29365 # Look for a corresponding C type (will abort by itself if the
29366 # type isn't found and we need it)
29367 ofc_c_type=
29371 oft_abort_on_fail="no"
29372 oft_target_size="$ofc_type_size"
29374 { echo "$as_me:$LINENO: checking for C type corresponding to REAL*4" >&5
29375 echo $ECHO_N "checking for C type corresponding to REAL*4... $ECHO_C" >&6; }
29376 if test "${ompi_cv_find_type_REALp4+set}" = set; then
29377 echo $ECHO_N "(cached) $ECHO_C" >&6
29378 else
29379 # Loop over all the types handed to us
29380 oft_real_type=
29381 if test "$oft_target_size" != ""; then
29382 if test -z "$oft_real_type"; then
29383 if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
29384 oft_real_type="float"
29387 if test -z "$oft_real_type"; then
29388 if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
29389 oft_real_type="double"
29392 if test -z "$oft_real_type"; then
29393 if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
29394 oft_real_type="long double"
29400 if test -z "$oft_real_type"; then
29401 ompi_cv_find_type_REALp4="not found"
29402 else
29403 ompi_cv_find_type_REALp4="$oft_real_type"
29407 { echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp4" >&5
29408 echo "${ECHO_T}$ompi_cv_find_type_REALp4" >&6; }
29410 if test "$ompi_cv_find_type_REALp4" == "not found"; then
29411 { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
29412 echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
29413 if test "$oft_abort_on_fail" != "no"; then
29414 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
29415 echo "$as_me: error: Cannot continue" >&2;}
29416 { (exit 1); exit 1; }; }
29422 if test "$ompi_cv_find_type_REALp4" = "not found" ; then
29423 ofc_c_type=
29424 else
29425 ofc_c_type=$ompi_cv_find_type_REALp4
29428 unset oft_real_type oft_target_size
29431 if test -z "$ofc_c_type" ; then
29432 ofc_have_type=0
29435 # Get the alignment of the type
29436 if test "$ofc_have_type" = "1"; then
29440 { echo "$as_me:$LINENO: checking alignment of Fortran REAL*4" >&5
29441 echo $ECHO_N "checking alignment of Fortran REAL*4... $ECHO_C" >&6; }
29442 if test "${ompi_cv_f77_alignment_REALp4+set}" = set; then
29443 echo $ECHO_N "(cached) $ECHO_C" >&6
29444 else
29446 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
29447 # so the general rule is that if there is an _ in the function
29448 # name, then there are two trailing underscores. Otherwise,
29449 # there is only one trailing underscore. Any idea how to do
29450 # that with m4_translit?
29451 if echo align | grep _ >/dev/null 2>&1 ; then
29452 ompi_ac_align_fn=align__
29453 else
29454 ompi_ac_align_fn=align_
29456 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
29457 ompi_ac_align_fn=align_
29458 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
29459 ompi_ac_align_fn=align
29460 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
29461 ompi_ac_align_fn=align
29462 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
29463 ompi_ac_align_fn=ALIGN
29464 else
29465 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
29466 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
29467 { (exit 1); exit 1; }; }
29470 # Fortran module
29471 cat > conftestf.f <<EOF
29472 program falign
29473 external align
29474 REAL*4 w,x,y,z
29475 CHARACTER a,b,c
29476 common /foo/a,w,b,x,y,c,z
29477 call align(w,x,y,z)
29481 # C module
29482 if test -f conftest.h; then
29483 ompi_conftest_h="#include \"conftest.h\""
29484 else
29485 ompi_conftest_h=""
29487 cat > conftest.c <<EOF
29488 #include <stdio.h>
29489 #include <stdlib.h>
29490 $conftest
29492 #ifdef __cplusplus
29493 extern "C" {
29494 #endif
29495 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
29496 { unsigned long aw, ax, ay, az;
29497 FILE *f=fopen("conftestval", "w");
29498 if (!f) exit(1);
29499 aw = (unsigned long) w;
29500 ax = (unsigned long) x;
29501 ay = (unsigned long) y;
29502 az = (unsigned long) z;
29503 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
29504 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
29505 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
29506 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
29507 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
29508 else fprintf(f, "%d\n", 1);
29509 fclose(f);
29511 #ifdef __cplusplus
29513 #endif
29517 # 1 is the command
29518 # 2 is actions to do if success
29519 # 3 is actions to do if fail
29520 echo "configure:29520: $CC $CFLAGS -I. -c conftest.c" >&5
29521 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
29522 ompi_status=$?
29524 # 1 is the message
29525 # 2 is whether to put a prefix or not
29526 if test -n "1"; then
29527 echo "configure:29527: \$? = $ompi_status" >&5
29528 else
29529 echo \$? = $ompi_status >&5
29531 if test "$ompi_status" = "0"; then
29532 unset ompi_status
29534 # 1 is the command
29535 # 2 is actions to do if success
29536 # 3 is actions to do if fail
29537 echo "configure:29537: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
29538 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
29539 ompi_status=$?
29541 # 1 is the message
29542 # 2 is whether to put a prefix or not
29543 if test -n "1"; then
29544 echo "configure:29544: \$? = $ompi_status" >&5
29545 else
29546 echo \$? = $ompi_status >&5
29548 if test "$ompi_status" = "0"; then
29549 unset ompi_status
29550 happy="yes"
29551 else
29552 unset ompi_status
29553 happy="no"
29555 else
29556 unset ompi_status
29557 happy="no"
29560 if test "$happy" = "no" ; then
29561 { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*4" >&5
29562 echo "$as_me: error: Could not determine alignment of REAL*4" >&2;}
29563 { (exit 1); exit 1; }; }
29566 if test "$cross_compiling" = "yes"; then
29567 { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*4 when cross-compiling" >&5
29568 echo "$as_me: error: Can not determine alignment of REAL*4 when cross-compiling" >&2;}
29569 { (exit 1); exit 1; }; }
29570 else
29572 # 1 is the command
29573 # 2 is actions to do if success
29574 # 3 is actions to do if fail
29575 echo "configure:29575: ./conftest" >&5
29576 ./conftest 1>&5 2>&1
29577 ompi_status=$?
29579 # 1 is the message
29580 # 2 is whether to put a prefix or not
29581 if test -n "1"; then
29582 echo "configure:29582: \$? = $ompi_status" >&5
29583 else
29584 echo \$? = $ompi_status >&5
29586 if test "$ompi_status" = "0"; then
29587 unset ompi_status
29588 ompi_cv_f77_alignment_REALp4=`cat conftestval`
29589 else
29590 unset ompi_status
29591 { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*4" >&5
29592 echo "$as_me: error: Could not determine alignment of REAL*4" >&2;}
29593 { (exit 1); exit 1; }; }
29598 unset happy ompi_conf
29599 rm -f conftest*
29601 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp4" >&5
29602 echo "${ECHO_T}$ompi_cv_f77_alignment_REALp4" >&6; }
29604 ofc_type_alignment=$ompi_cv_f77_alignment_REALp4
29610 # We always need these defines -- even if we don't have a given type,
29611 # there are some places in the code where we have to have *something*.
29613 cat >>confdefs.h <<_ACEOF
29614 #define OMPI_HAVE_FORTRAN_REAL4 $ofc_have_type
29615 _ACEOF
29618 cat >>confdefs.h <<_ACEOF
29619 #define OMPI_SIZEOF_FORTRAN_REAL4 $ofc_type_size
29620 _ACEOF
29623 cat >>confdefs.h <<_ACEOF
29624 #define OMPI_ALIGNMENT_FORTRAN_REAL4 $ofc_type_alignment
29625 _ACEOF
29627 if test "float, double, long double" != ""; then
29629 cat >>confdefs.h <<_ACEOF
29630 #define ompi_fortran_real4_t $ofc_c_type
29631 _ACEOF
29635 # Save some in shell variables for later use (e.g., need
29636 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
29637 OMPI_FORTRAN_REAL4_C_TYPE=$ofc_c_type
29638 OMPI_HAVE_FORTRAN_REAL4=$ofc_have_type
29639 OMPI_SIZEOF_FORTRAN_REAL4=$ofc_type_size
29640 OMPI_ALIGNMENT_FORTRAN_REAL4=$ofc_type_alignment
29642 # Clean up
29643 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
29644 unset ofc_expected_size
29647 ofc_expected_size=8
29648 ofc_have_type=0
29649 ofc_type_size=$ac_cv_sizeof_int
29650 ofc_type_alignment=$ac_cv_sizeof_int
29651 ofc_c_type=ompi_fortran_bogus_type_t
29653 # Only check if we actually want the F77 bindings / have a F77
29654 # compiler. This allows us to call this macro, even if there is
29655 # no F77 compiler. If we have no f77 compiler, then just set a
29656 # bunch of defaults.
29657 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
29661 # Determine FORTRAN datatype size.
29662 # First arg is type, 2nd arg is config var to define
29663 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*8" >&5
29664 echo $ECHO_N "checking if Fortran 77 compiler supports REAL*8... $ECHO_C" >&6; }
29665 if test "${ompi_cv_f77_have_REALp8+set}" = set; then
29666 echo $ECHO_N "(cached) $ECHO_C" >&6
29667 else
29668 ac_ext=f
29669 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29670 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29671 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29673 cat >conftest.$ac_ext <<_ACEOF
29675 program main
29676 REAL*8 bogus_variable
29678 _ACEOF
29679 rm -f conftest.$ac_objext
29680 if { (ac_try="$ac_compile"
29681 case "(($ac_try" in
29682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29683 *) ac_try_echo=$ac_try;;
29684 esac
29685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29686 (eval "$ac_compile") 2>conftest.er1
29687 ac_status=$?
29688 grep -v '^ *+' conftest.er1 >conftest.err
29689 rm -f conftest.er1
29690 cat conftest.err >&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); } && {
29693 test -z "$ac_f77_werror_flag" ||
29694 test ! -s conftest.err
29695 } && test -s conftest.$ac_objext; then
29696 ompi_cv_f77_have_REALp8="yes"
29697 else
29698 echo "$as_me: failed program was:" >&5
29699 sed 's/^/| /' conftest.$ac_ext >&5
29701 ompi_cv_f77_have_REALp8="no"
29704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29705 ac_ext=c
29706 ac_cpp='$CPP $CPPFLAGS'
29707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29712 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp8" >&5
29713 echo "${ECHO_T}$ompi_cv_f77_have_REALp8" >&6; }
29715 if test "$ompi_cv_f77_have_REALp8" = "yes"; then
29716 ofc_have_type=1
29717 else
29718 ofc_have_type=0
29722 else
29723 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*8" >&5
29724 echo $ECHO_N "checking if Fortran 77 compiler supports REAL*8... $ECHO_C" >&6; }
29725 { echo "$as_me:$LINENO: result: skipped" >&5
29726 echo "${ECHO_T}skipped" >&6; }
29729 if test "$ofc_have_type" = "1"; then
29730 # What is the size of this type?
29732 # NOTE: Some Fortran compilers actually will return that a
29733 # type exists even if it doesn't support it -- the compiler
29734 # will automatically convert the unsupported type to a type
29735 # that it *does* support. For example, if you try to use
29736 # INTEGER*16 and the compiler doesn't support it, it may well
29737 # automatically convert it to INTEGER*8 for you (!). So we
29738 # have to check the actual size of the type once we determine
29739 # that the compiler doesn't error if we try to use it
29740 # (i.e,. the compiler *might* support that type). If the size
29741 # doesn't match the expected size, then the compiler doesn't
29742 # really support it.
29746 { echo "$as_me:$LINENO: checking size of Fortran 77 REAL*8" >&5
29747 echo $ECHO_N "checking size of Fortran 77 REAL*8... $ECHO_C" >&6; }
29748 if test "${ompi_cv_f77_sizeof_REALp8+set}" = set; then
29749 echo $ECHO_N "(cached) $ECHO_C" >&6
29750 else
29752 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
29753 # so the general rule is that if there is an _ in the function
29754 # name, then there are two trailing underscores. Otherwise,
29755 # there is only one trailing underscore. Any idea how to do
29756 # that with m4_translit?
29757 if echo size | grep _ >/dev/null 2>&1 ; then
29758 ompi_ac_size_fn=size__
29759 else
29760 ompi_ac_size_fn=size_
29762 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
29763 ompi_ac_size_fn=size_
29764 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
29765 ompi_ac_size_fn=size
29766 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
29767 ompi_ac_size_fn=size
29768 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
29769 ompi_ac_size_fn=SIZE
29770 else
29771 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
29772 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
29773 { (exit 1); exit 1; }; }
29776 # Fortran module
29777 cat > conftestf.f <<EOF
29778 program fsize
29779 external size
29780 REAL*8 x(2)
29781 call size(x(1),x(2))
29785 # C module
29786 if test -f conftest.h; then
29787 ompi_conftest_h="#include \"conftest.h\""
29788 else
29789 ompi_conftest_h=""
29791 cat > conftest.c <<EOF
29792 #include <stdio.h>
29793 #include <stdlib.h>
29794 $ompi_conftest_h
29796 #ifdef __cplusplus
29797 extern "C" {
29798 #endif
29799 void $ompi_ac_size_fn(char *a, char *b)
29801 int diff = (int) (b - a);
29802 FILE *f=fopen("conftestval", "w");
29803 if (!f) exit(1);
29804 fprintf(f, "%d\n", diff);
29805 fclose(f);
29807 #ifdef __cplusplus
29809 #endif
29813 # 1 is the command
29814 # 2 is actions to do if success
29815 # 3 is actions to do if fail
29816 echo "configure:29816: $CC $CFLAGS -I. -c conftest.c" >&5
29817 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
29818 ompi_status=$?
29820 # 1 is the message
29821 # 2 is whether to put a prefix or not
29822 if test -n "1"; then
29823 echo "configure:29823: \$? = $ompi_status" >&5
29824 else
29825 echo \$? = $ompi_status >&5
29827 if test "$ompi_status" = "0"; then
29828 unset ompi_status
29830 # 1 is the command
29831 # 2 is actions to do if success
29832 # 3 is actions to do if fail
29833 echo "configure:29833: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
29834 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
29835 ompi_status=$?
29837 # 1 is the message
29838 # 2 is whether to put a prefix or not
29839 if test -n "1"; then
29840 echo "configure:29840: \$? = $ompi_status" >&5
29841 else
29842 echo \$? = $ompi_status >&5
29844 if test "$ompi_status" = "0"; then
29845 unset ompi_status
29846 happy="yes"
29847 else
29848 unset ompi_status
29849 happy="no"
29851 else
29852 unset ompi_status
29853 happy="no"
29856 if test "$happy" = "no" ; then
29857 { { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5
29858 echo "$as_me: error: Could not determine size of REAL*8" >&2;}
29859 { (exit 1); exit 1; }; }
29862 if test "$cross_compiling" = "yes"; then
29863 { { echo "$as_me:$LINENO: error: Can not determine size of REAL*8 when cross-compiling" >&5
29864 echo "$as_me: error: Can not determine size of REAL*8 when cross-compiling" >&2;}
29865 { (exit 1); exit 1; }; }
29866 else
29868 # 1 is the command
29869 # 2 is actions to do if success
29870 # 3 is actions to do if fail
29871 echo "configure:29871: ./conftest" >&5
29872 ./conftest 1>&5 2>&1
29873 ompi_status=$?
29875 # 1 is the message
29876 # 2 is whether to put a prefix or not
29877 if test -n "1"; then
29878 echo "configure:29878: \$? = $ompi_status" >&5
29879 else
29880 echo \$? = $ompi_status >&5
29882 if test "$ompi_status" = "0"; then
29883 unset ompi_status
29884 if test -f conftestval; then
29885 ompi_cv_f77_sizeof_REALp8=`cat conftestval`
29886 else
29888 # 1 is the message
29889 # 2 is whether to put a prefix or not
29890 if test -n "1"; then
29891 echo "configure:29891: conftestval not found." >&5
29892 else
29893 echo conftestval not found. >&5
29895 { { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5
29896 echo "$as_me: error: Could not determine size of REAL*8" >&2;}
29897 { (exit 1); exit 1; }; }
29900 else
29901 unset ompi_status
29902 { { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5
29903 echo "$as_me: error: Could not determine size of REAL*8" >&2;}
29904 { (exit 1); exit 1; }; }
29909 unset happy ompi_conftest_h
29910 rm -f conftest*
29912 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp8" >&5
29913 echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp8" >&6; }
29915 ofc_type_size=$ompi_cv_f77_sizeof_REALp8
29917 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
29918 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*8 does not have expected size!" >&5
29919 echo "$as_me: WARNING: *** Fortran 77 REAL*8 does not have expected size!" >&2;}
29920 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
29921 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
29922 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*8" >&5
29923 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*8" >&2;}
29924 ofc_have_type=0
29925 else
29926 # Look for a corresponding C type (will abort by itself if the
29927 # type isn't found and we need it)
29928 ofc_c_type=
29932 oft_abort_on_fail="no"
29933 oft_target_size="$ofc_type_size"
29935 { echo "$as_me:$LINENO: checking for C type corresponding to REAL*8" >&5
29936 echo $ECHO_N "checking for C type corresponding to REAL*8... $ECHO_C" >&6; }
29937 if test "${ompi_cv_find_type_REALp8+set}" = set; then
29938 echo $ECHO_N "(cached) $ECHO_C" >&6
29939 else
29940 # Loop over all the types handed to us
29941 oft_real_type=
29942 if test "$oft_target_size" != ""; then
29943 if test -z "$oft_real_type"; then
29944 if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
29945 oft_real_type="float"
29948 if test -z "$oft_real_type"; then
29949 if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
29950 oft_real_type="double"
29953 if test -z "$oft_real_type"; then
29954 if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
29955 oft_real_type="long double"
29961 if test -z "$oft_real_type"; then
29962 ompi_cv_find_type_REALp8="not found"
29963 else
29964 ompi_cv_find_type_REALp8="$oft_real_type"
29968 { echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp8" >&5
29969 echo "${ECHO_T}$ompi_cv_find_type_REALp8" >&6; }
29971 if test "$ompi_cv_find_type_REALp8" == "not found"; then
29972 { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
29973 echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
29974 if test "$oft_abort_on_fail" != "no"; then
29975 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
29976 echo "$as_me: error: Cannot continue" >&2;}
29977 { (exit 1); exit 1; }; }
29983 if test "$ompi_cv_find_type_REALp8" = "not found" ; then
29984 ofc_c_type=
29985 else
29986 ofc_c_type=$ompi_cv_find_type_REALp8
29989 unset oft_real_type oft_target_size
29992 if test -z "$ofc_c_type" ; then
29993 ofc_have_type=0
29996 # Get the alignment of the type
29997 if test "$ofc_have_type" = "1"; then
30001 { echo "$as_me:$LINENO: checking alignment of Fortran REAL*8" >&5
30002 echo $ECHO_N "checking alignment of Fortran REAL*8... $ECHO_C" >&6; }
30003 if test "${ompi_cv_f77_alignment_REALp8+set}" = set; then
30004 echo $ECHO_N "(cached) $ECHO_C" >&6
30005 else
30007 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
30008 # so the general rule is that if there is an _ in the function
30009 # name, then there are two trailing underscores. Otherwise,
30010 # there is only one trailing underscore. Any idea how to do
30011 # that with m4_translit?
30012 if echo align | grep _ >/dev/null 2>&1 ; then
30013 ompi_ac_align_fn=align__
30014 else
30015 ompi_ac_align_fn=align_
30017 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
30018 ompi_ac_align_fn=align_
30019 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
30020 ompi_ac_align_fn=align
30021 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
30022 ompi_ac_align_fn=align
30023 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
30024 ompi_ac_align_fn=ALIGN
30025 else
30026 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
30027 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
30028 { (exit 1); exit 1; }; }
30031 # Fortran module
30032 cat > conftestf.f <<EOF
30033 program falign
30034 external align
30035 REAL*8 w,x,y,z
30036 CHARACTER a,b,c
30037 common /foo/a,w,b,x,y,c,z
30038 call align(w,x,y,z)
30042 # C module
30043 if test -f conftest.h; then
30044 ompi_conftest_h="#include \"conftest.h\""
30045 else
30046 ompi_conftest_h=""
30048 cat > conftest.c <<EOF
30049 #include <stdio.h>
30050 #include <stdlib.h>
30051 $conftest
30053 #ifdef __cplusplus
30054 extern "C" {
30055 #endif
30056 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
30057 { unsigned long aw, ax, ay, az;
30058 FILE *f=fopen("conftestval", "w");
30059 if (!f) exit(1);
30060 aw = (unsigned long) w;
30061 ax = (unsigned long) x;
30062 ay = (unsigned long) y;
30063 az = (unsigned long) z;
30064 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
30065 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
30066 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
30067 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
30068 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
30069 else fprintf(f, "%d\n", 1);
30070 fclose(f);
30072 #ifdef __cplusplus
30074 #endif
30078 # 1 is the command
30079 # 2 is actions to do if success
30080 # 3 is actions to do if fail
30081 echo "configure:30081: $CC $CFLAGS -I. -c conftest.c" >&5
30082 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
30083 ompi_status=$?
30085 # 1 is the message
30086 # 2 is whether to put a prefix or not
30087 if test -n "1"; then
30088 echo "configure:30088: \$? = $ompi_status" >&5
30089 else
30090 echo \$? = $ompi_status >&5
30092 if test "$ompi_status" = "0"; then
30093 unset ompi_status
30095 # 1 is the command
30096 # 2 is actions to do if success
30097 # 3 is actions to do if fail
30098 echo "configure:30098: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
30099 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
30100 ompi_status=$?
30102 # 1 is the message
30103 # 2 is whether to put a prefix or not
30104 if test -n "1"; then
30105 echo "configure:30105: \$? = $ompi_status" >&5
30106 else
30107 echo \$? = $ompi_status >&5
30109 if test "$ompi_status" = "0"; then
30110 unset ompi_status
30111 happy="yes"
30112 else
30113 unset ompi_status
30114 happy="no"
30116 else
30117 unset ompi_status
30118 happy="no"
30121 if test "$happy" = "no" ; then
30122 { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*8" >&5
30123 echo "$as_me: error: Could not determine alignment of REAL*8" >&2;}
30124 { (exit 1); exit 1; }; }
30127 if test "$cross_compiling" = "yes"; then
30128 { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*8 when cross-compiling" >&5
30129 echo "$as_me: error: Can not determine alignment of REAL*8 when cross-compiling" >&2;}
30130 { (exit 1); exit 1; }; }
30131 else
30133 # 1 is the command
30134 # 2 is actions to do if success
30135 # 3 is actions to do if fail
30136 echo "configure:30136: ./conftest" >&5
30137 ./conftest 1>&5 2>&1
30138 ompi_status=$?
30140 # 1 is the message
30141 # 2 is whether to put a prefix or not
30142 if test -n "1"; then
30143 echo "configure:30143: \$? = $ompi_status" >&5
30144 else
30145 echo \$? = $ompi_status >&5
30147 if test "$ompi_status" = "0"; then
30148 unset ompi_status
30149 ompi_cv_f77_alignment_REALp8=`cat conftestval`
30150 else
30151 unset ompi_status
30152 { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*8" >&5
30153 echo "$as_me: error: Could not determine alignment of REAL*8" >&2;}
30154 { (exit 1); exit 1; }; }
30159 unset happy ompi_conf
30160 rm -f conftest*
30162 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp8" >&5
30163 echo "${ECHO_T}$ompi_cv_f77_alignment_REALp8" >&6; }
30165 ofc_type_alignment=$ompi_cv_f77_alignment_REALp8
30171 # We always need these defines -- even if we don't have a given type,
30172 # there are some places in the code where we have to have *something*.
30174 cat >>confdefs.h <<_ACEOF
30175 #define OMPI_HAVE_FORTRAN_REAL8 $ofc_have_type
30176 _ACEOF
30179 cat >>confdefs.h <<_ACEOF
30180 #define OMPI_SIZEOF_FORTRAN_REAL8 $ofc_type_size
30181 _ACEOF
30184 cat >>confdefs.h <<_ACEOF
30185 #define OMPI_ALIGNMENT_FORTRAN_REAL8 $ofc_type_alignment
30186 _ACEOF
30188 if test "float, double, long double" != ""; then
30190 cat >>confdefs.h <<_ACEOF
30191 #define ompi_fortran_real8_t $ofc_c_type
30192 _ACEOF
30196 # Save some in shell variables for later use (e.g., need
30197 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
30198 OMPI_FORTRAN_REAL8_C_TYPE=$ofc_c_type
30199 OMPI_HAVE_FORTRAN_REAL8=$ofc_have_type
30200 OMPI_SIZEOF_FORTRAN_REAL8=$ofc_type_size
30201 OMPI_ALIGNMENT_FORTRAN_REAL8=$ofc_type_alignment
30203 # Clean up
30204 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
30205 unset ofc_expected_size
30208 ofc_expected_size=16
30209 ofc_have_type=0
30210 ofc_type_size=$ac_cv_sizeof_int
30211 ofc_type_alignment=$ac_cv_sizeof_int
30212 ofc_c_type=ompi_fortran_bogus_type_t
30214 # Only check if we actually want the F77 bindings / have a F77
30215 # compiler. This allows us to call this macro, even if there is
30216 # no F77 compiler. If we have no f77 compiler, then just set a
30217 # bunch of defaults.
30218 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
30222 # Determine FORTRAN datatype size.
30223 # First arg is type, 2nd arg is config var to define
30224 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*16" >&5
30225 echo $ECHO_N "checking if Fortran 77 compiler supports REAL*16... $ECHO_C" >&6; }
30226 if test "${ompi_cv_f77_have_REALp16+set}" = set; then
30227 echo $ECHO_N "(cached) $ECHO_C" >&6
30228 else
30229 ac_ext=f
30230 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30231 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30232 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30234 cat >conftest.$ac_ext <<_ACEOF
30236 program main
30237 REAL*16 bogus_variable
30239 _ACEOF
30240 rm -f conftest.$ac_objext
30241 if { (ac_try="$ac_compile"
30242 case "(($ac_try" in
30243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30244 *) ac_try_echo=$ac_try;;
30245 esac
30246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30247 (eval "$ac_compile") 2>conftest.er1
30248 ac_status=$?
30249 grep -v '^ *+' conftest.er1 >conftest.err
30250 rm -f conftest.er1
30251 cat conftest.err >&5
30252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253 (exit $ac_status); } && {
30254 test -z "$ac_f77_werror_flag" ||
30255 test ! -s conftest.err
30256 } && test -s conftest.$ac_objext; then
30257 ompi_cv_f77_have_REALp16="yes"
30258 else
30259 echo "$as_me: failed program was:" >&5
30260 sed 's/^/| /' conftest.$ac_ext >&5
30262 ompi_cv_f77_have_REALp16="no"
30265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30266 ac_ext=c
30267 ac_cpp='$CPP $CPPFLAGS'
30268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30273 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp16" >&5
30274 echo "${ECHO_T}$ompi_cv_f77_have_REALp16" >&6; }
30276 if test "$ompi_cv_f77_have_REALp16" = "yes"; then
30277 ofc_have_type=1
30278 else
30279 ofc_have_type=0
30283 else
30284 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*16" >&5
30285 echo $ECHO_N "checking if Fortran 77 compiler supports REAL*16... $ECHO_C" >&6; }
30286 { echo "$as_me:$LINENO: result: skipped" >&5
30287 echo "${ECHO_T}skipped" >&6; }
30290 if test "$ofc_have_type" = "1"; then
30291 # What is the size of this type?
30293 # NOTE: Some Fortran compilers actually will return that a
30294 # type exists even if it doesn't support it -- the compiler
30295 # will automatically convert the unsupported type to a type
30296 # that it *does* support. For example, if you try to use
30297 # INTEGER*16 and the compiler doesn't support it, it may well
30298 # automatically convert it to INTEGER*8 for you (!). So we
30299 # have to check the actual size of the type once we determine
30300 # that the compiler doesn't error if we try to use it
30301 # (i.e,. the compiler *might* support that type). If the size
30302 # doesn't match the expected size, then the compiler doesn't
30303 # really support it.
30307 { echo "$as_me:$LINENO: checking size of Fortran 77 REAL*16" >&5
30308 echo $ECHO_N "checking size of Fortran 77 REAL*16... $ECHO_C" >&6; }
30309 if test "${ompi_cv_f77_sizeof_REALp16+set}" = set; then
30310 echo $ECHO_N "(cached) $ECHO_C" >&6
30311 else
30313 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
30314 # so the general rule is that if there is an _ in the function
30315 # name, then there are two trailing underscores. Otherwise,
30316 # there is only one trailing underscore. Any idea how to do
30317 # that with m4_translit?
30318 if echo size | grep _ >/dev/null 2>&1 ; then
30319 ompi_ac_size_fn=size__
30320 else
30321 ompi_ac_size_fn=size_
30323 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
30324 ompi_ac_size_fn=size_
30325 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
30326 ompi_ac_size_fn=size
30327 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
30328 ompi_ac_size_fn=size
30329 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
30330 ompi_ac_size_fn=SIZE
30331 else
30332 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
30333 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
30334 { (exit 1); exit 1; }; }
30337 # Fortran module
30338 cat > conftestf.f <<EOF
30339 program fsize
30340 external size
30341 REAL*16 x(2)
30342 call size(x(1),x(2))
30346 # C module
30347 if test -f conftest.h; then
30348 ompi_conftest_h="#include \"conftest.h\""
30349 else
30350 ompi_conftest_h=""
30352 cat > conftest.c <<EOF
30353 #include <stdio.h>
30354 #include <stdlib.h>
30355 $ompi_conftest_h
30357 #ifdef __cplusplus
30358 extern "C" {
30359 #endif
30360 void $ompi_ac_size_fn(char *a, char *b)
30362 int diff = (int) (b - a);
30363 FILE *f=fopen("conftestval", "w");
30364 if (!f) exit(1);
30365 fprintf(f, "%d\n", diff);
30366 fclose(f);
30368 #ifdef __cplusplus
30370 #endif
30374 # 1 is the command
30375 # 2 is actions to do if success
30376 # 3 is actions to do if fail
30377 echo "configure:30377: $CC $CFLAGS -I. -c conftest.c" >&5
30378 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
30379 ompi_status=$?
30381 # 1 is the message
30382 # 2 is whether to put a prefix or not
30383 if test -n "1"; then
30384 echo "configure:30384: \$? = $ompi_status" >&5
30385 else
30386 echo \$? = $ompi_status >&5
30388 if test "$ompi_status" = "0"; then
30389 unset ompi_status
30391 # 1 is the command
30392 # 2 is actions to do if success
30393 # 3 is actions to do if fail
30394 echo "configure:30394: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
30395 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
30396 ompi_status=$?
30398 # 1 is the message
30399 # 2 is whether to put a prefix or not
30400 if test -n "1"; then
30401 echo "configure:30401: \$? = $ompi_status" >&5
30402 else
30403 echo \$? = $ompi_status >&5
30405 if test "$ompi_status" = "0"; then
30406 unset ompi_status
30407 happy="yes"
30408 else
30409 unset ompi_status
30410 happy="no"
30412 else
30413 unset ompi_status
30414 happy="no"
30417 if test "$happy" = "no" ; then
30418 { { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5
30419 echo "$as_me: error: Could not determine size of REAL*16" >&2;}
30420 { (exit 1); exit 1; }; }
30423 if test "$cross_compiling" = "yes"; then
30424 { { echo "$as_me:$LINENO: error: Can not determine size of REAL*16 when cross-compiling" >&5
30425 echo "$as_me: error: Can not determine size of REAL*16 when cross-compiling" >&2;}
30426 { (exit 1); exit 1; }; }
30427 else
30429 # 1 is the command
30430 # 2 is actions to do if success
30431 # 3 is actions to do if fail
30432 echo "configure:30432: ./conftest" >&5
30433 ./conftest 1>&5 2>&1
30434 ompi_status=$?
30436 # 1 is the message
30437 # 2 is whether to put a prefix or not
30438 if test -n "1"; then
30439 echo "configure:30439: \$? = $ompi_status" >&5
30440 else
30441 echo \$? = $ompi_status >&5
30443 if test "$ompi_status" = "0"; then
30444 unset ompi_status
30445 if test -f conftestval; then
30446 ompi_cv_f77_sizeof_REALp16=`cat conftestval`
30447 else
30449 # 1 is the message
30450 # 2 is whether to put a prefix or not
30451 if test -n "1"; then
30452 echo "configure:30452: conftestval not found." >&5
30453 else
30454 echo conftestval not found. >&5
30456 { { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5
30457 echo "$as_me: error: Could not determine size of REAL*16" >&2;}
30458 { (exit 1); exit 1; }; }
30461 else
30462 unset ompi_status
30463 { { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5
30464 echo "$as_me: error: Could not determine size of REAL*16" >&2;}
30465 { (exit 1); exit 1; }; }
30470 unset happy ompi_conftest_h
30471 rm -f conftest*
30473 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp16" >&5
30474 echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp16" >&6; }
30476 ofc_type_size=$ompi_cv_f77_sizeof_REALp16
30478 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
30479 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*16 does not have expected size!" >&5
30480 echo "$as_me: WARNING: *** Fortran 77 REAL*16 does not have expected size!" >&2;}
30481 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
30482 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
30483 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*16" >&5
30484 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*16" >&2;}
30485 ofc_have_type=0
30486 else
30487 # Look for a corresponding C type (will abort by itself if the
30488 # type isn't found and we need it)
30489 ofc_c_type=
30493 oft_abort_on_fail="no"
30494 oft_target_size="$ofc_type_size"
30496 { echo "$as_me:$LINENO: checking for C type corresponding to REAL*16" >&5
30497 echo $ECHO_N "checking for C type corresponding to REAL*16... $ECHO_C" >&6; }
30498 if test "${ompi_cv_find_type_REALp16+set}" = set; then
30499 echo $ECHO_N "(cached) $ECHO_C" >&6
30500 else
30501 # Loop over all the types handed to us
30502 oft_real_type=
30503 if test "$oft_target_size" != ""; then
30504 if test -z "$oft_real_type"; then
30505 if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
30506 oft_real_type="float"
30509 if test -z "$oft_real_type"; then
30510 if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
30511 oft_real_type="double"
30514 if test -z "$oft_real_type"; then
30515 if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
30516 oft_real_type="long double"
30522 if test -z "$oft_real_type"; then
30523 ompi_cv_find_type_REALp16="not found"
30524 else
30525 ompi_cv_find_type_REALp16="$oft_real_type"
30529 { echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp16" >&5
30530 echo "${ECHO_T}$ompi_cv_find_type_REALp16" >&6; }
30532 if test "$ompi_cv_find_type_REALp16" == "not found"; then
30533 { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
30534 echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
30535 if test "$oft_abort_on_fail" != "no"; then
30536 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
30537 echo "$as_me: error: Cannot continue" >&2;}
30538 { (exit 1); exit 1; }; }
30544 if test "$ompi_cv_find_type_REALp16" = "not found" ; then
30545 ofc_c_type=
30546 else
30547 ofc_c_type=$ompi_cv_find_type_REALp16
30550 unset oft_real_type oft_target_size
30553 if test -z "$ofc_c_type" ; then
30554 ofc_have_type=0
30557 # Get the alignment of the type
30558 if test "$ofc_have_type" = "1"; then
30562 { echo "$as_me:$LINENO: checking alignment of Fortran REAL*16" >&5
30563 echo $ECHO_N "checking alignment of Fortran REAL*16... $ECHO_C" >&6; }
30564 if test "${ompi_cv_f77_alignment_REALp16+set}" = set; then
30565 echo $ECHO_N "(cached) $ECHO_C" >&6
30566 else
30568 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
30569 # so the general rule is that if there is an _ in the function
30570 # name, then there are two trailing underscores. Otherwise,
30571 # there is only one trailing underscore. Any idea how to do
30572 # that with m4_translit?
30573 if echo align | grep _ >/dev/null 2>&1 ; then
30574 ompi_ac_align_fn=align__
30575 else
30576 ompi_ac_align_fn=align_
30578 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
30579 ompi_ac_align_fn=align_
30580 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
30581 ompi_ac_align_fn=align
30582 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
30583 ompi_ac_align_fn=align
30584 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
30585 ompi_ac_align_fn=ALIGN
30586 else
30587 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
30588 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
30589 { (exit 1); exit 1; }; }
30592 # Fortran module
30593 cat > conftestf.f <<EOF
30594 program falign
30595 external align
30596 REAL*16 w,x,y,z
30597 CHARACTER a,b,c
30598 common /foo/a,w,b,x,y,c,z
30599 call align(w,x,y,z)
30603 # C module
30604 if test -f conftest.h; then
30605 ompi_conftest_h="#include \"conftest.h\""
30606 else
30607 ompi_conftest_h=""
30609 cat > conftest.c <<EOF
30610 #include <stdio.h>
30611 #include <stdlib.h>
30612 $conftest
30614 #ifdef __cplusplus
30615 extern "C" {
30616 #endif
30617 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
30618 { unsigned long aw, ax, ay, az;
30619 FILE *f=fopen("conftestval", "w");
30620 if (!f) exit(1);
30621 aw = (unsigned long) w;
30622 ax = (unsigned long) x;
30623 ay = (unsigned long) y;
30624 az = (unsigned long) z;
30625 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
30626 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
30627 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
30628 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
30629 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
30630 else fprintf(f, "%d\n", 1);
30631 fclose(f);
30633 #ifdef __cplusplus
30635 #endif
30639 # 1 is the command
30640 # 2 is actions to do if success
30641 # 3 is actions to do if fail
30642 echo "configure:30642: $CC $CFLAGS -I. -c conftest.c" >&5
30643 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
30644 ompi_status=$?
30646 # 1 is the message
30647 # 2 is whether to put a prefix or not
30648 if test -n "1"; then
30649 echo "configure:30649: \$? = $ompi_status" >&5
30650 else
30651 echo \$? = $ompi_status >&5
30653 if test "$ompi_status" = "0"; then
30654 unset ompi_status
30656 # 1 is the command
30657 # 2 is actions to do if success
30658 # 3 is actions to do if fail
30659 echo "configure:30659: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
30660 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
30661 ompi_status=$?
30663 # 1 is the message
30664 # 2 is whether to put a prefix or not
30665 if test -n "1"; then
30666 echo "configure:30666: \$? = $ompi_status" >&5
30667 else
30668 echo \$? = $ompi_status >&5
30670 if test "$ompi_status" = "0"; then
30671 unset ompi_status
30672 happy="yes"
30673 else
30674 unset ompi_status
30675 happy="no"
30677 else
30678 unset ompi_status
30679 happy="no"
30682 if test "$happy" = "no" ; then
30683 { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*16" >&5
30684 echo "$as_me: error: Could not determine alignment of REAL*16" >&2;}
30685 { (exit 1); exit 1; }; }
30688 if test "$cross_compiling" = "yes"; then
30689 { { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*16 when cross-compiling" >&5
30690 echo "$as_me: error: Can not determine alignment of REAL*16 when cross-compiling" >&2;}
30691 { (exit 1); exit 1; }; }
30692 else
30694 # 1 is the command
30695 # 2 is actions to do if success
30696 # 3 is actions to do if fail
30697 echo "configure:30697: ./conftest" >&5
30698 ./conftest 1>&5 2>&1
30699 ompi_status=$?
30701 # 1 is the message
30702 # 2 is whether to put a prefix or not
30703 if test -n "1"; then
30704 echo "configure:30704: \$? = $ompi_status" >&5
30705 else
30706 echo \$? = $ompi_status >&5
30708 if test "$ompi_status" = "0"; then
30709 unset ompi_status
30710 ompi_cv_f77_alignment_REALp16=`cat conftestval`
30711 else
30712 unset ompi_status
30713 { { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*16" >&5
30714 echo "$as_me: error: Could not determine alignment of REAL*16" >&2;}
30715 { (exit 1); exit 1; }; }
30720 unset happy ompi_conf
30721 rm -f conftest*
30723 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp16" >&5
30724 echo "${ECHO_T}$ompi_cv_f77_alignment_REALp16" >&6; }
30726 ofc_type_alignment=$ompi_cv_f77_alignment_REALp16
30732 # We always need these defines -- even if we don't have a given type,
30733 # there are some places in the code where we have to have *something*.
30735 cat >>confdefs.h <<_ACEOF
30736 #define OMPI_HAVE_FORTRAN_REAL16 $ofc_have_type
30737 _ACEOF
30740 cat >>confdefs.h <<_ACEOF
30741 #define OMPI_SIZEOF_FORTRAN_REAL16 $ofc_type_size
30742 _ACEOF
30745 cat >>confdefs.h <<_ACEOF
30746 #define OMPI_ALIGNMENT_FORTRAN_REAL16 $ofc_type_alignment
30747 _ACEOF
30749 if test "float, double, long double" != ""; then
30751 cat >>confdefs.h <<_ACEOF
30752 #define ompi_fortran_real16_t $ofc_c_type
30753 _ACEOF
30757 # Save some in shell variables for later use (e.g., need
30758 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
30759 OMPI_FORTRAN_REAL16_C_TYPE=$ofc_c_type
30760 OMPI_HAVE_FORTRAN_REAL16=$ofc_have_type
30761 OMPI_SIZEOF_FORTRAN_REAL16=$ofc_type_size
30762 OMPI_ALIGNMENT_FORTRAN_REAL16=$ofc_type_alignment
30764 # Clean up
30765 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
30766 unset ofc_expected_size
30769 ofc_expected_size=-1
30770 ofc_have_type=0
30771 ofc_type_size=$ac_cv_sizeof_int
30772 ofc_type_alignment=$ac_cv_sizeof_int
30773 ofc_c_type=ompi_fortran_bogus_type_t
30775 # Only check if we actually want the F77 bindings / have a F77
30776 # compiler. This allows us to call this macro, even if there is
30777 # no F77 compiler. If we have no f77 compiler, then just set a
30778 # bunch of defaults.
30779 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
30783 # Determine FORTRAN datatype size.
30784 # First arg is type, 2nd arg is config var to define
30785 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports DOUBLE PRECISION" >&5
30786 echo $ECHO_N "checking if Fortran 77 compiler supports DOUBLE PRECISION... $ECHO_C" >&6; }
30787 if test "${ompi_cv_f77_have_DOUBLE_PRECISION+set}" = set; then
30788 echo $ECHO_N "(cached) $ECHO_C" >&6
30789 else
30790 ac_ext=f
30791 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30792 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30793 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30795 cat >conftest.$ac_ext <<_ACEOF
30797 program main
30798 DOUBLE PRECISION bogus_variable
30800 _ACEOF
30801 rm -f conftest.$ac_objext
30802 if { (ac_try="$ac_compile"
30803 case "(($ac_try" in
30804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30805 *) ac_try_echo=$ac_try;;
30806 esac
30807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30808 (eval "$ac_compile") 2>conftest.er1
30809 ac_status=$?
30810 grep -v '^ *+' conftest.er1 >conftest.err
30811 rm -f conftest.er1
30812 cat conftest.err >&5
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); } && {
30815 test -z "$ac_f77_werror_flag" ||
30816 test ! -s conftest.err
30817 } && test -s conftest.$ac_objext; then
30818 ompi_cv_f77_have_DOUBLE_PRECISION="yes"
30819 else
30820 echo "$as_me: failed program was:" >&5
30821 sed 's/^/| /' conftest.$ac_ext >&5
30823 ompi_cv_f77_have_DOUBLE_PRECISION="no"
30826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30827 ac_ext=c
30828 ac_cpp='$CPP $CPPFLAGS'
30829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30834 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_DOUBLE_PRECISION" >&5
30835 echo "${ECHO_T}$ompi_cv_f77_have_DOUBLE_PRECISION" >&6; }
30837 if test "$ompi_cv_f77_have_DOUBLE_PRECISION" = "yes"; then
30838 ofc_have_type=1
30839 else
30840 ofc_have_type=0
30844 else
30845 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports DOUBLE PRECISION" >&5
30846 echo $ECHO_N "checking if Fortran 77 compiler supports DOUBLE PRECISION... $ECHO_C" >&6; }
30847 { echo "$as_me:$LINENO: result: skipped" >&5
30848 echo "${ECHO_T}skipped" >&6; }
30851 if test "$ofc_have_type" = "1"; then
30852 # What is the size of this type?
30854 # NOTE: Some Fortran compilers actually will return that a
30855 # type exists even if it doesn't support it -- the compiler
30856 # will automatically convert the unsupported type to a type
30857 # that it *does* support. For example, if you try to use
30858 # INTEGER*16 and the compiler doesn't support it, it may well
30859 # automatically convert it to INTEGER*8 for you (!). So we
30860 # have to check the actual size of the type once we determine
30861 # that the compiler doesn't error if we try to use it
30862 # (i.e,. the compiler *might* support that type). If the size
30863 # doesn't match the expected size, then the compiler doesn't
30864 # really support it.
30868 { echo "$as_me:$LINENO: checking size of Fortran 77 DOUBLE PRECISION" >&5
30869 echo $ECHO_N "checking size of Fortran 77 DOUBLE PRECISION... $ECHO_C" >&6; }
30870 if test "${ompi_cv_f77_sizeof_DOUBLE_PRECISION+set}" = set; then
30871 echo $ECHO_N "(cached) $ECHO_C" >&6
30872 else
30874 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
30875 # so the general rule is that if there is an _ in the function
30876 # name, then there are two trailing underscores. Otherwise,
30877 # there is only one trailing underscore. Any idea how to do
30878 # that with m4_translit?
30879 if echo size | grep _ >/dev/null 2>&1 ; then
30880 ompi_ac_size_fn=size__
30881 else
30882 ompi_ac_size_fn=size_
30884 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
30885 ompi_ac_size_fn=size_
30886 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
30887 ompi_ac_size_fn=size
30888 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
30889 ompi_ac_size_fn=size
30890 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
30891 ompi_ac_size_fn=SIZE
30892 else
30893 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
30894 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
30895 { (exit 1); exit 1; }; }
30898 # Fortran module
30899 cat > conftestf.f <<EOF
30900 program fsize
30901 external size
30902 DOUBLE PRECISION x(2)
30903 call size(x(1),x(2))
30907 # C module
30908 if test -f conftest.h; then
30909 ompi_conftest_h="#include \"conftest.h\""
30910 else
30911 ompi_conftest_h=""
30913 cat > conftest.c <<EOF
30914 #include <stdio.h>
30915 #include <stdlib.h>
30916 $ompi_conftest_h
30918 #ifdef __cplusplus
30919 extern "C" {
30920 #endif
30921 void $ompi_ac_size_fn(char *a, char *b)
30923 int diff = (int) (b - a);
30924 FILE *f=fopen("conftestval", "w");
30925 if (!f) exit(1);
30926 fprintf(f, "%d\n", diff);
30927 fclose(f);
30929 #ifdef __cplusplus
30931 #endif
30935 # 1 is the command
30936 # 2 is actions to do if success
30937 # 3 is actions to do if fail
30938 echo "configure:30938: $CC $CFLAGS -I. -c conftest.c" >&5
30939 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
30940 ompi_status=$?
30942 # 1 is the message
30943 # 2 is whether to put a prefix or not
30944 if test -n "1"; then
30945 echo "configure:30945: \$? = $ompi_status" >&5
30946 else
30947 echo \$? = $ompi_status >&5
30949 if test "$ompi_status" = "0"; then
30950 unset ompi_status
30952 # 1 is the command
30953 # 2 is actions to do if success
30954 # 3 is actions to do if fail
30955 echo "configure:30955: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
30956 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
30957 ompi_status=$?
30959 # 1 is the message
30960 # 2 is whether to put a prefix or not
30961 if test -n "1"; then
30962 echo "configure:30962: \$? = $ompi_status" >&5
30963 else
30964 echo \$? = $ompi_status >&5
30966 if test "$ompi_status" = "0"; then
30967 unset ompi_status
30968 happy="yes"
30969 else
30970 unset ompi_status
30971 happy="no"
30973 else
30974 unset ompi_status
30975 happy="no"
30978 if test "$happy" = "no" ; then
30979 { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5
30980 echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;}
30981 { (exit 1); exit 1; }; }
30984 if test "$cross_compiling" = "yes"; then
30985 { { echo "$as_me:$LINENO: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&5
30986 echo "$as_me: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&2;}
30987 { (exit 1); exit 1; }; }
30988 else
30990 # 1 is the command
30991 # 2 is actions to do if success
30992 # 3 is actions to do if fail
30993 echo "configure:30993: ./conftest" >&5
30994 ./conftest 1>&5 2>&1
30995 ompi_status=$?
30997 # 1 is the message
30998 # 2 is whether to put a prefix or not
30999 if test -n "1"; then
31000 echo "configure:31000: \$? = $ompi_status" >&5
31001 else
31002 echo \$? = $ompi_status >&5
31004 if test "$ompi_status" = "0"; then
31005 unset ompi_status
31006 if test -f conftestval; then
31007 ompi_cv_f77_sizeof_DOUBLE_PRECISION=`cat conftestval`
31008 else
31010 # 1 is the message
31011 # 2 is whether to put a prefix or not
31012 if test -n "1"; then
31013 echo "configure:31013: conftestval not found." >&5
31014 else
31015 echo conftestval not found. >&5
31017 { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5
31018 echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;}
31019 { (exit 1); exit 1; }; }
31022 else
31023 unset ompi_status
31024 { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5
31025 echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;}
31026 { (exit 1); exit 1; }; }
31031 unset happy ompi_conftest_h
31032 rm -f conftest*
31034 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_DOUBLE_PRECISION" >&5
31035 echo "${ECHO_T}$ompi_cv_f77_sizeof_DOUBLE_PRECISION" >&6; }
31037 ofc_type_size=$ompi_cv_f77_sizeof_DOUBLE_PRECISION
31039 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
31040 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 DOUBLE PRECISION does not have expected size!" >&5
31041 echo "$as_me: WARNING: *** Fortran 77 DOUBLE PRECISION does not have expected size!" >&2;}
31042 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
31043 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
31044 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 DOUBLE PRECISION" >&5
31045 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 DOUBLE PRECISION" >&2;}
31046 ofc_have_type=0
31047 else
31048 # Look for a corresponding C type (will abort by itself if the
31049 # type isn't found and we need it)
31050 ofc_c_type=
31054 oft_abort_on_fail="yes"
31055 oft_target_size="$ofc_type_size"
31057 { echo "$as_me:$LINENO: checking for C type corresponding to DOUBLE PRECISION" >&5
31058 echo $ECHO_N "checking for C type corresponding to DOUBLE PRECISION... $ECHO_C" >&6; }
31059 if test "${ompi_cv_find_type_DOUBLE_PRECISION+set}" = set; then
31060 echo $ECHO_N "(cached) $ECHO_C" >&6
31061 else
31062 # Loop over all the types handed to us
31063 oft_real_type=
31064 if test "$oft_target_size" != ""; then
31065 if test -z "$oft_real_type"; then
31066 if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
31067 oft_real_type="float"
31070 if test -z "$oft_real_type"; then
31071 if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
31072 oft_real_type="double"
31075 if test -z "$oft_real_type"; then
31076 if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
31077 oft_real_type="long double"
31083 if test -z "$oft_real_type"; then
31084 ompi_cv_find_type_DOUBLE_PRECISION="not found"
31085 else
31086 ompi_cv_find_type_DOUBLE_PRECISION="$oft_real_type"
31090 { echo "$as_me:$LINENO: result: $ompi_cv_find_type_DOUBLE_PRECISION" >&5
31091 echo "${ECHO_T}$ompi_cv_find_type_DOUBLE_PRECISION" >&6; }
31093 if test "$ompi_cv_find_type_DOUBLE_PRECISION" == "not found"; then
31094 { echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
31095 echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
31096 if test "$oft_abort_on_fail" != "no"; then
31097 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
31098 echo "$as_me: error: Cannot continue" >&2;}
31099 { (exit 1); exit 1; }; }
31105 if test "$ompi_cv_find_type_DOUBLE_PRECISION" = "not found" ; then
31106 ofc_c_type=
31107 else
31108 ofc_c_type=$ompi_cv_find_type_DOUBLE_PRECISION
31111 unset oft_real_type oft_target_size
31114 if test -z "$ofc_c_type" ; then
31115 ofc_have_type=0
31118 # Get the alignment of the type
31119 if test "$ofc_have_type" = "1"; then
31123 { echo "$as_me:$LINENO: checking alignment of Fortran DOUBLE PRECISION" >&5
31124 echo $ECHO_N "checking alignment of Fortran DOUBLE PRECISION... $ECHO_C" >&6; }
31125 if test "${ompi_cv_f77_alignment_DOUBLE_PRECISION+set}" = set; then
31126 echo $ECHO_N "(cached) $ECHO_C" >&6
31127 else
31129 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
31130 # so the general rule is that if there is an _ in the function
31131 # name, then there are two trailing underscores. Otherwise,
31132 # there is only one trailing underscore. Any idea how to do
31133 # that with m4_translit?
31134 if echo align | grep _ >/dev/null 2>&1 ; then
31135 ompi_ac_align_fn=align__
31136 else
31137 ompi_ac_align_fn=align_
31139 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
31140 ompi_ac_align_fn=align_
31141 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
31142 ompi_ac_align_fn=align
31143 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
31144 ompi_ac_align_fn=align
31145 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
31146 ompi_ac_align_fn=ALIGN
31147 else
31148 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
31149 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
31150 { (exit 1); exit 1; }; }
31153 # Fortran module
31154 cat > conftestf.f <<EOF
31155 program falign
31156 external align
31157 DOUBLE PRECISION w,x,y,z
31158 CHARACTER a,b,c
31159 common /foo/a,w,b,x,y,c,z
31160 call align(w,x,y,z)
31164 # C module
31165 if test -f conftest.h; then
31166 ompi_conftest_h="#include \"conftest.h\""
31167 else
31168 ompi_conftest_h=""
31170 cat > conftest.c <<EOF
31171 #include <stdio.h>
31172 #include <stdlib.h>
31173 $conftest
31175 #ifdef __cplusplus
31176 extern "C" {
31177 #endif
31178 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
31179 { unsigned long aw, ax, ay, az;
31180 FILE *f=fopen("conftestval", "w");
31181 if (!f) exit(1);
31182 aw = (unsigned long) w;
31183 ax = (unsigned long) x;
31184 ay = (unsigned long) y;
31185 az = (unsigned long) z;
31186 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
31187 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
31188 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
31189 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
31190 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
31191 else fprintf(f, "%d\n", 1);
31192 fclose(f);
31194 #ifdef __cplusplus
31196 #endif
31200 # 1 is the command
31201 # 2 is actions to do if success
31202 # 3 is actions to do if fail
31203 echo "configure:31203: $CC $CFLAGS -I. -c conftest.c" >&5
31204 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
31205 ompi_status=$?
31207 # 1 is the message
31208 # 2 is whether to put a prefix or not
31209 if test -n "1"; then
31210 echo "configure:31210: \$? = $ompi_status" >&5
31211 else
31212 echo \$? = $ompi_status >&5
31214 if test "$ompi_status" = "0"; then
31215 unset ompi_status
31217 # 1 is the command
31218 # 2 is actions to do if success
31219 # 3 is actions to do if fail
31220 echo "configure:31220: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
31221 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
31222 ompi_status=$?
31224 # 1 is the message
31225 # 2 is whether to put a prefix or not
31226 if test -n "1"; then
31227 echo "configure:31227: \$? = $ompi_status" >&5
31228 else
31229 echo \$? = $ompi_status >&5
31231 if test "$ompi_status" = "0"; then
31232 unset ompi_status
31233 happy="yes"
31234 else
31235 unset ompi_status
31236 happy="no"
31238 else
31239 unset ompi_status
31240 happy="no"
31243 if test "$happy" = "no" ; then
31244 { { echo "$as_me:$LINENO: error: Could not determine alignment of DOUBLE PRECISION" >&5
31245 echo "$as_me: error: Could not determine alignment of DOUBLE PRECISION" >&2;}
31246 { (exit 1); exit 1; }; }
31249 if test "$cross_compiling" = "yes"; then
31250 { { echo "$as_me:$LINENO: error: Can not determine alignment of DOUBLE PRECISION when cross-compiling" >&5
31251 echo "$as_me: error: Can not determine alignment of DOUBLE PRECISION when cross-compiling" >&2;}
31252 { (exit 1); exit 1; }; }
31253 else
31255 # 1 is the command
31256 # 2 is actions to do if success
31257 # 3 is actions to do if fail
31258 echo "configure:31258: ./conftest" >&5
31259 ./conftest 1>&5 2>&1
31260 ompi_status=$?
31262 # 1 is the message
31263 # 2 is whether to put a prefix or not
31264 if test -n "1"; then
31265 echo "configure:31265: \$? = $ompi_status" >&5
31266 else
31267 echo \$? = $ompi_status >&5
31269 if test "$ompi_status" = "0"; then
31270 unset ompi_status
31271 ompi_cv_f77_alignment_DOUBLE_PRECISION=`cat conftestval`
31272 else
31273 unset ompi_status
31274 { { echo "$as_me:$LINENO: error: Could not determine alignment of DOUBLE PRECISION" >&5
31275 echo "$as_me: error: Could not determine alignment of DOUBLE PRECISION" >&2;}
31276 { (exit 1); exit 1; }; }
31281 unset happy ompi_conf
31282 rm -f conftest*
31284 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_DOUBLE_PRECISION" >&5
31285 echo "${ECHO_T}$ompi_cv_f77_alignment_DOUBLE_PRECISION" >&6; }
31287 ofc_type_alignment=$ompi_cv_f77_alignment_DOUBLE_PRECISION
31293 # We always need these defines -- even if we don't have a given type,
31294 # there are some places in the code where we have to have *something*.
31296 cat >>confdefs.h <<_ACEOF
31297 #define OMPI_HAVE_FORTRAN_DOUBLE_PRECISION $ofc_have_type
31298 _ACEOF
31301 cat >>confdefs.h <<_ACEOF
31302 #define OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION $ofc_type_size
31303 _ACEOF
31306 cat >>confdefs.h <<_ACEOF
31307 #define OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION $ofc_type_alignment
31308 _ACEOF
31310 if test "float, double, long double" != ""; then
31312 cat >>confdefs.h <<_ACEOF
31313 #define ompi_fortran_double_precision_t $ofc_c_type
31314 _ACEOF
31318 # Save some in shell variables for later use (e.g., need
31319 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
31320 OMPI_FORTRAN_DOUBLE_PRECISION_C_TYPE=$ofc_c_type
31321 OMPI_HAVE_FORTRAN_DOUBLE_PRECISION=$ofc_have_type
31322 OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION=$ofc_type_size
31323 OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION=$ofc_type_alignment
31325 # Clean up
31326 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
31327 unset ofc_expected_size
31331 ofc_expected_size=-1
31332 ofc_have_type=0
31333 ofc_type_size=$ac_cv_sizeof_int
31334 ofc_type_alignment=$ac_cv_sizeof_int
31335 ofc_c_type=ompi_fortran_bogus_type_t
31337 # Only check if we actually want the F77 bindings / have a F77
31338 # compiler. This allows us to call this macro, even if there is
31339 # no F77 compiler. If we have no f77 compiler, then just set a
31340 # bunch of defaults.
31341 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
31345 # Determine FORTRAN datatype size.
31346 # First arg is type, 2nd arg is config var to define
31347 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX" >&5
31348 echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX... $ECHO_C" >&6; }
31349 if test "${ompi_cv_f77_have_COMPLEX+set}" = set; then
31350 echo $ECHO_N "(cached) $ECHO_C" >&6
31351 else
31352 ac_ext=f
31353 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31354 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31355 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31357 cat >conftest.$ac_ext <<_ACEOF
31359 program main
31360 COMPLEX bogus_variable
31362 _ACEOF
31363 rm -f conftest.$ac_objext
31364 if { (ac_try="$ac_compile"
31365 case "(($ac_try" in
31366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367 *) ac_try_echo=$ac_try;;
31368 esac
31369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370 (eval "$ac_compile") 2>conftest.er1
31371 ac_status=$?
31372 grep -v '^ *+' conftest.er1 >conftest.err
31373 rm -f conftest.er1
31374 cat conftest.err >&5
31375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376 (exit $ac_status); } && {
31377 test -z "$ac_f77_werror_flag" ||
31378 test ! -s conftest.err
31379 } && test -s conftest.$ac_objext; then
31380 ompi_cv_f77_have_COMPLEX="yes"
31381 else
31382 echo "$as_me: failed program was:" >&5
31383 sed 's/^/| /' conftest.$ac_ext >&5
31385 ompi_cv_f77_have_COMPLEX="no"
31388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31389 ac_ext=c
31390 ac_cpp='$CPP $CPPFLAGS'
31391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31396 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEX" >&5
31397 echo "${ECHO_T}$ompi_cv_f77_have_COMPLEX" >&6; }
31399 if test "$ompi_cv_f77_have_COMPLEX" = "yes"; then
31400 ofc_have_type=1
31401 else
31402 ofc_have_type=0
31406 else
31407 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX" >&5
31408 echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX... $ECHO_C" >&6; }
31409 { echo "$as_me:$LINENO: result: skipped" >&5
31410 echo "${ECHO_T}skipped" >&6; }
31413 if test "$ofc_have_type" = "1"; then
31414 # What is the size of this type?
31416 # NOTE: Some Fortran compilers actually will return that a
31417 # type exists even if it doesn't support it -- the compiler
31418 # will automatically convert the unsupported type to a type
31419 # that it *does* support. For example, if you try to use
31420 # INTEGER*16 and the compiler doesn't support it, it may well
31421 # automatically convert it to INTEGER*8 for you (!). So we
31422 # have to check the actual size of the type once we determine
31423 # that the compiler doesn't error if we try to use it
31424 # (i.e,. the compiler *might* support that type). If the size
31425 # doesn't match the expected size, then the compiler doesn't
31426 # really support it.
31430 { echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX" >&5
31431 echo $ECHO_N "checking size of Fortran 77 COMPLEX... $ECHO_C" >&6; }
31432 if test "${ompi_cv_f77_sizeof_COMPLEX+set}" = set; then
31433 echo $ECHO_N "(cached) $ECHO_C" >&6
31434 else
31436 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
31437 # so the general rule is that if there is an _ in the function
31438 # name, then there are two trailing underscores. Otherwise,
31439 # there is only one trailing underscore. Any idea how to do
31440 # that with m4_translit?
31441 if echo size | grep _ >/dev/null 2>&1 ; then
31442 ompi_ac_size_fn=size__
31443 else
31444 ompi_ac_size_fn=size_
31446 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
31447 ompi_ac_size_fn=size_
31448 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
31449 ompi_ac_size_fn=size
31450 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
31451 ompi_ac_size_fn=size
31452 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
31453 ompi_ac_size_fn=SIZE
31454 else
31455 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
31456 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
31457 { (exit 1); exit 1; }; }
31460 # Fortran module
31461 cat > conftestf.f <<EOF
31462 program fsize
31463 external size
31464 COMPLEX x(2)
31465 call size(x(1),x(2))
31469 # C module
31470 if test -f conftest.h; then
31471 ompi_conftest_h="#include \"conftest.h\""
31472 else
31473 ompi_conftest_h=""
31475 cat > conftest.c <<EOF
31476 #include <stdio.h>
31477 #include <stdlib.h>
31478 $ompi_conftest_h
31480 #ifdef __cplusplus
31481 extern "C" {
31482 #endif
31483 void $ompi_ac_size_fn(char *a, char *b)
31485 int diff = (int) (b - a);
31486 FILE *f=fopen("conftestval", "w");
31487 if (!f) exit(1);
31488 fprintf(f, "%d\n", diff);
31489 fclose(f);
31491 #ifdef __cplusplus
31493 #endif
31497 # 1 is the command
31498 # 2 is actions to do if success
31499 # 3 is actions to do if fail
31500 echo "configure:31500: $CC $CFLAGS -I. -c conftest.c" >&5
31501 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
31502 ompi_status=$?
31504 # 1 is the message
31505 # 2 is whether to put a prefix or not
31506 if test -n "1"; then
31507 echo "configure:31507: \$? = $ompi_status" >&5
31508 else
31509 echo \$? = $ompi_status >&5
31511 if test "$ompi_status" = "0"; then
31512 unset ompi_status
31514 # 1 is the command
31515 # 2 is actions to do if success
31516 # 3 is actions to do if fail
31517 echo "configure:31517: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
31518 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
31519 ompi_status=$?
31521 # 1 is the message
31522 # 2 is whether to put a prefix or not
31523 if test -n "1"; then
31524 echo "configure:31524: \$? = $ompi_status" >&5
31525 else
31526 echo \$? = $ompi_status >&5
31528 if test "$ompi_status" = "0"; then
31529 unset ompi_status
31530 happy="yes"
31531 else
31532 unset ompi_status
31533 happy="no"
31535 else
31536 unset ompi_status
31537 happy="no"
31540 if test "$happy" = "no" ; then
31541 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5
31542 echo "$as_me: error: Could not determine size of COMPLEX" >&2;}
31543 { (exit 1); exit 1; }; }
31546 if test "$cross_compiling" = "yes"; then
31547 { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX when cross-compiling" >&5
31548 echo "$as_me: error: Can not determine size of COMPLEX when cross-compiling" >&2;}
31549 { (exit 1); exit 1; }; }
31550 else
31552 # 1 is the command
31553 # 2 is actions to do if success
31554 # 3 is actions to do if fail
31555 echo "configure:31555: ./conftest" >&5
31556 ./conftest 1>&5 2>&1
31557 ompi_status=$?
31559 # 1 is the message
31560 # 2 is whether to put a prefix or not
31561 if test -n "1"; then
31562 echo "configure:31562: \$? = $ompi_status" >&5
31563 else
31564 echo \$? = $ompi_status >&5
31566 if test "$ompi_status" = "0"; then
31567 unset ompi_status
31568 if test -f conftestval; then
31569 ompi_cv_f77_sizeof_COMPLEX=`cat conftestval`
31570 else
31572 # 1 is the message
31573 # 2 is whether to put a prefix or not
31574 if test -n "1"; then
31575 echo "configure:31575: conftestval not found." >&5
31576 else
31577 echo conftestval not found. >&5
31579 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5
31580 echo "$as_me: error: Could not determine size of COMPLEX" >&2;}
31581 { (exit 1); exit 1; }; }
31584 else
31585 unset ompi_status
31586 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5
31587 echo "$as_me: error: Could not determine size of COMPLEX" >&2;}
31588 { (exit 1); exit 1; }; }
31593 unset happy ompi_conftest_h
31594 rm -f conftest*
31596 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEX" >&5
31597 echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEX" >&6; }
31599 ofc_type_size=$ompi_cv_f77_sizeof_COMPLEX
31601 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
31602 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX does not have expected size!" >&5
31603 echo "$as_me: WARNING: *** Fortran 77 COMPLEX does not have expected size!" >&2;}
31604 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
31605 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
31606 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX" >&5
31607 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX" >&2;}
31608 ofc_have_type=0
31609 else
31610 # Look for a corresponding C type (will abort by itself if the
31611 # type isn't found and we need it)
31612 ofc_c_type=
31615 # Get the alignment of the type
31616 if test "$ofc_have_type" = "1"; then
31620 { echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX" >&5
31621 echo $ECHO_N "checking alignment of Fortran COMPLEX... $ECHO_C" >&6; }
31622 if test "${ompi_cv_f77_alignment_COMPLEX+set}" = set; then
31623 echo $ECHO_N "(cached) $ECHO_C" >&6
31624 else
31626 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
31627 # so the general rule is that if there is an _ in the function
31628 # name, then there are two trailing underscores. Otherwise,
31629 # there is only one trailing underscore. Any idea how to do
31630 # that with m4_translit?
31631 if echo align | grep _ >/dev/null 2>&1 ; then
31632 ompi_ac_align_fn=align__
31633 else
31634 ompi_ac_align_fn=align_
31636 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
31637 ompi_ac_align_fn=align_
31638 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
31639 ompi_ac_align_fn=align
31640 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
31641 ompi_ac_align_fn=align
31642 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
31643 ompi_ac_align_fn=ALIGN
31644 else
31645 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
31646 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
31647 { (exit 1); exit 1; }; }
31650 # Fortran module
31651 cat > conftestf.f <<EOF
31652 program falign
31653 external align
31654 COMPLEX w,x,y,z
31655 CHARACTER a,b,c
31656 common /foo/a,w,b,x,y,c,z
31657 call align(w,x,y,z)
31661 # C module
31662 if test -f conftest.h; then
31663 ompi_conftest_h="#include \"conftest.h\""
31664 else
31665 ompi_conftest_h=""
31667 cat > conftest.c <<EOF
31668 #include <stdio.h>
31669 #include <stdlib.h>
31670 $conftest
31672 #ifdef __cplusplus
31673 extern "C" {
31674 #endif
31675 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
31676 { unsigned long aw, ax, ay, az;
31677 FILE *f=fopen("conftestval", "w");
31678 if (!f) exit(1);
31679 aw = (unsigned long) w;
31680 ax = (unsigned long) x;
31681 ay = (unsigned long) y;
31682 az = (unsigned long) z;
31683 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
31684 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
31685 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
31686 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
31687 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
31688 else fprintf(f, "%d\n", 1);
31689 fclose(f);
31691 #ifdef __cplusplus
31693 #endif
31697 # 1 is the command
31698 # 2 is actions to do if success
31699 # 3 is actions to do if fail
31700 echo "configure:31700: $CC $CFLAGS -I. -c conftest.c" >&5
31701 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
31702 ompi_status=$?
31704 # 1 is the message
31705 # 2 is whether to put a prefix or not
31706 if test -n "1"; then
31707 echo "configure:31707: \$? = $ompi_status" >&5
31708 else
31709 echo \$? = $ompi_status >&5
31711 if test "$ompi_status" = "0"; then
31712 unset ompi_status
31714 # 1 is the command
31715 # 2 is actions to do if success
31716 # 3 is actions to do if fail
31717 echo "configure:31717: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
31718 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
31719 ompi_status=$?
31721 # 1 is the message
31722 # 2 is whether to put a prefix or not
31723 if test -n "1"; then
31724 echo "configure:31724: \$? = $ompi_status" >&5
31725 else
31726 echo \$? = $ompi_status >&5
31728 if test "$ompi_status" = "0"; then
31729 unset ompi_status
31730 happy="yes"
31731 else
31732 unset ompi_status
31733 happy="no"
31735 else
31736 unset ompi_status
31737 happy="no"
31740 if test "$happy" = "no" ; then
31741 { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX" >&5
31742 echo "$as_me: error: Could not determine alignment of COMPLEX" >&2;}
31743 { (exit 1); exit 1; }; }
31746 if test "$cross_compiling" = "yes"; then
31747 { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX when cross-compiling" >&5
31748 echo "$as_me: error: Can not determine alignment of COMPLEX when cross-compiling" >&2;}
31749 { (exit 1); exit 1; }; }
31750 else
31752 # 1 is the command
31753 # 2 is actions to do if success
31754 # 3 is actions to do if fail
31755 echo "configure:31755: ./conftest" >&5
31756 ./conftest 1>&5 2>&1
31757 ompi_status=$?
31759 # 1 is the message
31760 # 2 is whether to put a prefix or not
31761 if test -n "1"; then
31762 echo "configure:31762: \$? = $ompi_status" >&5
31763 else
31764 echo \$? = $ompi_status >&5
31766 if test "$ompi_status" = "0"; then
31767 unset ompi_status
31768 ompi_cv_f77_alignment_COMPLEX=`cat conftestval`
31769 else
31770 unset ompi_status
31771 { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX" >&5
31772 echo "$as_me: error: Could not determine alignment of COMPLEX" >&2;}
31773 { (exit 1); exit 1; }; }
31778 unset happy ompi_conf
31779 rm -f conftest*
31781 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEX" >&5
31782 echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEX" >&6; }
31784 ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEX
31790 # We always need these defines -- even if we don't have a given type,
31791 # there are some places in the code where we have to have *something*.
31793 cat >>confdefs.h <<_ACEOF
31794 #define OMPI_HAVE_FORTRAN_COMPLEX $ofc_have_type
31795 _ACEOF
31798 cat >>confdefs.h <<_ACEOF
31799 #define OMPI_SIZEOF_FORTRAN_COMPLEX $ofc_type_size
31800 _ACEOF
31803 cat >>confdefs.h <<_ACEOF
31804 #define OMPI_ALIGNMENT_FORTRAN_COMPLEX $ofc_type_alignment
31805 _ACEOF
31807 if test "" != ""; then
31809 cat >>confdefs.h <<_ACEOF
31810 #define ompi_fortran_complex_t $ofc_c_type
31811 _ACEOF
31815 # Save some in shell variables for later use (e.g., need
31816 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
31817 OMPI_FORTRAN_COMPLEX_C_TYPE=$ofc_c_type
31818 OMPI_HAVE_FORTRAN_COMPLEX=$ofc_have_type
31819 OMPI_SIZEOF_FORTRAN_COMPLEX=$ofc_type_size
31820 OMPI_ALIGNMENT_FORTRAN_COMPLEX=$ofc_type_alignment
31822 # Clean up
31823 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
31824 unset ofc_expected_size
31827 # The complex*N tests are a bit different (note: the complex tests are
31828 # the same as all the rest, because complex is a composite of two
31829 # reals, which we *have* to have. It's only the complex*N tests that
31830 # are different). The fortran complex types are composites of the
31831 # real*(N/2) types. So for us to support complex*N, two conditions
31832 # must be true:
31834 # a) we must support real*(N/2) (i.e., compiler supports it and we
31835 # have a back-end C type for it)
31836 # b) compiler supports complex*N
31839 ofc_expected_size=8
31840 ofc_have_type=0
31841 ofc_type_size=$ac_cv_sizeof_int
31842 ofc_type_alignment=$ac_cv_sizeof_int
31843 ofc_c_type=ompi_fortran_bogus_type_t
31845 # Only check if we actually want the F77 bindings / have a F77
31846 # compiler. This allows us to call this macro, even if there is
31847 # no F77 compiler. If we have no f77 compiler, then just set a
31848 # bunch of defaults.
31849 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
31853 # Determine FORTRAN datatype size.
31854 # First arg is type, 2nd arg is config var to define
31855 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*8" >&5
31856 echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*8... $ECHO_C" >&6; }
31857 if test "${ompi_cv_f77_have_COMPLEXp8+set}" = set; then
31858 echo $ECHO_N "(cached) $ECHO_C" >&6
31859 else
31860 ac_ext=f
31861 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31862 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31863 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31865 cat >conftest.$ac_ext <<_ACEOF
31867 program main
31868 COMPLEX*8 bogus_variable
31870 _ACEOF
31871 rm -f conftest.$ac_objext
31872 if { (ac_try="$ac_compile"
31873 case "(($ac_try" in
31874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31875 *) ac_try_echo=$ac_try;;
31876 esac
31877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31878 (eval "$ac_compile") 2>conftest.er1
31879 ac_status=$?
31880 grep -v '^ *+' conftest.er1 >conftest.err
31881 rm -f conftest.er1
31882 cat conftest.err >&5
31883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 (exit $ac_status); } && {
31885 test -z "$ac_f77_werror_flag" ||
31886 test ! -s conftest.err
31887 } && test -s conftest.$ac_objext; then
31888 ompi_cv_f77_have_COMPLEXp8="yes"
31889 else
31890 echo "$as_me: failed program was:" >&5
31891 sed 's/^/| /' conftest.$ac_ext >&5
31893 ompi_cv_f77_have_COMPLEXp8="no"
31896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31897 ac_ext=c
31898 ac_cpp='$CPP $CPPFLAGS'
31899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31904 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEXp8" >&5
31905 echo "${ECHO_T}$ompi_cv_f77_have_COMPLEXp8" >&6; }
31907 if test "$ompi_cv_f77_have_COMPLEXp8" = "yes"; then
31908 ofc_have_type=1
31909 else
31910 ofc_have_type=0
31914 else
31915 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*8" >&5
31916 echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*8... $ECHO_C" >&6; }
31917 { echo "$as_me:$LINENO: result: skipped" >&5
31918 echo "${ECHO_T}skipped" >&6; }
31921 if test "$ofc_have_type" = "1"; then
31922 # What is the size of this type?
31924 # NOTE: Some Fortran compilers actually will return that a
31925 # type exists even if it doesn't support it -- the compiler
31926 # will automatically convert the unsupported type to a type
31927 # that it *does* support. For example, if you try to use
31928 # INTEGER*16 and the compiler doesn't support it, it may well
31929 # automatically convert it to INTEGER*8 for you (!). So we
31930 # have to check the actual size of the type once we determine
31931 # that the compiler doesn't error if we try to use it
31932 # (i.e,. the compiler *might* support that type). If the size
31933 # doesn't match the expected size, then the compiler doesn't
31934 # really support it.
31938 { echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX*8" >&5
31939 echo $ECHO_N "checking size of Fortran 77 COMPLEX*8... $ECHO_C" >&6; }
31940 if test "${ompi_cv_f77_sizeof_COMPLEXp8+set}" = set; then
31941 echo $ECHO_N "(cached) $ECHO_C" >&6
31942 else
31944 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
31945 # so the general rule is that if there is an _ in the function
31946 # name, then there are two trailing underscores. Otherwise,
31947 # there is only one trailing underscore. Any idea how to do
31948 # that with m4_translit?
31949 if echo size | grep _ >/dev/null 2>&1 ; then
31950 ompi_ac_size_fn=size__
31951 else
31952 ompi_ac_size_fn=size_
31954 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
31955 ompi_ac_size_fn=size_
31956 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
31957 ompi_ac_size_fn=size
31958 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
31959 ompi_ac_size_fn=size
31960 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
31961 ompi_ac_size_fn=SIZE
31962 else
31963 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
31964 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
31965 { (exit 1); exit 1; }; }
31968 # Fortran module
31969 cat > conftestf.f <<EOF
31970 program fsize
31971 external size
31972 COMPLEX*8 x(2)
31973 call size(x(1),x(2))
31977 # C module
31978 if test -f conftest.h; then
31979 ompi_conftest_h="#include \"conftest.h\""
31980 else
31981 ompi_conftest_h=""
31983 cat > conftest.c <<EOF
31984 #include <stdio.h>
31985 #include <stdlib.h>
31986 $ompi_conftest_h
31988 #ifdef __cplusplus
31989 extern "C" {
31990 #endif
31991 void $ompi_ac_size_fn(char *a, char *b)
31993 int diff = (int) (b - a);
31994 FILE *f=fopen("conftestval", "w");
31995 if (!f) exit(1);
31996 fprintf(f, "%d\n", diff);
31997 fclose(f);
31999 #ifdef __cplusplus
32001 #endif
32005 # 1 is the command
32006 # 2 is actions to do if success
32007 # 3 is actions to do if fail
32008 echo "configure:32008: $CC $CFLAGS -I. -c conftest.c" >&5
32009 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
32010 ompi_status=$?
32012 # 1 is the message
32013 # 2 is whether to put a prefix or not
32014 if test -n "1"; then
32015 echo "configure:32015: \$? = $ompi_status" >&5
32016 else
32017 echo \$? = $ompi_status >&5
32019 if test "$ompi_status" = "0"; then
32020 unset ompi_status
32022 # 1 is the command
32023 # 2 is actions to do if success
32024 # 3 is actions to do if fail
32025 echo "configure:32025: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
32026 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
32027 ompi_status=$?
32029 # 1 is the message
32030 # 2 is whether to put a prefix or not
32031 if test -n "1"; then
32032 echo "configure:32032: \$? = $ompi_status" >&5
32033 else
32034 echo \$? = $ompi_status >&5
32036 if test "$ompi_status" = "0"; then
32037 unset ompi_status
32038 happy="yes"
32039 else
32040 unset ompi_status
32041 happy="no"
32043 else
32044 unset ompi_status
32045 happy="no"
32048 if test "$happy" = "no" ; then
32049 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5
32050 echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;}
32051 { (exit 1); exit 1; }; }
32054 if test "$cross_compiling" = "yes"; then
32055 { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*8 when cross-compiling" >&5
32056 echo "$as_me: error: Can not determine size of COMPLEX*8 when cross-compiling" >&2;}
32057 { (exit 1); exit 1; }; }
32058 else
32060 # 1 is the command
32061 # 2 is actions to do if success
32062 # 3 is actions to do if fail
32063 echo "configure:32063: ./conftest" >&5
32064 ./conftest 1>&5 2>&1
32065 ompi_status=$?
32067 # 1 is the message
32068 # 2 is whether to put a prefix or not
32069 if test -n "1"; then
32070 echo "configure:32070: \$? = $ompi_status" >&5
32071 else
32072 echo \$? = $ompi_status >&5
32074 if test "$ompi_status" = "0"; then
32075 unset ompi_status
32076 if test -f conftestval; then
32077 ompi_cv_f77_sizeof_COMPLEXp8=`cat conftestval`
32078 else
32080 # 1 is the message
32081 # 2 is whether to put a prefix or not
32082 if test -n "1"; then
32083 echo "configure:32083: conftestval not found." >&5
32084 else
32085 echo conftestval not found. >&5
32087 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5
32088 echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;}
32089 { (exit 1); exit 1; }; }
32092 else
32093 unset ompi_status
32094 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5
32095 echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;}
32096 { (exit 1); exit 1; }; }
32101 unset happy ompi_conftest_h
32102 rm -f conftest*
32104 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEXp8" >&5
32105 echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEXp8" >&6; }
32107 ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp8
32109 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
32110 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*8 does not have expected size!" >&5
32111 echo "$as_me: WARNING: *** Fortran 77 COMPLEX*8 does not have expected size!" >&2;}
32112 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
32113 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
32114 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*8" >&5
32115 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*8" >&2;}
32116 ofc_have_type=0
32117 else
32118 # Look for a corresponding C type (will abort by itself if the
32119 # type isn't found and we need it)
32120 ofc_c_type=
32123 # Get the alignment of the type
32124 if test "$ofc_have_type" = "1"; then
32128 { echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*8" >&5
32129 echo $ECHO_N "checking alignment of Fortran COMPLEX*8... $ECHO_C" >&6; }
32130 if test "${ompi_cv_f77_alignment_COMPLEXp8+set}" = set; then
32131 echo $ECHO_N "(cached) $ECHO_C" >&6
32132 else
32134 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
32135 # so the general rule is that if there is an _ in the function
32136 # name, then there are two trailing underscores. Otherwise,
32137 # there is only one trailing underscore. Any idea how to do
32138 # that with m4_translit?
32139 if echo align | grep _ >/dev/null 2>&1 ; then
32140 ompi_ac_align_fn=align__
32141 else
32142 ompi_ac_align_fn=align_
32144 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
32145 ompi_ac_align_fn=align_
32146 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
32147 ompi_ac_align_fn=align
32148 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
32149 ompi_ac_align_fn=align
32150 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
32151 ompi_ac_align_fn=ALIGN
32152 else
32153 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
32154 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
32155 { (exit 1); exit 1; }; }
32158 # Fortran module
32159 cat > conftestf.f <<EOF
32160 program falign
32161 external align
32162 COMPLEX*8 w,x,y,z
32163 CHARACTER a,b,c
32164 common /foo/a,w,b,x,y,c,z
32165 call align(w,x,y,z)
32169 # C module
32170 if test -f conftest.h; then
32171 ompi_conftest_h="#include \"conftest.h\""
32172 else
32173 ompi_conftest_h=""
32175 cat > conftest.c <<EOF
32176 #include <stdio.h>
32177 #include <stdlib.h>
32178 $conftest
32180 #ifdef __cplusplus
32181 extern "C" {
32182 #endif
32183 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
32184 { unsigned long aw, ax, ay, az;
32185 FILE *f=fopen("conftestval", "w");
32186 if (!f) exit(1);
32187 aw = (unsigned long) w;
32188 ax = (unsigned long) x;
32189 ay = (unsigned long) y;
32190 az = (unsigned long) z;
32191 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
32192 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
32193 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
32194 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
32195 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
32196 else fprintf(f, "%d\n", 1);
32197 fclose(f);
32199 #ifdef __cplusplus
32201 #endif
32205 # 1 is the command
32206 # 2 is actions to do if success
32207 # 3 is actions to do if fail
32208 echo "configure:32208: $CC $CFLAGS -I. -c conftest.c" >&5
32209 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
32210 ompi_status=$?
32212 # 1 is the message
32213 # 2 is whether to put a prefix or not
32214 if test -n "1"; then
32215 echo "configure:32215: \$? = $ompi_status" >&5
32216 else
32217 echo \$? = $ompi_status >&5
32219 if test "$ompi_status" = "0"; then
32220 unset ompi_status
32222 # 1 is the command
32223 # 2 is actions to do if success
32224 # 3 is actions to do if fail
32225 echo "configure:32225: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
32226 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
32227 ompi_status=$?
32229 # 1 is the message
32230 # 2 is whether to put a prefix or not
32231 if test -n "1"; then
32232 echo "configure:32232: \$? = $ompi_status" >&5
32233 else
32234 echo \$? = $ompi_status >&5
32236 if test "$ompi_status" = "0"; then
32237 unset ompi_status
32238 happy="yes"
32239 else
32240 unset ompi_status
32241 happy="no"
32243 else
32244 unset ompi_status
32245 happy="no"
32248 if test "$happy" = "no" ; then
32249 { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*8" >&5
32250 echo "$as_me: error: Could not determine alignment of COMPLEX*8" >&2;}
32251 { (exit 1); exit 1; }; }
32254 if test "$cross_compiling" = "yes"; then
32255 { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*8 when cross-compiling" >&5
32256 echo "$as_me: error: Can not determine alignment of COMPLEX*8 when cross-compiling" >&2;}
32257 { (exit 1); exit 1; }; }
32258 else
32260 # 1 is the command
32261 # 2 is actions to do if success
32262 # 3 is actions to do if fail
32263 echo "configure:32263: ./conftest" >&5
32264 ./conftest 1>&5 2>&1
32265 ompi_status=$?
32267 # 1 is the message
32268 # 2 is whether to put a prefix or not
32269 if test -n "1"; then
32270 echo "configure:32270: \$? = $ompi_status" >&5
32271 else
32272 echo \$? = $ompi_status >&5
32274 if test "$ompi_status" = "0"; then
32275 unset ompi_status
32276 ompi_cv_f77_alignment_COMPLEXp8=`cat conftestval`
32277 else
32278 unset ompi_status
32279 { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*8" >&5
32280 echo "$as_me: error: Could not determine alignment of COMPLEX*8" >&2;}
32281 { (exit 1); exit 1; }; }
32286 unset happy ompi_conf
32287 rm -f conftest*
32289 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEXp8" >&5
32290 echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEXp8" >&6; }
32292 ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp8
32298 # We always need these defines -- even if we don't have a given type,
32299 # there are some places in the code where we have to have *something*.
32301 cat >>confdefs.h <<_ACEOF
32302 #define OMPI_HAVE_FORTRAN_COMPLEX8 $ofc_have_type
32303 _ACEOF
32306 cat >>confdefs.h <<_ACEOF
32307 #define OMPI_SIZEOF_FORTRAN_COMPLEX8 $ofc_type_size
32308 _ACEOF
32311 cat >>confdefs.h <<_ACEOF
32312 #define OMPI_ALIGNMENT_FORTRAN_COMPLEX8 $ofc_type_alignment
32313 _ACEOF
32315 if test "" != ""; then
32317 cat >>confdefs.h <<_ACEOF
32318 #define ompi_fortran_complex8_t $ofc_c_type
32319 _ACEOF
32323 # Save some in shell variables for later use (e.g., need
32324 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
32325 OMPI_FORTRAN_COMPLEX8_C_TYPE=$ofc_c_type
32326 OMPI_HAVE_FORTRAN_COMPLEX8=$ofc_have_type
32327 OMPI_SIZEOF_FORTRAN_COMPLEX8=$ofc_type_size
32328 OMPI_ALIGNMENT_FORTRAN_COMPLEX8=$ofc_type_alignment
32330 # Clean up
32331 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
32332 unset ofc_expected_size
32335 ofc_expected_size=16
32336 ofc_have_type=0
32337 ofc_type_size=$ac_cv_sizeof_int
32338 ofc_type_alignment=$ac_cv_sizeof_int
32339 ofc_c_type=ompi_fortran_bogus_type_t
32341 # Only check if we actually want the F77 bindings / have a F77
32342 # compiler. This allows us to call this macro, even if there is
32343 # no F77 compiler. If we have no f77 compiler, then just set a
32344 # bunch of defaults.
32345 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
32349 # Determine FORTRAN datatype size.
32350 # First arg is type, 2nd arg is config var to define
32351 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*16" >&5
32352 echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*16... $ECHO_C" >&6; }
32353 if test "${ompi_cv_f77_have_COMPLEXp16+set}" = set; then
32354 echo $ECHO_N "(cached) $ECHO_C" >&6
32355 else
32356 ac_ext=f
32357 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32358 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32359 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32361 cat >conftest.$ac_ext <<_ACEOF
32363 program main
32364 COMPLEX*16 bogus_variable
32366 _ACEOF
32367 rm -f conftest.$ac_objext
32368 if { (ac_try="$ac_compile"
32369 case "(($ac_try" in
32370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32371 *) ac_try_echo=$ac_try;;
32372 esac
32373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32374 (eval "$ac_compile") 2>conftest.er1
32375 ac_status=$?
32376 grep -v '^ *+' conftest.er1 >conftest.err
32377 rm -f conftest.er1
32378 cat conftest.err >&5
32379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380 (exit $ac_status); } && {
32381 test -z "$ac_f77_werror_flag" ||
32382 test ! -s conftest.err
32383 } && test -s conftest.$ac_objext; then
32384 ompi_cv_f77_have_COMPLEXp16="yes"
32385 else
32386 echo "$as_me: failed program was:" >&5
32387 sed 's/^/| /' conftest.$ac_ext >&5
32389 ompi_cv_f77_have_COMPLEXp16="no"
32392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32393 ac_ext=c
32394 ac_cpp='$CPP $CPPFLAGS'
32395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32400 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEXp16" >&5
32401 echo "${ECHO_T}$ompi_cv_f77_have_COMPLEXp16" >&6; }
32403 if test "$ompi_cv_f77_have_COMPLEXp16" = "yes"; then
32404 ofc_have_type=1
32405 else
32406 ofc_have_type=0
32410 else
32411 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*16" >&5
32412 echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*16... $ECHO_C" >&6; }
32413 { echo "$as_me:$LINENO: result: skipped" >&5
32414 echo "${ECHO_T}skipped" >&6; }
32417 if test "$ofc_have_type" = "1"; then
32418 # What is the size of this type?
32420 # NOTE: Some Fortran compilers actually will return that a
32421 # type exists even if it doesn't support it -- the compiler
32422 # will automatically convert the unsupported type to a type
32423 # that it *does* support. For example, if you try to use
32424 # INTEGER*16 and the compiler doesn't support it, it may well
32425 # automatically convert it to INTEGER*8 for you (!). So we
32426 # have to check the actual size of the type once we determine
32427 # that the compiler doesn't error if we try to use it
32428 # (i.e,. the compiler *might* support that type). If the size
32429 # doesn't match the expected size, then the compiler doesn't
32430 # really support it.
32434 { echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX*16" >&5
32435 echo $ECHO_N "checking size of Fortran 77 COMPLEX*16... $ECHO_C" >&6; }
32436 if test "${ompi_cv_f77_sizeof_COMPLEXp16+set}" = set; then
32437 echo $ECHO_N "(cached) $ECHO_C" >&6
32438 else
32440 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
32441 # so the general rule is that if there is an _ in the function
32442 # name, then there are two trailing underscores. Otherwise,
32443 # there is only one trailing underscore. Any idea how to do
32444 # that with m4_translit?
32445 if echo size | grep _ >/dev/null 2>&1 ; then
32446 ompi_ac_size_fn=size__
32447 else
32448 ompi_ac_size_fn=size_
32450 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
32451 ompi_ac_size_fn=size_
32452 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
32453 ompi_ac_size_fn=size
32454 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
32455 ompi_ac_size_fn=size
32456 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
32457 ompi_ac_size_fn=SIZE
32458 else
32459 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
32460 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
32461 { (exit 1); exit 1; }; }
32464 # Fortran module
32465 cat > conftestf.f <<EOF
32466 program fsize
32467 external size
32468 COMPLEX*16 x(2)
32469 call size(x(1),x(2))
32473 # C module
32474 if test -f conftest.h; then
32475 ompi_conftest_h="#include \"conftest.h\""
32476 else
32477 ompi_conftest_h=""
32479 cat > conftest.c <<EOF
32480 #include <stdio.h>
32481 #include <stdlib.h>
32482 $ompi_conftest_h
32484 #ifdef __cplusplus
32485 extern "C" {
32486 #endif
32487 void $ompi_ac_size_fn(char *a, char *b)
32489 int diff = (int) (b - a);
32490 FILE *f=fopen("conftestval", "w");
32491 if (!f) exit(1);
32492 fprintf(f, "%d\n", diff);
32493 fclose(f);
32495 #ifdef __cplusplus
32497 #endif
32501 # 1 is the command
32502 # 2 is actions to do if success
32503 # 3 is actions to do if fail
32504 echo "configure:32504: $CC $CFLAGS -I. -c conftest.c" >&5
32505 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
32506 ompi_status=$?
32508 # 1 is the message
32509 # 2 is whether to put a prefix or not
32510 if test -n "1"; then
32511 echo "configure:32511: \$? = $ompi_status" >&5
32512 else
32513 echo \$? = $ompi_status >&5
32515 if test "$ompi_status" = "0"; then
32516 unset ompi_status
32518 # 1 is the command
32519 # 2 is actions to do if success
32520 # 3 is actions to do if fail
32521 echo "configure:32521: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
32522 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
32523 ompi_status=$?
32525 # 1 is the message
32526 # 2 is whether to put a prefix or not
32527 if test -n "1"; then
32528 echo "configure:32528: \$? = $ompi_status" >&5
32529 else
32530 echo \$? = $ompi_status >&5
32532 if test "$ompi_status" = "0"; then
32533 unset ompi_status
32534 happy="yes"
32535 else
32536 unset ompi_status
32537 happy="no"
32539 else
32540 unset ompi_status
32541 happy="no"
32544 if test "$happy" = "no" ; then
32545 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5
32546 echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;}
32547 { (exit 1); exit 1; }; }
32550 if test "$cross_compiling" = "yes"; then
32551 { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*16 when cross-compiling" >&5
32552 echo "$as_me: error: Can not determine size of COMPLEX*16 when cross-compiling" >&2;}
32553 { (exit 1); exit 1; }; }
32554 else
32556 # 1 is the command
32557 # 2 is actions to do if success
32558 # 3 is actions to do if fail
32559 echo "configure:32559: ./conftest" >&5
32560 ./conftest 1>&5 2>&1
32561 ompi_status=$?
32563 # 1 is the message
32564 # 2 is whether to put a prefix or not
32565 if test -n "1"; then
32566 echo "configure:32566: \$? = $ompi_status" >&5
32567 else
32568 echo \$? = $ompi_status >&5
32570 if test "$ompi_status" = "0"; then
32571 unset ompi_status
32572 if test -f conftestval; then
32573 ompi_cv_f77_sizeof_COMPLEXp16=`cat conftestval`
32574 else
32576 # 1 is the message
32577 # 2 is whether to put a prefix or not
32578 if test -n "1"; then
32579 echo "configure:32579: conftestval not found." >&5
32580 else
32581 echo conftestval not found. >&5
32583 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5
32584 echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;}
32585 { (exit 1); exit 1; }; }
32588 else
32589 unset ompi_status
32590 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5
32591 echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;}
32592 { (exit 1); exit 1; }; }
32597 unset happy ompi_conftest_h
32598 rm -f conftest*
32600 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEXp16" >&5
32601 echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEXp16" >&6; }
32603 ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp16
32605 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
32606 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*16 does not have expected size!" >&5
32607 echo "$as_me: WARNING: *** Fortran 77 COMPLEX*16 does not have expected size!" >&2;}
32608 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
32609 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
32610 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*16" >&5
32611 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*16" >&2;}
32612 ofc_have_type=0
32613 else
32614 # Look for a corresponding C type (will abort by itself if the
32615 # type isn't found and we need it)
32616 ofc_c_type=
32619 # Get the alignment of the type
32620 if test "$ofc_have_type" = "1"; then
32624 { echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*16" >&5
32625 echo $ECHO_N "checking alignment of Fortran COMPLEX*16... $ECHO_C" >&6; }
32626 if test "${ompi_cv_f77_alignment_COMPLEXp16+set}" = set; then
32627 echo $ECHO_N "(cached) $ECHO_C" >&6
32628 else
32630 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
32631 # so the general rule is that if there is an _ in the function
32632 # name, then there are two trailing underscores. Otherwise,
32633 # there is only one trailing underscore. Any idea how to do
32634 # that with m4_translit?
32635 if echo align | grep _ >/dev/null 2>&1 ; then
32636 ompi_ac_align_fn=align__
32637 else
32638 ompi_ac_align_fn=align_
32640 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
32641 ompi_ac_align_fn=align_
32642 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
32643 ompi_ac_align_fn=align
32644 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
32645 ompi_ac_align_fn=align
32646 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
32647 ompi_ac_align_fn=ALIGN
32648 else
32649 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
32650 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
32651 { (exit 1); exit 1; }; }
32654 # Fortran module
32655 cat > conftestf.f <<EOF
32656 program falign
32657 external align
32658 COMPLEX*16 w,x,y,z
32659 CHARACTER a,b,c
32660 common /foo/a,w,b,x,y,c,z
32661 call align(w,x,y,z)
32665 # C module
32666 if test -f conftest.h; then
32667 ompi_conftest_h="#include \"conftest.h\""
32668 else
32669 ompi_conftest_h=""
32671 cat > conftest.c <<EOF
32672 #include <stdio.h>
32673 #include <stdlib.h>
32674 $conftest
32676 #ifdef __cplusplus
32677 extern "C" {
32678 #endif
32679 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
32680 { unsigned long aw, ax, ay, az;
32681 FILE *f=fopen("conftestval", "w");
32682 if (!f) exit(1);
32683 aw = (unsigned long) w;
32684 ax = (unsigned long) x;
32685 ay = (unsigned long) y;
32686 az = (unsigned long) z;
32687 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
32688 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
32689 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
32690 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
32691 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
32692 else fprintf(f, "%d\n", 1);
32693 fclose(f);
32695 #ifdef __cplusplus
32697 #endif
32701 # 1 is the command
32702 # 2 is actions to do if success
32703 # 3 is actions to do if fail
32704 echo "configure:32704: $CC $CFLAGS -I. -c conftest.c" >&5
32705 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
32706 ompi_status=$?
32708 # 1 is the message
32709 # 2 is whether to put a prefix or not
32710 if test -n "1"; then
32711 echo "configure:32711: \$? = $ompi_status" >&5
32712 else
32713 echo \$? = $ompi_status >&5
32715 if test "$ompi_status" = "0"; then
32716 unset ompi_status
32718 # 1 is the command
32719 # 2 is actions to do if success
32720 # 3 is actions to do if fail
32721 echo "configure:32721: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
32722 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
32723 ompi_status=$?
32725 # 1 is the message
32726 # 2 is whether to put a prefix or not
32727 if test -n "1"; then
32728 echo "configure:32728: \$? = $ompi_status" >&5
32729 else
32730 echo \$? = $ompi_status >&5
32732 if test "$ompi_status" = "0"; then
32733 unset ompi_status
32734 happy="yes"
32735 else
32736 unset ompi_status
32737 happy="no"
32739 else
32740 unset ompi_status
32741 happy="no"
32744 if test "$happy" = "no" ; then
32745 { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*16" >&5
32746 echo "$as_me: error: Could not determine alignment of COMPLEX*16" >&2;}
32747 { (exit 1); exit 1; }; }
32750 if test "$cross_compiling" = "yes"; then
32751 { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*16 when cross-compiling" >&5
32752 echo "$as_me: error: Can not determine alignment of COMPLEX*16 when cross-compiling" >&2;}
32753 { (exit 1); exit 1; }; }
32754 else
32756 # 1 is the command
32757 # 2 is actions to do if success
32758 # 3 is actions to do if fail
32759 echo "configure:32759: ./conftest" >&5
32760 ./conftest 1>&5 2>&1
32761 ompi_status=$?
32763 # 1 is the message
32764 # 2 is whether to put a prefix or not
32765 if test -n "1"; then
32766 echo "configure:32766: \$? = $ompi_status" >&5
32767 else
32768 echo \$? = $ompi_status >&5
32770 if test "$ompi_status" = "0"; then
32771 unset ompi_status
32772 ompi_cv_f77_alignment_COMPLEXp16=`cat conftestval`
32773 else
32774 unset ompi_status
32775 { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*16" >&5
32776 echo "$as_me: error: Could not determine alignment of COMPLEX*16" >&2;}
32777 { (exit 1); exit 1; }; }
32782 unset happy ompi_conf
32783 rm -f conftest*
32785 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEXp16" >&5
32786 echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEXp16" >&6; }
32788 ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp16
32794 # We always need these defines -- even if we don't have a given type,
32795 # there are some places in the code where we have to have *something*.
32797 cat >>confdefs.h <<_ACEOF
32798 #define OMPI_HAVE_FORTRAN_COMPLEX16 $ofc_have_type
32799 _ACEOF
32802 cat >>confdefs.h <<_ACEOF
32803 #define OMPI_SIZEOF_FORTRAN_COMPLEX16 $ofc_type_size
32804 _ACEOF
32807 cat >>confdefs.h <<_ACEOF
32808 #define OMPI_ALIGNMENT_FORTRAN_COMPLEX16 $ofc_type_alignment
32809 _ACEOF
32811 if test "" != ""; then
32813 cat >>confdefs.h <<_ACEOF
32814 #define ompi_fortran_complex16_t $ofc_c_type
32815 _ACEOF
32819 # Save some in shell variables for later use (e.g., need
32820 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
32821 OMPI_FORTRAN_COMPLEX16_C_TYPE=$ofc_c_type
32822 OMPI_HAVE_FORTRAN_COMPLEX16=$ofc_have_type
32823 OMPI_SIZEOF_FORTRAN_COMPLEX16=$ofc_type_size
32824 OMPI_ALIGNMENT_FORTRAN_COMPLEX16=$ofc_type_alignment
32826 # Clean up
32827 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
32828 unset ofc_expected_size
32831 ofc_expected_size=32
32832 ofc_have_type=0
32833 ofc_type_size=$ac_cv_sizeof_int
32834 ofc_type_alignment=$ac_cv_sizeof_int
32835 ofc_c_type=ompi_fortran_bogus_type_t
32837 # Only check if we actually want the F77 bindings / have a F77
32838 # compiler. This allows us to call this macro, even if there is
32839 # no F77 compiler. If we have no f77 compiler, then just set a
32840 # bunch of defaults.
32841 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
32845 # Determine FORTRAN datatype size.
32846 # First arg is type, 2nd arg is config var to define
32847 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*32" >&5
32848 echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*32... $ECHO_C" >&6; }
32849 if test "${ompi_cv_f77_have_COMPLEXp32+set}" = set; then
32850 echo $ECHO_N "(cached) $ECHO_C" >&6
32851 else
32852 ac_ext=f
32853 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32854 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32855 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32857 cat >conftest.$ac_ext <<_ACEOF
32859 program main
32860 COMPLEX*32 bogus_variable
32862 _ACEOF
32863 rm -f conftest.$ac_objext
32864 if { (ac_try="$ac_compile"
32865 case "(($ac_try" in
32866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32867 *) ac_try_echo=$ac_try;;
32868 esac
32869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32870 (eval "$ac_compile") 2>conftest.er1
32871 ac_status=$?
32872 grep -v '^ *+' conftest.er1 >conftest.err
32873 rm -f conftest.er1
32874 cat conftest.err >&5
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); } && {
32877 test -z "$ac_f77_werror_flag" ||
32878 test ! -s conftest.err
32879 } && test -s conftest.$ac_objext; then
32880 ompi_cv_f77_have_COMPLEXp32="yes"
32881 else
32882 echo "$as_me: failed program was:" >&5
32883 sed 's/^/| /' conftest.$ac_ext >&5
32885 ompi_cv_f77_have_COMPLEXp32="no"
32888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32889 ac_ext=c
32890 ac_cpp='$CPP $CPPFLAGS'
32891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32896 { echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEXp32" >&5
32897 echo "${ECHO_T}$ompi_cv_f77_have_COMPLEXp32" >&6; }
32899 if test "$ompi_cv_f77_have_COMPLEXp32" = "yes"; then
32900 ofc_have_type=1
32901 else
32902 ofc_have_type=0
32906 else
32907 { echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*32" >&5
32908 echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*32... $ECHO_C" >&6; }
32909 { echo "$as_me:$LINENO: result: skipped" >&5
32910 echo "${ECHO_T}skipped" >&6; }
32913 if test "$ofc_have_type" = "1"; then
32914 # What is the size of this type?
32916 # NOTE: Some Fortran compilers actually will return that a
32917 # type exists even if it doesn't support it -- the compiler
32918 # will automatically convert the unsupported type to a type
32919 # that it *does* support. For example, if you try to use
32920 # INTEGER*16 and the compiler doesn't support it, it may well
32921 # automatically convert it to INTEGER*8 for you (!). So we
32922 # have to check the actual size of the type once we determine
32923 # that the compiler doesn't error if we try to use it
32924 # (i.e,. the compiler *might* support that type). If the size
32925 # doesn't match the expected size, then the compiler doesn't
32926 # really support it.
32930 { echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX*32" >&5
32931 echo $ECHO_N "checking size of Fortran 77 COMPLEX*32... $ECHO_C" >&6; }
32932 if test "${ompi_cv_f77_sizeof_COMPLEXp32+set}" = set; then
32933 echo $ECHO_N "(cached) $ECHO_C" >&6
32934 else
32936 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
32937 # so the general rule is that if there is an _ in the function
32938 # name, then there are two trailing underscores. Otherwise,
32939 # there is only one trailing underscore. Any idea how to do
32940 # that with m4_translit?
32941 if echo size | grep _ >/dev/null 2>&1 ; then
32942 ompi_ac_size_fn=size__
32943 else
32944 ompi_ac_size_fn=size_
32946 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
32947 ompi_ac_size_fn=size_
32948 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
32949 ompi_ac_size_fn=size
32950 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
32951 ompi_ac_size_fn=size
32952 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
32953 ompi_ac_size_fn=SIZE
32954 else
32955 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
32956 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
32957 { (exit 1); exit 1; }; }
32960 # Fortran module
32961 cat > conftestf.f <<EOF
32962 program fsize
32963 external size
32964 COMPLEX*32 x(2)
32965 call size(x(1),x(2))
32969 # C module
32970 if test -f conftest.h; then
32971 ompi_conftest_h="#include \"conftest.h\""
32972 else
32973 ompi_conftest_h=""
32975 cat > conftest.c <<EOF
32976 #include <stdio.h>
32977 #include <stdlib.h>
32978 $ompi_conftest_h
32980 #ifdef __cplusplus
32981 extern "C" {
32982 #endif
32983 void $ompi_ac_size_fn(char *a, char *b)
32985 int diff = (int) (b - a);
32986 FILE *f=fopen("conftestval", "w");
32987 if (!f) exit(1);
32988 fprintf(f, "%d\n", diff);
32989 fclose(f);
32991 #ifdef __cplusplus
32993 #endif
32997 # 1 is the command
32998 # 2 is actions to do if success
32999 # 3 is actions to do if fail
33000 echo "configure:33000: $CC $CFLAGS -I. -c conftest.c" >&5
33001 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
33002 ompi_status=$?
33004 # 1 is the message
33005 # 2 is whether to put a prefix or not
33006 if test -n "1"; then
33007 echo "configure:33007: \$? = $ompi_status" >&5
33008 else
33009 echo \$? = $ompi_status >&5
33011 if test "$ompi_status" = "0"; then
33012 unset ompi_status
33014 # 1 is the command
33015 # 2 is actions to do if success
33016 # 3 is actions to do if fail
33017 echo "configure:33017: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
33018 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
33019 ompi_status=$?
33021 # 1 is the message
33022 # 2 is whether to put a prefix or not
33023 if test -n "1"; then
33024 echo "configure:33024: \$? = $ompi_status" >&5
33025 else
33026 echo \$? = $ompi_status >&5
33028 if test "$ompi_status" = "0"; then
33029 unset ompi_status
33030 happy="yes"
33031 else
33032 unset ompi_status
33033 happy="no"
33035 else
33036 unset ompi_status
33037 happy="no"
33040 if test "$happy" = "no" ; then
33041 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5
33042 echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;}
33043 { (exit 1); exit 1; }; }
33046 if test "$cross_compiling" = "yes"; then
33047 { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*32 when cross-compiling" >&5
33048 echo "$as_me: error: Can not determine size of COMPLEX*32 when cross-compiling" >&2;}
33049 { (exit 1); exit 1; }; }
33050 else
33052 # 1 is the command
33053 # 2 is actions to do if success
33054 # 3 is actions to do if fail
33055 echo "configure:33055: ./conftest" >&5
33056 ./conftest 1>&5 2>&1
33057 ompi_status=$?
33059 # 1 is the message
33060 # 2 is whether to put a prefix or not
33061 if test -n "1"; then
33062 echo "configure:33062: \$? = $ompi_status" >&5
33063 else
33064 echo \$? = $ompi_status >&5
33066 if test "$ompi_status" = "0"; then
33067 unset ompi_status
33068 if test -f conftestval; then
33069 ompi_cv_f77_sizeof_COMPLEXp32=`cat conftestval`
33070 else
33072 # 1 is the message
33073 # 2 is whether to put a prefix or not
33074 if test -n "1"; then
33075 echo "configure:33075: conftestval not found." >&5
33076 else
33077 echo conftestval not found. >&5
33079 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5
33080 echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;}
33081 { (exit 1); exit 1; }; }
33084 else
33085 unset ompi_status
33086 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5
33087 echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;}
33088 { (exit 1); exit 1; }; }
33093 unset happy ompi_conftest_h
33094 rm -f conftest*
33096 { echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEXp32" >&5
33097 echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEXp32" >&6; }
33099 ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp32
33101 if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
33102 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*32 does not have expected size!" >&5
33103 echo "$as_me: WARNING: *** Fortran 77 COMPLEX*32 does not have expected size!" >&2;}
33104 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
33105 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
33106 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*32" >&5
33107 echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*32" >&2;}
33108 ofc_have_type=0
33109 else
33110 # Look for a corresponding C type (will abort by itself if the
33111 # type isn't found and we need it)
33112 ofc_c_type=
33115 # Get the alignment of the type
33116 if test "$ofc_have_type" = "1"; then
33120 { echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*32" >&5
33121 echo $ECHO_N "checking alignment of Fortran COMPLEX*32... $ECHO_C" >&6; }
33122 if test "${ompi_cv_f77_alignment_COMPLEXp32+set}" = set; then
33123 echo $ECHO_N "(cached) $ECHO_C" >&6
33124 else
33126 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
33127 # so the general rule is that if there is an _ in the function
33128 # name, then there are two trailing underscores. Otherwise,
33129 # there is only one trailing underscore. Any idea how to do
33130 # that with m4_translit?
33131 if echo align | grep _ >/dev/null 2>&1 ; then
33132 ompi_ac_align_fn=align__
33133 else
33134 ompi_ac_align_fn=align_
33136 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
33137 ompi_ac_align_fn=align_
33138 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
33139 ompi_ac_align_fn=align
33140 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
33141 ompi_ac_align_fn=align
33142 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
33143 ompi_ac_align_fn=ALIGN
33144 else
33145 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
33146 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
33147 { (exit 1); exit 1; }; }
33150 # Fortran module
33151 cat > conftestf.f <<EOF
33152 program falign
33153 external align
33154 COMPLEX*32 w,x,y,z
33155 CHARACTER a,b,c
33156 common /foo/a,w,b,x,y,c,z
33157 call align(w,x,y,z)
33161 # C module
33162 if test -f conftest.h; then
33163 ompi_conftest_h="#include \"conftest.h\""
33164 else
33165 ompi_conftest_h=""
33167 cat > conftest.c <<EOF
33168 #include <stdio.h>
33169 #include <stdlib.h>
33170 $conftest
33172 #ifdef __cplusplus
33173 extern "C" {
33174 #endif
33175 void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
33176 { unsigned long aw, ax, ay, az;
33177 FILE *f=fopen("conftestval", "w");
33178 if (!f) exit(1);
33179 aw = (unsigned long) w;
33180 ax = (unsigned long) x;
33181 ay = (unsigned long) y;
33182 az = (unsigned long) z;
33183 if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
33184 else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
33185 else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
33186 else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
33187 else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
33188 else fprintf(f, "%d\n", 1);
33189 fclose(f);
33191 #ifdef __cplusplus
33193 #endif
33197 # 1 is the command
33198 # 2 is actions to do if success
33199 # 3 is actions to do if fail
33200 echo "configure:33200: $CC $CFLAGS -I. -c conftest.c" >&5
33201 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
33202 ompi_status=$?
33204 # 1 is the message
33205 # 2 is whether to put a prefix or not
33206 if test -n "1"; then
33207 echo "configure:33207: \$? = $ompi_status" >&5
33208 else
33209 echo \$? = $ompi_status >&5
33211 if test "$ompi_status" = "0"; then
33212 unset ompi_status
33214 # 1 is the command
33215 # 2 is actions to do if success
33216 # 3 is actions to do if fail
33217 echo "configure:33217: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
33218 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
33219 ompi_status=$?
33221 # 1 is the message
33222 # 2 is whether to put a prefix or not
33223 if test -n "1"; then
33224 echo "configure:33224: \$? = $ompi_status" >&5
33225 else
33226 echo \$? = $ompi_status >&5
33228 if test "$ompi_status" = "0"; then
33229 unset ompi_status
33230 happy="yes"
33231 else
33232 unset ompi_status
33233 happy="no"
33235 else
33236 unset ompi_status
33237 happy="no"
33240 if test "$happy" = "no" ; then
33241 { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*32" >&5
33242 echo "$as_me: error: Could not determine alignment of COMPLEX*32" >&2;}
33243 { (exit 1); exit 1; }; }
33246 if test "$cross_compiling" = "yes"; then
33247 { { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX*32 when cross-compiling" >&5
33248 echo "$as_me: error: Can not determine alignment of COMPLEX*32 when cross-compiling" >&2;}
33249 { (exit 1); exit 1; }; }
33250 else
33252 # 1 is the command
33253 # 2 is actions to do if success
33254 # 3 is actions to do if fail
33255 echo "configure:33255: ./conftest" >&5
33256 ./conftest 1>&5 2>&1
33257 ompi_status=$?
33259 # 1 is the message
33260 # 2 is whether to put a prefix or not
33261 if test -n "1"; then
33262 echo "configure:33262: \$? = $ompi_status" >&5
33263 else
33264 echo \$? = $ompi_status >&5
33266 if test "$ompi_status" = "0"; then
33267 unset ompi_status
33268 ompi_cv_f77_alignment_COMPLEXp32=`cat conftestval`
33269 else
33270 unset ompi_status
33271 { { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX*32" >&5
33272 echo "$as_me: error: Could not determine alignment of COMPLEX*32" >&2;}
33273 { (exit 1); exit 1; }; }
33278 unset happy ompi_conf
33279 rm -f conftest*
33281 { echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEXp32" >&5
33282 echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEXp32" >&6; }
33284 ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEXp32
33290 # We always need these defines -- even if we don't have a given type,
33291 # there are some places in the code where we have to have *something*.
33293 cat >>confdefs.h <<_ACEOF
33294 #define OMPI_HAVE_FORTRAN_COMPLEX32 $ofc_have_type
33295 _ACEOF
33298 cat >>confdefs.h <<_ACEOF
33299 #define OMPI_SIZEOF_FORTRAN_COMPLEX32 $ofc_type_size
33300 _ACEOF
33303 cat >>confdefs.h <<_ACEOF
33304 #define OMPI_ALIGNMENT_FORTRAN_COMPLEX32 $ofc_type_alignment
33305 _ACEOF
33307 if test "" != ""; then
33309 cat >>confdefs.h <<_ACEOF
33310 #define ompi_fortran_complex32_t $ofc_c_type
33311 _ACEOF
33315 # Save some in shell variables for later use (e.g., need
33316 # OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
33317 OMPI_FORTRAN_COMPLEX32_C_TYPE=$ofc_c_type
33318 OMPI_HAVE_FORTRAN_COMPLEX32=$ofc_have_type
33319 OMPI_SIZEOF_FORTRAN_COMPLEX32=$ofc_type_size
33320 OMPI_ALIGNMENT_FORTRAN_COMPLEX32=$ofc_type_alignment
33322 # Clean up
33323 unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
33324 unset ofc_expected_size
33327 # Regardless of whether we have fortran bindings, or even a fortran
33328 # compiler, get the max value for a fortran MPI handle (this macro
33329 # handles the case where we don't have a fortran compiler).
33332 { echo "$as_me:$LINENO: checking for max Fortran MPI handle index" >&5
33333 echo $ECHO_N "checking for max Fortran MPI handle index... $ECHO_C" >&6; }
33334 if test "${ompi_cv_f77_fortran_handle_max+set}" = set; then
33335 echo $ECHO_N "(cached) $ECHO_C" >&6
33336 else
33337 # Find max fortran INTEGER value. Set to sentinel value if we don't
33338 # have a Fortran compiler (e.g., if --disable-f77 was given).
33339 if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then
33340 ompi_fint_max=0
33341 else
33342 # Calculate the number of f's that we need to append to the hex
33343 # value. Do one less than we really need becaue we assume the
33344 # top nybble is 0x7 to avoid sign issues.
33345 ompi_numf=`expr $OMPI_SIZEOF_FORTRAN_INTEGER \* 2 - 1`
33346 ompi_fint_max=0x7
33347 while test "$ompi_numf" -gt "0"; do
33348 ompi_fint_max=${ompi_fint_max}f
33349 ompi_numf=`expr $ompi_numf - 1`
33350 done
33353 # Get INT_MAX. Compute a SWAG if we are cross compiling or something
33354 # goes wrong.
33355 rm -f conftest.out >/dev/null 2>&1
33356 if test "$cross_compiling" = yes; then
33357 #cross compiling is fun. compute INT_MAX same as INTEGER max
33358 ompi_numf=`expr $ac_cv_sizeof_int \* 2 - 1`
33359 ompi_cint_max=0x7
33360 while test "$ompi_numf" -gt "0" ; do
33361 ompi_cint_max=${ompi_cint_max}f
33362 ompi_numf=`expr $ompi_numf - 1`
33363 done
33364 else
33365 cat >conftest.$ac_ext <<_ACEOF
33366 /* confdefs.h. */
33367 _ACEOF
33368 cat confdefs.h >>conftest.$ac_ext
33369 cat >>conftest.$ac_ext <<_ACEOF
33370 /* end confdefs.h. */
33372 #include <stdio.h>
33373 #include <limits.h>
33376 main ()
33378 FILE *fp = fopen("conftest.out", "w");
33379 long cint = INT_MAX;
33380 fprintf(fp, "%ld", cint);
33381 fclose(fp);
33383 return 0;
33385 _ACEOF
33386 rm -f conftest$ac_exeext
33387 if { (ac_try="$ac_link"
33388 case "(($ac_try" in
33389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33390 *) ac_try_echo=$ac_try;;
33391 esac
33392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33393 (eval "$ac_link") 2>&5
33394 ac_status=$?
33395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33397 { (case "(($ac_try" in
33398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33399 *) ac_try_echo=$ac_try;;
33400 esac
33401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33402 (eval "$ac_try") 2>&5
33403 ac_status=$?
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); }; }; then
33406 ompi_cint_max=`cat conftest.out`
33407 else
33408 echo "$as_me: program exited with status $ac_status" >&5
33409 echo "$as_me: failed program was:" >&5
33410 sed 's/^/| /' conftest.$ac_ext >&5
33412 ( exit $ac_status )
33413 ompi_cint_max=0
33415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33420 if test "$ompi_cint_max" = "0" ; then
33421 # wow - something went really wrong. Be conservative
33422 ompi_cv_f77_fortran_handle_max=32767
33423 elif test "$ompi_fint_max" = "0" ; then
33424 # we aren't compiling Fortran - just set it to C INT_MAX
33425 ompi_cv_f77_fortran_handle_max=$ompi_cint_max
33426 else
33427 # take the lesser of C INT_MAX and Fortran INTEGER
33428 # max. The resulting value will then be storable in
33429 # either type. There's no easy way to do this in
33430 # the shell, so make the preprocessor do it.
33431 ompi_cv_f77_fortran_handle_max="( $ompi_fint_max < $ompi_cint_max ? $ompi_fint_max : $ompi_cint_max )"
33433 rm -f conftest.out > /dev/null 2>&1
33435 { echo "$as_me:$LINENO: result: $ompi_cv_f77_fortran_handle_max" >&5
33436 echo "${ECHO_T}$ompi_cv_f77_fortran_handle_max" >&6; }
33439 cat >>confdefs.h <<_ACEOF
33440 #define OMPI_FORTRAN_HANDLE_MAX $ompi_cv_f77_fortran_handle_max
33441 _ACEOF
33446 # Check for Fortran compilers value of TRUE and for the correct assumption
33447 # on LOGICAL for conversion into what C considers to be a true value
33450 # invalidate cache if result came from a run where F77 was disabled
33451 if test "$ompi_cv_f77_true_value" = "0" ; then
33452 unset ompi_cv_f77_true_value
33455 { echo "$as_me:$LINENO: checking FORTRAN value for .TRUE. logical type" >&5
33456 echo $ECHO_N "checking FORTRAN value for .TRUE. logical type... $ECHO_C" >&6; }
33457 if test "${ompi_cv_f77_true_value+set}" = set; then
33458 echo $ECHO_N "(cached) $ECHO_C" >&6
33459 else
33460 if test "" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0" ; then
33461 ompi_cv_f77_true_value=0
33462 else
33464 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
33465 # so the general rule is that if there is an _ in the function
33466 # name, then there are two trailing underscores. Otherwise,
33467 # there is only one trailing underscore. Any idea how to do
33468 # that with m4_translit?
33469 if echo print | grep _ >/dev/null 2>&1 ; then
33470 ompi_print_logical_fn=print__
33471 else
33472 ompi_print_logical_fn=print_
33474 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
33475 ompi_print_logical_fn=print_
33476 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
33477 ompi_print_logical_fn=print
33478 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
33479 ompi_print_logical_fn=print
33480 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
33481 ompi_print_logical_fn=PRINT
33482 else
33483 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
33484 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
33485 { (exit 1); exit 1; }; }
33490 # C module
33491 # We really need the confdefs.h Header file for
33492 # the ompi_fortran_logical_t definition
33494 if test \! -f confdefs.h ; then
33495 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
33496 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
33497 { echo "$as_me:$LINENO: WARNING: *** Cannot find confdefs.h file for config test" >&5
33498 echo "$as_me: WARNING: *** Cannot find confdefs.h file for config test" >&2;}
33499 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
33500 echo "$as_me: WARNING: *** See config.log for details." >&2;}
33501 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
33502 echo "$as_me: error: *** Cannot continue." >&2;}
33503 { (exit 1); exit 1; }; }
33506 cat > conftest.c <<EOF
33507 #include <stdio.h>
33508 #include <stdlib.h>
33509 #include "confdefs.h"
33511 #ifdef __cplusplus
33512 extern "C" {
33513 #endif
33514 void $ompi_print_logical_fn(ompi_fortran_logical_t * logical);
33516 void $ompi_print_logical_fn(ompi_fortran_logical_t * logical)
33518 int result = 0;
33519 FILE *f=fopen("conftestval", "w");
33520 if (!f) exit(1);
33522 if( SIZEOF_INT >= sizeof(ompi_fortran_logical_t) ) {
33523 fprintf(f, "%d\n", (int)*logical);
33524 } else if (SIZEOF_LONG >= sizeof(ompi_fortran_logical_t) ) {
33525 fprintf(f, "%ld\n", (long) *logical);
33526 } else {
33527 exit(1);
33531 #ifdef __cplusplus
33533 #endif
33536 cat > conftestf.f <<EOF
33537 program main
33538 logical value
33539 value=.TRUE.
33540 CALL print(value)
33545 # Try the compilation and run.
33548 # 1 is the command
33549 # 2 is actions to do if success
33550 # 3 is actions to do if fail
33551 echo "configure:33551: $CC $CFLAGS -I. -c conftest.c" >&5
33552 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
33553 ompi_status=$?
33555 # 1 is the message
33556 # 2 is whether to put a prefix or not
33557 if test -n "1"; then
33558 echo "configure:33558: \$? = $ompi_status" >&5
33559 else
33560 echo \$? = $ompi_status >&5
33562 if test "$ompi_status" = "0"; then
33563 unset ompi_status
33565 # 1 is the command
33566 # 2 is actions to do if success
33567 # 3 is actions to do if fail
33568 echo "configure:33568: $F77 $FFLAGS -o conftest conftest.o conftestf.f $LDFLAGS $LIBS" >&5
33569 $F77 $FFLAGS -o conftest conftest.o conftestf.f $LDFLAGS $LIBS 1>&5 2>&1
33570 ompi_status=$?
33572 # 1 is the message
33573 # 2 is whether to put a prefix or not
33574 if test -n "1"; then
33575 echo "configure:33575: \$? = $ompi_status" >&5
33576 else
33577 echo \$? = $ompi_status >&5
33579 if test "$ompi_status" = "0"; then
33580 unset ompi_status
33581 happy=1
33582 else
33583 unset ompi_status
33584 happy=0
33586 else
33587 unset ompi_status
33588 happy=0
33591 if test "$happy" = "0" ; then
33592 { { echo "$as_me:$LINENO: error: Could not determine value of Fotran .TRUE.. Aborting." >&5
33593 echo "$as_me: error: Could not determine value of Fotran .TRUE.. Aborting." >&2;}
33594 { (exit 1); exit 1; }; }
33597 if test "$cross_compiling" = "yes"; then
33598 { { echo "$as_me:$LINENO: error: Can not determine value of .TRUE. when cross-compiling" >&5
33599 echo "$as_me: error: Can not determine value of .TRUE. when cross-compiling" >&2;}
33600 { (exit 1); exit 1; }; }
33601 else
33603 # 1 is the command
33604 # 2 is actions to do if success
33605 # 3 is actions to do if fail
33606 echo "configure:33606: ./conftest" >&5
33607 ./conftest 1>&5 2>&1
33608 ompi_status=$?
33610 # 1 is the message
33611 # 2 is whether to put a prefix or not
33612 if test -n "1"; then
33613 echo "configure:33613: \$? = $ompi_status" >&5
33614 else
33615 echo \$? = $ompi_status >&5
33617 if test "$ompi_status" = "0"; then
33618 unset ompi_status
33619 ompi_cv_f77_true_value=`sed 's/ *//' conftestval`
33620 else
33621 unset ompi_status
33622 { { echo "$as_me:$LINENO: error: Could not determine value of Fotran .TRUE.. Aborting." >&5
33623 echo "$as_me: error: Could not determine value of Fotran .TRUE.. Aborting." >&2;}
33624 { (exit 1); exit 1; }; }
33630 { echo "$as_me:$LINENO: result: $ompi_cv_f77_true_value" >&5
33631 echo "${ECHO_T}$ompi_cv_f77_true_value" >&6; }
33634 cat >>confdefs.h <<_ACEOF
33635 #define OMPI_FORTRAN_VALUE_TRUE $ompi_cv_f77_true_value
33636 _ACEOF
33639 unset happy ompi_print_logical_fn
33640 /bin/rm -f conftest*
33643 { echo "$as_me:$LINENO: checking for correct handling of FORTRAN logical arrays" >&5
33644 echo $ECHO_N "checking for correct handling of FORTRAN logical arrays... $ECHO_C" >&6; }
33645 if test "${ompi_cv_f77_logical_array_correct+set}" = set; then
33646 echo $ECHO_N "(cached) $ECHO_C" >&6
33647 else
33648 if test "" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0"; then
33649 ompi_cv_f77_logical_array_correct=yes
33650 else
33652 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
33653 # so the general rule is that if there is an _ in the function
33654 # name, then there are two trailing underscores. Otherwise,
33655 # there is only one trailing underscore. Any idea how to do
33656 # that with m4_translit?
33657 if echo check | grep _ >/dev/null 2>&1 ; then
33658 ompi_check_logical_fn=check__
33659 else
33660 ompi_check_logical_fn=check_
33662 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
33663 ompi_check_logical_fn=check_
33664 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
33665 ompi_check_logical_fn=check
33666 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
33667 ompi_check_logical_fn=check
33668 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
33669 ompi_check_logical_fn=CHECK
33670 else
33671 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
33672 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
33673 { (exit 1); exit 1; }; }
33677 # Fortran module
33678 cat > conftestf.f <<EOF
33679 program check_logical_array
33680 external check
33681 logical l(2)
33682 l(1)=.FALSE.
33683 l(2)=.TRUE.
33684 CALL check(l)
33688 # C module
33689 # We really need the confdefs.h Header file for
33690 # the ompi_fortran_logical_t definition
33691 if test \! -f confdefs.h ; then
33692 { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
33693 echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
33694 { echo "$as_me:$LINENO: WARNING: *** Cannot find confdefs.h file for config test" >&5
33695 echo "$as_me: WARNING: *** Cannot find confdefs.h file for config test" >&2;}
33696 { echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
33697 echo "$as_me: WARNING: *** See config.log for details." >&2;}
33698 { { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
33699 echo "$as_me: error: *** Cannot continue." >&2;}
33700 { (exit 1); exit 1; }; }
33703 cat > conftest.c <<EOF
33704 #include <stdio.h>
33705 #include <stdlib.h>
33706 #include "confdefs.h"
33708 #ifdef __cplusplus
33709 extern "C" {
33710 #endif
33711 void $ompi_check_logical_fn(ompi_fortran_logical_t * logical);
33713 void $ompi_check_logical_fn(ompi_fortran_logical_t * logical)
33715 int result = 0;
33716 FILE *f=fopen("conftestval", "w");
33717 if (!f) exit(1);
33719 if (logical[0] == 0 &&
33720 logical[1] == $ompi_cv_f77_true_value)
33721 result = 1;
33722 fprintf(f, "%d\n", result);
33724 #ifdef __cplusplus
33726 #endif
33729 # Try the compilation and run. Can't use AC_TRY_RUN
33730 # because it's two module files.
33732 # 1 is the command
33733 # 2 is actions to do if success
33734 # 3 is actions to do if fail
33735 echo "configure:33735: $CC $CFLAGS -I. -c conftest.c" >&5
33736 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
33737 ompi_status=$?
33739 # 1 is the message
33740 # 2 is whether to put a prefix or not
33741 if test -n "1"; then
33742 echo "configure:33742: \$? = $ompi_status" >&5
33743 else
33744 echo \$? = $ompi_status >&5
33746 if test "$ompi_status" = "0"; then
33747 unset ompi_status
33749 # 1 is the command
33750 # 2 is actions to do if success
33751 # 3 is actions to do if fail
33752 echo "configure:33752: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
33753 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
33754 ompi_status=$?
33756 # 1 is the message
33757 # 2 is whether to put a prefix or not
33758 if test -n "1"; then
33759 echo "configure:33759: \$? = $ompi_status" >&5
33760 else
33761 echo \$? = $ompi_status >&5
33763 if test "$ompi_status" = "0"; then
33764 unset ompi_status
33765 happy=1
33766 else
33767 unset ompi_status
33768 happy=0
33770 else
33771 unset ompi_status
33772 happy=0
33774 if test "$happy" = "0" ; then
33775 { { echo "$as_me:$LINENO: error: Error determining if arrays of logical values work properly." >&5
33776 echo "$as_me: error: Error determining if arrays of logical values work properly." >&2;}
33777 { (exit 1); exit 1; }; }
33780 if test "$cross_compiling" = "yes"; then
33781 # assume we're ok
33782 ompi_cv_f77_logical_array_correct=yes
33783 else
33785 # 1 is the command
33786 # 2 is actions to do if success
33787 # 3 is actions to do if fail
33788 echo "configure:33788: ./conftest" >&5
33789 ./conftest 1>&5 2>&1
33790 ompi_status=$?
33792 # 1 is the message
33793 # 2 is whether to put a prefix or not
33794 if test -n "1"; then
33795 echo "configure:33795: \$? = $ompi_status" >&5
33796 else
33797 echo \$? = $ompi_status >&5
33799 if test "$ompi_status" = "0"; then
33800 unset ompi_status
33801 if test "`cat conftestval`" = "1" ; then
33802 ompi_cv_f77_logical_array_correct=yes
33803 else
33804 ompi_cv_f77_logical_array_correct=no
33806 else
33807 unset ompi_status
33808 ompi_cv_f77_logical_array_correct=no
33814 { echo "$as_me:$LINENO: result: $ompi_cv_f77_logical_array_correct" >&5
33815 echo "${ECHO_T}$ompi_cv_f77_logical_array_correct" >&6; }
33817 if test "$ompi_cv_f77_logical_array_correct" = "no" ; then
33818 { { echo "$as_me:$LINENO: error: Error determining if arrays of logical values work properly." >&5
33819 echo "$as_me: error: Error determining if arrays of logical values work properly." >&2;}
33820 { (exit 1); exit 1; }; }
33823 unset happy ompi_check_logical_fn
33824 /bin/rm -f conftest*
33828 # There are 2 layers to the MPI f77 layer. The only extra thing that
33829 # determine f77 bindings is that fortran can be disabled by user. In
33830 # such cases, we need to not build the target at all. One layer
33831 # generates MPI_f77* bindings. The other layer generates PMPI_f77*
33832 # bindings. The following conditions determine whether each (or both)
33833 # these layers are built.
33835 # Superceeding clause:
33836 # - fortran77 bindings should be enabled, else everything is
33837 # disabled
33838 # 1. MPI_f77* bindings are needed if:
33839 # - Profiling is not required
33840 # - Profiling is required but weak symbols are not
33841 # supported
33842 # 2. PMPI_* bindings are needed if profiling is required. Hence we
33843 # define 2 conditionals which tell us whether each of these layers
33844 # need to be built or NOT
33848 if test \( "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1 \) -a "$OMPI_WANT_F77_BINDINGS" = 1; then
33849 WANT_MPI_F77_BINDINGS_LAYER_TRUE=
33850 WANT_MPI_F77_BINDINGS_LAYER_FALSE='#'
33851 else
33852 WANT_MPI_F77_BINDINGS_LAYER_TRUE='#'
33853 WANT_MPI_F77_BINDINGS_LAYER_FALSE=
33859 if test "$OMPI_WANT_F77_BINDINGS" = 1 -a "$WANT_MPI_PROFILING" = 1; then
33860 WANT_PMPI_F77_BINDINGS_LAYER_TRUE=
33861 WANT_PMPI_F77_BINDINGS_LAYER_FALSE='#'
33862 else
33863 WANT_PMPI_F77_BINDINGS_LAYER_TRUE='#'
33864 WANT_PMPI_F77_BINDINGS_LAYER_FALSE=
33868 #-----------
33869 # Fortran 90
33870 #-----------
33875 # Modularize this setup so that sub-configure.in scripts can use this
33876 # same setup code.
33878 ompi_show_subtitle "Fortran 90/95 compiler"
33880 if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then
33881 { echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings implicitly disabled (because" >&5
33882 echo "$as_me: WARNING: *** Fortran 90/95 bindings implicitly disabled (because" >&2;}
33883 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings were disabled)" >&5
33884 echo "$as_me: WARNING: *** Fortran 77 bindings were disabled)" >&2;}
33886 OMPI_WANT_F90_BINDINGS=0
33887 OMPI_F90="none"
33888 BASEF90="none"
33889 OMPI_F90_ABSOLUTE="none"
33890 if test "$enable_f90" = "yes"; then
33891 { echo "$as_me:$LINENO: WARNING: *** but --enable-f90 was explicitly specified" >&5
33892 echo "$as_me: WARNING: *** but --enable-f90 was explicitly specified" >&2;}
33893 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
33894 echo "$as_me: error: Cannot continue" >&2;}
33895 { (exit 1); exit 1; }; }
33897 elif test "$OMPI_WANT_F90_BINDINGS" = "0" ; then
33898 { echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings disabled by user" >&5
33899 echo "$as_me: WARNING: *** Fortran 90/95 bindings disabled by user" >&2;}
33900 OMPI_WANT_F90_BINDINGS=0
33901 OMPI_F90="none"
33902 BASEF90="none"
33903 OMPI_F90_ABSOLUTE="none"
33904 else
33907 # Check for the compiler
33909 # Note that we don't actually *use* the fortran compiler to build
33910 # anything in OMPI; it's only used here in configure to find out
33911 # symbol conventions, type sizes, etc. We also pass it down to
33912 # the wrapper compiler mpif90.
33914 # Note that AC_PROG_FC will look for *any* fortran compiler, and
33915 # we don't want it to find an F77 compiler. The AC docs don't
33916 # recommend using the "dialect" feature of AC_PROG_FC (and you can
33917 # only look for one of Fortran 90 or 95 -- not both), so instead
33918 # use the optional first parameter and steal the list of Fortran
33919 # compilers (excluding the f77 compiler names) from AC's default
33920 # list of 95 and 90 compilers and use it here.
33923 ompi_fcflags_save="$FCFLAGS"
33924 ac_ext=${ac_fc_srcext-f}
33925 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
33926 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
33927 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
33928 if test -n "$ac_tool_prefix"; then
33929 for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgf95 lf95 f90 xlf90 pgf90 epcf90
33931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
33932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
33933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33935 if test "${ac_cv_prog_FC+set}" = set; then
33936 echo $ECHO_N "(cached) $ECHO_C" >&6
33937 else
33938 if test -n "$FC"; then
33939 ac_cv_prog_FC="$FC" # Let the user override the test.
33940 else
33941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33942 for as_dir in $PATH
33944 IFS=$as_save_IFS
33945 test -z "$as_dir" && as_dir=.
33946 for ac_exec_ext in '' $ac_executable_extensions; do
33947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33948 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
33949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33950 break 2
33952 done
33953 done
33954 IFS=$as_save_IFS
33958 FC=$ac_cv_prog_FC
33959 if test -n "$FC"; then
33960 { echo "$as_me:$LINENO: result: $FC" >&5
33961 echo "${ECHO_T}$FC" >&6; }
33962 else
33963 { echo "$as_me:$LINENO: result: no" >&5
33964 echo "${ECHO_T}no" >&6; }
33968 test -n "$FC" && break
33969 done
33971 if test -z "$FC"; then
33972 ac_ct_FC=$FC
33973 for ac_prog in gfortran f95 fort xlf95 ifort ifc efc pgf95 lf95 f90 xlf90 pgf90 epcf90
33975 # Extract the first word of "$ac_prog", so it can be a program name with args.
33976 set dummy $ac_prog; ac_word=$2
33977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33979 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
33980 echo $ECHO_N "(cached) $ECHO_C" >&6
33981 else
33982 if test -n "$ac_ct_FC"; then
33983 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
33984 else
33985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33986 for as_dir in $PATH
33988 IFS=$as_save_IFS
33989 test -z "$as_dir" && as_dir=.
33990 for ac_exec_ext in '' $ac_executable_extensions; do
33991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33992 ac_cv_prog_ac_ct_FC="$ac_prog"
33993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33994 break 2
33996 done
33997 done
33998 IFS=$as_save_IFS
34002 ac_ct_FC=$ac_cv_prog_ac_ct_FC
34003 if test -n "$ac_ct_FC"; then
34004 { echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
34005 echo "${ECHO_T}$ac_ct_FC" >&6; }
34006 else
34007 { echo "$as_me:$LINENO: result: no" >&5
34008 echo "${ECHO_T}no" >&6; }
34012 test -n "$ac_ct_FC" && break
34013 done
34015 if test "x$ac_ct_FC" = x; then
34016 FC=""
34017 else
34018 case $cross_compiling:$ac_tool_warned in
34019 yes:)
34020 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34021 whose name does not start with the host triplet. If you think this
34022 configuration is useful to you, please write to autoconf@gnu.org." >&5
34023 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34024 whose name does not start with the host triplet. If you think this
34025 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34026 ac_tool_warned=yes ;;
34027 esac
34028 FC=$ac_ct_FC
34033 # Provide some information about the compiler.
34034 echo "$as_me:$LINENO: checking for Fortran compiler version" >&5
34035 ac_compiler=`set X $ac_compile; echo $2`
34036 { (ac_try="$ac_compiler --version >&5"
34037 case "(($ac_try" in
34038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34039 *) ac_try_echo=$ac_try;;
34040 esac
34041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34042 (eval "$ac_compiler --version >&5") 2>&5
34043 ac_status=$?
34044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045 (exit $ac_status); }
34046 { (ac_try="$ac_compiler -v >&5"
34047 case "(($ac_try" in
34048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34049 *) ac_try_echo=$ac_try;;
34050 esac
34051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34052 (eval "$ac_compiler -v >&5") 2>&5
34053 ac_status=$?
34054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055 (exit $ac_status); }
34056 { (ac_try="$ac_compiler -V >&5"
34057 case "(($ac_try" in
34058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34059 *) ac_try_echo=$ac_try;;
34060 esac
34061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34062 (eval "$ac_compiler -V >&5") 2>&5
34063 ac_status=$?
34064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065 (exit $ac_status); }
34066 rm -f a.out
34068 # If we don't use `.F' as extension, the preprocessor is not run on the
34069 # input file. (Note that this only needs to work for GNU compilers.)
34070 ac_save_ext=$ac_ext
34071 ac_ext=F
34072 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
34073 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; }
34074 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
34075 echo $ECHO_N "(cached) $ECHO_C" >&6
34076 else
34077 cat >conftest.$ac_ext <<_ACEOF
34078 program main
34079 #ifndef __GNUC__
34080 choke me
34081 #endif
34084 _ACEOF
34085 rm -f conftest.$ac_objext
34086 if { (ac_try="$ac_compile"
34087 case "(($ac_try" in
34088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34089 *) ac_try_echo=$ac_try;;
34090 esac
34091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34092 (eval "$ac_compile") 2>conftest.er1
34093 ac_status=$?
34094 grep -v '^ *+' conftest.er1 >conftest.err
34095 rm -f conftest.er1
34096 cat conftest.err >&5
34097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34098 (exit $ac_status); } && {
34099 test -z "$ac_fc_werror_flag" ||
34100 test ! -s conftest.err
34101 } && test -s conftest.$ac_objext; then
34102 ac_compiler_gnu=yes
34103 else
34104 echo "$as_me: failed program was:" >&5
34105 sed 's/^/| /' conftest.$ac_ext >&5
34107 ac_compiler_gnu=no
34110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34111 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
34114 { echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
34115 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; }
34116 ac_ext=$ac_save_ext
34117 ac_test_FFLAGS=${FCFLAGS+set}
34118 ac_save_FFLAGS=$FCFLAGS
34119 FCFLAGS=
34120 { echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
34121 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; }
34122 if test "${ac_cv_prog_fc_g+set}" = set; then
34123 echo $ECHO_N "(cached) $ECHO_C" >&6
34124 else
34125 FCFLAGS=-g
34126 cat >conftest.$ac_ext <<_ACEOF
34127 program main
34130 _ACEOF
34131 rm -f conftest.$ac_objext
34132 if { (ac_try="$ac_compile"
34133 case "(($ac_try" in
34134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34135 *) ac_try_echo=$ac_try;;
34136 esac
34137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34138 (eval "$ac_compile") 2>conftest.er1
34139 ac_status=$?
34140 grep -v '^ *+' conftest.er1 >conftest.err
34141 rm -f conftest.er1
34142 cat conftest.err >&5
34143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34144 (exit $ac_status); } && {
34145 test -z "$ac_fc_werror_flag" ||
34146 test ! -s conftest.err
34147 } && test -s conftest.$ac_objext; then
34148 ac_cv_prog_fc_g=yes
34149 else
34150 echo "$as_me: failed program was:" >&5
34151 sed 's/^/| /' conftest.$ac_ext >&5
34153 ac_cv_prog_fc_g=no
34156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34159 { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
34160 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; }
34161 if test "$ac_test_FFLAGS" = set; then
34162 FCFLAGS=$ac_save_FFLAGS
34163 elif test $ac_cv_prog_fc_g = yes; then
34164 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
34165 FCFLAGS="-g -O2"
34166 else
34167 FCFLAGS="-g"
34169 else
34170 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
34171 FCFLAGS="-O2"
34172 else
34173 FCFLAGS=
34177 ac_ext=c
34178 ac_cpp='$CPP $CPPFLAGS'
34179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34183 FCFLAGS="$ompi_fcflags_save"
34184 if test -z "$FC"; then
34185 { echo "$as_me:$LINENO: WARNING: *** Fortran 90/95 bindings disabled (could not find compiler)" >&5
34186 echo "$as_me: WARNING: *** Fortran 90/95 bindings disabled (could not find compiler)" >&2;}
34187 OMPI_WANT_F90_BINDINGS=0
34188 OMPI_F90="none"
34189 BASEF90="none"
34190 OMPI_F90_ABSOLUTE="none"
34191 else
34192 OMPI_WANT_F90_BINDINGS=1
34193 OMPI_F90="$FC"
34194 BASEF90="`basename $FC`"
34195 OMPI_F90_ABSOLUTE="`which $FC`"
34198 # make sure the compiler actually works, if not cross-compiling
34199 # Don't just use the AC macro so that we can have a pretty
34200 # message.
34201 if test $OMPI_WANT_F90_BINDINGS -eq 1; then
34204 { echo "$as_me:$LINENO: checking if Fortran compiler works" >&5
34205 echo $ECHO_N "checking if Fortran compiler works... $ECHO_C" >&6; }
34206 if test "${ompi_cv_Fortran_works+set}" = set; then
34207 echo $ECHO_N "(cached) $ECHO_C" >&6
34208 else
34209 ac_ext=${ac_fc_srcext-f}
34210 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
34211 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
34212 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
34214 if test "$cross_compiling" = yes; then
34215 ompi_cv_Fortran_works="cross compiling"
34216 else
34217 cat >conftest.$ac_ext <<_ACEOF
34218 program main
34221 _ACEOF
34222 rm -f conftest$ac_exeext
34223 if { (ac_try="$ac_link"
34224 case "(($ac_try" in
34225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34226 *) ac_try_echo=$ac_try;;
34227 esac
34228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34229 (eval "$ac_link") 2>&5
34230 ac_status=$?
34231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34233 { (case "(($ac_try" in
34234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34235 *) ac_try_echo=$ac_try;;
34236 esac
34237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34238 (eval "$ac_try") 2>&5
34239 ac_status=$?
34240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34241 (exit $ac_status); }; }; then
34242 ompi_cv_Fortran_works="yes"
34243 else
34244 echo "$as_me: program exited with status $ac_status" >&5
34245 echo "$as_me: failed program was:" >&5
34246 sed 's/^/| /' conftest.$ac_ext >&5
34248 ( exit $ac_status )
34249 ompi_cv_Fortran_works="no"
34251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34255 ac_ext=c
34256 ac_cpp='$CPP $CPPFLAGS'
34257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34262 { echo "$as_me:$LINENO: result: $ompi_cv_Fortran_works" >&5
34263 echo "${ECHO_T}$ompi_cv_Fortran_works" >&6; }
34264 if test "$ompi_cv_Fortran_works" = "no"; then
34265 cat <<EOF >&2
34266 **********************************************************************
34267 * It appears that your Fortran compiler is unable to produce working
34268 * executables. A simple test application failed to properly
34269 * execute. Note that this is likely not a problem with Open MPI,
34270 * but a problem with the local compiler installation. More
34271 * information (including exactly what command was given to the
34272 * compiler and what error resulted when the command was executed) is
34273 * available in the config.log file in this directory.
34274 **********************************************************************
34276 { { echo "$as_me:$LINENO: error: Could not run a simple Fortran program. Aborting." >&5
34277 echo "$as_me: error: Could not run a simple Fortran program. Aborting." >&2;}
34278 { (exit 1); exit 1; }; }
34286 # check to see if the F77 and F90 compilers are compatible
34287 if test $OMPI_WANT_F90_BINDINGS -eq 1; then
34288 { echo "$as_me:$LINENO: checking whether $OMPI_F77 and $OMPI_F90 compilers are compatible" >&5
34289 echo $ECHO_N "checking whether $OMPI_F77 and $OMPI_F90 compilers are compatible... $ECHO_C" >&6; }
34291 # make sure that we can combine F90 and F77 code
34292 ac_ext=${ac_fc_srcext-f}
34293 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
34294 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
34295 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
34297 # Fortran module
34298 cat > conftestf77.f <<EOF
34299 subroutine Conf1_test()
34302 cat > conftestf90.f <<EOF
34303 program main
34304 call Conf1_test()
34308 # Try the compile
34310 # 1 is the command
34311 # 2 is actions to do if success
34312 # 3 is actions to do if fail
34313 echo "configure:34313: $OMPI_F90 $FCFLAGS $FCFLAGS_f -c conftestf90.f" >&5
34314 $OMPI_F90 $FCFLAGS $FCFLAGS_f -c conftestf90.f 1>&5 2>&1
34315 ompi_status=$?
34317 # 1 is the message
34318 # 2 is whether to put a prefix or not
34319 if test -n "1"; then
34320 echo "configure:34320: \$? = $ompi_status" >&5
34321 else
34322 echo \$? = $ompi_status >&5
34324 if test "$ompi_status" = "0"; then
34325 unset ompi_status
34327 # 1 is the command
34328 # 2 is actions to do if success
34329 # 3 is actions to do if fail
34330 echo "configure:34330: $OMPI_F77 $FFLAGS -c conftestf77.f" >&5
34331 $OMPI_F77 $FFLAGS -c conftestf77.f 1>&5 2>&1
34332 ompi_status=$?
34334 # 1 is the message
34335 # 2 is whether to put a prefix or not
34336 if test -n "1"; then
34337 echo "configure:34337: \$? = $ompi_status" >&5
34338 else
34339 echo \$? = $ompi_status >&5
34341 if test "$ompi_status" = "0"; then
34342 unset ompi_status
34344 # 1 is the command
34345 # 2 is actions to do if success
34346 # 3 is actions to do if fail
34347 echo "configure:34347: $OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $LIBS" >&5
34348 $OMPI_F90 $FCFLAGS -o conftest conftestf90.o conftestf77.o $LIBS 1>&5 2>&1
34349 ompi_status=$?
34351 # 1 is the message
34352 # 2 is whether to put a prefix or not
34353 if test -n "1"; then
34354 echo "configure:34354: \$? = $ompi_status" >&5
34355 else
34356 echo \$? = $ompi_status >&5
34358 if test "$ompi_status" = "0"; then
34359 unset ompi_status
34360 HAPPY=1
34361 else
34362 unset ompi_status
34363 HAPPY=0
34365 else
34366 unset ompi_status
34367 HAPPY=0
34369 else
34370 unset ompi_status
34371 HAPPY=0
34374 if test "$HAPPY" = "1"; then
34375 fortran_goodness=1
34376 else
34378 # 1 is the message
34379 # 2 is whether to put a prefix or not
34380 if test -n "1"; then
34381 echo "configure:34381: here is the F77 program:" >&5
34382 else
34383 echo here is the F77 program: >&5
34386 # 1 is the filename
34387 if test -n "conftestf77.f" -a -f "conftestf77.f"; then
34388 cat conftestf77.f >&5
34391 # 1 is the message
34392 # 2 is whether to put a prefix or not
34393 if test -n "1"; then
34394 echo "configure:34394: here is the F90 program:" >&5
34395 else
34396 echo here is the F90 program: >&5
34399 # 1 is the filename
34400 if test -n "conftestf90.f" -a -f "conftestf90.f"; then
34401 cat conftestf90.f >&5
34403 fortran_goodness=0
34406 unset HAPPY ompi_conftest_h
34407 /bin/rm -f conftest*
34409 ac_ext=c
34410 ac_cpp='$CPP $CPPFLAGS'
34411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34416 if test "$fortran_goodness" = "0" ; then
34417 { echo "$as_me:$LINENO: result: no" >&5
34418 echo "${ECHO_T}no" >&6; }
34419 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 and Fortran 90 compilers are not link compatible" >&5
34420 echo "$as_me: WARNING: *** Fortran 77 and Fortran 90 compilers are not link compatible" >&2;}
34421 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI Fortran 90/95 bindings" >&5
34422 echo "$as_me: WARNING: *** Disabling MPI Fortran 90/95 bindings" >&2;}
34423 OMPI_WANT_F90_BINDINGS=0
34424 else
34425 { echo "$as_me:$LINENO: result: yes" >&5
34426 echo "${ECHO_T}yes" >&6; }
34432 # if we're still good, then save the extra file types. Do this last
34433 # because it implies tests that should be invoked by the above tests
34434 # (e.g., running the fortran compiler).
34435 if test $OMPI_WANT_F90_BINDINGS -eq 1; then
34436 ac_ext=${ac_fc_srcext-f}
34437 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
34438 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
34439 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
34441 ac_ext=${ac_fc_srcext-f}
34442 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
34443 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
34444 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
34445 { echo "$as_me:$LINENO: checking for Fortran flag to compile .f files" >&5
34446 echo $ECHO_N "checking for Fortran flag to compile .f files... $ECHO_C" >&6; }
34447 if test "${ac_cv_fc_srcext_f+set}" = set; then
34448 echo $ECHO_N "(cached) $ECHO_C" >&6
34449 else
34450 ac_ext=f
34451 ac_fcflags_srcext_save=$ac_fcflags_srcext
34452 ac_fcflags_srcext=
34453 ac_cv_fc_srcext_f=unknown
34454 for ac_flag in none -qsuffix=f=f -Tf; do
34455 test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
34456 cat >conftest.$ac_ext <<_ACEOF
34457 program main
34460 _ACEOF
34461 rm -f conftest.$ac_objext
34462 if { (ac_try="$ac_compile"
34463 case "(($ac_try" in
34464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34465 *) ac_try_echo=$ac_try;;
34466 esac
34467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34468 (eval "$ac_compile") 2>conftest.er1
34469 ac_status=$?
34470 grep -v '^ *+' conftest.er1 >conftest.err
34471 rm -f conftest.er1
34472 cat conftest.err >&5
34473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474 (exit $ac_status); } && {
34475 test -z "$ac_fc_werror_flag" ||
34476 test ! -s conftest.err
34477 } && test -s conftest.$ac_objext; then
34478 ac_cv_fc_srcext_f=$ac_flag; break
34479 else
34480 echo "$as_me: failed program was:" >&5
34481 sed 's/^/| /' conftest.$ac_ext >&5
34486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34487 done
34488 rm -f conftest.$ac_objext conftest.f
34489 ac_fcflags_srcext=$ac_fcflags_srcext_save
34492 { echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_f" >&5
34493 echo "${ECHO_T}$ac_cv_fc_srcext_f" >&6; }
34494 if test "x$ac_cv_fc_srcext_f" = xunknown; then
34495 { { echo "$as_me:$LINENO: error: Fortran could not compile .f files" >&5
34496 echo "$as_me: error: Fortran could not compile .f files" >&2;}
34497 { (exit 1); exit 1; }; }
34498 else
34499 ac_fc_srcext=f
34500 if test "x$ac_cv_fc_srcext_f" = xnone; then
34501 ac_fcflags_srcext=""
34502 FCFLAGS_f=""
34503 else
34504 ac_fcflags_srcext=$ac_cv_fc_srcext_f
34505 FCFLAGS_f=$ac_cv_fc_srcext_f
34510 ac_ext=${ac_fc_srcext-f}
34511 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
34512 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
34513 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
34515 ac_ext=${ac_fc_srcext-f}
34516 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
34517 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
34518 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
34519 { echo "$as_me:$LINENO: checking for Fortran flag to compile .f90 files" >&5
34520 echo $ECHO_N "checking for Fortran flag to compile .f90 files... $ECHO_C" >&6; }
34521 if test "${ac_cv_fc_srcext_f90+set}" = set; then
34522 echo $ECHO_N "(cached) $ECHO_C" >&6
34523 else
34524 ac_ext=f90
34525 ac_fcflags_srcext_save=$ac_fcflags_srcext
34526 ac_fcflags_srcext=
34527 ac_cv_fc_srcext_f90=unknown
34528 for ac_flag in none -qsuffix=f=f90 -Tf; do
34529 test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
34530 cat >conftest.$ac_ext <<_ACEOF
34531 program main
34534 _ACEOF
34535 rm -f conftest.$ac_objext
34536 if { (ac_try="$ac_compile"
34537 case "(($ac_try" in
34538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34539 *) ac_try_echo=$ac_try;;
34540 esac
34541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34542 (eval "$ac_compile") 2>conftest.er1
34543 ac_status=$?
34544 grep -v '^ *+' conftest.er1 >conftest.err
34545 rm -f conftest.er1
34546 cat conftest.err >&5
34547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548 (exit $ac_status); } && {
34549 test -z "$ac_fc_werror_flag" ||
34550 test ! -s conftest.err
34551 } && test -s conftest.$ac_objext; then
34552 ac_cv_fc_srcext_f90=$ac_flag; break
34553 else
34554 echo "$as_me: failed program was:" >&5
34555 sed 's/^/| /' conftest.$ac_ext >&5
34560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34561 done
34562 rm -f conftest.$ac_objext conftest.f90
34563 ac_fcflags_srcext=$ac_fcflags_srcext_save
34566 { echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_f90" >&5
34567 echo "${ECHO_T}$ac_cv_fc_srcext_f90" >&6; }
34568 if test "x$ac_cv_fc_srcext_f90" = xunknown; then
34569 { { echo "$as_me:$LINENO: error: Fortran could not compile .f90 files" >&5
34570 echo "$as_me: error: Fortran could not compile .f90 files" >&2;}
34571 { (exit 1); exit 1; }; }
34572 else
34573 ac_fc_srcext=f90
34574 if test "x$ac_cv_fc_srcext_f90" = xnone; then
34575 ac_fcflags_srcext=""
34576 FCFLAGS_f90=""
34577 else
34578 ac_fcflags_srcext=$ac_cv_fc_srcext_f90
34579 FCFLAGS_f90=$ac_cv_fc_srcext_f90
34584 ac_ext=${ac_fc_srcext-f}
34585 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
34586 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
34587 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
34589 ac_ext=c
34590 ac_cpp='$CPP $CPPFLAGS'
34591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34598 # All done -- save values
34600 cat >>confdefs.h <<_ACEOF
34601 #define OMPI_WANT_F90_BINDINGS $OMPI_WANT_F90_BINDINGS
34602 _ACEOF
34605 cat >>confdefs.h <<_ACEOF
34606 #define OMPI_F90 "$OMPI_F90"
34607 _ACEOF
34611 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
34612 OMPI_WANT_F90_BINDINGS_TRUE=
34613 OMPI_WANT_F90_BINDINGS_FALSE='#'
34614 else
34615 OMPI_WANT_F90_BINDINGS_TRUE='#'
34616 OMPI_WANT_F90_BINDINGS_FALSE=
34620 unset fortran_goodness
34623 # Look for the fortran module compiler flag
34627 if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
34628 { echo "$as_me:$LINENO: checking for Fortran 90 compiler module include flag" >&5
34629 echo $ECHO_N "checking for Fortran 90 compiler module include flag... $ECHO_C" >&6; }
34630 if test "${ompi_cv_f90_module_include_flag+set}" = set; then
34631 echo $ECHO_N "(cached) $ECHO_C" >&6
34632 else
34633 ofi_possible_flags="-I -p -M"
34634 mkdir conftest.$$
34635 cd conftest.$$
34637 # Try to compile an F90 module
34638 mkdir subdir
34639 cd subdir
34640 cat > conftest-module.f90 <<EOF
34641 module OMPI_MOD_FLAG
34643 type OMPI_MOD_FLAG_TYPE
34644 integer :: i
34645 end type OMPI_MOD_FLAG_TYPE
34647 end module OMPI_MOD_FLAG
34651 # 1 is the command
34652 # 2 is actions to do if success
34653 # 3 is actions to do if fail
34654 echo "configure:34654: $FC $FCFLAGS $FCFLAGS_f90 -c conftest-module.f90 $LDFLAGS $LIBS" >&5
34655 $FC $FCFLAGS $FCFLAGS_f90 -c conftest-module.f90 $LDFLAGS $LIBS 1>&5 2>&1
34656 ompi_status=$?
34658 # 1 is the message
34659 # 2 is whether to put a prefix or not
34660 if test -n "1"; then
34661 echo "configure:34661: \$? = $ompi_status" >&5
34662 else
34663 echo \$? = $ompi_status >&5
34665 if test "$ompi_status" = "0"; then
34666 unset ompi_status
34668 else
34669 unset ompi_status
34670 cd ..
34671 rm -rf conftest.$$
34672 { echo "$as_me:$LINENO: result: Whoops!" >&5
34673 echo "${ECHO_T}Whoops!" >&6; }
34674 { echo "$as_me:$LINENO: WARNING: *** Cannot seem to compile an f90 module" >&5
34675 echo "$as_me: WARNING: *** Cannot seem to compile an f90 module" >&2;}
34676 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
34677 echo "$as_me: error: Cannot continue" >&2;}
34678 { (exit 1); exit 1; }; }
34680 cd ..
34683 # Now try to compile a simple program usinng that module, iterating
34684 # through the possible flags that the compiler might use
34687 cat > conftest.f90 <<EOF
34688 program f90usemodule
34689 use OMPI_MOD_FLAG
34690 end program f90usemodule
34693 ofi_module_flag=
34694 for flag in $ofi_possible_flags; do
34695 if test "$ofi_module_flag" = ""; then
34697 # 1 is the command
34698 # 2 is actions to do if success
34699 # 3 is actions to do if fail
34700 echo "configure:34700: $FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS" >&5
34701 $FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS 1>&5 2>&1
34702 ompi_status=$?
34704 # 1 is the message
34705 # 2 is whether to put a prefix or not
34706 if test -n "1"; then
34707 echo "configure:34707: \$? = $ompi_status" >&5
34708 else
34709 echo \$? = $ompi_status >&5
34711 if test "$ompi_status" = "0"; then
34712 unset ompi_status
34713 ompi_cv_f90_module_include_flag=$flag
34714 ofi_module_flag="$flag"
34715 else
34716 unset ompi_status
34720 done
34721 cd ..
34722 rm -rf conftest.$$
34725 { echo "$as_me:$LINENO: result: $ompi_cv_f90_module_include_flag" >&5
34726 echo "${ECHO_T}$ompi_cv_f90_module_include_flag" >&6; }
34728 OMPI_FC_MODULE_FLAG=$ompi_cv_f90_module_include_flag
34729 if test "$OMPI_FC_MODULE_FLAG" = ""; then
34730 { echo "$as_me:$LINENO: WARNING: *** Could not determine the f90 compiler flag to indicate where modules reside" >&5
34731 echo "$as_me: WARNING: *** Could not determine the f90 compiler flag to indicate where modules reside" >&2;}
34732 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
34733 echo "$as_me: error: *** Cannot continue" >&2;}
34734 { (exit 1); exit 1; }; }
34736 else
34737 OMPI_FC_MODULE_FLAG=
34743 # Look for all the types
34744 OMPI_F90_IKINDS=""
34745 OMPI_F90_RKINDS=""
34746 OMPI_F90_CKINDS=""
34748 # LOGICAL and friends
34750 ofc_fortran_type="LOGICAL"
34751 ofc_expected_size=""
34753 ofc_have_type=0
34754 ofc_type_size=$ac_cv_sizeof_int
34756 # Only check if we actually want the F90 bindings / have a F90
34757 # compiler. This allows us to call this macro even if there is
34758 # no F90 compiler. If we have no f90 compiler, then just set a
34759 # bunch of defaults.
34760 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
34764 # Determine FORTRAN datatype size.
34765 # First arg is type, 2nd arg is config var to define
34767 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports LOGICAL" >&5
34768 echo $ECHO_N "checking if Fortran 90 compiler supports LOGICAL... $ECHO_C" >&6; }
34769 if test "${ompi_cv_f90_have_LOGICAL+set}" = set; then
34770 echo $ECHO_N "(cached) $ECHO_C" >&6
34771 else
34772 ac_ext=${ac_fc_srcext-f}
34773 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
34774 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
34775 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
34777 cat >conftest.$ac_ext <<_ACEOF
34778 program main
34779 LOGICAL :: x
34781 _ACEOF
34782 rm -f conftest.$ac_objext
34783 if { (ac_try="$ac_compile"
34784 case "(($ac_try" in
34785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34786 *) ac_try_echo=$ac_try;;
34787 esac
34788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34789 (eval "$ac_compile") 2>conftest.er1
34790 ac_status=$?
34791 grep -v '^ *+' conftest.er1 >conftest.err
34792 rm -f conftest.er1
34793 cat conftest.err >&5
34794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34795 (exit $ac_status); } && {
34796 test -z "$ac_fc_werror_flag" ||
34797 test ! -s conftest.err
34798 } && test -s conftest.$ac_objext; then
34799 ompi_cv_f90_have_LOGICAL="yes"
34800 else
34801 echo "$as_me: failed program was:" >&5
34802 sed 's/^/| /' conftest.$ac_ext >&5
34804 ompi_cv_f90_have_LOGICAL="no"
34807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34808 ac_ext=c
34809 ac_cpp='$CPP $CPPFLAGS'
34810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34815 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_LOGICAL" >&5
34816 echo "${ECHO_T}$ompi_cv_f90_have_LOGICAL" >&6; }
34818 if test "$ompi_cv_f90_have_LOGICAL" = "yes"; then
34819 ofc_have_type=1
34820 else
34821 ofc_have_type=0
34825 else
34826 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
34827 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
34828 { echo "$as_me:$LINENO: result: skipped" >&5
34829 echo "${ECHO_T}skipped" >&6; }
34832 if test "$ofc_have_type" = "1"; then
34833 # What is the size of this type?
34835 # NOTE: Some Fortran compilers actually will return that a
34836 # type exists even if it doesn't support it -- the compiler
34837 # will automatically convert the unsupported type to a type
34838 # that it *does* support. For example, if you try to use
34839 # INTEGER*16 and the compiler doesn't support it, it may well
34840 # automatically convert it to INTEGER*8 for you (!). So we
34841 # have to check the actual size of the type once we determine
34842 # that the compiler doesn't error if we try to use it
34843 # (i.e,. the compiler *might* support that type). If the size
34844 # doesn't match the expected size, then the compiler doesn't
34845 # really support it.
34849 { echo "$as_me:$LINENO: checking size of Fortran 90 LOGICAL" >&5
34850 echo $ECHO_N "checking size of Fortran 90 LOGICAL... $ECHO_C" >&6; }
34851 if test "${ompi_cv_f90_sizeof_LOGICAL+set}" = set; then
34852 echo $ECHO_N "(cached) $ECHO_C" >&6
34853 else
34855 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
34856 # so the general rule is that if there is an _ in the function
34857 # name, then there are two trailing underscores. Otherwise,
34858 # there is only one trailing underscore. Any idea how to do
34859 # that with m4_translit?
34860 if echo size | grep _ >/dev/null 2>&1 ; then
34861 ompi_ac_size_fn=size__
34862 else
34863 ompi_ac_size_fn=size_
34865 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
34866 ompi_ac_size_fn=size_
34867 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
34868 ompi_ac_size_fn=size
34869 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
34870 ompi_ac_size_fn=size
34871 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
34872 ompi_ac_size_fn=SIZE
34873 else
34874 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
34875 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
34876 { (exit 1); exit 1; }; }
34879 # Fortran module
34880 cat > conftestf.f90 <<EOF
34881 program fsize
34882 external size
34883 LOGICAL :: x(2)
34884 call size(x(1),x(2))
34885 end program
34888 # C module
34889 if test -f conftest.h; then
34890 ompi_conftest_h="#include \"conftest.h\""
34891 else
34892 ompi_conftest_h=""
34894 cat > conftest.c <<EOF
34895 #include <stdio.h>
34896 #include <stdlib.h>
34897 $ompi_conftest_h
34899 #ifdef __cplusplus
34900 extern "C" {
34901 #endif
34902 void $ompi_ac_size_fn(char *a, char *b)
34904 int diff = (int) (b - a);
34905 FILE *f=fopen("conftestval", "w");
34906 if (!f) exit(1);
34907 fprintf(f, "%d\n", diff);
34909 #ifdef __cplusplus
34911 #endif
34915 # 1 is the command
34916 # 2 is actions to do if success
34917 # 3 is actions to do if fail
34918 echo "configure:34918: $CC $CFLAGS -I. -c conftest.c" >&5
34919 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
34920 ompi_status=$?
34922 # 1 is the message
34923 # 2 is whether to put a prefix or not
34924 if test -n "1"; then
34925 echo "configure:34925: \$? = $ompi_status" >&5
34926 else
34927 echo \$? = $ompi_status >&5
34929 if test "$ompi_status" = "0"; then
34930 unset ompi_status
34932 # 1 is the command
34933 # 2 is actions to do if success
34934 # 3 is actions to do if fail
34935 echo "configure:34935: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
34936 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
34937 ompi_status=$?
34939 # 1 is the message
34940 # 2 is whether to put a prefix or not
34941 if test -n "1"; then
34942 echo "configure:34942: \$? = $ompi_status" >&5
34943 else
34944 echo \$? = $ompi_status >&5
34946 if test "$ompi_status" = "0"; then
34947 unset ompi_status
34948 happy="yes"
34949 else
34950 unset ompi_status
34951 happy="no"
34953 else
34954 unset ompi_status
34955 happy="no"
34958 if test "$happy" = "no" ; then
34960 # 1 is the message
34961 # 2 is whether to put a prefix or not
34962 if test -n "1"; then
34963 echo "configure:34963: here is the fortran 90 program:" >&5
34964 else
34965 echo here is the fortran 90 program: >&5
34968 # 1 is the filename
34969 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
34970 cat conftestf.f90 >&5
34972 { echo "$as_me:$LINENO: WARNING: Could not determine size of LOGICAL" >&5
34973 echo "$as_me: WARNING: Could not determine size of LOGICAL" >&2;}
34974 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
34975 echo "$as_me: WARNING: See config.log for details" >&2;}
34976 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
34977 echo "$as_me: error: Cannot continue" >&2;}
34978 { (exit 1); exit 1; }; }
34981 if test "$cross_compiling" = "yes"; then
34982 { { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL when cross-compiling" >&5
34983 echo "$as_me: error: Can not determine size of LOGICAL when cross-compiling" >&2;}
34984 { (exit 1); exit 1; }; }
34985 else
34987 # 1 is the command
34988 # 2 is actions to do if success
34989 # 3 is actions to do if fail
34990 echo "configure:34990: ./conftest" >&5
34991 ./conftest 1>&5 2>&1
34992 ompi_status=$?
34994 # 1 is the message
34995 # 2 is whether to put a prefix or not
34996 if test -n "1"; then
34997 echo "configure:34997: \$? = $ompi_status" >&5
34998 else
34999 echo \$? = $ompi_status >&5
35001 if test "$ompi_status" = "0"; then
35002 unset ompi_status
35003 ompi_cv_f90_sizeof_LOGICAL=`cat conftestval`
35004 else
35005 unset ompi_status
35006 { { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5
35007 echo "$as_me: error: Could not determine size of LOGICAL" >&2;}
35008 { (exit 1); exit 1; }; }
35013 unset happy ompi_conftest_h
35014 rm -f conftest*
35016 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_LOGICAL" >&5
35017 echo "${ECHO_T}$ompi_cv_f90_sizeof_LOGICAL" >&6; }
35019 ofc_type_size=$ompi_cv_f90_sizeof_LOGICAL
35021 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
35022 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
35023 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
35024 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
35025 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
35026 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
35027 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
35028 ofc_have_type=0
35029 else
35030 # If this type has an F77 counterpart, see if it's
35031 # supported.
35032 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_LOGICAL
35033 if test "$ofc_f77_have_type" = "0"; then
35034 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (LOGICAL) not supported" >&5
35035 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (LOGICAL) not supported" >&2;}
35036 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (LOGICAL)" >&5
35037 echo "$as_me: WARNING: *** Skipping Fortran 90 type (LOGICAL)" >&2;}
35038 else
35040 # Check the size of this type against its F77 counterpart
35041 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_LOGICAL
35042 if test "$ofc_f77_sizeof" != ""; then
35043 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
35044 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
35045 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
35046 { echo "$as_me:$LINENO: result: no" >&5
35047 echo "${ECHO_T}no" >&6; }
35048 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for LOGICAL ($ofc_f77_sizeof) does not match" >&5
35049 echo "$as_me: WARNING: *** Fortran 77 size for LOGICAL ($ofc_f77_sizeof) does not match" >&2;}
35050 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for LOGICAL ($ofc_type_size)" >&5
35051 echo "$as_me: WARNING: *** Fortran 90 size for LOGICAL ($ofc_type_size)" >&2;}
35052 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
35053 echo "$as_me: error: *** Cannot continue" >&2;}
35054 { (exit 1); exit 1; }; }
35055 else
35056 { echo "$as_me:$LINENO: result: yes" >&5
35057 echo "${ECHO_T}yes" >&6; }
35061 # If we passed in the expected size, then also add the
35062 # type to the relevant list of types found.
35063 if test "$ofc_expected_size" != ""; then
35064 ofc_letter=L
35065 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
35066 eval $ofc_str
35072 # We always need these defines -- even if we don't have a given
35073 # type, there are some places in the code where we have to have
35074 # *something*. Note that the bpatsubst's are the same as used
35075 # above (see comment above), but we added a translit to make them
35076 # uppercase.
35078 # If we got a pretty name, use that as the basis. If not, use the
35079 # first part of the provided fortran type (e.g.,
35080 # "logical(selected_int_kind(2))" -> logical1")
35082 # Note that there is no need to AC_DEFINE the size of the F90
35083 # datatype. We have ensured (above) that they are the same as the
35084 # corresponding F77 datatypes, and that's good enough (i.e., the
35085 # DDT engine only looks at the F77 sizes).
35087 # Finally, note that it is necessary to use the Big Long Ugly m4
35088 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
35089 # the result of the BLUm4E in a shell variable and use that in
35090 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
35091 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
35094 cat >>confdefs.h <<_ACEOF
35095 #define OMPI_HAVE_F90_LOGICAL $ofc_have_type
35096 _ACEOF
35099 # Save some in shell variables for later use. Have to use m4
35100 # functions here (vs. $ompi_upper_var_name, defined above) because
35101 # these need to be set at autoconf time, not configure time.
35102 OMPI_SIZEOF_F90_LOGICAL=$ofc_type_size
35105 # Clean up
35106 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
35107 unset ofc_have_type ofc_type_size ofc_letter ofc_str
35108 unset ofc_type_range ofc_type_precision
35109 unset ofc_f77_sizeof
35112 # INTEGER and friends
35114 ofc_fortran_type="INTEGER"
35115 ofc_expected_size=""
35117 ofc_have_type=0
35118 ofc_type_size=$ac_cv_sizeof_int
35120 # Only check if we actually want the F90 bindings / have a F90
35121 # compiler. This allows us to call this macro even if there is
35122 # no F90 compiler. If we have no f90 compiler, then just set a
35123 # bunch of defaults.
35124 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
35128 # Determine FORTRAN datatype size.
35129 # First arg is type, 2nd arg is config var to define
35131 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER" >&5
35132 echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER... $ECHO_C" >&6; }
35133 if test "${ompi_cv_f90_have_INTEGER+set}" = set; then
35134 echo $ECHO_N "(cached) $ECHO_C" >&6
35135 else
35136 ac_ext=${ac_fc_srcext-f}
35137 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
35138 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
35139 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
35141 cat >conftest.$ac_ext <<_ACEOF
35142 program main
35143 INTEGER :: x
35145 _ACEOF
35146 rm -f conftest.$ac_objext
35147 if { (ac_try="$ac_compile"
35148 case "(($ac_try" in
35149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35150 *) ac_try_echo=$ac_try;;
35151 esac
35152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35153 (eval "$ac_compile") 2>conftest.er1
35154 ac_status=$?
35155 grep -v '^ *+' conftest.er1 >conftest.err
35156 rm -f conftest.er1
35157 cat conftest.err >&5
35158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159 (exit $ac_status); } && {
35160 test -z "$ac_fc_werror_flag" ||
35161 test ! -s conftest.err
35162 } && test -s conftest.$ac_objext; then
35163 ompi_cv_f90_have_INTEGER="yes"
35164 else
35165 echo "$as_me: failed program was:" >&5
35166 sed 's/^/| /' conftest.$ac_ext >&5
35168 ompi_cv_f90_have_INTEGER="no"
35171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35172 ac_ext=c
35173 ac_cpp='$CPP $CPPFLAGS'
35174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35179 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGER" >&5
35180 echo "${ECHO_T}$ompi_cv_f90_have_INTEGER" >&6; }
35182 if test "$ompi_cv_f90_have_INTEGER" = "yes"; then
35183 ofc_have_type=1
35184 else
35185 ofc_have_type=0
35189 else
35190 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
35191 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
35192 { echo "$as_me:$LINENO: result: skipped" >&5
35193 echo "${ECHO_T}skipped" >&6; }
35196 if test "$ofc_have_type" = "1"; then
35197 # What is the size of this type?
35199 # NOTE: Some Fortran compilers actually will return that a
35200 # type exists even if it doesn't support it -- the compiler
35201 # will automatically convert the unsupported type to a type
35202 # that it *does* support. For example, if you try to use
35203 # INTEGER*16 and the compiler doesn't support it, it may well
35204 # automatically convert it to INTEGER*8 for you (!). So we
35205 # have to check the actual size of the type once we determine
35206 # that the compiler doesn't error if we try to use it
35207 # (i.e,. the compiler *might* support that type). If the size
35208 # doesn't match the expected size, then the compiler doesn't
35209 # really support it.
35213 { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER" >&5
35214 echo $ECHO_N "checking size of Fortran 90 INTEGER... $ECHO_C" >&6; }
35215 if test "${ompi_cv_f90_sizeof_INTEGER+set}" = set; then
35216 echo $ECHO_N "(cached) $ECHO_C" >&6
35217 else
35219 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
35220 # so the general rule is that if there is an _ in the function
35221 # name, then there are two trailing underscores. Otherwise,
35222 # there is only one trailing underscore. Any idea how to do
35223 # that with m4_translit?
35224 if echo size | grep _ >/dev/null 2>&1 ; then
35225 ompi_ac_size_fn=size__
35226 else
35227 ompi_ac_size_fn=size_
35229 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
35230 ompi_ac_size_fn=size_
35231 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
35232 ompi_ac_size_fn=size
35233 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
35234 ompi_ac_size_fn=size
35235 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
35236 ompi_ac_size_fn=SIZE
35237 else
35238 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
35239 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
35240 { (exit 1); exit 1; }; }
35243 # Fortran module
35244 cat > conftestf.f90 <<EOF
35245 program fsize
35246 external size
35247 INTEGER :: x(2)
35248 call size(x(1),x(2))
35249 end program
35252 # C module
35253 if test -f conftest.h; then
35254 ompi_conftest_h="#include \"conftest.h\""
35255 else
35256 ompi_conftest_h=""
35258 cat > conftest.c <<EOF
35259 #include <stdio.h>
35260 #include <stdlib.h>
35261 $ompi_conftest_h
35263 #ifdef __cplusplus
35264 extern "C" {
35265 #endif
35266 void $ompi_ac_size_fn(char *a, char *b)
35268 int diff = (int) (b - a);
35269 FILE *f=fopen("conftestval", "w");
35270 if (!f) exit(1);
35271 fprintf(f, "%d\n", diff);
35273 #ifdef __cplusplus
35275 #endif
35279 # 1 is the command
35280 # 2 is actions to do if success
35281 # 3 is actions to do if fail
35282 echo "configure:35282: $CC $CFLAGS -I. -c conftest.c" >&5
35283 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
35284 ompi_status=$?
35286 # 1 is the message
35287 # 2 is whether to put a prefix or not
35288 if test -n "1"; then
35289 echo "configure:35289: \$? = $ompi_status" >&5
35290 else
35291 echo \$? = $ompi_status >&5
35293 if test "$ompi_status" = "0"; then
35294 unset ompi_status
35296 # 1 is the command
35297 # 2 is actions to do if success
35298 # 3 is actions to do if fail
35299 echo "configure:35299: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
35300 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
35301 ompi_status=$?
35303 # 1 is the message
35304 # 2 is whether to put a prefix or not
35305 if test -n "1"; then
35306 echo "configure:35306: \$? = $ompi_status" >&5
35307 else
35308 echo \$? = $ompi_status >&5
35310 if test "$ompi_status" = "0"; then
35311 unset ompi_status
35312 happy="yes"
35313 else
35314 unset ompi_status
35315 happy="no"
35317 else
35318 unset ompi_status
35319 happy="no"
35322 if test "$happy" = "no" ; then
35324 # 1 is the message
35325 # 2 is whether to put a prefix or not
35326 if test -n "1"; then
35327 echo "configure:35327: here is the fortran 90 program:" >&5
35328 else
35329 echo here is the fortran 90 program: >&5
35332 # 1 is the filename
35333 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
35334 cat conftestf.f90 >&5
35336 { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER" >&5
35337 echo "$as_me: WARNING: Could not determine size of INTEGER" >&2;}
35338 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
35339 echo "$as_me: WARNING: See config.log for details" >&2;}
35340 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
35341 echo "$as_me: error: Cannot continue" >&2;}
35342 { (exit 1); exit 1; }; }
35345 if test "$cross_compiling" = "yes"; then
35346 { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER when cross-compiling" >&5
35347 echo "$as_me: error: Can not determine size of INTEGER when cross-compiling" >&2;}
35348 { (exit 1); exit 1; }; }
35349 else
35351 # 1 is the command
35352 # 2 is actions to do if success
35353 # 3 is actions to do if fail
35354 echo "configure:35354: ./conftest" >&5
35355 ./conftest 1>&5 2>&1
35356 ompi_status=$?
35358 # 1 is the message
35359 # 2 is whether to put a prefix or not
35360 if test -n "1"; then
35361 echo "configure:35361: \$? = $ompi_status" >&5
35362 else
35363 echo \$? = $ompi_status >&5
35365 if test "$ompi_status" = "0"; then
35366 unset ompi_status
35367 ompi_cv_f90_sizeof_INTEGER=`cat conftestval`
35368 else
35369 unset ompi_status
35370 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5
35371 echo "$as_me: error: Could not determine size of INTEGER" >&2;}
35372 { (exit 1); exit 1; }; }
35377 unset happy ompi_conftest_h
35378 rm -f conftest*
35380 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGER" >&5
35381 echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGER" >&6; }
35383 ofc_type_size=$ompi_cv_f90_sizeof_INTEGER
35385 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
35386 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
35387 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
35388 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
35389 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
35390 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
35391 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
35392 ofc_have_type=0
35393 else
35394 # If this type has an F77 counterpart, see if it's
35395 # supported.
35396 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER
35397 if test "$ofc_f77_have_type" = "0"; then
35398 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER) not supported" >&5
35399 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER) not supported" >&2;}
35400 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER)" >&5
35401 echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER)" >&2;}
35402 else
35404 # Check the size of this type against its F77 counterpart
35405 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER
35406 if test "$ofc_f77_sizeof" != ""; then
35407 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
35408 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
35409 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
35410 { echo "$as_me:$LINENO: result: no" >&5
35411 echo "${ECHO_T}no" >&6; }
35412 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER ($ofc_f77_sizeof) does not match" >&5
35413 echo "$as_me: WARNING: *** Fortran 77 size for INTEGER ($ofc_f77_sizeof) does not match" >&2;}
35414 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER ($ofc_type_size)" >&5
35415 echo "$as_me: WARNING: *** Fortran 90 size for INTEGER ($ofc_type_size)" >&2;}
35416 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
35417 echo "$as_me: error: *** Cannot continue" >&2;}
35418 { (exit 1); exit 1; }; }
35419 else
35420 { echo "$as_me:$LINENO: result: yes" >&5
35421 echo "${ECHO_T}yes" >&6; }
35425 # If we passed in the expected size, then also add the
35426 # type to the relevant list of types found.
35427 if test "$ofc_expected_size" != ""; then
35428 ofc_letter=I
35429 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
35430 eval $ofc_str
35436 # We always need these defines -- even if we don't have a given
35437 # type, there are some places in the code where we have to have
35438 # *something*. Note that the bpatsubst's are the same as used
35439 # above (see comment above), but we added a translit to make them
35440 # uppercase.
35442 # If we got a pretty name, use that as the basis. If not, use the
35443 # first part of the provided fortran type (e.g.,
35444 # "logical(selected_int_kind(2))" -> logical1")
35446 # Note that there is no need to AC_DEFINE the size of the F90
35447 # datatype. We have ensured (above) that they are the same as the
35448 # corresponding F77 datatypes, and that's good enough (i.e., the
35449 # DDT engine only looks at the F77 sizes).
35451 # Finally, note that it is necessary to use the Big Long Ugly m4
35452 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
35453 # the result of the BLUm4E in a shell variable and use that in
35454 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
35455 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
35458 cat >>confdefs.h <<_ACEOF
35459 #define OMPI_HAVE_F90_INTEGER $ofc_have_type
35460 _ACEOF
35463 # Save some in shell variables for later use. Have to use m4
35464 # functions here (vs. $ompi_upper_var_name, defined above) because
35465 # these need to be set at autoconf time, not configure time.
35466 OMPI_SIZEOF_F90_INTEGER=$ofc_type_size
35469 # Clean up
35470 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
35471 unset ofc_have_type ofc_type_size ofc_letter ofc_str
35472 unset ofc_type_range ofc_type_precision
35473 unset ofc_f77_sizeof
35476 ofc_fortran_type="INTEGER*1"
35477 ofc_expected_size="1"
35479 ofc_have_type=0
35480 ofc_type_size=$ac_cv_sizeof_int
35482 # Only check if we actually want the F90 bindings / have a F90
35483 # compiler. This allows us to call this macro even if there is
35484 # no F90 compiler. If we have no f90 compiler, then just set a
35485 # bunch of defaults.
35486 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
35490 # Determine FORTRAN datatype size.
35491 # First arg is type, 2nd arg is config var to define
35493 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*1" >&5
35494 echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*1... $ECHO_C" >&6; }
35495 if test "${ompi_cv_f90_have_INTEGERp1+set}" = set; then
35496 echo $ECHO_N "(cached) $ECHO_C" >&6
35497 else
35498 ac_ext=${ac_fc_srcext-f}
35499 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
35500 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
35501 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
35503 cat >conftest.$ac_ext <<_ACEOF
35504 program main
35505 INTEGER*1 :: x
35507 _ACEOF
35508 rm -f conftest.$ac_objext
35509 if { (ac_try="$ac_compile"
35510 case "(($ac_try" in
35511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35512 *) ac_try_echo=$ac_try;;
35513 esac
35514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35515 (eval "$ac_compile") 2>conftest.er1
35516 ac_status=$?
35517 grep -v '^ *+' conftest.er1 >conftest.err
35518 rm -f conftest.er1
35519 cat conftest.err >&5
35520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521 (exit $ac_status); } && {
35522 test -z "$ac_fc_werror_flag" ||
35523 test ! -s conftest.err
35524 } && test -s conftest.$ac_objext; then
35525 ompi_cv_f90_have_INTEGERp1="yes"
35526 else
35527 echo "$as_me: failed program was:" >&5
35528 sed 's/^/| /' conftest.$ac_ext >&5
35530 ompi_cv_f90_have_INTEGERp1="no"
35533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35534 ac_ext=c
35535 ac_cpp='$CPP $CPPFLAGS'
35536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35541 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp1" >&5
35542 echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp1" >&6; }
35544 if test "$ompi_cv_f90_have_INTEGERp1" = "yes"; then
35545 ofc_have_type=1
35546 else
35547 ofc_have_type=0
35551 else
35552 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
35553 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
35554 { echo "$as_me:$LINENO: result: skipped" >&5
35555 echo "${ECHO_T}skipped" >&6; }
35558 if test "$ofc_have_type" = "1"; then
35559 # What is the size of this type?
35561 # NOTE: Some Fortran compilers actually will return that a
35562 # type exists even if it doesn't support it -- the compiler
35563 # will automatically convert the unsupported type to a type
35564 # that it *does* support. For example, if you try to use
35565 # INTEGER*16 and the compiler doesn't support it, it may well
35566 # automatically convert it to INTEGER*8 for you (!). So we
35567 # have to check the actual size of the type once we determine
35568 # that the compiler doesn't error if we try to use it
35569 # (i.e,. the compiler *might* support that type). If the size
35570 # doesn't match the expected size, then the compiler doesn't
35571 # really support it.
35575 { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*1" >&5
35576 echo $ECHO_N "checking size of Fortran 90 INTEGER*1... $ECHO_C" >&6; }
35577 if test "${ompi_cv_f90_sizeof_INTEGERp1+set}" = set; then
35578 echo $ECHO_N "(cached) $ECHO_C" >&6
35579 else
35581 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
35582 # so the general rule is that if there is an _ in the function
35583 # name, then there are two trailing underscores. Otherwise,
35584 # there is only one trailing underscore. Any idea how to do
35585 # that with m4_translit?
35586 if echo size | grep _ >/dev/null 2>&1 ; then
35587 ompi_ac_size_fn=size__
35588 else
35589 ompi_ac_size_fn=size_
35591 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
35592 ompi_ac_size_fn=size_
35593 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
35594 ompi_ac_size_fn=size
35595 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
35596 ompi_ac_size_fn=size
35597 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
35598 ompi_ac_size_fn=SIZE
35599 else
35600 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
35601 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
35602 { (exit 1); exit 1; }; }
35605 # Fortran module
35606 cat > conftestf.f90 <<EOF
35607 program fsize
35608 external size
35609 INTEGER*1 :: x(2)
35610 call size(x(1),x(2))
35611 end program
35614 # C module
35615 if test -f conftest.h; then
35616 ompi_conftest_h="#include \"conftest.h\""
35617 else
35618 ompi_conftest_h=""
35620 cat > conftest.c <<EOF
35621 #include <stdio.h>
35622 #include <stdlib.h>
35623 $ompi_conftest_h
35625 #ifdef __cplusplus
35626 extern "C" {
35627 #endif
35628 void $ompi_ac_size_fn(char *a, char *b)
35630 int diff = (int) (b - a);
35631 FILE *f=fopen("conftestval", "w");
35632 if (!f) exit(1);
35633 fprintf(f, "%d\n", diff);
35635 #ifdef __cplusplus
35637 #endif
35641 # 1 is the command
35642 # 2 is actions to do if success
35643 # 3 is actions to do if fail
35644 echo "configure:35644: $CC $CFLAGS -I. -c conftest.c" >&5
35645 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
35646 ompi_status=$?
35648 # 1 is the message
35649 # 2 is whether to put a prefix or not
35650 if test -n "1"; then
35651 echo "configure:35651: \$? = $ompi_status" >&5
35652 else
35653 echo \$? = $ompi_status >&5
35655 if test "$ompi_status" = "0"; then
35656 unset ompi_status
35658 # 1 is the command
35659 # 2 is actions to do if success
35660 # 3 is actions to do if fail
35661 echo "configure:35661: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
35662 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
35663 ompi_status=$?
35665 # 1 is the message
35666 # 2 is whether to put a prefix or not
35667 if test -n "1"; then
35668 echo "configure:35668: \$? = $ompi_status" >&5
35669 else
35670 echo \$? = $ompi_status >&5
35672 if test "$ompi_status" = "0"; then
35673 unset ompi_status
35674 happy="yes"
35675 else
35676 unset ompi_status
35677 happy="no"
35679 else
35680 unset ompi_status
35681 happy="no"
35684 if test "$happy" = "no" ; then
35686 # 1 is the message
35687 # 2 is whether to put a prefix or not
35688 if test -n "1"; then
35689 echo "configure:35689: here is the fortran 90 program:" >&5
35690 else
35691 echo here is the fortran 90 program: >&5
35694 # 1 is the filename
35695 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
35696 cat conftestf.f90 >&5
35698 { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*1" >&5
35699 echo "$as_me: WARNING: Could not determine size of INTEGER*1" >&2;}
35700 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
35701 echo "$as_me: WARNING: See config.log for details" >&2;}
35702 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
35703 echo "$as_me: error: Cannot continue" >&2;}
35704 { (exit 1); exit 1; }; }
35707 if test "$cross_compiling" = "yes"; then
35708 { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*1 when cross-compiling" >&5
35709 echo "$as_me: error: Can not determine size of INTEGER*1 when cross-compiling" >&2;}
35710 { (exit 1); exit 1; }; }
35711 else
35713 # 1 is the command
35714 # 2 is actions to do if success
35715 # 3 is actions to do if fail
35716 echo "configure:35716: ./conftest" >&5
35717 ./conftest 1>&5 2>&1
35718 ompi_status=$?
35720 # 1 is the message
35721 # 2 is whether to put a prefix or not
35722 if test -n "1"; then
35723 echo "configure:35723: \$? = $ompi_status" >&5
35724 else
35725 echo \$? = $ompi_status >&5
35727 if test "$ompi_status" = "0"; then
35728 unset ompi_status
35729 ompi_cv_f90_sizeof_INTEGERp1=`cat conftestval`
35730 else
35731 unset ompi_status
35732 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5
35733 echo "$as_me: error: Could not determine size of INTEGER*1" >&2;}
35734 { (exit 1); exit 1; }; }
35739 unset happy ompi_conftest_h
35740 rm -f conftest*
35742 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp1" >&5
35743 echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp1" >&6; }
35745 ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp1
35747 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
35748 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
35749 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
35750 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
35751 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
35752 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
35753 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
35754 ofc_have_type=0
35755 else
35756 # If this type has an F77 counterpart, see if it's
35757 # supported.
35758 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER1
35759 if test "$ofc_f77_have_type" = "0"; then
35760 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*1) not supported" >&5
35761 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*1) not supported" >&2;}
35762 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*1)" >&5
35763 echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*1)" >&2;}
35764 else
35766 # Check the size of this type against its F77 counterpart
35767 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER1
35768 if test "$ofc_f77_sizeof" != ""; then
35769 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
35770 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
35771 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
35772 { echo "$as_me:$LINENO: result: no" >&5
35773 echo "${ECHO_T}no" >&6; }
35774 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*1 ($ofc_f77_sizeof) does not match" >&5
35775 echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*1 ($ofc_f77_sizeof) does not match" >&2;}
35776 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*1 ($ofc_type_size)" >&5
35777 echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*1 ($ofc_type_size)" >&2;}
35778 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
35779 echo "$as_me: error: *** Cannot continue" >&2;}
35780 { (exit 1); exit 1; }; }
35781 else
35782 { echo "$as_me:$LINENO: result: yes" >&5
35783 echo "${ECHO_T}yes" >&6; }
35787 # If we passed in the expected size, then also add the
35788 # type to the relevant list of types found.
35789 if test "$ofc_expected_size" != ""; then
35790 ofc_letter=I
35791 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
35792 eval $ofc_str
35798 # We always need these defines -- even if we don't have a given
35799 # type, there are some places in the code where we have to have
35800 # *something*. Note that the bpatsubst's are the same as used
35801 # above (see comment above), but we added a translit to make them
35802 # uppercase.
35804 # If we got a pretty name, use that as the basis. If not, use the
35805 # first part of the provided fortran type (e.g.,
35806 # "logical(selected_int_kind(2))" -> logical1")
35808 # Note that there is no need to AC_DEFINE the size of the F90
35809 # datatype. We have ensured (above) that they are the same as the
35810 # corresponding F77 datatypes, and that's good enough (i.e., the
35811 # DDT engine only looks at the F77 sizes).
35813 # Finally, note that it is necessary to use the Big Long Ugly m4
35814 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
35815 # the result of the BLUm4E in a shell variable and use that in
35816 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
35817 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
35820 cat >>confdefs.h <<_ACEOF
35821 #define OMPI_HAVE_F90_INTEGER1 $ofc_have_type
35822 _ACEOF
35825 # Save some in shell variables for later use. Have to use m4
35826 # functions here (vs. $ompi_upper_var_name, defined above) because
35827 # these need to be set at autoconf time, not configure time.
35828 OMPI_SIZEOF_F90_INTEGER1=$ofc_type_size
35831 # Clean up
35832 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
35833 unset ofc_have_type ofc_type_size ofc_letter ofc_str
35834 unset ofc_type_range ofc_type_precision
35835 unset ofc_f77_sizeof
35838 ofc_fortran_type="INTEGER*2"
35839 ofc_expected_size="2"
35841 ofc_have_type=0
35842 ofc_type_size=$ac_cv_sizeof_int
35844 # Only check if we actually want the F90 bindings / have a F90
35845 # compiler. This allows us to call this macro even if there is
35846 # no F90 compiler. If we have no f90 compiler, then just set a
35847 # bunch of defaults.
35848 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
35852 # Determine FORTRAN datatype size.
35853 # First arg is type, 2nd arg is config var to define
35855 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*2" >&5
35856 echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*2... $ECHO_C" >&6; }
35857 if test "${ompi_cv_f90_have_INTEGERp2+set}" = set; then
35858 echo $ECHO_N "(cached) $ECHO_C" >&6
35859 else
35860 ac_ext=${ac_fc_srcext-f}
35861 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
35862 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
35863 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
35865 cat >conftest.$ac_ext <<_ACEOF
35866 program main
35867 INTEGER*2 :: x
35869 _ACEOF
35870 rm -f conftest.$ac_objext
35871 if { (ac_try="$ac_compile"
35872 case "(($ac_try" in
35873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35874 *) ac_try_echo=$ac_try;;
35875 esac
35876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35877 (eval "$ac_compile") 2>conftest.er1
35878 ac_status=$?
35879 grep -v '^ *+' conftest.er1 >conftest.err
35880 rm -f conftest.er1
35881 cat conftest.err >&5
35882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35883 (exit $ac_status); } && {
35884 test -z "$ac_fc_werror_flag" ||
35885 test ! -s conftest.err
35886 } && test -s conftest.$ac_objext; then
35887 ompi_cv_f90_have_INTEGERp2="yes"
35888 else
35889 echo "$as_me: failed program was:" >&5
35890 sed 's/^/| /' conftest.$ac_ext >&5
35892 ompi_cv_f90_have_INTEGERp2="no"
35895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35896 ac_ext=c
35897 ac_cpp='$CPP $CPPFLAGS'
35898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35903 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp2" >&5
35904 echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp2" >&6; }
35906 if test "$ompi_cv_f90_have_INTEGERp2" = "yes"; then
35907 ofc_have_type=1
35908 else
35909 ofc_have_type=0
35913 else
35914 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
35915 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
35916 { echo "$as_me:$LINENO: result: skipped" >&5
35917 echo "${ECHO_T}skipped" >&6; }
35920 if test "$ofc_have_type" = "1"; then
35921 # What is the size of this type?
35923 # NOTE: Some Fortran compilers actually will return that a
35924 # type exists even if it doesn't support it -- the compiler
35925 # will automatically convert the unsupported type to a type
35926 # that it *does* support. For example, if you try to use
35927 # INTEGER*16 and the compiler doesn't support it, it may well
35928 # automatically convert it to INTEGER*8 for you (!). So we
35929 # have to check the actual size of the type once we determine
35930 # that the compiler doesn't error if we try to use it
35931 # (i.e,. the compiler *might* support that type). If the size
35932 # doesn't match the expected size, then the compiler doesn't
35933 # really support it.
35937 { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*2" >&5
35938 echo $ECHO_N "checking size of Fortran 90 INTEGER*2... $ECHO_C" >&6; }
35939 if test "${ompi_cv_f90_sizeof_INTEGERp2+set}" = set; then
35940 echo $ECHO_N "(cached) $ECHO_C" >&6
35941 else
35943 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
35944 # so the general rule is that if there is an _ in the function
35945 # name, then there are two trailing underscores. Otherwise,
35946 # there is only one trailing underscore. Any idea how to do
35947 # that with m4_translit?
35948 if echo size | grep _ >/dev/null 2>&1 ; then
35949 ompi_ac_size_fn=size__
35950 else
35951 ompi_ac_size_fn=size_
35953 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
35954 ompi_ac_size_fn=size_
35955 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
35956 ompi_ac_size_fn=size
35957 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
35958 ompi_ac_size_fn=size
35959 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
35960 ompi_ac_size_fn=SIZE
35961 else
35962 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
35963 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
35964 { (exit 1); exit 1; }; }
35967 # Fortran module
35968 cat > conftestf.f90 <<EOF
35969 program fsize
35970 external size
35971 INTEGER*2 :: x(2)
35972 call size(x(1),x(2))
35973 end program
35976 # C module
35977 if test -f conftest.h; then
35978 ompi_conftest_h="#include \"conftest.h\""
35979 else
35980 ompi_conftest_h=""
35982 cat > conftest.c <<EOF
35983 #include <stdio.h>
35984 #include <stdlib.h>
35985 $ompi_conftest_h
35987 #ifdef __cplusplus
35988 extern "C" {
35989 #endif
35990 void $ompi_ac_size_fn(char *a, char *b)
35992 int diff = (int) (b - a);
35993 FILE *f=fopen("conftestval", "w");
35994 if (!f) exit(1);
35995 fprintf(f, "%d\n", diff);
35997 #ifdef __cplusplus
35999 #endif
36003 # 1 is the command
36004 # 2 is actions to do if success
36005 # 3 is actions to do if fail
36006 echo "configure:36006: $CC $CFLAGS -I. -c conftest.c" >&5
36007 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
36008 ompi_status=$?
36010 # 1 is the message
36011 # 2 is whether to put a prefix or not
36012 if test -n "1"; then
36013 echo "configure:36013: \$? = $ompi_status" >&5
36014 else
36015 echo \$? = $ompi_status >&5
36017 if test "$ompi_status" = "0"; then
36018 unset ompi_status
36020 # 1 is the command
36021 # 2 is actions to do if success
36022 # 3 is actions to do if fail
36023 echo "configure:36023: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
36024 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
36025 ompi_status=$?
36027 # 1 is the message
36028 # 2 is whether to put a prefix or not
36029 if test -n "1"; then
36030 echo "configure:36030: \$? = $ompi_status" >&5
36031 else
36032 echo \$? = $ompi_status >&5
36034 if test "$ompi_status" = "0"; then
36035 unset ompi_status
36036 happy="yes"
36037 else
36038 unset ompi_status
36039 happy="no"
36041 else
36042 unset ompi_status
36043 happy="no"
36046 if test "$happy" = "no" ; then
36048 # 1 is the message
36049 # 2 is whether to put a prefix or not
36050 if test -n "1"; then
36051 echo "configure:36051: here is the fortran 90 program:" >&5
36052 else
36053 echo here is the fortran 90 program: >&5
36056 # 1 is the filename
36057 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
36058 cat conftestf.f90 >&5
36060 { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*2" >&5
36061 echo "$as_me: WARNING: Could not determine size of INTEGER*2" >&2;}
36062 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
36063 echo "$as_me: WARNING: See config.log for details" >&2;}
36064 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
36065 echo "$as_me: error: Cannot continue" >&2;}
36066 { (exit 1); exit 1; }; }
36069 if test "$cross_compiling" = "yes"; then
36070 { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*2 when cross-compiling" >&5
36071 echo "$as_me: error: Can not determine size of INTEGER*2 when cross-compiling" >&2;}
36072 { (exit 1); exit 1; }; }
36073 else
36075 # 1 is the command
36076 # 2 is actions to do if success
36077 # 3 is actions to do if fail
36078 echo "configure:36078: ./conftest" >&5
36079 ./conftest 1>&5 2>&1
36080 ompi_status=$?
36082 # 1 is the message
36083 # 2 is whether to put a prefix or not
36084 if test -n "1"; then
36085 echo "configure:36085: \$? = $ompi_status" >&5
36086 else
36087 echo \$? = $ompi_status >&5
36089 if test "$ompi_status" = "0"; then
36090 unset ompi_status
36091 ompi_cv_f90_sizeof_INTEGERp2=`cat conftestval`
36092 else
36093 unset ompi_status
36094 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5
36095 echo "$as_me: error: Could not determine size of INTEGER*2" >&2;}
36096 { (exit 1); exit 1; }; }
36101 unset happy ompi_conftest_h
36102 rm -f conftest*
36104 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp2" >&5
36105 echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp2" >&6; }
36107 ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp2
36109 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
36110 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
36111 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
36112 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
36113 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
36114 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
36115 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
36116 ofc_have_type=0
36117 else
36118 # If this type has an F77 counterpart, see if it's
36119 # supported.
36120 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER2
36121 if test "$ofc_f77_have_type" = "0"; then
36122 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*2) not supported" >&5
36123 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*2) not supported" >&2;}
36124 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*2)" >&5
36125 echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*2)" >&2;}
36126 else
36128 # Check the size of this type against its F77 counterpart
36129 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER2
36130 if test "$ofc_f77_sizeof" != ""; then
36131 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
36132 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
36133 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
36134 { echo "$as_me:$LINENO: result: no" >&5
36135 echo "${ECHO_T}no" >&6; }
36136 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*2 ($ofc_f77_sizeof) does not match" >&5
36137 echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*2 ($ofc_f77_sizeof) does not match" >&2;}
36138 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*2 ($ofc_type_size)" >&5
36139 echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*2 ($ofc_type_size)" >&2;}
36140 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
36141 echo "$as_me: error: *** Cannot continue" >&2;}
36142 { (exit 1); exit 1; }; }
36143 else
36144 { echo "$as_me:$LINENO: result: yes" >&5
36145 echo "${ECHO_T}yes" >&6; }
36149 # If we passed in the expected size, then also add the
36150 # type to the relevant list of types found.
36151 if test "$ofc_expected_size" != ""; then
36152 ofc_letter=I
36153 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
36154 eval $ofc_str
36160 # We always need these defines -- even if we don't have a given
36161 # type, there are some places in the code where we have to have
36162 # *something*. Note that the bpatsubst's are the same as used
36163 # above (see comment above), but we added a translit to make them
36164 # uppercase.
36166 # If we got a pretty name, use that as the basis. If not, use the
36167 # first part of the provided fortran type (e.g.,
36168 # "logical(selected_int_kind(2))" -> logical1")
36170 # Note that there is no need to AC_DEFINE the size of the F90
36171 # datatype. We have ensured (above) that they are the same as the
36172 # corresponding F77 datatypes, and that's good enough (i.e., the
36173 # DDT engine only looks at the F77 sizes).
36175 # Finally, note that it is necessary to use the Big Long Ugly m4
36176 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
36177 # the result of the BLUm4E in a shell variable and use that in
36178 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
36179 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
36182 cat >>confdefs.h <<_ACEOF
36183 #define OMPI_HAVE_F90_INTEGER2 $ofc_have_type
36184 _ACEOF
36187 # Save some in shell variables for later use. Have to use m4
36188 # functions here (vs. $ompi_upper_var_name, defined above) because
36189 # these need to be set at autoconf time, not configure time.
36190 OMPI_SIZEOF_F90_INTEGER2=$ofc_type_size
36193 # Clean up
36194 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
36195 unset ofc_have_type ofc_type_size ofc_letter ofc_str
36196 unset ofc_type_range ofc_type_precision
36197 unset ofc_f77_sizeof
36200 ofc_fortran_type="INTEGER*4"
36201 ofc_expected_size="4"
36203 ofc_have_type=0
36204 ofc_type_size=$ac_cv_sizeof_int
36206 # Only check if we actually want the F90 bindings / have a F90
36207 # compiler. This allows us to call this macro even if there is
36208 # no F90 compiler. If we have no f90 compiler, then just set a
36209 # bunch of defaults.
36210 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
36214 # Determine FORTRAN datatype size.
36215 # First arg is type, 2nd arg is config var to define
36217 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*4" >&5
36218 echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*4... $ECHO_C" >&6; }
36219 if test "${ompi_cv_f90_have_INTEGERp4+set}" = set; then
36220 echo $ECHO_N "(cached) $ECHO_C" >&6
36221 else
36222 ac_ext=${ac_fc_srcext-f}
36223 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
36224 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
36225 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
36227 cat >conftest.$ac_ext <<_ACEOF
36228 program main
36229 INTEGER*4 :: x
36231 _ACEOF
36232 rm -f conftest.$ac_objext
36233 if { (ac_try="$ac_compile"
36234 case "(($ac_try" in
36235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36236 *) ac_try_echo=$ac_try;;
36237 esac
36238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36239 (eval "$ac_compile") 2>conftest.er1
36240 ac_status=$?
36241 grep -v '^ *+' conftest.er1 >conftest.err
36242 rm -f conftest.er1
36243 cat conftest.err >&5
36244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36245 (exit $ac_status); } && {
36246 test -z "$ac_fc_werror_flag" ||
36247 test ! -s conftest.err
36248 } && test -s conftest.$ac_objext; then
36249 ompi_cv_f90_have_INTEGERp4="yes"
36250 else
36251 echo "$as_me: failed program was:" >&5
36252 sed 's/^/| /' conftest.$ac_ext >&5
36254 ompi_cv_f90_have_INTEGERp4="no"
36257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36258 ac_ext=c
36259 ac_cpp='$CPP $CPPFLAGS'
36260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36265 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp4" >&5
36266 echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp4" >&6; }
36268 if test "$ompi_cv_f90_have_INTEGERp4" = "yes"; then
36269 ofc_have_type=1
36270 else
36271 ofc_have_type=0
36275 else
36276 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
36277 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
36278 { echo "$as_me:$LINENO: result: skipped" >&5
36279 echo "${ECHO_T}skipped" >&6; }
36282 if test "$ofc_have_type" = "1"; then
36283 # What is the size of this type?
36285 # NOTE: Some Fortran compilers actually will return that a
36286 # type exists even if it doesn't support it -- the compiler
36287 # will automatically convert the unsupported type to a type
36288 # that it *does* support. For example, if you try to use
36289 # INTEGER*16 and the compiler doesn't support it, it may well
36290 # automatically convert it to INTEGER*8 for you (!). So we
36291 # have to check the actual size of the type once we determine
36292 # that the compiler doesn't error if we try to use it
36293 # (i.e,. the compiler *might* support that type). If the size
36294 # doesn't match the expected size, then the compiler doesn't
36295 # really support it.
36299 { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*4" >&5
36300 echo $ECHO_N "checking size of Fortran 90 INTEGER*4... $ECHO_C" >&6; }
36301 if test "${ompi_cv_f90_sizeof_INTEGERp4+set}" = set; then
36302 echo $ECHO_N "(cached) $ECHO_C" >&6
36303 else
36305 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
36306 # so the general rule is that if there is an _ in the function
36307 # name, then there are two trailing underscores. Otherwise,
36308 # there is only one trailing underscore. Any idea how to do
36309 # that with m4_translit?
36310 if echo size | grep _ >/dev/null 2>&1 ; then
36311 ompi_ac_size_fn=size__
36312 else
36313 ompi_ac_size_fn=size_
36315 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
36316 ompi_ac_size_fn=size_
36317 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
36318 ompi_ac_size_fn=size
36319 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
36320 ompi_ac_size_fn=size
36321 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
36322 ompi_ac_size_fn=SIZE
36323 else
36324 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
36325 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
36326 { (exit 1); exit 1; }; }
36329 # Fortran module
36330 cat > conftestf.f90 <<EOF
36331 program fsize
36332 external size
36333 INTEGER*4 :: x(2)
36334 call size(x(1),x(2))
36335 end program
36338 # C module
36339 if test -f conftest.h; then
36340 ompi_conftest_h="#include \"conftest.h\""
36341 else
36342 ompi_conftest_h=""
36344 cat > conftest.c <<EOF
36345 #include <stdio.h>
36346 #include <stdlib.h>
36347 $ompi_conftest_h
36349 #ifdef __cplusplus
36350 extern "C" {
36351 #endif
36352 void $ompi_ac_size_fn(char *a, char *b)
36354 int diff = (int) (b - a);
36355 FILE *f=fopen("conftestval", "w");
36356 if (!f) exit(1);
36357 fprintf(f, "%d\n", diff);
36359 #ifdef __cplusplus
36361 #endif
36365 # 1 is the command
36366 # 2 is actions to do if success
36367 # 3 is actions to do if fail
36368 echo "configure:36368: $CC $CFLAGS -I. -c conftest.c" >&5
36369 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
36370 ompi_status=$?
36372 # 1 is the message
36373 # 2 is whether to put a prefix or not
36374 if test -n "1"; then
36375 echo "configure:36375: \$? = $ompi_status" >&5
36376 else
36377 echo \$? = $ompi_status >&5
36379 if test "$ompi_status" = "0"; then
36380 unset ompi_status
36382 # 1 is the command
36383 # 2 is actions to do if success
36384 # 3 is actions to do if fail
36385 echo "configure:36385: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
36386 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
36387 ompi_status=$?
36389 # 1 is the message
36390 # 2 is whether to put a prefix or not
36391 if test -n "1"; then
36392 echo "configure:36392: \$? = $ompi_status" >&5
36393 else
36394 echo \$? = $ompi_status >&5
36396 if test "$ompi_status" = "0"; then
36397 unset ompi_status
36398 happy="yes"
36399 else
36400 unset ompi_status
36401 happy="no"
36403 else
36404 unset ompi_status
36405 happy="no"
36408 if test "$happy" = "no" ; then
36410 # 1 is the message
36411 # 2 is whether to put a prefix or not
36412 if test -n "1"; then
36413 echo "configure:36413: here is the fortran 90 program:" >&5
36414 else
36415 echo here is the fortran 90 program: >&5
36418 # 1 is the filename
36419 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
36420 cat conftestf.f90 >&5
36422 { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*4" >&5
36423 echo "$as_me: WARNING: Could not determine size of INTEGER*4" >&2;}
36424 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
36425 echo "$as_me: WARNING: See config.log for details" >&2;}
36426 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
36427 echo "$as_me: error: Cannot continue" >&2;}
36428 { (exit 1); exit 1; }; }
36431 if test "$cross_compiling" = "yes"; then
36432 { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*4 when cross-compiling" >&5
36433 echo "$as_me: error: Can not determine size of INTEGER*4 when cross-compiling" >&2;}
36434 { (exit 1); exit 1; }; }
36435 else
36437 # 1 is the command
36438 # 2 is actions to do if success
36439 # 3 is actions to do if fail
36440 echo "configure:36440: ./conftest" >&5
36441 ./conftest 1>&5 2>&1
36442 ompi_status=$?
36444 # 1 is the message
36445 # 2 is whether to put a prefix or not
36446 if test -n "1"; then
36447 echo "configure:36447: \$? = $ompi_status" >&5
36448 else
36449 echo \$? = $ompi_status >&5
36451 if test "$ompi_status" = "0"; then
36452 unset ompi_status
36453 ompi_cv_f90_sizeof_INTEGERp4=`cat conftestval`
36454 else
36455 unset ompi_status
36456 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5
36457 echo "$as_me: error: Could not determine size of INTEGER*4" >&2;}
36458 { (exit 1); exit 1; }; }
36463 unset happy ompi_conftest_h
36464 rm -f conftest*
36466 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp4" >&5
36467 echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp4" >&6; }
36469 ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp4
36471 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
36472 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
36473 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
36474 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
36475 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
36476 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
36477 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
36478 ofc_have_type=0
36479 else
36480 # If this type has an F77 counterpart, see if it's
36481 # supported.
36482 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER4
36483 if test "$ofc_f77_have_type" = "0"; then
36484 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*4) not supported" >&5
36485 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*4) not supported" >&2;}
36486 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*4)" >&5
36487 echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*4)" >&2;}
36488 else
36490 # Check the size of this type against its F77 counterpart
36491 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER4
36492 if test "$ofc_f77_sizeof" != ""; then
36493 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
36494 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
36495 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
36496 { echo "$as_me:$LINENO: result: no" >&5
36497 echo "${ECHO_T}no" >&6; }
36498 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*4 ($ofc_f77_sizeof) does not match" >&5
36499 echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*4 ($ofc_f77_sizeof) does not match" >&2;}
36500 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*4 ($ofc_type_size)" >&5
36501 echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*4 ($ofc_type_size)" >&2;}
36502 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
36503 echo "$as_me: error: *** Cannot continue" >&2;}
36504 { (exit 1); exit 1; }; }
36505 else
36506 { echo "$as_me:$LINENO: result: yes" >&5
36507 echo "${ECHO_T}yes" >&6; }
36511 # If we passed in the expected size, then also add the
36512 # type to the relevant list of types found.
36513 if test "$ofc_expected_size" != ""; then
36514 ofc_letter=I
36515 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
36516 eval $ofc_str
36522 # We always need these defines -- even if we don't have a given
36523 # type, there are some places in the code where we have to have
36524 # *something*. Note that the bpatsubst's are the same as used
36525 # above (see comment above), but we added a translit to make them
36526 # uppercase.
36528 # If we got a pretty name, use that as the basis. If not, use the
36529 # first part of the provided fortran type (e.g.,
36530 # "logical(selected_int_kind(2))" -> logical1")
36532 # Note that there is no need to AC_DEFINE the size of the F90
36533 # datatype. We have ensured (above) that they are the same as the
36534 # corresponding F77 datatypes, and that's good enough (i.e., the
36535 # DDT engine only looks at the F77 sizes).
36537 # Finally, note that it is necessary to use the Big Long Ugly m4
36538 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
36539 # the result of the BLUm4E in a shell variable and use that in
36540 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
36541 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
36544 cat >>confdefs.h <<_ACEOF
36545 #define OMPI_HAVE_F90_INTEGER4 $ofc_have_type
36546 _ACEOF
36549 # Save some in shell variables for later use. Have to use m4
36550 # functions here (vs. $ompi_upper_var_name, defined above) because
36551 # these need to be set at autoconf time, not configure time.
36552 OMPI_SIZEOF_F90_INTEGER4=$ofc_type_size
36555 # Clean up
36556 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
36557 unset ofc_have_type ofc_type_size ofc_letter ofc_str
36558 unset ofc_type_range ofc_type_precision
36559 unset ofc_f77_sizeof
36562 ofc_fortran_type="INTEGER*8"
36563 ofc_expected_size="8"
36565 ofc_have_type=0
36566 ofc_type_size=$ac_cv_sizeof_int
36568 # Only check if we actually want the F90 bindings / have a F90
36569 # compiler. This allows us to call this macro even if there is
36570 # no F90 compiler. If we have no f90 compiler, then just set a
36571 # bunch of defaults.
36572 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
36576 # Determine FORTRAN datatype size.
36577 # First arg is type, 2nd arg is config var to define
36579 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*8" >&5
36580 echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*8... $ECHO_C" >&6; }
36581 if test "${ompi_cv_f90_have_INTEGERp8+set}" = set; then
36582 echo $ECHO_N "(cached) $ECHO_C" >&6
36583 else
36584 ac_ext=${ac_fc_srcext-f}
36585 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
36586 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
36587 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
36589 cat >conftest.$ac_ext <<_ACEOF
36590 program main
36591 INTEGER*8 :: x
36593 _ACEOF
36594 rm -f conftest.$ac_objext
36595 if { (ac_try="$ac_compile"
36596 case "(($ac_try" in
36597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36598 *) ac_try_echo=$ac_try;;
36599 esac
36600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36601 (eval "$ac_compile") 2>conftest.er1
36602 ac_status=$?
36603 grep -v '^ *+' conftest.er1 >conftest.err
36604 rm -f conftest.er1
36605 cat conftest.err >&5
36606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36607 (exit $ac_status); } && {
36608 test -z "$ac_fc_werror_flag" ||
36609 test ! -s conftest.err
36610 } && test -s conftest.$ac_objext; then
36611 ompi_cv_f90_have_INTEGERp8="yes"
36612 else
36613 echo "$as_me: failed program was:" >&5
36614 sed 's/^/| /' conftest.$ac_ext >&5
36616 ompi_cv_f90_have_INTEGERp8="no"
36619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36620 ac_ext=c
36621 ac_cpp='$CPP $CPPFLAGS'
36622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36627 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp8" >&5
36628 echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp8" >&6; }
36630 if test "$ompi_cv_f90_have_INTEGERp8" = "yes"; then
36631 ofc_have_type=1
36632 else
36633 ofc_have_type=0
36637 else
36638 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
36639 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
36640 { echo "$as_me:$LINENO: result: skipped" >&5
36641 echo "${ECHO_T}skipped" >&6; }
36644 if test "$ofc_have_type" = "1"; then
36645 # What is the size of this type?
36647 # NOTE: Some Fortran compilers actually will return that a
36648 # type exists even if it doesn't support it -- the compiler
36649 # will automatically convert the unsupported type to a type
36650 # that it *does* support. For example, if you try to use
36651 # INTEGER*16 and the compiler doesn't support it, it may well
36652 # automatically convert it to INTEGER*8 for you (!). So we
36653 # have to check the actual size of the type once we determine
36654 # that the compiler doesn't error if we try to use it
36655 # (i.e,. the compiler *might* support that type). If the size
36656 # doesn't match the expected size, then the compiler doesn't
36657 # really support it.
36661 { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*8" >&5
36662 echo $ECHO_N "checking size of Fortran 90 INTEGER*8... $ECHO_C" >&6; }
36663 if test "${ompi_cv_f90_sizeof_INTEGERp8+set}" = set; then
36664 echo $ECHO_N "(cached) $ECHO_C" >&6
36665 else
36667 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
36668 # so the general rule is that if there is an _ in the function
36669 # name, then there are two trailing underscores. Otherwise,
36670 # there is only one trailing underscore. Any idea how to do
36671 # that with m4_translit?
36672 if echo size | grep _ >/dev/null 2>&1 ; then
36673 ompi_ac_size_fn=size__
36674 else
36675 ompi_ac_size_fn=size_
36677 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
36678 ompi_ac_size_fn=size_
36679 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
36680 ompi_ac_size_fn=size
36681 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
36682 ompi_ac_size_fn=size
36683 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
36684 ompi_ac_size_fn=SIZE
36685 else
36686 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
36687 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
36688 { (exit 1); exit 1; }; }
36691 # Fortran module
36692 cat > conftestf.f90 <<EOF
36693 program fsize
36694 external size
36695 INTEGER*8 :: x(2)
36696 call size(x(1),x(2))
36697 end program
36700 # C module
36701 if test -f conftest.h; then
36702 ompi_conftest_h="#include \"conftest.h\""
36703 else
36704 ompi_conftest_h=""
36706 cat > conftest.c <<EOF
36707 #include <stdio.h>
36708 #include <stdlib.h>
36709 $ompi_conftest_h
36711 #ifdef __cplusplus
36712 extern "C" {
36713 #endif
36714 void $ompi_ac_size_fn(char *a, char *b)
36716 int diff = (int) (b - a);
36717 FILE *f=fopen("conftestval", "w");
36718 if (!f) exit(1);
36719 fprintf(f, "%d\n", diff);
36721 #ifdef __cplusplus
36723 #endif
36727 # 1 is the command
36728 # 2 is actions to do if success
36729 # 3 is actions to do if fail
36730 echo "configure:36730: $CC $CFLAGS -I. -c conftest.c" >&5
36731 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
36732 ompi_status=$?
36734 # 1 is the message
36735 # 2 is whether to put a prefix or not
36736 if test -n "1"; then
36737 echo "configure:36737: \$? = $ompi_status" >&5
36738 else
36739 echo \$? = $ompi_status >&5
36741 if test "$ompi_status" = "0"; then
36742 unset ompi_status
36744 # 1 is the command
36745 # 2 is actions to do if success
36746 # 3 is actions to do if fail
36747 echo "configure:36747: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
36748 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
36749 ompi_status=$?
36751 # 1 is the message
36752 # 2 is whether to put a prefix or not
36753 if test -n "1"; then
36754 echo "configure:36754: \$? = $ompi_status" >&5
36755 else
36756 echo \$? = $ompi_status >&5
36758 if test "$ompi_status" = "0"; then
36759 unset ompi_status
36760 happy="yes"
36761 else
36762 unset ompi_status
36763 happy="no"
36765 else
36766 unset ompi_status
36767 happy="no"
36770 if test "$happy" = "no" ; then
36772 # 1 is the message
36773 # 2 is whether to put a prefix or not
36774 if test -n "1"; then
36775 echo "configure:36775: here is the fortran 90 program:" >&5
36776 else
36777 echo here is the fortran 90 program: >&5
36780 # 1 is the filename
36781 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
36782 cat conftestf.f90 >&5
36784 { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*8" >&5
36785 echo "$as_me: WARNING: Could not determine size of INTEGER*8" >&2;}
36786 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
36787 echo "$as_me: WARNING: See config.log for details" >&2;}
36788 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
36789 echo "$as_me: error: Cannot continue" >&2;}
36790 { (exit 1); exit 1; }; }
36793 if test "$cross_compiling" = "yes"; then
36794 { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*8 when cross-compiling" >&5
36795 echo "$as_me: error: Can not determine size of INTEGER*8 when cross-compiling" >&2;}
36796 { (exit 1); exit 1; }; }
36797 else
36799 # 1 is the command
36800 # 2 is actions to do if success
36801 # 3 is actions to do if fail
36802 echo "configure:36802: ./conftest" >&5
36803 ./conftest 1>&5 2>&1
36804 ompi_status=$?
36806 # 1 is the message
36807 # 2 is whether to put a prefix or not
36808 if test -n "1"; then
36809 echo "configure:36809: \$? = $ompi_status" >&5
36810 else
36811 echo \$? = $ompi_status >&5
36813 if test "$ompi_status" = "0"; then
36814 unset ompi_status
36815 ompi_cv_f90_sizeof_INTEGERp8=`cat conftestval`
36816 else
36817 unset ompi_status
36818 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5
36819 echo "$as_me: error: Could not determine size of INTEGER*8" >&2;}
36820 { (exit 1); exit 1; }; }
36825 unset happy ompi_conftest_h
36826 rm -f conftest*
36828 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp8" >&5
36829 echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp8" >&6; }
36831 ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp8
36833 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
36834 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
36835 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
36836 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
36837 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
36838 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
36839 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
36840 ofc_have_type=0
36841 else
36842 # If this type has an F77 counterpart, see if it's
36843 # supported.
36844 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER8
36845 if test "$ofc_f77_have_type" = "0"; then
36846 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*8) not supported" >&5
36847 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*8) not supported" >&2;}
36848 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*8)" >&5
36849 echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*8)" >&2;}
36850 else
36852 # Check the size of this type against its F77 counterpart
36853 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER8
36854 if test "$ofc_f77_sizeof" != ""; then
36855 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
36856 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
36857 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
36858 { echo "$as_me:$LINENO: result: no" >&5
36859 echo "${ECHO_T}no" >&6; }
36860 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*8 ($ofc_f77_sizeof) does not match" >&5
36861 echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*8 ($ofc_f77_sizeof) does not match" >&2;}
36862 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*8 ($ofc_type_size)" >&5
36863 echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*8 ($ofc_type_size)" >&2;}
36864 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
36865 echo "$as_me: error: *** Cannot continue" >&2;}
36866 { (exit 1); exit 1; }; }
36867 else
36868 { echo "$as_me:$LINENO: result: yes" >&5
36869 echo "${ECHO_T}yes" >&6; }
36873 # If we passed in the expected size, then also add the
36874 # type to the relevant list of types found.
36875 if test "$ofc_expected_size" != ""; then
36876 ofc_letter=I
36877 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
36878 eval $ofc_str
36884 # We always need these defines -- even if we don't have a given
36885 # type, there are some places in the code where we have to have
36886 # *something*. Note that the bpatsubst's are the same as used
36887 # above (see comment above), but we added a translit to make them
36888 # uppercase.
36890 # If we got a pretty name, use that as the basis. If not, use the
36891 # first part of the provided fortran type (e.g.,
36892 # "logical(selected_int_kind(2))" -> logical1")
36894 # Note that there is no need to AC_DEFINE the size of the F90
36895 # datatype. We have ensured (above) that they are the same as the
36896 # corresponding F77 datatypes, and that's good enough (i.e., the
36897 # DDT engine only looks at the F77 sizes).
36899 # Finally, note that it is necessary to use the Big Long Ugly m4
36900 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
36901 # the result of the BLUm4E in a shell variable and use that in
36902 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
36903 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
36906 cat >>confdefs.h <<_ACEOF
36907 #define OMPI_HAVE_F90_INTEGER8 $ofc_have_type
36908 _ACEOF
36911 # Save some in shell variables for later use. Have to use m4
36912 # functions here (vs. $ompi_upper_var_name, defined above) because
36913 # these need to be set at autoconf time, not configure time.
36914 OMPI_SIZEOF_F90_INTEGER8=$ofc_type_size
36917 # Clean up
36918 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
36919 unset ofc_have_type ofc_type_size ofc_letter ofc_str
36920 unset ofc_type_range ofc_type_precision
36921 unset ofc_f77_sizeof
36924 ofc_fortran_type="INTEGER*16"
36925 ofc_expected_size="16"
36927 ofc_have_type=0
36928 ofc_type_size=$ac_cv_sizeof_int
36930 # Only check if we actually want the F90 bindings / have a F90
36931 # compiler. This allows us to call this macro even if there is
36932 # no F90 compiler. If we have no f90 compiler, then just set a
36933 # bunch of defaults.
36934 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
36938 # Determine FORTRAN datatype size.
36939 # First arg is type, 2nd arg is config var to define
36941 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports INTEGER*16" >&5
36942 echo $ECHO_N "checking if Fortran 90 compiler supports INTEGER*16... $ECHO_C" >&6; }
36943 if test "${ompi_cv_f90_have_INTEGERp16+set}" = set; then
36944 echo $ECHO_N "(cached) $ECHO_C" >&6
36945 else
36946 ac_ext=${ac_fc_srcext-f}
36947 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
36948 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
36949 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
36951 cat >conftest.$ac_ext <<_ACEOF
36952 program main
36953 INTEGER*16 :: x
36955 _ACEOF
36956 rm -f conftest.$ac_objext
36957 if { (ac_try="$ac_compile"
36958 case "(($ac_try" in
36959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36960 *) ac_try_echo=$ac_try;;
36961 esac
36962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36963 (eval "$ac_compile") 2>conftest.er1
36964 ac_status=$?
36965 grep -v '^ *+' conftest.er1 >conftest.err
36966 rm -f conftest.er1
36967 cat conftest.err >&5
36968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36969 (exit $ac_status); } && {
36970 test -z "$ac_fc_werror_flag" ||
36971 test ! -s conftest.err
36972 } && test -s conftest.$ac_objext; then
36973 ompi_cv_f90_have_INTEGERp16="yes"
36974 else
36975 echo "$as_me: failed program was:" >&5
36976 sed 's/^/| /' conftest.$ac_ext >&5
36978 ompi_cv_f90_have_INTEGERp16="no"
36981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36982 ac_ext=c
36983 ac_cpp='$CPP $CPPFLAGS'
36984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36989 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_INTEGERp16" >&5
36990 echo "${ECHO_T}$ompi_cv_f90_have_INTEGERp16" >&6; }
36992 if test "$ompi_cv_f90_have_INTEGERp16" = "yes"; then
36993 ofc_have_type=1
36994 else
36995 ofc_have_type=0
36999 else
37000 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
37001 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
37002 { echo "$as_me:$LINENO: result: skipped" >&5
37003 echo "${ECHO_T}skipped" >&6; }
37006 if test "$ofc_have_type" = "1"; then
37007 # What is the size of this type?
37009 # NOTE: Some Fortran compilers actually will return that a
37010 # type exists even if it doesn't support it -- the compiler
37011 # will automatically convert the unsupported type to a type
37012 # that it *does* support. For example, if you try to use
37013 # INTEGER*16 and the compiler doesn't support it, it may well
37014 # automatically convert it to INTEGER*8 for you (!). So we
37015 # have to check the actual size of the type once we determine
37016 # that the compiler doesn't error if we try to use it
37017 # (i.e,. the compiler *might* support that type). If the size
37018 # doesn't match the expected size, then the compiler doesn't
37019 # really support it.
37023 { echo "$as_me:$LINENO: checking size of Fortran 90 INTEGER*16" >&5
37024 echo $ECHO_N "checking size of Fortran 90 INTEGER*16... $ECHO_C" >&6; }
37025 if test "${ompi_cv_f90_sizeof_INTEGERp16+set}" = set; then
37026 echo $ECHO_N "(cached) $ECHO_C" >&6
37027 else
37029 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
37030 # so the general rule is that if there is an _ in the function
37031 # name, then there are two trailing underscores. Otherwise,
37032 # there is only one trailing underscore. Any idea how to do
37033 # that with m4_translit?
37034 if echo size | grep _ >/dev/null 2>&1 ; then
37035 ompi_ac_size_fn=size__
37036 else
37037 ompi_ac_size_fn=size_
37039 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
37040 ompi_ac_size_fn=size_
37041 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
37042 ompi_ac_size_fn=size
37043 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
37044 ompi_ac_size_fn=size
37045 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
37046 ompi_ac_size_fn=SIZE
37047 else
37048 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
37049 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
37050 { (exit 1); exit 1; }; }
37053 # Fortran module
37054 cat > conftestf.f90 <<EOF
37055 program fsize
37056 external size
37057 INTEGER*16 :: x(2)
37058 call size(x(1),x(2))
37059 end program
37062 # C module
37063 if test -f conftest.h; then
37064 ompi_conftest_h="#include \"conftest.h\""
37065 else
37066 ompi_conftest_h=""
37068 cat > conftest.c <<EOF
37069 #include <stdio.h>
37070 #include <stdlib.h>
37071 $ompi_conftest_h
37073 #ifdef __cplusplus
37074 extern "C" {
37075 #endif
37076 void $ompi_ac_size_fn(char *a, char *b)
37078 int diff = (int) (b - a);
37079 FILE *f=fopen("conftestval", "w");
37080 if (!f) exit(1);
37081 fprintf(f, "%d\n", diff);
37083 #ifdef __cplusplus
37085 #endif
37089 # 1 is the command
37090 # 2 is actions to do if success
37091 # 3 is actions to do if fail
37092 echo "configure:37092: $CC $CFLAGS -I. -c conftest.c" >&5
37093 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
37094 ompi_status=$?
37096 # 1 is the message
37097 # 2 is whether to put a prefix or not
37098 if test -n "1"; then
37099 echo "configure:37099: \$? = $ompi_status" >&5
37100 else
37101 echo \$? = $ompi_status >&5
37103 if test "$ompi_status" = "0"; then
37104 unset ompi_status
37106 # 1 is the command
37107 # 2 is actions to do if success
37108 # 3 is actions to do if fail
37109 echo "configure:37109: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
37110 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
37111 ompi_status=$?
37113 # 1 is the message
37114 # 2 is whether to put a prefix or not
37115 if test -n "1"; then
37116 echo "configure:37116: \$? = $ompi_status" >&5
37117 else
37118 echo \$? = $ompi_status >&5
37120 if test "$ompi_status" = "0"; then
37121 unset ompi_status
37122 happy="yes"
37123 else
37124 unset ompi_status
37125 happy="no"
37127 else
37128 unset ompi_status
37129 happy="no"
37132 if test "$happy" = "no" ; then
37134 # 1 is the message
37135 # 2 is whether to put a prefix or not
37136 if test -n "1"; then
37137 echo "configure:37137: here is the fortran 90 program:" >&5
37138 else
37139 echo here is the fortran 90 program: >&5
37142 # 1 is the filename
37143 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
37144 cat conftestf.f90 >&5
37146 { echo "$as_me:$LINENO: WARNING: Could not determine size of INTEGER*16" >&5
37147 echo "$as_me: WARNING: Could not determine size of INTEGER*16" >&2;}
37148 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
37149 echo "$as_me: WARNING: See config.log for details" >&2;}
37150 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
37151 echo "$as_me: error: Cannot continue" >&2;}
37152 { (exit 1); exit 1; }; }
37155 if test "$cross_compiling" = "yes"; then
37156 { { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*16 when cross-compiling" >&5
37157 echo "$as_me: error: Can not determine size of INTEGER*16 when cross-compiling" >&2;}
37158 { (exit 1); exit 1; }; }
37159 else
37161 # 1 is the command
37162 # 2 is actions to do if success
37163 # 3 is actions to do if fail
37164 echo "configure:37164: ./conftest" >&5
37165 ./conftest 1>&5 2>&1
37166 ompi_status=$?
37168 # 1 is the message
37169 # 2 is whether to put a prefix or not
37170 if test -n "1"; then
37171 echo "configure:37171: \$? = $ompi_status" >&5
37172 else
37173 echo \$? = $ompi_status >&5
37175 if test "$ompi_status" = "0"; then
37176 unset ompi_status
37177 ompi_cv_f90_sizeof_INTEGERp16=`cat conftestval`
37178 else
37179 unset ompi_status
37180 { { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5
37181 echo "$as_me: error: Could not determine size of INTEGER*16" >&2;}
37182 { (exit 1); exit 1; }; }
37187 unset happy ompi_conftest_h
37188 rm -f conftest*
37190 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_INTEGERp16" >&5
37191 echo "${ECHO_T}$ompi_cv_f90_sizeof_INTEGERp16" >&6; }
37193 ofc_type_size=$ompi_cv_f90_sizeof_INTEGERp16
37195 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
37196 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
37197 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
37198 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
37199 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
37200 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
37201 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
37202 ofc_have_type=0
37203 else
37204 # If this type has an F77 counterpart, see if it's
37205 # supported.
37206 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_INTEGER16
37207 if test "$ofc_f77_have_type" = "0"; then
37208 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (INTEGER*16) not supported" >&5
37209 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (INTEGER*16) not supported" >&2;}
37210 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (INTEGER*16)" >&5
37211 echo "$as_me: WARNING: *** Skipping Fortran 90 type (INTEGER*16)" >&2;}
37212 else
37214 # Check the size of this type against its F77 counterpart
37215 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_INTEGER16
37216 if test "$ofc_f77_sizeof" != ""; then
37217 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
37218 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
37219 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
37220 { echo "$as_me:$LINENO: result: no" >&5
37221 echo "${ECHO_T}no" >&6; }
37222 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for INTEGER*16 ($ofc_f77_sizeof) does not match" >&5
37223 echo "$as_me: WARNING: *** Fortran 77 size for INTEGER*16 ($ofc_f77_sizeof) does not match" >&2;}
37224 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for INTEGER*16 ($ofc_type_size)" >&5
37225 echo "$as_me: WARNING: *** Fortran 90 size for INTEGER*16 ($ofc_type_size)" >&2;}
37226 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
37227 echo "$as_me: error: *** Cannot continue" >&2;}
37228 { (exit 1); exit 1; }; }
37229 else
37230 { echo "$as_me:$LINENO: result: yes" >&5
37231 echo "${ECHO_T}yes" >&6; }
37235 # If we passed in the expected size, then also add the
37236 # type to the relevant list of types found.
37237 if test "$ofc_expected_size" != ""; then
37238 ofc_letter=I
37239 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
37240 eval $ofc_str
37246 # We always need these defines -- even if we don't have a given
37247 # type, there are some places in the code where we have to have
37248 # *something*. Note that the bpatsubst's are the same as used
37249 # above (see comment above), but we added a translit to make them
37250 # uppercase.
37252 # If we got a pretty name, use that as the basis. If not, use the
37253 # first part of the provided fortran type (e.g.,
37254 # "logical(selected_int_kind(2))" -> logical1")
37256 # Note that there is no need to AC_DEFINE the size of the F90
37257 # datatype. We have ensured (above) that they are the same as the
37258 # corresponding F77 datatypes, and that's good enough (i.e., the
37259 # DDT engine only looks at the F77 sizes).
37261 # Finally, note that it is necessary to use the Big Long Ugly m4
37262 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
37263 # the result of the BLUm4E in a shell variable and use that in
37264 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
37265 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
37268 cat >>confdefs.h <<_ACEOF
37269 #define OMPI_HAVE_F90_INTEGER16 $ofc_have_type
37270 _ACEOF
37273 # Save some in shell variables for later use. Have to use m4
37274 # functions here (vs. $ompi_upper_var_name, defined above) because
37275 # these need to be set at autoconf time, not configure time.
37276 OMPI_SIZEOF_F90_INTEGER16=$ofc_type_size
37279 # Clean up
37280 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
37281 unset ofc_have_type ofc_type_size ofc_letter ofc_str
37282 unset ofc_type_range ofc_type_precision
37283 unset ofc_f77_sizeof
37286 # REAL, DOUBLE PRECISION, REAL*4, *8, *16
37288 ofc_fortran_type="REAL"
37289 ofc_expected_size=""
37291 ofc_have_type=0
37292 ofc_type_size=$ac_cv_sizeof_int
37294 # Only check if we actually want the F90 bindings / have a F90
37295 # compiler. This allows us to call this macro even if there is
37296 # no F90 compiler. If we have no f90 compiler, then just set a
37297 # bunch of defaults.
37298 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
37302 # Determine FORTRAN datatype size.
37303 # First arg is type, 2nd arg is config var to define
37305 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL" >&5
37306 echo $ECHO_N "checking if Fortran 90 compiler supports REAL... $ECHO_C" >&6; }
37307 if test "${ompi_cv_f90_have_REAL+set}" = set; then
37308 echo $ECHO_N "(cached) $ECHO_C" >&6
37309 else
37310 ac_ext=${ac_fc_srcext-f}
37311 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
37312 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
37313 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
37315 cat >conftest.$ac_ext <<_ACEOF
37316 program main
37317 REAL :: x
37319 _ACEOF
37320 rm -f conftest.$ac_objext
37321 if { (ac_try="$ac_compile"
37322 case "(($ac_try" in
37323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37324 *) ac_try_echo=$ac_try;;
37325 esac
37326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37327 (eval "$ac_compile") 2>conftest.er1
37328 ac_status=$?
37329 grep -v '^ *+' conftest.er1 >conftest.err
37330 rm -f conftest.er1
37331 cat conftest.err >&5
37332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333 (exit $ac_status); } && {
37334 test -z "$ac_fc_werror_flag" ||
37335 test ! -s conftest.err
37336 } && test -s conftest.$ac_objext; then
37337 ompi_cv_f90_have_REAL="yes"
37338 else
37339 echo "$as_me: failed program was:" >&5
37340 sed 's/^/| /' conftest.$ac_ext >&5
37342 ompi_cv_f90_have_REAL="no"
37345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37346 ac_ext=c
37347 ac_cpp='$CPP $CPPFLAGS'
37348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37353 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REAL" >&5
37354 echo "${ECHO_T}$ompi_cv_f90_have_REAL" >&6; }
37356 if test "$ompi_cv_f90_have_REAL" = "yes"; then
37357 ofc_have_type=1
37358 else
37359 ofc_have_type=0
37363 else
37364 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
37365 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
37366 { echo "$as_me:$LINENO: result: skipped" >&5
37367 echo "${ECHO_T}skipped" >&6; }
37370 if test "$ofc_have_type" = "1"; then
37371 # What is the size of this type?
37373 # NOTE: Some Fortran compilers actually will return that a
37374 # type exists even if it doesn't support it -- the compiler
37375 # will automatically convert the unsupported type to a type
37376 # that it *does* support. For example, if you try to use
37377 # INTEGER*16 and the compiler doesn't support it, it may well
37378 # automatically convert it to INTEGER*8 for you (!). So we
37379 # have to check the actual size of the type once we determine
37380 # that the compiler doesn't error if we try to use it
37381 # (i.e,. the compiler *might* support that type). If the size
37382 # doesn't match the expected size, then the compiler doesn't
37383 # really support it.
37387 { echo "$as_me:$LINENO: checking size of Fortran 90 REAL" >&5
37388 echo $ECHO_N "checking size of Fortran 90 REAL... $ECHO_C" >&6; }
37389 if test "${ompi_cv_f90_sizeof_REAL+set}" = set; then
37390 echo $ECHO_N "(cached) $ECHO_C" >&6
37391 else
37393 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
37394 # so the general rule is that if there is an _ in the function
37395 # name, then there are two trailing underscores. Otherwise,
37396 # there is only one trailing underscore. Any idea how to do
37397 # that with m4_translit?
37398 if echo size | grep _ >/dev/null 2>&1 ; then
37399 ompi_ac_size_fn=size__
37400 else
37401 ompi_ac_size_fn=size_
37403 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
37404 ompi_ac_size_fn=size_
37405 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
37406 ompi_ac_size_fn=size
37407 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
37408 ompi_ac_size_fn=size
37409 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
37410 ompi_ac_size_fn=SIZE
37411 else
37412 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
37413 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
37414 { (exit 1); exit 1; }; }
37417 # Fortran module
37418 cat > conftestf.f90 <<EOF
37419 program fsize
37420 external size
37421 REAL :: x(2)
37422 call size(x(1),x(2))
37423 end program
37426 # C module
37427 if test -f conftest.h; then
37428 ompi_conftest_h="#include \"conftest.h\""
37429 else
37430 ompi_conftest_h=""
37432 cat > conftest.c <<EOF
37433 #include <stdio.h>
37434 #include <stdlib.h>
37435 $ompi_conftest_h
37437 #ifdef __cplusplus
37438 extern "C" {
37439 #endif
37440 void $ompi_ac_size_fn(char *a, char *b)
37442 int diff = (int) (b - a);
37443 FILE *f=fopen("conftestval", "w");
37444 if (!f) exit(1);
37445 fprintf(f, "%d\n", diff);
37447 #ifdef __cplusplus
37449 #endif
37453 # 1 is the command
37454 # 2 is actions to do if success
37455 # 3 is actions to do if fail
37456 echo "configure:37456: $CC $CFLAGS -I. -c conftest.c" >&5
37457 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
37458 ompi_status=$?
37460 # 1 is the message
37461 # 2 is whether to put a prefix or not
37462 if test -n "1"; then
37463 echo "configure:37463: \$? = $ompi_status" >&5
37464 else
37465 echo \$? = $ompi_status >&5
37467 if test "$ompi_status" = "0"; then
37468 unset ompi_status
37470 # 1 is the command
37471 # 2 is actions to do if success
37472 # 3 is actions to do if fail
37473 echo "configure:37473: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
37474 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
37475 ompi_status=$?
37477 # 1 is the message
37478 # 2 is whether to put a prefix or not
37479 if test -n "1"; then
37480 echo "configure:37480: \$? = $ompi_status" >&5
37481 else
37482 echo \$? = $ompi_status >&5
37484 if test "$ompi_status" = "0"; then
37485 unset ompi_status
37486 happy="yes"
37487 else
37488 unset ompi_status
37489 happy="no"
37491 else
37492 unset ompi_status
37493 happy="no"
37496 if test "$happy" = "no" ; then
37498 # 1 is the message
37499 # 2 is whether to put a prefix or not
37500 if test -n "1"; then
37501 echo "configure:37501: here is the fortran 90 program:" >&5
37502 else
37503 echo here is the fortran 90 program: >&5
37506 # 1 is the filename
37507 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
37508 cat conftestf.f90 >&5
37510 { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL" >&5
37511 echo "$as_me: WARNING: Could not determine size of REAL" >&2;}
37512 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
37513 echo "$as_me: WARNING: See config.log for details" >&2;}
37514 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
37515 echo "$as_me: error: Cannot continue" >&2;}
37516 { (exit 1); exit 1; }; }
37519 if test "$cross_compiling" = "yes"; then
37520 { { echo "$as_me:$LINENO: error: Can not determine size of REAL when cross-compiling" >&5
37521 echo "$as_me: error: Can not determine size of REAL when cross-compiling" >&2;}
37522 { (exit 1); exit 1; }; }
37523 else
37525 # 1 is the command
37526 # 2 is actions to do if success
37527 # 3 is actions to do if fail
37528 echo "configure:37528: ./conftest" >&5
37529 ./conftest 1>&5 2>&1
37530 ompi_status=$?
37532 # 1 is the message
37533 # 2 is whether to put a prefix or not
37534 if test -n "1"; then
37535 echo "configure:37535: \$? = $ompi_status" >&5
37536 else
37537 echo \$? = $ompi_status >&5
37539 if test "$ompi_status" = "0"; then
37540 unset ompi_status
37541 ompi_cv_f90_sizeof_REAL=`cat conftestval`
37542 else
37543 unset ompi_status
37544 { { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5
37545 echo "$as_me: error: Could not determine size of REAL" >&2;}
37546 { (exit 1); exit 1; }; }
37551 unset happy ompi_conftest_h
37552 rm -f conftest*
37554 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REAL" >&5
37555 echo "${ECHO_T}$ompi_cv_f90_sizeof_REAL" >&6; }
37557 ofc_type_size=$ompi_cv_f90_sizeof_REAL
37559 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
37560 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
37561 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
37562 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
37563 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
37564 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
37565 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
37566 ofc_have_type=0
37567 else
37568 # If this type has an F77 counterpart, see if it's
37569 # supported.
37570 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL
37571 if test "$ofc_f77_have_type" = "0"; then
37572 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL) not supported" >&5
37573 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL) not supported" >&2;}
37574 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL)" >&5
37575 echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL)" >&2;}
37576 else
37578 # Check the size of this type against its F77 counterpart
37579 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL
37580 if test "$ofc_f77_sizeof" != ""; then
37581 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
37582 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
37583 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
37584 { echo "$as_me:$LINENO: result: no" >&5
37585 echo "${ECHO_T}no" >&6; }
37586 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL ($ofc_f77_sizeof) does not match" >&5
37587 echo "$as_me: WARNING: *** Fortran 77 size for REAL ($ofc_f77_sizeof) does not match" >&2;}
37588 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL ($ofc_type_size)" >&5
37589 echo "$as_me: WARNING: *** Fortran 90 size for REAL ($ofc_type_size)" >&2;}
37590 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
37591 echo "$as_me: error: *** Cannot continue" >&2;}
37592 { (exit 1); exit 1; }; }
37593 else
37594 { echo "$as_me:$LINENO: result: yes" >&5
37595 echo "${ECHO_T}yes" >&6; }
37599 # If we passed in the expected size, then also add the
37600 # type to the relevant list of types found.
37601 if test "$ofc_expected_size" != ""; then
37602 ofc_letter=R
37603 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
37604 eval $ofc_str
37610 # We always need these defines -- even if we don't have a given
37611 # type, there are some places in the code where we have to have
37612 # *something*. Note that the bpatsubst's are the same as used
37613 # above (see comment above), but we added a translit to make them
37614 # uppercase.
37616 # If we got a pretty name, use that as the basis. If not, use the
37617 # first part of the provided fortran type (e.g.,
37618 # "logical(selected_int_kind(2))" -> logical1")
37620 # Note that there is no need to AC_DEFINE the size of the F90
37621 # datatype. We have ensured (above) that they are the same as the
37622 # corresponding F77 datatypes, and that's good enough (i.e., the
37623 # DDT engine only looks at the F77 sizes).
37625 # Finally, note that it is necessary to use the Big Long Ugly m4
37626 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
37627 # the result of the BLUm4E in a shell variable and use that in
37628 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
37629 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
37632 cat >>confdefs.h <<_ACEOF
37633 #define OMPI_HAVE_F90_REAL $ofc_have_type
37634 _ACEOF
37637 # Save some in shell variables for later use. Have to use m4
37638 # functions here (vs. $ompi_upper_var_name, defined above) because
37639 # these need to be set at autoconf time, not configure time.
37640 OMPI_SIZEOF_F90_REAL=$ofc_type_size
37643 # Clean up
37644 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
37645 unset ofc_have_type ofc_type_size ofc_letter ofc_str
37646 unset ofc_type_range ofc_type_precision
37647 unset ofc_f77_sizeof
37650 ofc_fortran_type="REAL*4"
37651 ofc_expected_size="4"
37653 ofc_have_type=0
37654 ofc_type_size=$ac_cv_sizeof_int
37656 # Only check if we actually want the F90 bindings / have a F90
37657 # compiler. This allows us to call this macro even if there is
37658 # no F90 compiler. If we have no f90 compiler, then just set a
37659 # bunch of defaults.
37660 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
37664 # Determine FORTRAN datatype size.
37665 # First arg is type, 2nd arg is config var to define
37667 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*4" >&5
37668 echo $ECHO_N "checking if Fortran 90 compiler supports REAL*4... $ECHO_C" >&6; }
37669 if test "${ompi_cv_f90_have_REALp4+set}" = set; then
37670 echo $ECHO_N "(cached) $ECHO_C" >&6
37671 else
37672 ac_ext=${ac_fc_srcext-f}
37673 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
37674 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
37675 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
37677 cat >conftest.$ac_ext <<_ACEOF
37678 program main
37679 REAL*4 :: x
37681 _ACEOF
37682 rm -f conftest.$ac_objext
37683 if { (ac_try="$ac_compile"
37684 case "(($ac_try" in
37685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37686 *) ac_try_echo=$ac_try;;
37687 esac
37688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37689 (eval "$ac_compile") 2>conftest.er1
37690 ac_status=$?
37691 grep -v '^ *+' conftest.er1 >conftest.err
37692 rm -f conftest.er1
37693 cat conftest.err >&5
37694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37695 (exit $ac_status); } && {
37696 test -z "$ac_fc_werror_flag" ||
37697 test ! -s conftest.err
37698 } && test -s conftest.$ac_objext; then
37699 ompi_cv_f90_have_REALp4="yes"
37700 else
37701 echo "$as_me: failed program was:" >&5
37702 sed 's/^/| /' conftest.$ac_ext >&5
37704 ompi_cv_f90_have_REALp4="no"
37707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37708 ac_ext=c
37709 ac_cpp='$CPP $CPPFLAGS'
37710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37715 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp4" >&5
37716 echo "${ECHO_T}$ompi_cv_f90_have_REALp4" >&6; }
37718 if test "$ompi_cv_f90_have_REALp4" = "yes"; then
37719 ofc_have_type=1
37720 else
37721 ofc_have_type=0
37725 else
37726 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
37727 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
37728 { echo "$as_me:$LINENO: result: skipped" >&5
37729 echo "${ECHO_T}skipped" >&6; }
37732 if test "$ofc_have_type" = "1"; then
37733 # What is the size of this type?
37735 # NOTE: Some Fortran compilers actually will return that a
37736 # type exists even if it doesn't support it -- the compiler
37737 # will automatically convert the unsupported type to a type
37738 # that it *does* support. For example, if you try to use
37739 # INTEGER*16 and the compiler doesn't support it, it may well
37740 # automatically convert it to INTEGER*8 for you (!). So we
37741 # have to check the actual size of the type once we determine
37742 # that the compiler doesn't error if we try to use it
37743 # (i.e,. the compiler *might* support that type). If the size
37744 # doesn't match the expected size, then the compiler doesn't
37745 # really support it.
37749 { echo "$as_me:$LINENO: checking size of Fortran 90 REAL*4" >&5
37750 echo $ECHO_N "checking size of Fortran 90 REAL*4... $ECHO_C" >&6; }
37751 if test "${ompi_cv_f90_sizeof_REALp4+set}" = set; then
37752 echo $ECHO_N "(cached) $ECHO_C" >&6
37753 else
37755 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
37756 # so the general rule is that if there is an _ in the function
37757 # name, then there are two trailing underscores. Otherwise,
37758 # there is only one trailing underscore. Any idea how to do
37759 # that with m4_translit?
37760 if echo size | grep _ >/dev/null 2>&1 ; then
37761 ompi_ac_size_fn=size__
37762 else
37763 ompi_ac_size_fn=size_
37765 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
37766 ompi_ac_size_fn=size_
37767 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
37768 ompi_ac_size_fn=size
37769 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
37770 ompi_ac_size_fn=size
37771 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
37772 ompi_ac_size_fn=SIZE
37773 else
37774 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
37775 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
37776 { (exit 1); exit 1; }; }
37779 # Fortran module
37780 cat > conftestf.f90 <<EOF
37781 program fsize
37782 external size
37783 REAL*4 :: x(2)
37784 call size(x(1),x(2))
37785 end program
37788 # C module
37789 if test -f conftest.h; then
37790 ompi_conftest_h="#include \"conftest.h\""
37791 else
37792 ompi_conftest_h=""
37794 cat > conftest.c <<EOF
37795 #include <stdio.h>
37796 #include <stdlib.h>
37797 $ompi_conftest_h
37799 #ifdef __cplusplus
37800 extern "C" {
37801 #endif
37802 void $ompi_ac_size_fn(char *a, char *b)
37804 int diff = (int) (b - a);
37805 FILE *f=fopen("conftestval", "w");
37806 if (!f) exit(1);
37807 fprintf(f, "%d\n", diff);
37809 #ifdef __cplusplus
37811 #endif
37815 # 1 is the command
37816 # 2 is actions to do if success
37817 # 3 is actions to do if fail
37818 echo "configure:37818: $CC $CFLAGS -I. -c conftest.c" >&5
37819 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
37820 ompi_status=$?
37822 # 1 is the message
37823 # 2 is whether to put a prefix or not
37824 if test -n "1"; then
37825 echo "configure:37825: \$? = $ompi_status" >&5
37826 else
37827 echo \$? = $ompi_status >&5
37829 if test "$ompi_status" = "0"; then
37830 unset ompi_status
37832 # 1 is the command
37833 # 2 is actions to do if success
37834 # 3 is actions to do if fail
37835 echo "configure:37835: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
37836 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
37837 ompi_status=$?
37839 # 1 is the message
37840 # 2 is whether to put a prefix or not
37841 if test -n "1"; then
37842 echo "configure:37842: \$? = $ompi_status" >&5
37843 else
37844 echo \$? = $ompi_status >&5
37846 if test "$ompi_status" = "0"; then
37847 unset ompi_status
37848 happy="yes"
37849 else
37850 unset ompi_status
37851 happy="no"
37853 else
37854 unset ompi_status
37855 happy="no"
37858 if test "$happy" = "no" ; then
37860 # 1 is the message
37861 # 2 is whether to put a prefix or not
37862 if test -n "1"; then
37863 echo "configure:37863: here is the fortran 90 program:" >&5
37864 else
37865 echo here is the fortran 90 program: >&5
37868 # 1 is the filename
37869 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
37870 cat conftestf.f90 >&5
37872 { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*4" >&5
37873 echo "$as_me: WARNING: Could not determine size of REAL*4" >&2;}
37874 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
37875 echo "$as_me: WARNING: See config.log for details" >&2;}
37876 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
37877 echo "$as_me: error: Cannot continue" >&2;}
37878 { (exit 1); exit 1; }; }
37881 if test "$cross_compiling" = "yes"; then
37882 { { echo "$as_me:$LINENO: error: Can not determine size of REAL*4 when cross-compiling" >&5
37883 echo "$as_me: error: Can not determine size of REAL*4 when cross-compiling" >&2;}
37884 { (exit 1); exit 1; }; }
37885 else
37887 # 1 is the command
37888 # 2 is actions to do if success
37889 # 3 is actions to do if fail
37890 echo "configure:37890: ./conftest" >&5
37891 ./conftest 1>&5 2>&1
37892 ompi_status=$?
37894 # 1 is the message
37895 # 2 is whether to put a prefix or not
37896 if test -n "1"; then
37897 echo "configure:37897: \$? = $ompi_status" >&5
37898 else
37899 echo \$? = $ompi_status >&5
37901 if test "$ompi_status" = "0"; then
37902 unset ompi_status
37903 ompi_cv_f90_sizeof_REALp4=`cat conftestval`
37904 else
37905 unset ompi_status
37906 { { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5
37907 echo "$as_me: error: Could not determine size of REAL*4" >&2;}
37908 { (exit 1); exit 1; }; }
37913 unset happy ompi_conftest_h
37914 rm -f conftest*
37916 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp4" >&5
37917 echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp4" >&6; }
37919 ofc_type_size=$ompi_cv_f90_sizeof_REALp4
37921 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
37922 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
37923 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
37924 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
37925 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
37926 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
37927 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
37928 ofc_have_type=0
37929 else
37930 # If this type has an F77 counterpart, see if it's
37931 # supported.
37932 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL4
37933 if test "$ofc_f77_have_type" = "0"; then
37934 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*4) not supported" >&5
37935 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*4) not supported" >&2;}
37936 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*4)" >&5
37937 echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*4)" >&2;}
37938 else
37940 # Check the size of this type against its F77 counterpart
37941 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL4
37942 if test "$ofc_f77_sizeof" != ""; then
37943 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
37944 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
37945 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
37946 { echo "$as_me:$LINENO: result: no" >&5
37947 echo "${ECHO_T}no" >&6; }
37948 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*4 ($ofc_f77_sizeof) does not match" >&5
37949 echo "$as_me: WARNING: *** Fortran 77 size for REAL*4 ($ofc_f77_sizeof) does not match" >&2;}
37950 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*4 ($ofc_type_size)" >&5
37951 echo "$as_me: WARNING: *** Fortran 90 size for REAL*4 ($ofc_type_size)" >&2;}
37952 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
37953 echo "$as_me: error: *** Cannot continue" >&2;}
37954 { (exit 1); exit 1; }; }
37955 else
37956 { echo "$as_me:$LINENO: result: yes" >&5
37957 echo "${ECHO_T}yes" >&6; }
37961 # If we passed in the expected size, then also add the
37962 # type to the relevant list of types found.
37963 if test "$ofc_expected_size" != ""; then
37964 ofc_letter=R
37965 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
37966 eval $ofc_str
37972 # We always need these defines -- even if we don't have a given
37973 # type, there are some places in the code where we have to have
37974 # *something*. Note that the bpatsubst's are the same as used
37975 # above (see comment above), but we added a translit to make them
37976 # uppercase.
37978 # If we got a pretty name, use that as the basis. If not, use the
37979 # first part of the provided fortran type (e.g.,
37980 # "logical(selected_int_kind(2))" -> logical1")
37982 # Note that there is no need to AC_DEFINE the size of the F90
37983 # datatype. We have ensured (above) that they are the same as the
37984 # corresponding F77 datatypes, and that's good enough (i.e., the
37985 # DDT engine only looks at the F77 sizes).
37987 # Finally, note that it is necessary to use the Big Long Ugly m4
37988 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
37989 # the result of the BLUm4E in a shell variable and use that in
37990 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
37991 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
37994 cat >>confdefs.h <<_ACEOF
37995 #define OMPI_HAVE_F90_REAL4 $ofc_have_type
37996 _ACEOF
37999 # Save some in shell variables for later use. Have to use m4
38000 # functions here (vs. $ompi_upper_var_name, defined above) because
38001 # these need to be set at autoconf time, not configure time.
38002 OMPI_SIZEOF_F90_REAL4=$ofc_type_size
38005 # Clean up
38006 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
38007 unset ofc_have_type ofc_type_size ofc_letter ofc_str
38008 unset ofc_type_range ofc_type_precision
38009 unset ofc_f77_sizeof
38012 ofc_fortran_type="REAL*8"
38013 ofc_expected_size="8"
38015 ofc_have_type=0
38016 ofc_type_size=$ac_cv_sizeof_int
38018 # Only check if we actually want the F90 bindings / have a F90
38019 # compiler. This allows us to call this macro even if there is
38020 # no F90 compiler. If we have no f90 compiler, then just set a
38021 # bunch of defaults.
38022 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
38026 # Determine FORTRAN datatype size.
38027 # First arg is type, 2nd arg is config var to define
38029 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*8" >&5
38030 echo $ECHO_N "checking if Fortran 90 compiler supports REAL*8... $ECHO_C" >&6; }
38031 if test "${ompi_cv_f90_have_REALp8+set}" = set; then
38032 echo $ECHO_N "(cached) $ECHO_C" >&6
38033 else
38034 ac_ext=${ac_fc_srcext-f}
38035 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
38036 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
38037 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
38039 cat >conftest.$ac_ext <<_ACEOF
38040 program main
38041 REAL*8 :: x
38043 _ACEOF
38044 rm -f conftest.$ac_objext
38045 if { (ac_try="$ac_compile"
38046 case "(($ac_try" in
38047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38048 *) ac_try_echo=$ac_try;;
38049 esac
38050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38051 (eval "$ac_compile") 2>conftest.er1
38052 ac_status=$?
38053 grep -v '^ *+' conftest.er1 >conftest.err
38054 rm -f conftest.er1
38055 cat conftest.err >&5
38056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38057 (exit $ac_status); } && {
38058 test -z "$ac_fc_werror_flag" ||
38059 test ! -s conftest.err
38060 } && test -s conftest.$ac_objext; then
38061 ompi_cv_f90_have_REALp8="yes"
38062 else
38063 echo "$as_me: failed program was:" >&5
38064 sed 's/^/| /' conftest.$ac_ext >&5
38066 ompi_cv_f90_have_REALp8="no"
38069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38070 ac_ext=c
38071 ac_cpp='$CPP $CPPFLAGS'
38072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38077 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp8" >&5
38078 echo "${ECHO_T}$ompi_cv_f90_have_REALp8" >&6; }
38080 if test "$ompi_cv_f90_have_REALp8" = "yes"; then
38081 ofc_have_type=1
38082 else
38083 ofc_have_type=0
38087 else
38088 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
38089 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
38090 { echo "$as_me:$LINENO: result: skipped" >&5
38091 echo "${ECHO_T}skipped" >&6; }
38094 if test "$ofc_have_type" = "1"; then
38095 # What is the size of this type?
38097 # NOTE: Some Fortran compilers actually will return that a
38098 # type exists even if it doesn't support it -- the compiler
38099 # will automatically convert the unsupported type to a type
38100 # that it *does* support. For example, if you try to use
38101 # INTEGER*16 and the compiler doesn't support it, it may well
38102 # automatically convert it to INTEGER*8 for you (!). So we
38103 # have to check the actual size of the type once we determine
38104 # that the compiler doesn't error if we try to use it
38105 # (i.e,. the compiler *might* support that type). If the size
38106 # doesn't match the expected size, then the compiler doesn't
38107 # really support it.
38111 { echo "$as_me:$LINENO: checking size of Fortran 90 REAL*8" >&5
38112 echo $ECHO_N "checking size of Fortran 90 REAL*8... $ECHO_C" >&6; }
38113 if test "${ompi_cv_f90_sizeof_REALp8+set}" = set; then
38114 echo $ECHO_N "(cached) $ECHO_C" >&6
38115 else
38117 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
38118 # so the general rule is that if there is an _ in the function
38119 # name, then there are two trailing underscores. Otherwise,
38120 # there is only one trailing underscore. Any idea how to do
38121 # that with m4_translit?
38122 if echo size | grep _ >/dev/null 2>&1 ; then
38123 ompi_ac_size_fn=size__
38124 else
38125 ompi_ac_size_fn=size_
38127 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
38128 ompi_ac_size_fn=size_
38129 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
38130 ompi_ac_size_fn=size
38131 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
38132 ompi_ac_size_fn=size
38133 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
38134 ompi_ac_size_fn=SIZE
38135 else
38136 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
38137 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
38138 { (exit 1); exit 1; }; }
38141 # Fortran module
38142 cat > conftestf.f90 <<EOF
38143 program fsize
38144 external size
38145 REAL*8 :: x(2)
38146 call size(x(1),x(2))
38147 end program
38150 # C module
38151 if test -f conftest.h; then
38152 ompi_conftest_h="#include \"conftest.h\""
38153 else
38154 ompi_conftest_h=""
38156 cat > conftest.c <<EOF
38157 #include <stdio.h>
38158 #include <stdlib.h>
38159 $ompi_conftest_h
38161 #ifdef __cplusplus
38162 extern "C" {
38163 #endif
38164 void $ompi_ac_size_fn(char *a, char *b)
38166 int diff = (int) (b - a);
38167 FILE *f=fopen("conftestval", "w");
38168 if (!f) exit(1);
38169 fprintf(f, "%d\n", diff);
38171 #ifdef __cplusplus
38173 #endif
38177 # 1 is the command
38178 # 2 is actions to do if success
38179 # 3 is actions to do if fail
38180 echo "configure:38180: $CC $CFLAGS -I. -c conftest.c" >&5
38181 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
38182 ompi_status=$?
38184 # 1 is the message
38185 # 2 is whether to put a prefix or not
38186 if test -n "1"; then
38187 echo "configure:38187: \$? = $ompi_status" >&5
38188 else
38189 echo \$? = $ompi_status >&5
38191 if test "$ompi_status" = "0"; then
38192 unset ompi_status
38194 # 1 is the command
38195 # 2 is actions to do if success
38196 # 3 is actions to do if fail
38197 echo "configure:38197: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
38198 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
38199 ompi_status=$?
38201 # 1 is the message
38202 # 2 is whether to put a prefix or not
38203 if test -n "1"; then
38204 echo "configure:38204: \$? = $ompi_status" >&5
38205 else
38206 echo \$? = $ompi_status >&5
38208 if test "$ompi_status" = "0"; then
38209 unset ompi_status
38210 happy="yes"
38211 else
38212 unset ompi_status
38213 happy="no"
38215 else
38216 unset ompi_status
38217 happy="no"
38220 if test "$happy" = "no" ; then
38222 # 1 is the message
38223 # 2 is whether to put a prefix or not
38224 if test -n "1"; then
38225 echo "configure:38225: here is the fortran 90 program:" >&5
38226 else
38227 echo here is the fortran 90 program: >&5
38230 # 1 is the filename
38231 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
38232 cat conftestf.f90 >&5
38234 { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*8" >&5
38235 echo "$as_me: WARNING: Could not determine size of REAL*8" >&2;}
38236 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
38237 echo "$as_me: WARNING: See config.log for details" >&2;}
38238 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
38239 echo "$as_me: error: Cannot continue" >&2;}
38240 { (exit 1); exit 1; }; }
38243 if test "$cross_compiling" = "yes"; then
38244 { { echo "$as_me:$LINENO: error: Can not determine size of REAL*8 when cross-compiling" >&5
38245 echo "$as_me: error: Can not determine size of REAL*8 when cross-compiling" >&2;}
38246 { (exit 1); exit 1; }; }
38247 else
38249 # 1 is the command
38250 # 2 is actions to do if success
38251 # 3 is actions to do if fail
38252 echo "configure:38252: ./conftest" >&5
38253 ./conftest 1>&5 2>&1
38254 ompi_status=$?
38256 # 1 is the message
38257 # 2 is whether to put a prefix or not
38258 if test -n "1"; then
38259 echo "configure:38259: \$? = $ompi_status" >&5
38260 else
38261 echo \$? = $ompi_status >&5
38263 if test "$ompi_status" = "0"; then
38264 unset ompi_status
38265 ompi_cv_f90_sizeof_REALp8=`cat conftestval`
38266 else
38267 unset ompi_status
38268 { { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5
38269 echo "$as_me: error: Could not determine size of REAL*8" >&2;}
38270 { (exit 1); exit 1; }; }
38275 unset happy ompi_conftest_h
38276 rm -f conftest*
38278 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp8" >&5
38279 echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp8" >&6; }
38281 ofc_type_size=$ompi_cv_f90_sizeof_REALp8
38283 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
38284 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
38285 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
38286 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
38287 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
38288 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
38289 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
38290 ofc_have_type=0
38291 else
38292 # If this type has an F77 counterpart, see if it's
38293 # supported.
38294 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL8
38295 if test "$ofc_f77_have_type" = "0"; then
38296 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*8) not supported" >&5
38297 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*8) not supported" >&2;}
38298 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*8)" >&5
38299 echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*8)" >&2;}
38300 else
38302 # Check the size of this type against its F77 counterpart
38303 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL8
38304 if test "$ofc_f77_sizeof" != ""; then
38305 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
38306 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
38307 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
38308 { echo "$as_me:$LINENO: result: no" >&5
38309 echo "${ECHO_T}no" >&6; }
38310 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*8 ($ofc_f77_sizeof) does not match" >&5
38311 echo "$as_me: WARNING: *** Fortran 77 size for REAL*8 ($ofc_f77_sizeof) does not match" >&2;}
38312 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*8 ($ofc_type_size)" >&5
38313 echo "$as_me: WARNING: *** Fortran 90 size for REAL*8 ($ofc_type_size)" >&2;}
38314 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
38315 echo "$as_me: error: *** Cannot continue" >&2;}
38316 { (exit 1); exit 1; }; }
38317 else
38318 { echo "$as_me:$LINENO: result: yes" >&5
38319 echo "${ECHO_T}yes" >&6; }
38323 # If we passed in the expected size, then also add the
38324 # type to the relevant list of types found.
38325 if test "$ofc_expected_size" != ""; then
38326 ofc_letter=R
38327 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
38328 eval $ofc_str
38334 # We always need these defines -- even if we don't have a given
38335 # type, there are some places in the code where we have to have
38336 # *something*. Note that the bpatsubst's are the same as used
38337 # above (see comment above), but we added a translit to make them
38338 # uppercase.
38340 # If we got a pretty name, use that as the basis. If not, use the
38341 # first part of the provided fortran type (e.g.,
38342 # "logical(selected_int_kind(2))" -> logical1")
38344 # Note that there is no need to AC_DEFINE the size of the F90
38345 # datatype. We have ensured (above) that they are the same as the
38346 # corresponding F77 datatypes, and that's good enough (i.e., the
38347 # DDT engine only looks at the F77 sizes).
38349 # Finally, note that it is necessary to use the Big Long Ugly m4
38350 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
38351 # the result of the BLUm4E in a shell variable and use that in
38352 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
38353 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
38356 cat >>confdefs.h <<_ACEOF
38357 #define OMPI_HAVE_F90_REAL8 $ofc_have_type
38358 _ACEOF
38361 # Save some in shell variables for later use. Have to use m4
38362 # functions here (vs. $ompi_upper_var_name, defined above) because
38363 # these need to be set at autoconf time, not configure time.
38364 OMPI_SIZEOF_F90_REAL8=$ofc_type_size
38367 # Clean up
38368 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
38369 unset ofc_have_type ofc_type_size ofc_letter ofc_str
38370 unset ofc_type_range ofc_type_precision
38371 unset ofc_f77_sizeof
38374 ofc_fortran_type="REAL*16"
38375 ofc_expected_size="16"
38377 ofc_have_type=0
38378 ofc_type_size=$ac_cv_sizeof_int
38380 # Only check if we actually want the F90 bindings / have a F90
38381 # compiler. This allows us to call this macro even if there is
38382 # no F90 compiler. If we have no f90 compiler, then just set a
38383 # bunch of defaults.
38384 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
38388 # Determine FORTRAN datatype size.
38389 # First arg is type, 2nd arg is config var to define
38391 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports REAL*16" >&5
38392 echo $ECHO_N "checking if Fortran 90 compiler supports REAL*16... $ECHO_C" >&6; }
38393 if test "${ompi_cv_f90_have_REALp16+set}" = set; then
38394 echo $ECHO_N "(cached) $ECHO_C" >&6
38395 else
38396 ac_ext=${ac_fc_srcext-f}
38397 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
38398 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
38399 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
38401 cat >conftest.$ac_ext <<_ACEOF
38402 program main
38403 REAL*16 :: x
38405 _ACEOF
38406 rm -f conftest.$ac_objext
38407 if { (ac_try="$ac_compile"
38408 case "(($ac_try" in
38409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38410 *) ac_try_echo=$ac_try;;
38411 esac
38412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38413 (eval "$ac_compile") 2>conftest.er1
38414 ac_status=$?
38415 grep -v '^ *+' conftest.er1 >conftest.err
38416 rm -f conftest.er1
38417 cat conftest.err >&5
38418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419 (exit $ac_status); } && {
38420 test -z "$ac_fc_werror_flag" ||
38421 test ! -s conftest.err
38422 } && test -s conftest.$ac_objext; then
38423 ompi_cv_f90_have_REALp16="yes"
38424 else
38425 echo "$as_me: failed program was:" >&5
38426 sed 's/^/| /' conftest.$ac_ext >&5
38428 ompi_cv_f90_have_REALp16="no"
38431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38432 ac_ext=c
38433 ac_cpp='$CPP $CPPFLAGS'
38434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38439 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_REALp16" >&5
38440 echo "${ECHO_T}$ompi_cv_f90_have_REALp16" >&6; }
38442 if test "$ompi_cv_f90_have_REALp16" = "yes"; then
38443 ofc_have_type=1
38444 else
38445 ofc_have_type=0
38449 else
38450 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
38451 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
38452 { echo "$as_me:$LINENO: result: skipped" >&5
38453 echo "${ECHO_T}skipped" >&6; }
38456 if test "$ofc_have_type" = "1"; then
38457 # What is the size of this type?
38459 # NOTE: Some Fortran compilers actually will return that a
38460 # type exists even if it doesn't support it -- the compiler
38461 # will automatically convert the unsupported type to a type
38462 # that it *does* support. For example, if you try to use
38463 # INTEGER*16 and the compiler doesn't support it, it may well
38464 # automatically convert it to INTEGER*8 for you (!). So we
38465 # have to check the actual size of the type once we determine
38466 # that the compiler doesn't error if we try to use it
38467 # (i.e,. the compiler *might* support that type). If the size
38468 # doesn't match the expected size, then the compiler doesn't
38469 # really support it.
38473 { echo "$as_me:$LINENO: checking size of Fortran 90 REAL*16" >&5
38474 echo $ECHO_N "checking size of Fortran 90 REAL*16... $ECHO_C" >&6; }
38475 if test "${ompi_cv_f90_sizeof_REALp16+set}" = set; then
38476 echo $ECHO_N "(cached) $ECHO_C" >&6
38477 else
38479 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
38480 # so the general rule is that if there is an _ in the function
38481 # name, then there are two trailing underscores. Otherwise,
38482 # there is only one trailing underscore. Any idea how to do
38483 # that with m4_translit?
38484 if echo size | grep _ >/dev/null 2>&1 ; then
38485 ompi_ac_size_fn=size__
38486 else
38487 ompi_ac_size_fn=size_
38489 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
38490 ompi_ac_size_fn=size_
38491 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
38492 ompi_ac_size_fn=size
38493 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
38494 ompi_ac_size_fn=size
38495 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
38496 ompi_ac_size_fn=SIZE
38497 else
38498 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
38499 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
38500 { (exit 1); exit 1; }; }
38503 # Fortran module
38504 cat > conftestf.f90 <<EOF
38505 program fsize
38506 external size
38507 REAL*16 :: x(2)
38508 call size(x(1),x(2))
38509 end program
38512 # C module
38513 if test -f conftest.h; then
38514 ompi_conftest_h="#include \"conftest.h\""
38515 else
38516 ompi_conftest_h=""
38518 cat > conftest.c <<EOF
38519 #include <stdio.h>
38520 #include <stdlib.h>
38521 $ompi_conftest_h
38523 #ifdef __cplusplus
38524 extern "C" {
38525 #endif
38526 void $ompi_ac_size_fn(char *a, char *b)
38528 int diff = (int) (b - a);
38529 FILE *f=fopen("conftestval", "w");
38530 if (!f) exit(1);
38531 fprintf(f, "%d\n", diff);
38533 #ifdef __cplusplus
38535 #endif
38539 # 1 is the command
38540 # 2 is actions to do if success
38541 # 3 is actions to do if fail
38542 echo "configure:38542: $CC $CFLAGS -I. -c conftest.c" >&5
38543 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
38544 ompi_status=$?
38546 # 1 is the message
38547 # 2 is whether to put a prefix or not
38548 if test -n "1"; then
38549 echo "configure:38549: \$? = $ompi_status" >&5
38550 else
38551 echo \$? = $ompi_status >&5
38553 if test "$ompi_status" = "0"; then
38554 unset ompi_status
38556 # 1 is the command
38557 # 2 is actions to do if success
38558 # 3 is actions to do if fail
38559 echo "configure:38559: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
38560 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
38561 ompi_status=$?
38563 # 1 is the message
38564 # 2 is whether to put a prefix or not
38565 if test -n "1"; then
38566 echo "configure:38566: \$? = $ompi_status" >&5
38567 else
38568 echo \$? = $ompi_status >&5
38570 if test "$ompi_status" = "0"; then
38571 unset ompi_status
38572 happy="yes"
38573 else
38574 unset ompi_status
38575 happy="no"
38577 else
38578 unset ompi_status
38579 happy="no"
38582 if test "$happy" = "no" ; then
38584 # 1 is the message
38585 # 2 is whether to put a prefix or not
38586 if test -n "1"; then
38587 echo "configure:38587: here is the fortran 90 program:" >&5
38588 else
38589 echo here is the fortran 90 program: >&5
38592 # 1 is the filename
38593 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
38594 cat conftestf.f90 >&5
38596 { echo "$as_me:$LINENO: WARNING: Could not determine size of REAL*16" >&5
38597 echo "$as_me: WARNING: Could not determine size of REAL*16" >&2;}
38598 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
38599 echo "$as_me: WARNING: See config.log for details" >&2;}
38600 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
38601 echo "$as_me: error: Cannot continue" >&2;}
38602 { (exit 1); exit 1; }; }
38605 if test "$cross_compiling" = "yes"; then
38606 { { echo "$as_me:$LINENO: error: Can not determine size of REAL*16 when cross-compiling" >&5
38607 echo "$as_me: error: Can not determine size of REAL*16 when cross-compiling" >&2;}
38608 { (exit 1); exit 1; }; }
38609 else
38611 # 1 is the command
38612 # 2 is actions to do if success
38613 # 3 is actions to do if fail
38614 echo "configure:38614: ./conftest" >&5
38615 ./conftest 1>&5 2>&1
38616 ompi_status=$?
38618 # 1 is the message
38619 # 2 is whether to put a prefix or not
38620 if test -n "1"; then
38621 echo "configure:38621: \$? = $ompi_status" >&5
38622 else
38623 echo \$? = $ompi_status >&5
38625 if test "$ompi_status" = "0"; then
38626 unset ompi_status
38627 ompi_cv_f90_sizeof_REALp16=`cat conftestval`
38628 else
38629 unset ompi_status
38630 { { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5
38631 echo "$as_me: error: Could not determine size of REAL*16" >&2;}
38632 { (exit 1); exit 1; }; }
38637 unset happy ompi_conftest_h
38638 rm -f conftest*
38640 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_REALp16" >&5
38641 echo "${ECHO_T}$ompi_cv_f90_sizeof_REALp16" >&6; }
38643 ofc_type_size=$ompi_cv_f90_sizeof_REALp16
38645 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
38646 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
38647 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
38648 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
38649 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
38650 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
38651 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
38652 ofc_have_type=0
38653 else
38654 # If this type has an F77 counterpart, see if it's
38655 # supported.
38656 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_REAL16
38657 if test "$ofc_f77_have_type" = "0"; then
38658 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (REAL*16) not supported" >&5
38659 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (REAL*16) not supported" >&2;}
38660 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (REAL*16)" >&5
38661 echo "$as_me: WARNING: *** Skipping Fortran 90 type (REAL*16)" >&2;}
38662 else
38664 # Check the size of this type against its F77 counterpart
38665 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_REAL16
38666 if test "$ofc_f77_sizeof" != ""; then
38667 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
38668 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
38669 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
38670 { echo "$as_me:$LINENO: result: no" >&5
38671 echo "${ECHO_T}no" >&6; }
38672 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for REAL*16 ($ofc_f77_sizeof) does not match" >&5
38673 echo "$as_me: WARNING: *** Fortran 77 size for REAL*16 ($ofc_f77_sizeof) does not match" >&2;}
38674 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for REAL*16 ($ofc_type_size)" >&5
38675 echo "$as_me: WARNING: *** Fortran 90 size for REAL*16 ($ofc_type_size)" >&2;}
38676 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
38677 echo "$as_me: error: *** Cannot continue" >&2;}
38678 { (exit 1); exit 1; }; }
38679 else
38680 { echo "$as_me:$LINENO: result: yes" >&5
38681 echo "${ECHO_T}yes" >&6; }
38685 # If we passed in the expected size, then also add the
38686 # type to the relevant list of types found.
38687 if test "$ofc_expected_size" != ""; then
38688 ofc_letter=R
38689 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
38690 eval $ofc_str
38696 # We always need these defines -- even if we don't have a given
38697 # type, there are some places in the code where we have to have
38698 # *something*. Note that the bpatsubst's are the same as used
38699 # above (see comment above), but we added a translit to make them
38700 # uppercase.
38702 # If we got a pretty name, use that as the basis. If not, use the
38703 # first part of the provided fortran type (e.g.,
38704 # "logical(selected_int_kind(2))" -> logical1")
38706 # Note that there is no need to AC_DEFINE the size of the F90
38707 # datatype. We have ensured (above) that they are the same as the
38708 # corresponding F77 datatypes, and that's good enough (i.e., the
38709 # DDT engine only looks at the F77 sizes).
38711 # Finally, note that it is necessary to use the Big Long Ugly m4
38712 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
38713 # the result of the BLUm4E in a shell variable and use that in
38714 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
38715 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
38718 cat >>confdefs.h <<_ACEOF
38719 #define OMPI_HAVE_F90_REAL16 $ofc_have_type
38720 _ACEOF
38723 # Save some in shell variables for later use. Have to use m4
38724 # functions here (vs. $ompi_upper_var_name, defined above) because
38725 # these need to be set at autoconf time, not configure time.
38726 OMPI_SIZEOF_F90_REAL16=$ofc_type_size
38729 # Clean up
38730 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
38731 unset ofc_have_type ofc_type_size ofc_letter ofc_str
38732 unset ofc_type_range ofc_type_precision
38733 unset ofc_f77_sizeof
38736 ofc_fortran_type="DOUBLE PRECISION"
38737 ofc_expected_size=""
38739 ofc_have_type=0
38740 ofc_type_size=$ac_cv_sizeof_int
38742 # Only check if we actually want the F90 bindings / have a F90
38743 # compiler. This allows us to call this macro even if there is
38744 # no F90 compiler. If we have no f90 compiler, then just set a
38745 # bunch of defaults.
38746 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
38750 # Determine FORTRAN datatype size.
38751 # First arg is type, 2nd arg is config var to define
38753 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports DOUBLE PRECISION" >&5
38754 echo $ECHO_N "checking if Fortran 90 compiler supports DOUBLE PRECISION... $ECHO_C" >&6; }
38755 if test "${ompi_cv_f90_have_DOUBLE_PRECISION+set}" = set; then
38756 echo $ECHO_N "(cached) $ECHO_C" >&6
38757 else
38758 ac_ext=${ac_fc_srcext-f}
38759 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
38760 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
38761 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
38763 cat >conftest.$ac_ext <<_ACEOF
38764 program main
38765 DOUBLE PRECISION :: x
38767 _ACEOF
38768 rm -f conftest.$ac_objext
38769 if { (ac_try="$ac_compile"
38770 case "(($ac_try" in
38771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38772 *) ac_try_echo=$ac_try;;
38773 esac
38774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38775 (eval "$ac_compile") 2>conftest.er1
38776 ac_status=$?
38777 grep -v '^ *+' conftest.er1 >conftest.err
38778 rm -f conftest.er1
38779 cat conftest.err >&5
38780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38781 (exit $ac_status); } && {
38782 test -z "$ac_fc_werror_flag" ||
38783 test ! -s conftest.err
38784 } && test -s conftest.$ac_objext; then
38785 ompi_cv_f90_have_DOUBLE_PRECISION="yes"
38786 else
38787 echo "$as_me: failed program was:" >&5
38788 sed 's/^/| /' conftest.$ac_ext >&5
38790 ompi_cv_f90_have_DOUBLE_PRECISION="no"
38793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38794 ac_ext=c
38795 ac_cpp='$CPP $CPPFLAGS'
38796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38801 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_DOUBLE_PRECISION" >&5
38802 echo "${ECHO_T}$ompi_cv_f90_have_DOUBLE_PRECISION" >&6; }
38804 if test "$ompi_cv_f90_have_DOUBLE_PRECISION" = "yes"; then
38805 ofc_have_type=1
38806 else
38807 ofc_have_type=0
38811 else
38812 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
38813 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
38814 { echo "$as_me:$LINENO: result: skipped" >&5
38815 echo "${ECHO_T}skipped" >&6; }
38818 if test "$ofc_have_type" = "1"; then
38819 # What is the size of this type?
38821 # NOTE: Some Fortran compilers actually will return that a
38822 # type exists even if it doesn't support it -- the compiler
38823 # will automatically convert the unsupported type to a type
38824 # that it *does* support. For example, if you try to use
38825 # INTEGER*16 and the compiler doesn't support it, it may well
38826 # automatically convert it to INTEGER*8 for you (!). So we
38827 # have to check the actual size of the type once we determine
38828 # that the compiler doesn't error if we try to use it
38829 # (i.e,. the compiler *might* support that type). If the size
38830 # doesn't match the expected size, then the compiler doesn't
38831 # really support it.
38835 { echo "$as_me:$LINENO: checking size of Fortran 90 DOUBLE PRECISION" >&5
38836 echo $ECHO_N "checking size of Fortran 90 DOUBLE PRECISION... $ECHO_C" >&6; }
38837 if test "${ompi_cv_f90_sizeof_DOUBLE_PRECISION+set}" = set; then
38838 echo $ECHO_N "(cached) $ECHO_C" >&6
38839 else
38841 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
38842 # so the general rule is that if there is an _ in the function
38843 # name, then there are two trailing underscores. Otherwise,
38844 # there is only one trailing underscore. Any idea how to do
38845 # that with m4_translit?
38846 if echo size | grep _ >/dev/null 2>&1 ; then
38847 ompi_ac_size_fn=size__
38848 else
38849 ompi_ac_size_fn=size_
38851 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
38852 ompi_ac_size_fn=size_
38853 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
38854 ompi_ac_size_fn=size
38855 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
38856 ompi_ac_size_fn=size
38857 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
38858 ompi_ac_size_fn=SIZE
38859 else
38860 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
38861 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
38862 { (exit 1); exit 1; }; }
38865 # Fortran module
38866 cat > conftestf.f90 <<EOF
38867 program fsize
38868 external size
38869 DOUBLE PRECISION :: x(2)
38870 call size(x(1),x(2))
38871 end program
38874 # C module
38875 if test -f conftest.h; then
38876 ompi_conftest_h="#include \"conftest.h\""
38877 else
38878 ompi_conftest_h=""
38880 cat > conftest.c <<EOF
38881 #include <stdio.h>
38882 #include <stdlib.h>
38883 $ompi_conftest_h
38885 #ifdef __cplusplus
38886 extern "C" {
38887 #endif
38888 void $ompi_ac_size_fn(char *a, char *b)
38890 int diff = (int) (b - a);
38891 FILE *f=fopen("conftestval", "w");
38892 if (!f) exit(1);
38893 fprintf(f, "%d\n", diff);
38895 #ifdef __cplusplus
38897 #endif
38901 # 1 is the command
38902 # 2 is actions to do if success
38903 # 3 is actions to do if fail
38904 echo "configure:38904: $CC $CFLAGS -I. -c conftest.c" >&5
38905 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
38906 ompi_status=$?
38908 # 1 is the message
38909 # 2 is whether to put a prefix or not
38910 if test -n "1"; then
38911 echo "configure:38911: \$? = $ompi_status" >&5
38912 else
38913 echo \$? = $ompi_status >&5
38915 if test "$ompi_status" = "0"; then
38916 unset ompi_status
38918 # 1 is the command
38919 # 2 is actions to do if success
38920 # 3 is actions to do if fail
38921 echo "configure:38921: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
38922 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
38923 ompi_status=$?
38925 # 1 is the message
38926 # 2 is whether to put a prefix or not
38927 if test -n "1"; then
38928 echo "configure:38928: \$? = $ompi_status" >&5
38929 else
38930 echo \$? = $ompi_status >&5
38932 if test "$ompi_status" = "0"; then
38933 unset ompi_status
38934 happy="yes"
38935 else
38936 unset ompi_status
38937 happy="no"
38939 else
38940 unset ompi_status
38941 happy="no"
38944 if test "$happy" = "no" ; then
38946 # 1 is the message
38947 # 2 is whether to put a prefix or not
38948 if test -n "1"; then
38949 echo "configure:38949: here is the fortran 90 program:" >&5
38950 else
38951 echo here is the fortran 90 program: >&5
38954 # 1 is the filename
38955 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
38956 cat conftestf.f90 >&5
38958 { echo "$as_me:$LINENO: WARNING: Could not determine size of DOUBLE PRECISION" >&5
38959 echo "$as_me: WARNING: Could not determine size of DOUBLE PRECISION" >&2;}
38960 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
38961 echo "$as_me: WARNING: See config.log for details" >&2;}
38962 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
38963 echo "$as_me: error: Cannot continue" >&2;}
38964 { (exit 1); exit 1; }; }
38967 if test "$cross_compiling" = "yes"; then
38968 { { echo "$as_me:$LINENO: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&5
38969 echo "$as_me: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&2;}
38970 { (exit 1); exit 1; }; }
38971 else
38973 # 1 is the command
38974 # 2 is actions to do if success
38975 # 3 is actions to do if fail
38976 echo "configure:38976: ./conftest" >&5
38977 ./conftest 1>&5 2>&1
38978 ompi_status=$?
38980 # 1 is the message
38981 # 2 is whether to put a prefix or not
38982 if test -n "1"; then
38983 echo "configure:38983: \$? = $ompi_status" >&5
38984 else
38985 echo \$? = $ompi_status >&5
38987 if test "$ompi_status" = "0"; then
38988 unset ompi_status
38989 ompi_cv_f90_sizeof_DOUBLE_PRECISION=`cat conftestval`
38990 else
38991 unset ompi_status
38992 { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5
38993 echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;}
38994 { (exit 1); exit 1; }; }
38999 unset happy ompi_conftest_h
39000 rm -f conftest*
39002 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_DOUBLE_PRECISION" >&5
39003 echo "${ECHO_T}$ompi_cv_f90_sizeof_DOUBLE_PRECISION" >&6; }
39005 ofc_type_size=$ompi_cv_f90_sizeof_DOUBLE_PRECISION
39007 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
39008 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
39009 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
39010 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
39011 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
39012 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
39013 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
39014 ofc_have_type=0
39015 else
39016 # If this type has an F77 counterpart, see if it's
39017 # supported.
39018 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_DOUBLE_PRECISION
39019 if test "$ofc_f77_have_type" = "0"; then
39020 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (DOUBLE PRECISION) not supported" >&5
39021 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (DOUBLE PRECISION) not supported" >&2;}
39022 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (DOUBLE PRECISION)" >&5
39023 echo "$as_me: WARNING: *** Skipping Fortran 90 type (DOUBLE PRECISION)" >&2;}
39024 else
39026 # Check the size of this type against its F77 counterpart
39027 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION
39028 if test "$ofc_f77_sizeof" != ""; then
39029 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
39030 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
39031 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
39032 { echo "$as_me:$LINENO: result: no" >&5
39033 echo "${ECHO_T}no" >&6; }
39034 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for DOUBLE PRECISION ($ofc_f77_sizeof) does not match" >&5
39035 echo "$as_me: WARNING: *** Fortran 77 size for DOUBLE PRECISION ($ofc_f77_sizeof) does not match" >&2;}
39036 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for DOUBLE PRECISION ($ofc_type_size)" >&5
39037 echo "$as_me: WARNING: *** Fortran 90 size for DOUBLE PRECISION ($ofc_type_size)" >&2;}
39038 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
39039 echo "$as_me: error: *** Cannot continue" >&2;}
39040 { (exit 1); exit 1; }; }
39041 else
39042 { echo "$as_me:$LINENO: result: yes" >&5
39043 echo "${ECHO_T}yes" >&6; }
39047 # If we passed in the expected size, then also add the
39048 # type to the relevant list of types found.
39049 if test "$ofc_expected_size" != ""; then
39050 ofc_letter=D
39051 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
39052 eval $ofc_str
39058 # We always need these defines -- even if we don't have a given
39059 # type, there are some places in the code where we have to have
39060 # *something*. Note that the bpatsubst's are the same as used
39061 # above (see comment above), but we added a translit to make them
39062 # uppercase.
39064 # If we got a pretty name, use that as the basis. If not, use the
39065 # first part of the provided fortran type (e.g.,
39066 # "logical(selected_int_kind(2))" -> logical1")
39068 # Note that there is no need to AC_DEFINE the size of the F90
39069 # datatype. We have ensured (above) that they are the same as the
39070 # corresponding F77 datatypes, and that's good enough (i.e., the
39071 # DDT engine only looks at the F77 sizes).
39073 # Finally, note that it is necessary to use the Big Long Ugly m4
39074 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
39075 # the result of the BLUm4E in a shell variable and use that in
39076 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
39077 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
39080 cat >>confdefs.h <<_ACEOF
39081 #define OMPI_HAVE_F90_DOUBLE_PRECISION $ofc_have_type
39082 _ACEOF
39085 # Save some in shell variables for later use. Have to use m4
39086 # functions here (vs. $ompi_upper_var_name, defined above) because
39087 # these need to be set at autoconf time, not configure time.
39088 OMPI_SIZEOF_F90_DOUBLE_PRECISION=$ofc_type_size
39091 # Clean up
39092 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
39093 unset ofc_have_type ofc_type_size ofc_letter ofc_str
39094 unset ofc_type_range ofc_type_precision
39095 unset ofc_f77_sizeof
39098 # COMPLEX, DOUBLE COMPLEX, COMPLEX*8, *16, *32
39100 ofc_fortran_type="COMPLEX"
39101 ofc_expected_size=""
39103 ofc_have_type=0
39104 ofc_type_size=$ac_cv_sizeof_int
39106 # Only check if we actually want the F90 bindings / have a F90
39107 # compiler. This allows us to call this macro even if there is
39108 # no F90 compiler. If we have no f90 compiler, then just set a
39109 # bunch of defaults.
39110 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
39114 # Determine FORTRAN datatype size.
39115 # First arg is type, 2nd arg is config var to define
39117 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX" >&5
39118 echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX... $ECHO_C" >&6; }
39119 if test "${ompi_cv_f90_have_COMPLEX+set}" = set; then
39120 echo $ECHO_N "(cached) $ECHO_C" >&6
39121 else
39122 ac_ext=${ac_fc_srcext-f}
39123 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
39124 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
39125 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
39127 cat >conftest.$ac_ext <<_ACEOF
39128 program main
39129 COMPLEX :: x
39131 _ACEOF
39132 rm -f conftest.$ac_objext
39133 if { (ac_try="$ac_compile"
39134 case "(($ac_try" in
39135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39136 *) ac_try_echo=$ac_try;;
39137 esac
39138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39139 (eval "$ac_compile") 2>conftest.er1
39140 ac_status=$?
39141 grep -v '^ *+' conftest.er1 >conftest.err
39142 rm -f conftest.er1
39143 cat conftest.err >&5
39144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39145 (exit $ac_status); } && {
39146 test -z "$ac_fc_werror_flag" ||
39147 test ! -s conftest.err
39148 } && test -s conftest.$ac_objext; then
39149 ompi_cv_f90_have_COMPLEX="yes"
39150 else
39151 echo "$as_me: failed program was:" >&5
39152 sed 's/^/| /' conftest.$ac_ext >&5
39154 ompi_cv_f90_have_COMPLEX="no"
39157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39158 ac_ext=c
39159 ac_cpp='$CPP $CPPFLAGS'
39160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39165 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEX" >&5
39166 echo "${ECHO_T}$ompi_cv_f90_have_COMPLEX" >&6; }
39168 if test "$ompi_cv_f90_have_COMPLEX" = "yes"; then
39169 ofc_have_type=1
39170 else
39171 ofc_have_type=0
39175 else
39176 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
39177 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
39178 { echo "$as_me:$LINENO: result: skipped" >&5
39179 echo "${ECHO_T}skipped" >&6; }
39182 if test "$ofc_have_type" = "1"; then
39183 # What is the size of this type?
39185 # NOTE: Some Fortran compilers actually will return that a
39186 # type exists even if it doesn't support it -- the compiler
39187 # will automatically convert the unsupported type to a type
39188 # that it *does* support. For example, if you try to use
39189 # INTEGER*16 and the compiler doesn't support it, it may well
39190 # automatically convert it to INTEGER*8 for you (!). So we
39191 # have to check the actual size of the type once we determine
39192 # that the compiler doesn't error if we try to use it
39193 # (i.e,. the compiler *might* support that type). If the size
39194 # doesn't match the expected size, then the compiler doesn't
39195 # really support it.
39199 { echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX" >&5
39200 echo $ECHO_N "checking size of Fortran 90 COMPLEX... $ECHO_C" >&6; }
39201 if test "${ompi_cv_f90_sizeof_COMPLEX+set}" = set; then
39202 echo $ECHO_N "(cached) $ECHO_C" >&6
39203 else
39205 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
39206 # so the general rule is that if there is an _ in the function
39207 # name, then there are two trailing underscores. Otherwise,
39208 # there is only one trailing underscore. Any idea how to do
39209 # that with m4_translit?
39210 if echo size | grep _ >/dev/null 2>&1 ; then
39211 ompi_ac_size_fn=size__
39212 else
39213 ompi_ac_size_fn=size_
39215 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
39216 ompi_ac_size_fn=size_
39217 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
39218 ompi_ac_size_fn=size
39219 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
39220 ompi_ac_size_fn=size
39221 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
39222 ompi_ac_size_fn=SIZE
39223 else
39224 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
39225 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
39226 { (exit 1); exit 1; }; }
39229 # Fortran module
39230 cat > conftestf.f90 <<EOF
39231 program fsize
39232 external size
39233 COMPLEX :: x(2)
39234 call size(x(1),x(2))
39235 end program
39238 # C module
39239 if test -f conftest.h; then
39240 ompi_conftest_h="#include \"conftest.h\""
39241 else
39242 ompi_conftest_h=""
39244 cat > conftest.c <<EOF
39245 #include <stdio.h>
39246 #include <stdlib.h>
39247 $ompi_conftest_h
39249 #ifdef __cplusplus
39250 extern "C" {
39251 #endif
39252 void $ompi_ac_size_fn(char *a, char *b)
39254 int diff = (int) (b - a);
39255 FILE *f=fopen("conftestval", "w");
39256 if (!f) exit(1);
39257 fprintf(f, "%d\n", diff);
39259 #ifdef __cplusplus
39261 #endif
39265 # 1 is the command
39266 # 2 is actions to do if success
39267 # 3 is actions to do if fail
39268 echo "configure:39268: $CC $CFLAGS -I. -c conftest.c" >&5
39269 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
39270 ompi_status=$?
39272 # 1 is the message
39273 # 2 is whether to put a prefix or not
39274 if test -n "1"; then
39275 echo "configure:39275: \$? = $ompi_status" >&5
39276 else
39277 echo \$? = $ompi_status >&5
39279 if test "$ompi_status" = "0"; then
39280 unset ompi_status
39282 # 1 is the command
39283 # 2 is actions to do if success
39284 # 3 is actions to do if fail
39285 echo "configure:39285: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
39286 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
39287 ompi_status=$?
39289 # 1 is the message
39290 # 2 is whether to put a prefix or not
39291 if test -n "1"; then
39292 echo "configure:39292: \$? = $ompi_status" >&5
39293 else
39294 echo \$? = $ompi_status >&5
39296 if test "$ompi_status" = "0"; then
39297 unset ompi_status
39298 happy="yes"
39299 else
39300 unset ompi_status
39301 happy="no"
39303 else
39304 unset ompi_status
39305 happy="no"
39308 if test "$happy" = "no" ; then
39310 # 1 is the message
39311 # 2 is whether to put a prefix or not
39312 if test -n "1"; then
39313 echo "configure:39313: here is the fortran 90 program:" >&5
39314 else
39315 echo here is the fortran 90 program: >&5
39318 # 1 is the filename
39319 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
39320 cat conftestf.f90 >&5
39322 { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX" >&5
39323 echo "$as_me: WARNING: Could not determine size of COMPLEX" >&2;}
39324 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
39325 echo "$as_me: WARNING: See config.log for details" >&2;}
39326 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
39327 echo "$as_me: error: Cannot continue" >&2;}
39328 { (exit 1); exit 1; }; }
39331 if test "$cross_compiling" = "yes"; then
39332 { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX when cross-compiling" >&5
39333 echo "$as_me: error: Can not determine size of COMPLEX when cross-compiling" >&2;}
39334 { (exit 1); exit 1; }; }
39335 else
39337 # 1 is the command
39338 # 2 is actions to do if success
39339 # 3 is actions to do if fail
39340 echo "configure:39340: ./conftest" >&5
39341 ./conftest 1>&5 2>&1
39342 ompi_status=$?
39344 # 1 is the message
39345 # 2 is whether to put a prefix or not
39346 if test -n "1"; then
39347 echo "configure:39347: \$? = $ompi_status" >&5
39348 else
39349 echo \$? = $ompi_status >&5
39351 if test "$ompi_status" = "0"; then
39352 unset ompi_status
39353 ompi_cv_f90_sizeof_COMPLEX=`cat conftestval`
39354 else
39355 unset ompi_status
39356 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5
39357 echo "$as_me: error: Could not determine size of COMPLEX" >&2;}
39358 { (exit 1); exit 1; }; }
39363 unset happy ompi_conftest_h
39364 rm -f conftest*
39366 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEX" >&5
39367 echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEX" >&6; }
39369 ofc_type_size=$ompi_cv_f90_sizeof_COMPLEX
39371 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
39372 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
39373 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
39374 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
39375 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
39376 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
39377 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
39378 ofc_have_type=0
39379 else
39380 # If this type has an F77 counterpart, see if it's
39381 # supported.
39382 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX
39383 if test "$ofc_f77_have_type" = "0"; then
39384 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX) not supported" >&5
39385 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX) not supported" >&2;}
39386 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX)" >&5
39387 echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX)" >&2;}
39388 else
39390 # Check the size of this type against its F77 counterpart
39391 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX
39392 if test "$ofc_f77_sizeof" != ""; then
39393 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
39394 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
39395 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
39396 { echo "$as_me:$LINENO: result: no" >&5
39397 echo "${ECHO_T}no" >&6; }
39398 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX ($ofc_f77_sizeof) does not match" >&5
39399 echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX ($ofc_f77_sizeof) does not match" >&2;}
39400 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX ($ofc_type_size)" >&5
39401 echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX ($ofc_type_size)" >&2;}
39402 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
39403 echo "$as_me: error: *** Cannot continue" >&2;}
39404 { (exit 1); exit 1; }; }
39405 else
39406 { echo "$as_me:$LINENO: result: yes" >&5
39407 echo "${ECHO_T}yes" >&6; }
39411 # If we passed in the expected size, then also add the
39412 # type to the relevant list of types found.
39413 if test "$ofc_expected_size" != ""; then
39414 ofc_letter=C
39415 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
39416 eval $ofc_str
39422 # We always need these defines -- even if we don't have a given
39423 # type, there are some places in the code where we have to have
39424 # *something*. Note that the bpatsubst's are the same as used
39425 # above (see comment above), but we added a translit to make them
39426 # uppercase.
39428 # If we got a pretty name, use that as the basis. If not, use the
39429 # first part of the provided fortran type (e.g.,
39430 # "logical(selected_int_kind(2))" -> logical1")
39432 # Note that there is no need to AC_DEFINE the size of the F90
39433 # datatype. We have ensured (above) that they are the same as the
39434 # corresponding F77 datatypes, and that's good enough (i.e., the
39435 # DDT engine only looks at the F77 sizes).
39437 # Finally, note that it is necessary to use the Big Long Ugly m4
39438 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
39439 # the result of the BLUm4E in a shell variable and use that in
39440 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
39441 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
39444 cat >>confdefs.h <<_ACEOF
39445 #define OMPI_HAVE_F90_COMPLEX $ofc_have_type
39446 _ACEOF
39449 # Save some in shell variables for later use. Have to use m4
39450 # functions here (vs. $ompi_upper_var_name, defined above) because
39451 # these need to be set at autoconf time, not configure time.
39452 OMPI_SIZEOF_F90_COMPLEX=$ofc_type_size
39455 # Clean up
39456 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
39457 unset ofc_have_type ofc_type_size ofc_letter ofc_str
39458 unset ofc_type_range ofc_type_precision
39459 unset ofc_f77_sizeof
39462 ofc_fortran_type="COMPLEX*8"
39463 ofc_expected_size="8"
39465 ofc_have_type=0
39466 ofc_type_size=$ac_cv_sizeof_int
39468 # Only check if we actually want the F90 bindings / have a F90
39469 # compiler. This allows us to call this macro even if there is
39470 # no F90 compiler. If we have no f90 compiler, then just set a
39471 # bunch of defaults.
39472 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
39476 # Determine FORTRAN datatype size.
39477 # First arg is type, 2nd arg is config var to define
39479 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX*8" >&5
39480 echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX*8... $ECHO_C" >&6; }
39481 if test "${ompi_cv_f90_have_COMPLEXp8+set}" = set; then
39482 echo $ECHO_N "(cached) $ECHO_C" >&6
39483 else
39484 ac_ext=${ac_fc_srcext-f}
39485 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
39486 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
39487 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
39489 cat >conftest.$ac_ext <<_ACEOF
39490 program main
39491 COMPLEX*8 :: x
39493 _ACEOF
39494 rm -f conftest.$ac_objext
39495 if { (ac_try="$ac_compile"
39496 case "(($ac_try" in
39497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39498 *) ac_try_echo=$ac_try;;
39499 esac
39500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39501 (eval "$ac_compile") 2>conftest.er1
39502 ac_status=$?
39503 grep -v '^ *+' conftest.er1 >conftest.err
39504 rm -f conftest.er1
39505 cat conftest.err >&5
39506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39507 (exit $ac_status); } && {
39508 test -z "$ac_fc_werror_flag" ||
39509 test ! -s conftest.err
39510 } && test -s conftest.$ac_objext; then
39511 ompi_cv_f90_have_COMPLEXp8="yes"
39512 else
39513 echo "$as_me: failed program was:" >&5
39514 sed 's/^/| /' conftest.$ac_ext >&5
39516 ompi_cv_f90_have_COMPLEXp8="no"
39519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39520 ac_ext=c
39521 ac_cpp='$CPP $CPPFLAGS'
39522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39527 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEXp8" >&5
39528 echo "${ECHO_T}$ompi_cv_f90_have_COMPLEXp8" >&6; }
39530 if test "$ompi_cv_f90_have_COMPLEXp8" = "yes"; then
39531 ofc_have_type=1
39532 else
39533 ofc_have_type=0
39537 else
39538 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
39539 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
39540 { echo "$as_me:$LINENO: result: skipped" >&5
39541 echo "${ECHO_T}skipped" >&6; }
39544 if test "$ofc_have_type" = "1"; then
39545 # What is the size of this type?
39547 # NOTE: Some Fortran compilers actually will return that a
39548 # type exists even if it doesn't support it -- the compiler
39549 # will automatically convert the unsupported type to a type
39550 # that it *does* support. For example, if you try to use
39551 # INTEGER*16 and the compiler doesn't support it, it may well
39552 # automatically convert it to INTEGER*8 for you (!). So we
39553 # have to check the actual size of the type once we determine
39554 # that the compiler doesn't error if we try to use it
39555 # (i.e,. the compiler *might* support that type). If the size
39556 # doesn't match the expected size, then the compiler doesn't
39557 # really support it.
39561 { echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX*8" >&5
39562 echo $ECHO_N "checking size of Fortran 90 COMPLEX*8... $ECHO_C" >&6; }
39563 if test "${ompi_cv_f90_sizeof_COMPLEXp8+set}" = set; then
39564 echo $ECHO_N "(cached) $ECHO_C" >&6
39565 else
39567 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
39568 # so the general rule is that if there is an _ in the function
39569 # name, then there are two trailing underscores. Otherwise,
39570 # there is only one trailing underscore. Any idea how to do
39571 # that with m4_translit?
39572 if echo size | grep _ >/dev/null 2>&1 ; then
39573 ompi_ac_size_fn=size__
39574 else
39575 ompi_ac_size_fn=size_
39577 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
39578 ompi_ac_size_fn=size_
39579 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
39580 ompi_ac_size_fn=size
39581 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
39582 ompi_ac_size_fn=size
39583 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
39584 ompi_ac_size_fn=SIZE
39585 else
39586 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
39587 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
39588 { (exit 1); exit 1; }; }
39591 # Fortran module
39592 cat > conftestf.f90 <<EOF
39593 program fsize
39594 external size
39595 COMPLEX*8 :: x(2)
39596 call size(x(1),x(2))
39597 end program
39600 # C module
39601 if test -f conftest.h; then
39602 ompi_conftest_h="#include \"conftest.h\""
39603 else
39604 ompi_conftest_h=""
39606 cat > conftest.c <<EOF
39607 #include <stdio.h>
39608 #include <stdlib.h>
39609 $ompi_conftest_h
39611 #ifdef __cplusplus
39612 extern "C" {
39613 #endif
39614 void $ompi_ac_size_fn(char *a, char *b)
39616 int diff = (int) (b - a);
39617 FILE *f=fopen("conftestval", "w");
39618 if (!f) exit(1);
39619 fprintf(f, "%d\n", diff);
39621 #ifdef __cplusplus
39623 #endif
39627 # 1 is the command
39628 # 2 is actions to do if success
39629 # 3 is actions to do if fail
39630 echo "configure:39630: $CC $CFLAGS -I. -c conftest.c" >&5
39631 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
39632 ompi_status=$?
39634 # 1 is the message
39635 # 2 is whether to put a prefix or not
39636 if test -n "1"; then
39637 echo "configure:39637: \$? = $ompi_status" >&5
39638 else
39639 echo \$? = $ompi_status >&5
39641 if test "$ompi_status" = "0"; then
39642 unset ompi_status
39644 # 1 is the command
39645 # 2 is actions to do if success
39646 # 3 is actions to do if fail
39647 echo "configure:39647: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
39648 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
39649 ompi_status=$?
39651 # 1 is the message
39652 # 2 is whether to put a prefix or not
39653 if test -n "1"; then
39654 echo "configure:39654: \$? = $ompi_status" >&5
39655 else
39656 echo \$? = $ompi_status >&5
39658 if test "$ompi_status" = "0"; then
39659 unset ompi_status
39660 happy="yes"
39661 else
39662 unset ompi_status
39663 happy="no"
39665 else
39666 unset ompi_status
39667 happy="no"
39670 if test "$happy" = "no" ; then
39672 # 1 is the message
39673 # 2 is whether to put a prefix or not
39674 if test -n "1"; then
39675 echo "configure:39675: here is the fortran 90 program:" >&5
39676 else
39677 echo here is the fortran 90 program: >&5
39680 # 1 is the filename
39681 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
39682 cat conftestf.f90 >&5
39684 { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*8" >&5
39685 echo "$as_me: WARNING: Could not determine size of COMPLEX*8" >&2;}
39686 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
39687 echo "$as_me: WARNING: See config.log for details" >&2;}
39688 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
39689 echo "$as_me: error: Cannot continue" >&2;}
39690 { (exit 1); exit 1; }; }
39693 if test "$cross_compiling" = "yes"; then
39694 { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*8 when cross-compiling" >&5
39695 echo "$as_me: error: Can not determine size of COMPLEX*8 when cross-compiling" >&2;}
39696 { (exit 1); exit 1; }; }
39697 else
39699 # 1 is the command
39700 # 2 is actions to do if success
39701 # 3 is actions to do if fail
39702 echo "configure:39702: ./conftest" >&5
39703 ./conftest 1>&5 2>&1
39704 ompi_status=$?
39706 # 1 is the message
39707 # 2 is whether to put a prefix or not
39708 if test -n "1"; then
39709 echo "configure:39709: \$? = $ompi_status" >&5
39710 else
39711 echo \$? = $ompi_status >&5
39713 if test "$ompi_status" = "0"; then
39714 unset ompi_status
39715 ompi_cv_f90_sizeof_COMPLEXp8=`cat conftestval`
39716 else
39717 unset ompi_status
39718 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5
39719 echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;}
39720 { (exit 1); exit 1; }; }
39725 unset happy ompi_conftest_h
39726 rm -f conftest*
39728 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp8" >&5
39729 echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEXp8" >&6; }
39731 ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp8
39733 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
39734 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
39735 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
39736 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
39737 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
39738 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
39739 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
39740 ofc_have_type=0
39741 else
39742 # If this type has an F77 counterpart, see if it's
39743 # supported.
39744 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX8
39745 if test "$ofc_f77_have_type" = "0"; then
39746 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*8) not supported" >&5
39747 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*8) not supported" >&2;}
39748 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*8)" >&5
39749 echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*8)" >&2;}
39750 else
39752 # Check the size of this type against its F77 counterpart
39753 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX8
39754 if test "$ofc_f77_sizeof" != ""; then
39755 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
39756 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
39757 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
39758 { echo "$as_me:$LINENO: result: no" >&5
39759 echo "${ECHO_T}no" >&6; }
39760 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*8 ($ofc_f77_sizeof) does not match" >&5
39761 echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*8 ($ofc_f77_sizeof) does not match" >&2;}
39762 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*8 ($ofc_type_size)" >&5
39763 echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*8 ($ofc_type_size)" >&2;}
39764 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
39765 echo "$as_me: error: *** Cannot continue" >&2;}
39766 { (exit 1); exit 1; }; }
39767 else
39768 { echo "$as_me:$LINENO: result: yes" >&5
39769 echo "${ECHO_T}yes" >&6; }
39773 # If we passed in the expected size, then also add the
39774 # type to the relevant list of types found.
39775 if test "$ofc_expected_size" != ""; then
39776 ofc_letter=C
39777 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
39778 eval $ofc_str
39784 # We always need these defines -- even if we don't have a given
39785 # type, there are some places in the code where we have to have
39786 # *something*. Note that the bpatsubst's are the same as used
39787 # above (see comment above), but we added a translit to make them
39788 # uppercase.
39790 # If we got a pretty name, use that as the basis. If not, use the
39791 # first part of the provided fortran type (e.g.,
39792 # "logical(selected_int_kind(2))" -> logical1")
39794 # Note that there is no need to AC_DEFINE the size of the F90
39795 # datatype. We have ensured (above) that they are the same as the
39796 # corresponding F77 datatypes, and that's good enough (i.e., the
39797 # DDT engine only looks at the F77 sizes).
39799 # Finally, note that it is necessary to use the Big Long Ugly m4
39800 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
39801 # the result of the BLUm4E in a shell variable and use that in
39802 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
39803 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
39806 cat >>confdefs.h <<_ACEOF
39807 #define OMPI_HAVE_F90_COMPLEX8 $ofc_have_type
39808 _ACEOF
39811 # Save some in shell variables for later use. Have to use m4
39812 # functions here (vs. $ompi_upper_var_name, defined above) because
39813 # these need to be set at autoconf time, not configure time.
39814 OMPI_SIZEOF_F90_COMPLEX8=$ofc_type_size
39817 # Clean up
39818 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
39819 unset ofc_have_type ofc_type_size ofc_letter ofc_str
39820 unset ofc_type_range ofc_type_precision
39821 unset ofc_f77_sizeof
39824 ofc_fortran_type="COMPLEX*16"
39825 ofc_expected_size="16"
39827 ofc_have_type=0
39828 ofc_type_size=$ac_cv_sizeof_int
39830 # Only check if we actually want the F90 bindings / have a F90
39831 # compiler. This allows us to call this macro even if there is
39832 # no F90 compiler. If we have no f90 compiler, then just set a
39833 # bunch of defaults.
39834 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
39838 # Determine FORTRAN datatype size.
39839 # First arg is type, 2nd arg is config var to define
39841 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX*16" >&5
39842 echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX*16... $ECHO_C" >&6; }
39843 if test "${ompi_cv_f90_have_COMPLEXp16+set}" = set; then
39844 echo $ECHO_N "(cached) $ECHO_C" >&6
39845 else
39846 ac_ext=${ac_fc_srcext-f}
39847 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
39848 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
39849 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
39851 cat >conftest.$ac_ext <<_ACEOF
39852 program main
39853 COMPLEX*16 :: x
39855 _ACEOF
39856 rm -f conftest.$ac_objext
39857 if { (ac_try="$ac_compile"
39858 case "(($ac_try" in
39859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39860 *) ac_try_echo=$ac_try;;
39861 esac
39862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39863 (eval "$ac_compile") 2>conftest.er1
39864 ac_status=$?
39865 grep -v '^ *+' conftest.er1 >conftest.err
39866 rm -f conftest.er1
39867 cat conftest.err >&5
39868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39869 (exit $ac_status); } && {
39870 test -z "$ac_fc_werror_flag" ||
39871 test ! -s conftest.err
39872 } && test -s conftest.$ac_objext; then
39873 ompi_cv_f90_have_COMPLEXp16="yes"
39874 else
39875 echo "$as_me: failed program was:" >&5
39876 sed 's/^/| /' conftest.$ac_ext >&5
39878 ompi_cv_f90_have_COMPLEXp16="no"
39881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39882 ac_ext=c
39883 ac_cpp='$CPP $CPPFLAGS'
39884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39889 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEXp16" >&5
39890 echo "${ECHO_T}$ompi_cv_f90_have_COMPLEXp16" >&6; }
39892 if test "$ompi_cv_f90_have_COMPLEXp16" = "yes"; then
39893 ofc_have_type=1
39894 else
39895 ofc_have_type=0
39899 else
39900 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
39901 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
39902 { echo "$as_me:$LINENO: result: skipped" >&5
39903 echo "${ECHO_T}skipped" >&6; }
39906 if test "$ofc_have_type" = "1"; then
39907 # What is the size of this type?
39909 # NOTE: Some Fortran compilers actually will return that a
39910 # type exists even if it doesn't support it -- the compiler
39911 # will automatically convert the unsupported type to a type
39912 # that it *does* support. For example, if you try to use
39913 # INTEGER*16 and the compiler doesn't support it, it may well
39914 # automatically convert it to INTEGER*8 for you (!). So we
39915 # have to check the actual size of the type once we determine
39916 # that the compiler doesn't error if we try to use it
39917 # (i.e,. the compiler *might* support that type). If the size
39918 # doesn't match the expected size, then the compiler doesn't
39919 # really support it.
39923 { echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX*16" >&5
39924 echo $ECHO_N "checking size of Fortran 90 COMPLEX*16... $ECHO_C" >&6; }
39925 if test "${ompi_cv_f90_sizeof_COMPLEXp16+set}" = set; then
39926 echo $ECHO_N "(cached) $ECHO_C" >&6
39927 else
39929 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
39930 # so the general rule is that if there is an _ in the function
39931 # name, then there are two trailing underscores. Otherwise,
39932 # there is only one trailing underscore. Any idea how to do
39933 # that with m4_translit?
39934 if echo size | grep _ >/dev/null 2>&1 ; then
39935 ompi_ac_size_fn=size__
39936 else
39937 ompi_ac_size_fn=size_
39939 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
39940 ompi_ac_size_fn=size_
39941 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
39942 ompi_ac_size_fn=size
39943 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
39944 ompi_ac_size_fn=size
39945 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
39946 ompi_ac_size_fn=SIZE
39947 else
39948 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
39949 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
39950 { (exit 1); exit 1; }; }
39953 # Fortran module
39954 cat > conftestf.f90 <<EOF
39955 program fsize
39956 external size
39957 COMPLEX*16 :: x(2)
39958 call size(x(1),x(2))
39959 end program
39962 # C module
39963 if test -f conftest.h; then
39964 ompi_conftest_h="#include \"conftest.h\""
39965 else
39966 ompi_conftest_h=""
39968 cat > conftest.c <<EOF
39969 #include <stdio.h>
39970 #include <stdlib.h>
39971 $ompi_conftest_h
39973 #ifdef __cplusplus
39974 extern "C" {
39975 #endif
39976 void $ompi_ac_size_fn(char *a, char *b)
39978 int diff = (int) (b - a);
39979 FILE *f=fopen("conftestval", "w");
39980 if (!f) exit(1);
39981 fprintf(f, "%d\n", diff);
39983 #ifdef __cplusplus
39985 #endif
39989 # 1 is the command
39990 # 2 is actions to do if success
39991 # 3 is actions to do if fail
39992 echo "configure:39992: $CC $CFLAGS -I. -c conftest.c" >&5
39993 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
39994 ompi_status=$?
39996 # 1 is the message
39997 # 2 is whether to put a prefix or not
39998 if test -n "1"; then
39999 echo "configure:39999: \$? = $ompi_status" >&5
40000 else
40001 echo \$? = $ompi_status >&5
40003 if test "$ompi_status" = "0"; then
40004 unset ompi_status
40006 # 1 is the command
40007 # 2 is actions to do if success
40008 # 3 is actions to do if fail
40009 echo "configure:40009: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
40010 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
40011 ompi_status=$?
40013 # 1 is the message
40014 # 2 is whether to put a prefix or not
40015 if test -n "1"; then
40016 echo "configure:40016: \$? = $ompi_status" >&5
40017 else
40018 echo \$? = $ompi_status >&5
40020 if test "$ompi_status" = "0"; then
40021 unset ompi_status
40022 happy="yes"
40023 else
40024 unset ompi_status
40025 happy="no"
40027 else
40028 unset ompi_status
40029 happy="no"
40032 if test "$happy" = "no" ; then
40034 # 1 is the message
40035 # 2 is whether to put a prefix or not
40036 if test -n "1"; then
40037 echo "configure:40037: here is the fortran 90 program:" >&5
40038 else
40039 echo here is the fortran 90 program: >&5
40042 # 1 is the filename
40043 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
40044 cat conftestf.f90 >&5
40046 { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*16" >&5
40047 echo "$as_me: WARNING: Could not determine size of COMPLEX*16" >&2;}
40048 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
40049 echo "$as_me: WARNING: See config.log for details" >&2;}
40050 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
40051 echo "$as_me: error: Cannot continue" >&2;}
40052 { (exit 1); exit 1; }; }
40055 if test "$cross_compiling" = "yes"; then
40056 { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*16 when cross-compiling" >&5
40057 echo "$as_me: error: Can not determine size of COMPLEX*16 when cross-compiling" >&2;}
40058 { (exit 1); exit 1; }; }
40059 else
40061 # 1 is the command
40062 # 2 is actions to do if success
40063 # 3 is actions to do if fail
40064 echo "configure:40064: ./conftest" >&5
40065 ./conftest 1>&5 2>&1
40066 ompi_status=$?
40068 # 1 is the message
40069 # 2 is whether to put a prefix or not
40070 if test -n "1"; then
40071 echo "configure:40071: \$? = $ompi_status" >&5
40072 else
40073 echo \$? = $ompi_status >&5
40075 if test "$ompi_status" = "0"; then
40076 unset ompi_status
40077 ompi_cv_f90_sizeof_COMPLEXp16=`cat conftestval`
40078 else
40079 unset ompi_status
40080 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*16" >&5
40081 echo "$as_me: error: Could not determine size of COMPLEX*16" >&2;}
40082 { (exit 1); exit 1; }; }
40087 unset happy ompi_conftest_h
40088 rm -f conftest*
40090 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp16" >&5
40091 echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEXp16" >&6; }
40093 ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp16
40095 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
40096 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
40097 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
40098 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
40099 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
40100 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
40101 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
40102 ofc_have_type=0
40103 else
40104 # If this type has an F77 counterpart, see if it's
40105 # supported.
40106 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX16
40107 if test "$ofc_f77_have_type" = "0"; then
40108 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*16) not supported" >&5
40109 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*16) not supported" >&2;}
40110 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*16)" >&5
40111 echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*16)" >&2;}
40112 else
40114 # Check the size of this type against its F77 counterpart
40115 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX16
40116 if test "$ofc_f77_sizeof" != ""; then
40117 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
40118 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
40119 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
40120 { echo "$as_me:$LINENO: result: no" >&5
40121 echo "${ECHO_T}no" >&6; }
40122 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*16 ($ofc_f77_sizeof) does not match" >&5
40123 echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*16 ($ofc_f77_sizeof) does not match" >&2;}
40124 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*16 ($ofc_type_size)" >&5
40125 echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*16 ($ofc_type_size)" >&2;}
40126 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
40127 echo "$as_me: error: *** Cannot continue" >&2;}
40128 { (exit 1); exit 1; }; }
40129 else
40130 { echo "$as_me:$LINENO: result: yes" >&5
40131 echo "${ECHO_T}yes" >&6; }
40135 # If we passed in the expected size, then also add the
40136 # type to the relevant list of types found.
40137 if test "$ofc_expected_size" != ""; then
40138 ofc_letter=C
40139 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
40140 eval $ofc_str
40146 # We always need these defines -- even if we don't have a given
40147 # type, there are some places in the code where we have to have
40148 # *something*. Note that the bpatsubst's are the same as used
40149 # above (see comment above), but we added a translit to make them
40150 # uppercase.
40152 # If we got a pretty name, use that as the basis. If not, use the
40153 # first part of the provided fortran type (e.g.,
40154 # "logical(selected_int_kind(2))" -> logical1")
40156 # Note that there is no need to AC_DEFINE the size of the F90
40157 # datatype. We have ensured (above) that they are the same as the
40158 # corresponding F77 datatypes, and that's good enough (i.e., the
40159 # DDT engine only looks at the F77 sizes).
40161 # Finally, note that it is necessary to use the Big Long Ugly m4
40162 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
40163 # the result of the BLUm4E in a shell variable and use that in
40164 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
40165 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
40168 cat >>confdefs.h <<_ACEOF
40169 #define OMPI_HAVE_F90_COMPLEX16 $ofc_have_type
40170 _ACEOF
40173 # Save some in shell variables for later use. Have to use m4
40174 # functions here (vs. $ompi_upper_var_name, defined above) because
40175 # these need to be set at autoconf time, not configure time.
40176 OMPI_SIZEOF_F90_COMPLEX16=$ofc_type_size
40179 # Clean up
40180 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
40181 unset ofc_have_type ofc_type_size ofc_letter ofc_str
40182 unset ofc_type_range ofc_type_precision
40183 unset ofc_f77_sizeof
40186 ofc_fortran_type="COMPLEX*32"
40187 ofc_expected_size="32"
40189 ofc_have_type=0
40190 ofc_type_size=$ac_cv_sizeof_int
40192 # Only check if we actually want the F90 bindings / have a F90
40193 # compiler. This allows us to call this macro even if there is
40194 # no F90 compiler. If we have no f90 compiler, then just set a
40195 # bunch of defaults.
40196 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
40200 # Determine FORTRAN datatype size.
40201 # First arg is type, 2nd arg is config var to define
40203 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports COMPLEX*32" >&5
40204 echo $ECHO_N "checking if Fortran 90 compiler supports COMPLEX*32... $ECHO_C" >&6; }
40205 if test "${ompi_cv_f90_have_COMPLEXp32+set}" = set; then
40206 echo $ECHO_N "(cached) $ECHO_C" >&6
40207 else
40208 ac_ext=${ac_fc_srcext-f}
40209 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
40210 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
40211 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
40213 cat >conftest.$ac_ext <<_ACEOF
40214 program main
40215 COMPLEX*32 :: x
40217 _ACEOF
40218 rm -f conftest.$ac_objext
40219 if { (ac_try="$ac_compile"
40220 case "(($ac_try" in
40221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40222 *) ac_try_echo=$ac_try;;
40223 esac
40224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40225 (eval "$ac_compile") 2>conftest.er1
40226 ac_status=$?
40227 grep -v '^ *+' conftest.er1 >conftest.err
40228 rm -f conftest.er1
40229 cat conftest.err >&5
40230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40231 (exit $ac_status); } && {
40232 test -z "$ac_fc_werror_flag" ||
40233 test ! -s conftest.err
40234 } && test -s conftest.$ac_objext; then
40235 ompi_cv_f90_have_COMPLEXp32="yes"
40236 else
40237 echo "$as_me: failed program was:" >&5
40238 sed 's/^/| /' conftest.$ac_ext >&5
40240 ompi_cv_f90_have_COMPLEXp32="no"
40243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40244 ac_ext=c
40245 ac_cpp='$CPP $CPPFLAGS'
40246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40251 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_COMPLEXp32" >&5
40252 echo "${ECHO_T}$ompi_cv_f90_have_COMPLEXp32" >&6; }
40254 if test "$ompi_cv_f90_have_COMPLEXp32" = "yes"; then
40255 ofc_have_type=1
40256 else
40257 ofc_have_type=0
40261 else
40262 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
40263 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
40264 { echo "$as_me:$LINENO: result: skipped" >&5
40265 echo "${ECHO_T}skipped" >&6; }
40268 if test "$ofc_have_type" = "1"; then
40269 # What is the size of this type?
40271 # NOTE: Some Fortran compilers actually will return that a
40272 # type exists even if it doesn't support it -- the compiler
40273 # will automatically convert the unsupported type to a type
40274 # that it *does* support. For example, if you try to use
40275 # INTEGER*16 and the compiler doesn't support it, it may well
40276 # automatically convert it to INTEGER*8 for you (!). So we
40277 # have to check the actual size of the type once we determine
40278 # that the compiler doesn't error if we try to use it
40279 # (i.e,. the compiler *might* support that type). If the size
40280 # doesn't match the expected size, then the compiler doesn't
40281 # really support it.
40285 { echo "$as_me:$LINENO: checking size of Fortran 90 COMPLEX*32" >&5
40286 echo $ECHO_N "checking size of Fortran 90 COMPLEX*32... $ECHO_C" >&6; }
40287 if test "${ompi_cv_f90_sizeof_COMPLEXp32+set}" = set; then
40288 echo $ECHO_N "(cached) $ECHO_C" >&6
40289 else
40291 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
40292 # so the general rule is that if there is an _ in the function
40293 # name, then there are two trailing underscores. Otherwise,
40294 # there is only one trailing underscore. Any idea how to do
40295 # that with m4_translit?
40296 if echo size | grep _ >/dev/null 2>&1 ; then
40297 ompi_ac_size_fn=size__
40298 else
40299 ompi_ac_size_fn=size_
40301 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
40302 ompi_ac_size_fn=size_
40303 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
40304 ompi_ac_size_fn=size
40305 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
40306 ompi_ac_size_fn=size
40307 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
40308 ompi_ac_size_fn=SIZE
40309 else
40310 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
40311 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
40312 { (exit 1); exit 1; }; }
40315 # Fortran module
40316 cat > conftestf.f90 <<EOF
40317 program fsize
40318 external size
40319 COMPLEX*32 :: x(2)
40320 call size(x(1),x(2))
40321 end program
40324 # C module
40325 if test -f conftest.h; then
40326 ompi_conftest_h="#include \"conftest.h\""
40327 else
40328 ompi_conftest_h=""
40330 cat > conftest.c <<EOF
40331 #include <stdio.h>
40332 #include <stdlib.h>
40333 $ompi_conftest_h
40335 #ifdef __cplusplus
40336 extern "C" {
40337 #endif
40338 void $ompi_ac_size_fn(char *a, char *b)
40340 int diff = (int) (b - a);
40341 FILE *f=fopen("conftestval", "w");
40342 if (!f) exit(1);
40343 fprintf(f, "%d\n", diff);
40345 #ifdef __cplusplus
40347 #endif
40351 # 1 is the command
40352 # 2 is actions to do if success
40353 # 3 is actions to do if fail
40354 echo "configure:40354: $CC $CFLAGS -I. -c conftest.c" >&5
40355 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
40356 ompi_status=$?
40358 # 1 is the message
40359 # 2 is whether to put a prefix or not
40360 if test -n "1"; then
40361 echo "configure:40361: \$? = $ompi_status" >&5
40362 else
40363 echo \$? = $ompi_status >&5
40365 if test "$ompi_status" = "0"; then
40366 unset ompi_status
40368 # 1 is the command
40369 # 2 is actions to do if success
40370 # 3 is actions to do if fail
40371 echo "configure:40371: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
40372 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
40373 ompi_status=$?
40375 # 1 is the message
40376 # 2 is whether to put a prefix or not
40377 if test -n "1"; then
40378 echo "configure:40378: \$? = $ompi_status" >&5
40379 else
40380 echo \$? = $ompi_status >&5
40382 if test "$ompi_status" = "0"; then
40383 unset ompi_status
40384 happy="yes"
40385 else
40386 unset ompi_status
40387 happy="no"
40389 else
40390 unset ompi_status
40391 happy="no"
40394 if test "$happy" = "no" ; then
40396 # 1 is the message
40397 # 2 is whether to put a prefix or not
40398 if test -n "1"; then
40399 echo "configure:40399: here is the fortran 90 program:" >&5
40400 else
40401 echo here is the fortran 90 program: >&5
40404 # 1 is the filename
40405 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
40406 cat conftestf.f90 >&5
40408 { echo "$as_me:$LINENO: WARNING: Could not determine size of COMPLEX*32" >&5
40409 echo "$as_me: WARNING: Could not determine size of COMPLEX*32" >&2;}
40410 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
40411 echo "$as_me: WARNING: See config.log for details" >&2;}
40412 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
40413 echo "$as_me: error: Cannot continue" >&2;}
40414 { (exit 1); exit 1; }; }
40417 if test "$cross_compiling" = "yes"; then
40418 { { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*32 when cross-compiling" >&5
40419 echo "$as_me: error: Can not determine size of COMPLEX*32 when cross-compiling" >&2;}
40420 { (exit 1); exit 1; }; }
40421 else
40423 # 1 is the command
40424 # 2 is actions to do if success
40425 # 3 is actions to do if fail
40426 echo "configure:40426: ./conftest" >&5
40427 ./conftest 1>&5 2>&1
40428 ompi_status=$?
40430 # 1 is the message
40431 # 2 is whether to put a prefix or not
40432 if test -n "1"; then
40433 echo "configure:40433: \$? = $ompi_status" >&5
40434 else
40435 echo \$? = $ompi_status >&5
40437 if test "$ompi_status" = "0"; then
40438 unset ompi_status
40439 ompi_cv_f90_sizeof_COMPLEXp32=`cat conftestval`
40440 else
40441 unset ompi_status
40442 { { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*32" >&5
40443 echo "$as_me: error: Could not determine size of COMPLEX*32" >&2;}
40444 { (exit 1); exit 1; }; }
40449 unset happy ompi_conftest_h
40450 rm -f conftest*
40452 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_COMPLEXp32" >&5
40453 echo "${ECHO_T}$ompi_cv_f90_sizeof_COMPLEXp32" >&6; }
40455 ofc_type_size=$ompi_cv_f90_sizeof_COMPLEXp32
40457 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
40458 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
40459 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
40460 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
40461 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
40462 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
40463 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
40464 ofc_have_type=0
40465 else
40466 # If this type has an F77 counterpart, see if it's
40467 # supported.
40468 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_COMPLEX32
40469 if test "$ofc_f77_have_type" = "0"; then
40470 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (COMPLEX*32) not supported" >&5
40471 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (COMPLEX*32) not supported" >&2;}
40472 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (COMPLEX*32)" >&5
40473 echo "$as_me: WARNING: *** Skipping Fortran 90 type (COMPLEX*32)" >&2;}
40474 else
40476 # Check the size of this type against its F77 counterpart
40477 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_COMPLEX32
40478 if test "$ofc_f77_sizeof" != ""; then
40479 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
40480 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
40481 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
40482 { echo "$as_me:$LINENO: result: no" >&5
40483 echo "${ECHO_T}no" >&6; }
40484 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for COMPLEX*32 ($ofc_f77_sizeof) does not match" >&5
40485 echo "$as_me: WARNING: *** Fortran 77 size for COMPLEX*32 ($ofc_f77_sizeof) does not match" >&2;}
40486 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for COMPLEX*32 ($ofc_type_size)" >&5
40487 echo "$as_me: WARNING: *** Fortran 90 size for COMPLEX*32 ($ofc_type_size)" >&2;}
40488 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
40489 echo "$as_me: error: *** Cannot continue" >&2;}
40490 { (exit 1); exit 1; }; }
40491 else
40492 { echo "$as_me:$LINENO: result: yes" >&5
40493 echo "${ECHO_T}yes" >&6; }
40497 # If we passed in the expected size, then also add the
40498 # type to the relevant list of types found.
40499 if test "$ofc_expected_size" != ""; then
40500 ofc_letter=C
40501 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
40502 eval $ofc_str
40508 # We always need these defines -- even if we don't have a given
40509 # type, there are some places in the code where we have to have
40510 # *something*. Note that the bpatsubst's are the same as used
40511 # above (see comment above), but we added a translit to make them
40512 # uppercase.
40514 # If we got a pretty name, use that as the basis. If not, use the
40515 # first part of the provided fortran type (e.g.,
40516 # "logical(selected_int_kind(2))" -> logical1")
40518 # Note that there is no need to AC_DEFINE the size of the F90
40519 # datatype. We have ensured (above) that they are the same as the
40520 # corresponding F77 datatypes, and that's good enough (i.e., the
40521 # DDT engine only looks at the F77 sizes).
40523 # Finally, note that it is necessary to use the Big Long Ugly m4
40524 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
40525 # the result of the BLUm4E in a shell variable and use that in
40526 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
40527 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
40530 cat >>confdefs.h <<_ACEOF
40531 #define OMPI_HAVE_F90_COMPLEX32 $ofc_have_type
40532 _ACEOF
40535 # Save some in shell variables for later use. Have to use m4
40536 # functions here (vs. $ompi_upper_var_name, defined above) because
40537 # these need to be set at autoconf time, not configure time.
40538 OMPI_SIZEOF_F90_COMPLEX32=$ofc_type_size
40541 # Clean up
40542 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
40543 unset ofc_have_type ofc_type_size ofc_letter ofc_str
40544 unset ofc_type_range ofc_type_precision
40545 unset ofc_f77_sizeof
40548 ofc_fortran_type="DOUBLE COMPLEX"
40549 ofc_expected_size=""
40551 ofc_have_type=0
40552 ofc_type_size=$ac_cv_sizeof_int
40554 # Only check if we actually want the F90 bindings / have a F90
40555 # compiler. This allows us to call this macro even if there is
40556 # no F90 compiler. If we have no f90 compiler, then just set a
40557 # bunch of defaults.
40558 if test "$OMPI_WANT_F90_BINDINGS" = "1"; then
40562 # Determine FORTRAN datatype size.
40563 # First arg is type, 2nd arg is config var to define
40565 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports DOUBLE COMPLEX" >&5
40566 echo $ECHO_N "checking if Fortran 90 compiler supports DOUBLE COMPLEX... $ECHO_C" >&6; }
40567 if test "${ompi_cv_f90_have_DOUBLE_COMPLEX+set}" = set; then
40568 echo $ECHO_N "(cached) $ECHO_C" >&6
40569 else
40570 ac_ext=${ac_fc_srcext-f}
40571 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
40572 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
40573 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
40575 cat >conftest.$ac_ext <<_ACEOF
40576 program main
40577 DOUBLE COMPLEX :: x
40579 _ACEOF
40580 rm -f conftest.$ac_objext
40581 if { (ac_try="$ac_compile"
40582 case "(($ac_try" in
40583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40584 *) ac_try_echo=$ac_try;;
40585 esac
40586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40587 (eval "$ac_compile") 2>conftest.er1
40588 ac_status=$?
40589 grep -v '^ *+' conftest.er1 >conftest.err
40590 rm -f conftest.er1
40591 cat conftest.err >&5
40592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40593 (exit $ac_status); } && {
40594 test -z "$ac_fc_werror_flag" ||
40595 test ! -s conftest.err
40596 } && test -s conftest.$ac_objext; then
40597 ompi_cv_f90_have_DOUBLE_COMPLEX="yes"
40598 else
40599 echo "$as_me: failed program was:" >&5
40600 sed 's/^/| /' conftest.$ac_ext >&5
40602 ompi_cv_f90_have_DOUBLE_COMPLEX="no"
40605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40606 ac_ext=c
40607 ac_cpp='$CPP $CPPFLAGS'
40608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40613 { echo "$as_me:$LINENO: result: $ompi_cv_f90_have_DOUBLE_COMPLEX" >&5
40614 echo "${ECHO_T}$ompi_cv_f90_have_DOUBLE_COMPLEX" >&6; }
40616 if test "$ompi_cv_f90_have_DOUBLE_COMPLEX" = "yes"; then
40617 ofc_have_type=1
40618 else
40619 ofc_have_type=0
40623 else
40624 { echo "$as_me:$LINENO: checking if Fortran 90 compiler supports $ofc_fortran_type" >&5
40625 echo $ECHO_N "checking if Fortran 90 compiler supports $ofc_fortran_type... $ECHO_C" >&6; }
40626 { echo "$as_me:$LINENO: result: skipped" >&5
40627 echo "${ECHO_T}skipped" >&6; }
40630 if test "$ofc_have_type" = "1"; then
40631 # What is the size of this type?
40633 # NOTE: Some Fortran compilers actually will return that a
40634 # type exists even if it doesn't support it -- the compiler
40635 # will automatically convert the unsupported type to a type
40636 # that it *does* support. For example, if you try to use
40637 # INTEGER*16 and the compiler doesn't support it, it may well
40638 # automatically convert it to INTEGER*8 for you (!). So we
40639 # have to check the actual size of the type once we determine
40640 # that the compiler doesn't error if we try to use it
40641 # (i.e,. the compiler *might* support that type). If the size
40642 # doesn't match the expected size, then the compiler doesn't
40643 # really support it.
40647 { echo "$as_me:$LINENO: checking size of Fortran 90 DOUBLE COMPLEX" >&5
40648 echo $ECHO_N "checking size of Fortran 90 DOUBLE COMPLEX... $ECHO_C" >&6; }
40649 if test "${ompi_cv_f90_sizeof_DOUBLE_COMPLEX+set}" = set; then
40650 echo $ECHO_N "(cached) $ECHO_C" >&6
40651 else
40653 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
40654 # so the general rule is that if there is an _ in the function
40655 # name, then there are two trailing underscores. Otherwise,
40656 # there is only one trailing underscore. Any idea how to do
40657 # that with m4_translit?
40658 if echo size | grep _ >/dev/null 2>&1 ; then
40659 ompi_ac_size_fn=size__
40660 else
40661 ompi_ac_size_fn=size_
40663 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
40664 ompi_ac_size_fn=size_
40665 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
40666 ompi_ac_size_fn=size
40667 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
40668 ompi_ac_size_fn=size
40669 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
40670 ompi_ac_size_fn=SIZE
40671 else
40672 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
40673 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
40674 { (exit 1); exit 1; }; }
40677 # Fortran module
40678 cat > conftestf.f90 <<EOF
40679 program fsize
40680 external size
40681 DOUBLE COMPLEX :: x(2)
40682 call size(x(1),x(2))
40683 end program
40686 # C module
40687 if test -f conftest.h; then
40688 ompi_conftest_h="#include \"conftest.h\""
40689 else
40690 ompi_conftest_h=""
40692 cat > conftest.c <<EOF
40693 #include <stdio.h>
40694 #include <stdlib.h>
40695 $ompi_conftest_h
40697 #ifdef __cplusplus
40698 extern "C" {
40699 #endif
40700 void $ompi_ac_size_fn(char *a, char *b)
40702 int diff = (int) (b - a);
40703 FILE *f=fopen("conftestval", "w");
40704 if (!f) exit(1);
40705 fprintf(f, "%d\n", diff);
40707 #ifdef __cplusplus
40709 #endif
40713 # 1 is the command
40714 # 2 is actions to do if success
40715 # 3 is actions to do if fail
40716 echo "configure:40716: $CC $CFLAGS -I. -c conftest.c" >&5
40717 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
40718 ompi_status=$?
40720 # 1 is the message
40721 # 2 is whether to put a prefix or not
40722 if test -n "1"; then
40723 echo "configure:40723: \$? = $ompi_status" >&5
40724 else
40725 echo \$? = $ompi_status >&5
40727 if test "$ompi_status" = "0"; then
40728 unset ompi_status
40730 # 1 is the command
40731 # 2 is actions to do if success
40732 # 3 is actions to do if fail
40733 echo "configure:40733: $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS" >&5
40734 $FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
40735 ompi_status=$?
40737 # 1 is the message
40738 # 2 is whether to put a prefix or not
40739 if test -n "1"; then
40740 echo "configure:40740: \$? = $ompi_status" >&5
40741 else
40742 echo \$? = $ompi_status >&5
40744 if test "$ompi_status" = "0"; then
40745 unset ompi_status
40746 happy="yes"
40747 else
40748 unset ompi_status
40749 happy="no"
40751 else
40752 unset ompi_status
40753 happy="no"
40756 if test "$happy" = "no" ; then
40758 # 1 is the message
40759 # 2 is whether to put a prefix or not
40760 if test -n "1"; then
40761 echo "configure:40761: here is the fortran 90 program:" >&5
40762 else
40763 echo here is the fortran 90 program: >&5
40766 # 1 is the filename
40767 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
40768 cat conftestf.f90 >&5
40770 { echo "$as_me:$LINENO: WARNING: Could not determine size of DOUBLE COMPLEX" >&5
40771 echo "$as_me: WARNING: Could not determine size of DOUBLE COMPLEX" >&2;}
40772 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
40773 echo "$as_me: WARNING: See config.log for details" >&2;}
40774 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
40775 echo "$as_me: error: Cannot continue" >&2;}
40776 { (exit 1); exit 1; }; }
40779 if test "$cross_compiling" = "yes"; then
40780 { { echo "$as_me:$LINENO: error: Can not determine size of DOUBLE COMPLEX when cross-compiling" >&5
40781 echo "$as_me: error: Can not determine size of DOUBLE COMPLEX when cross-compiling" >&2;}
40782 { (exit 1); exit 1; }; }
40783 else
40785 # 1 is the command
40786 # 2 is actions to do if success
40787 # 3 is actions to do if fail
40788 echo "configure:40788: ./conftest" >&5
40789 ./conftest 1>&5 2>&1
40790 ompi_status=$?
40792 # 1 is the message
40793 # 2 is whether to put a prefix or not
40794 if test -n "1"; then
40795 echo "configure:40795: \$? = $ompi_status" >&5
40796 else
40797 echo \$? = $ompi_status >&5
40799 if test "$ompi_status" = "0"; then
40800 unset ompi_status
40801 ompi_cv_f90_sizeof_DOUBLE_COMPLEX=`cat conftestval`
40802 else
40803 unset ompi_status
40804 { { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE COMPLEX" >&5
40805 echo "$as_me: error: Could not determine size of DOUBLE COMPLEX" >&2;}
40806 { (exit 1); exit 1; }; }
40811 unset happy ompi_conftest_h
40812 rm -f conftest*
40814 { echo "$as_me:$LINENO: result: $ompi_cv_f90_sizeof_DOUBLE_COMPLEX" >&5
40815 echo "${ECHO_T}$ompi_cv_f90_sizeof_DOUBLE_COMPLEX" >&6; }
40817 ofc_type_size=$ompi_cv_f90_sizeof_DOUBLE_COMPLEX
40819 if test "$ofc_expected_size" != "" -a "$ofc_type_size" != "$ofc_expected_size"; then
40820 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&5
40821 echo "$as_me: WARNING: *** Fortran 90 $ofc_fortran_type does not have expected size!" >&2;}
40822 { echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
40823 echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
40824 { echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&5
40825 echo "$as_me: WARNING: *** Disabling MPI support for Fortran $ofc_fortran_type" >&2;}
40826 ofc_have_type=0
40827 else
40828 # If this type has an F77 counterpart, see if it's
40829 # supported.
40830 ofc_f77_have_type=$OMPI_HAVE_FORTRAN_DOUBLE_COMPLEX
40831 if test "$ofc_f77_have_type" = "0"; then
40832 { echo "$as_me:$LINENO: WARNING: *** Corresponding Fortran 77 type (DOUBLE COMPLEX) not supported" >&5
40833 echo "$as_me: WARNING: *** Corresponding Fortran 77 type (DOUBLE COMPLEX) not supported" >&2;}
40834 { echo "$as_me:$LINENO: WARNING: *** Skipping Fortran 90 type (DOUBLE COMPLEX)" >&5
40835 echo "$as_me: WARNING: *** Skipping Fortran 90 type (DOUBLE COMPLEX)" >&2;}
40836 else
40838 # Check the size of this type against its F77 counterpart
40839 ofc_f77_sizeof=$OMPI_SIZEOF_FORTRAN_DOUBLE_COMPLEX
40840 if test "$ofc_f77_sizeof" != ""; then
40841 { echo "$as_me:$LINENO: checking if Fortran 77 and 90 type sizes match" >&5
40842 echo $ECHO_N "checking if Fortran 77 and 90 type sizes match... $ECHO_C" >&6; }
40843 if test "$ofc_f77_sizeof" != "$ofc_type_size"; then
40844 { echo "$as_me:$LINENO: result: no" >&5
40845 echo "${ECHO_T}no" >&6; }
40846 { echo "$as_me:$LINENO: WARNING: *** Fortran 77 size for DOUBLE COMPLEX ($ofc_f77_sizeof) does not match" >&5
40847 echo "$as_me: WARNING: *** Fortran 77 size for DOUBLE COMPLEX ($ofc_f77_sizeof) does not match" >&2;}
40848 { echo "$as_me:$LINENO: WARNING: *** Fortran 90 size for DOUBLE COMPLEX ($ofc_type_size)" >&5
40849 echo "$as_me: WARNING: *** Fortran 90 size for DOUBLE COMPLEX ($ofc_type_size)" >&2;}
40850 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
40851 echo "$as_me: error: *** Cannot continue" >&2;}
40852 { (exit 1); exit 1; }; }
40853 else
40854 { echo "$as_me:$LINENO: result: yes" >&5
40855 echo "${ECHO_T}yes" >&6; }
40859 # If we passed in the expected size, then also add the
40860 # type to the relevant list of types found.
40861 if test "$ofc_expected_size" != ""; then
40862 ofc_letter=D
40863 ofc_str="OMPI_F90_${ofc_letter}KINDS=\"\$OMPI_F90_${ofc_letter}KINDS $ofc_type_size \""
40864 eval $ofc_str
40870 # We always need these defines -- even if we don't have a given
40871 # type, there are some places in the code where we have to have
40872 # *something*. Note that the bpatsubst's are the same as used
40873 # above (see comment above), but we added a translit to make them
40874 # uppercase.
40876 # If we got a pretty name, use that as the basis. If not, use the
40877 # first part of the provided fortran type (e.g.,
40878 # "logical(selected_int_kind(2))" -> logical1")
40880 # Note that there is no need to AC_DEFINE the size of the F90
40881 # datatype. We have ensured (above) that they are the same as the
40882 # corresponding F77 datatypes, and that's good enough (i.e., the
40883 # DDT engine only looks at the F77 sizes).
40885 # Finally, note that it is necessary to use the Big Long Ugly m4
40886 # expressions in the AC_DEFINE_UNQUOTEDs. If you don't (e.g., put
40887 # the result of the BLUm4E in a shell variable and use that in
40888 # AC_DEFINE_UNQUOTED), autoheader won't put them in the
40889 # AC_CONFIG_HEADER (or AM_CONFIG_HEADER, in our case).
40892 cat >>confdefs.h <<_ACEOF
40893 #define OMPI_HAVE_F90_DOUBLE_COMPLEX $ofc_have_type
40894 _ACEOF
40897 # Save some in shell variables for later use. Have to use m4
40898 # functions here (vs. $ompi_upper_var_name, defined above) because
40899 # these need to be set at autoconf time, not configure time.
40900 OMPI_SIZEOF_F90_DOUBLE_COMPLEX=$ofc_type_size
40903 # Clean up
40904 unset ofc_fortran_type ofc_expected_size ofc_want_range ofc_pretty_name
40905 unset ofc_have_type ofc_type_size ofc_letter ofc_str
40906 unset ofc_type_range ofc_type_precision
40907 unset ofc_f77_sizeof
40914 # get kind value for Fortran MPI_INTEGER_KIND (corresponding to
40915 # whatever is the same size as a F77 INTEGER -- for the
40916 # most-likely-will-never-occur case where F77 INTEGER is smaller than
40917 # an F90 INTEGER; see MPI-2 4.12.6.5
40918 if test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "2"; then
40922 if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
40923 { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(4))" >&5
40924 echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(4))... $ECHO_C" >&6; }
40925 if test "${ompi_cv_f90_int_kind_4+set}" = set; then
40926 echo $ECHO_N "(cached) $ECHO_C" >&6
40927 else
40928 cat > conftestf.f90 <<EOF
40929 program f90findintkind
40930 open(8, file="conftestval")
40931 write(8, fmt="(I5)") selected_int_kind(4)
40932 close(8)
40933 end program
40936 # Try to compile
40938 # 1 is the command
40939 # 2 is actions to do if success
40940 # 3 is actions to do if fail
40941 echo "configure:40941: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
40942 $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
40943 ompi_status=$?
40945 # 1 is the message
40946 # 2 is whether to put a prefix or not
40947 if test -n "1"; then
40948 echo "configure:40948: \$? = $ompi_status" >&5
40949 else
40950 echo \$? = $ompi_status >&5
40952 if test "$ompi_status" = "0"; then
40953 unset ompi_status
40954 happy="yes"
40955 else
40956 unset ompi_status
40957 happy="no"
40960 if test "$happy" = "no"; then
40962 # 1 is the message
40963 # 2 is whether to put a prefix or not
40964 if test -n "1"; then
40965 echo "configure:40965: here is the fortran 90 program:" >&5
40966 else
40967 echo here is the fortran 90 program: >&5
40970 # 1 is the filename
40971 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
40972 cat conftestf.f90 >&5
40974 { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
40975 echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
40976 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
40977 echo "$as_me: WARNING: See config.log for details" >&2;}
40978 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
40979 echo "$as_me: error: Cannot continue" >&2;}
40980 { (exit 1); exit 1; }; }
40983 if test "$cross_compiling" = "yes"; then
40984 { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5
40985 echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&2;}
40986 { (exit 1); exit 1; }; }
40987 else
40989 # 1 is the command
40990 # 2 is actions to do if success
40991 # 3 is actions to do if fail
40992 echo "configure:40992: ./conftest" >&5
40993 ./conftest 1>&5 2>&1
40994 ompi_status=$?
40996 # 1 is the message
40997 # 2 is whether to put a prefix or not
40998 if test -n "1"; then
40999 echo "configure:40999: \$? = $ompi_status" >&5
41000 else
41001 echo \$? = $ompi_status >&5
41003 if test "$ompi_status" = "0"; then
41004 unset ompi_status
41005 ompi_cv_f90_int_kind_4=`sed 's/ *//' conftestval`
41006 else
41007 unset ompi_status
41008 { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
41009 echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
41010 { (exit 1); exit 1; }; }
41015 unset happy ompi_conftest_h
41016 rm -f conftest*
41018 { echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_4" >&5
41019 echo "${ECHO_T}$ompi_cv_f90_int_kind_4" >&6; }
41021 OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_4
41022 else
41023 OMPI_MPI_INTEGER_KIND=0
41026 elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "4"; then
41030 if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
41031 { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(9))" >&5
41032 echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(9))... $ECHO_C" >&6; }
41033 if test "${ompi_cv_f90_int_kind_9+set}" = set; then
41034 echo $ECHO_N "(cached) $ECHO_C" >&6
41035 else
41036 cat > conftestf.f90 <<EOF
41037 program f90findintkind
41038 open(8, file="conftestval")
41039 write(8, fmt="(I5)") selected_int_kind(9)
41040 close(8)
41041 end program
41044 # Try to compile
41046 # 1 is the command
41047 # 2 is actions to do if success
41048 # 3 is actions to do if fail
41049 echo "configure:41049: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
41050 $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
41051 ompi_status=$?
41053 # 1 is the message
41054 # 2 is whether to put a prefix or not
41055 if test -n "1"; then
41056 echo "configure:41056: \$? = $ompi_status" >&5
41057 else
41058 echo \$? = $ompi_status >&5
41060 if test "$ompi_status" = "0"; then
41061 unset ompi_status
41062 happy="yes"
41063 else
41064 unset ompi_status
41065 happy="no"
41068 if test "$happy" = "no"; then
41070 # 1 is the message
41071 # 2 is whether to put a prefix or not
41072 if test -n "1"; then
41073 echo "configure:41073: here is the fortran 90 program:" >&5
41074 else
41075 echo here is the fortran 90 program: >&5
41078 # 1 is the filename
41079 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
41080 cat conftestf.f90 >&5
41082 { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
41083 echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
41084 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
41085 echo "$as_me: WARNING: See config.log for details" >&2;}
41086 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
41087 echo "$as_me: error: Cannot continue" >&2;}
41088 { (exit 1); exit 1; }; }
41091 if test "$cross_compiling" = "yes"; then
41092 { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5
41093 echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&2;}
41094 { (exit 1); exit 1; }; }
41095 else
41097 # 1 is the command
41098 # 2 is actions to do if success
41099 # 3 is actions to do if fail
41100 echo "configure:41100: ./conftest" >&5
41101 ./conftest 1>&5 2>&1
41102 ompi_status=$?
41104 # 1 is the message
41105 # 2 is whether to put a prefix or not
41106 if test -n "1"; then
41107 echo "configure:41107: \$? = $ompi_status" >&5
41108 else
41109 echo \$? = $ompi_status >&5
41111 if test "$ompi_status" = "0"; then
41112 unset ompi_status
41113 ompi_cv_f90_int_kind_9=`sed 's/ *//' conftestval`
41114 else
41115 unset ompi_status
41116 { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
41117 echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
41118 { (exit 1); exit 1; }; }
41123 unset happy ompi_conftest_h
41124 rm -f conftest*
41126 { echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_9" >&5
41127 echo "${ECHO_T}$ompi_cv_f90_int_kind_9" >&6; }
41129 OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_9
41130 else
41131 OMPI_MPI_INTEGER_KIND=0
41134 elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "8"; then
41138 if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
41139 { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(18))" >&5
41140 echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(18))... $ECHO_C" >&6; }
41141 if test "${ompi_cv_f90_int_kind_18+set}" = set; then
41142 echo $ECHO_N "(cached) $ECHO_C" >&6
41143 else
41144 cat > conftestf.f90 <<EOF
41145 program f90findintkind
41146 open(8, file="conftestval")
41147 write(8, fmt="(I5)") selected_int_kind(18)
41148 close(8)
41149 end program
41152 # Try to compile
41154 # 1 is the command
41155 # 2 is actions to do if success
41156 # 3 is actions to do if fail
41157 echo "configure:41157: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
41158 $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
41159 ompi_status=$?
41161 # 1 is the message
41162 # 2 is whether to put a prefix or not
41163 if test -n "1"; then
41164 echo "configure:41164: \$? = $ompi_status" >&5
41165 else
41166 echo \$? = $ompi_status >&5
41168 if test "$ompi_status" = "0"; then
41169 unset ompi_status
41170 happy="yes"
41171 else
41172 unset ompi_status
41173 happy="no"
41176 if test "$happy" = "no"; then
41178 # 1 is the message
41179 # 2 is whether to put a prefix or not
41180 if test -n "1"; then
41181 echo "configure:41181: here is the fortran 90 program:" >&5
41182 else
41183 echo here is the fortran 90 program: >&5
41186 # 1 is the filename
41187 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
41188 cat conftestf.f90 >&5
41190 { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
41191 echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
41192 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
41193 echo "$as_me: WARNING: See config.log for details" >&2;}
41194 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
41195 echo "$as_me: error: Cannot continue" >&2;}
41196 { (exit 1); exit 1; }; }
41199 if test "$cross_compiling" = "yes"; then
41200 { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5
41201 echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&2;}
41202 { (exit 1); exit 1; }; }
41203 else
41205 # 1 is the command
41206 # 2 is actions to do if success
41207 # 3 is actions to do if fail
41208 echo "configure:41208: ./conftest" >&5
41209 ./conftest 1>&5 2>&1
41210 ompi_status=$?
41212 # 1 is the message
41213 # 2 is whether to put a prefix or not
41214 if test -n "1"; then
41215 echo "configure:41215: \$? = $ompi_status" >&5
41216 else
41217 echo \$? = $ompi_status >&5
41219 if test "$ompi_status" = "0"; then
41220 unset ompi_status
41221 ompi_cv_f90_int_kind_18=`sed 's/ *//' conftestval`
41222 else
41223 unset ompi_status
41224 { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
41225 echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
41226 { (exit 1); exit 1; }; }
41231 unset happy ompi_conftest_h
41232 rm -f conftest*
41234 { echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5
41235 echo "${ECHO_T}$ompi_cv_f90_int_kind_18" >&6; }
41237 OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_18
41238 else
41239 OMPI_MPI_INTEGER_KIND=0
41242 elif test "$OMPI_SIZEOF_FORTRAN_INTEGER" = "16"; then
41246 if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
41247 { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(19))" >&5
41248 echo $ECHO_N "checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(19))... $ECHO_C" >&6; }
41249 if test "${ompi_cv_f90_int_kind_19+set}" = set; then
41250 echo $ECHO_N "(cached) $ECHO_C" >&6
41251 else
41252 cat > conftestf.f90 <<EOF
41253 program f90findintkind
41254 open(8, file="conftestval")
41255 write(8, fmt="(I5)") selected_int_kind(19)
41256 close(8)
41257 end program
41260 # Try to compile
41262 # 1 is the command
41263 # 2 is actions to do if success
41264 # 3 is actions to do if fail
41265 echo "configure:41265: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
41266 $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
41267 ompi_status=$?
41269 # 1 is the message
41270 # 2 is whether to put a prefix or not
41271 if test -n "1"; then
41272 echo "configure:41272: \$? = $ompi_status" >&5
41273 else
41274 echo \$? = $ompi_status >&5
41276 if test "$ompi_status" = "0"; then
41277 unset ompi_status
41278 happy="yes"
41279 else
41280 unset ompi_status
41281 happy="no"
41284 if test "$happy" = "no"; then
41286 # 1 is the message
41287 # 2 is whether to put a prefix or not
41288 if test -n "1"; then
41289 echo "configure:41289: here is the fortran 90 program:" >&5
41290 else
41291 echo here is the fortran 90 program: >&5
41294 # 1 is the filename
41295 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
41296 cat conftestf.f90 >&5
41298 { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
41299 echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
41300 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
41301 echo "$as_me: WARNING: See config.log for details" >&2;}
41302 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
41303 echo "$as_me: error: Cannot continue" >&2;}
41304 { (exit 1); exit 1; }; }
41307 if test "$cross_compiling" = "yes"; then
41308 { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&5
41309 echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_INTEGER_KIND) when cross-compiling" >&2;}
41310 { (exit 1); exit 1; }; }
41311 else
41313 # 1 is the command
41314 # 2 is actions to do if success
41315 # 3 is actions to do if fail
41316 echo "configure:41316: ./conftest" >&5
41317 ./conftest 1>&5 2>&1
41318 ompi_status=$?
41320 # 1 is the message
41321 # 2 is whether to put a prefix or not
41322 if test -n "1"; then
41323 echo "configure:41323: \$? = $ompi_status" >&5
41324 else
41325 echo \$? = $ompi_status >&5
41327 if test "$ompi_status" = "0"; then
41328 unset ompi_status
41329 ompi_cv_f90_int_kind_19=`sed 's/ *//' conftestval`
41330 else
41331 unset ompi_status
41332 { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&5
41333 echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_INTEGER_KIND)" >&2;}
41334 { (exit 1); exit 1; }; }
41339 unset happy ompi_conftest_h
41340 rm -f conftest*
41342 { echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_19" >&5
41343 echo "${ECHO_T}$ompi_cv_f90_int_kind_19" >&6; }
41345 OMPI_MPI_INTEGER_KIND=$ompi_cv_f90_int_kind_19
41346 else
41347 OMPI_MPI_INTEGER_KIND=0
41350 { { echo "$as_me:$LINENO: error: Cannot support Fortran MPI_INTEGER_KIND!" >&5
41351 echo "$as_me: error: Cannot support Fortran MPI_INTEGER_KIND!" >&2;}
41352 { (exit 1); exit 1; }; }
41356 # get kind value for Fortran MPI_ADDRESS_KIND (corresponding to
41357 # whatever is big enough to hold (void*))
41358 if test "$ac_cv_sizeof_void_p" = "2"; then
41362 if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
41363 { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(4))" >&5
41364 echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(4))... $ECHO_C" >&6; }
41365 if test "${ompi_cv_f90_int_kind_4+set}" = set; then
41366 echo $ECHO_N "(cached) $ECHO_C" >&6
41367 else
41368 cat > conftestf.f90 <<EOF
41369 program f90findintkind
41370 open(8, file="conftestval")
41371 write(8, fmt="(I5)") selected_int_kind(4)
41372 close(8)
41373 end program
41376 # Try to compile
41378 # 1 is the command
41379 # 2 is actions to do if success
41380 # 3 is actions to do if fail
41381 echo "configure:41381: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
41382 $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
41383 ompi_status=$?
41385 # 1 is the message
41386 # 2 is whether to put a prefix or not
41387 if test -n "1"; then
41388 echo "configure:41388: \$? = $ompi_status" >&5
41389 else
41390 echo \$? = $ompi_status >&5
41392 if test "$ompi_status" = "0"; then
41393 unset ompi_status
41394 happy="yes"
41395 else
41396 unset ompi_status
41397 happy="no"
41400 if test "$happy" = "no"; then
41402 # 1 is the message
41403 # 2 is whether to put a prefix or not
41404 if test -n "1"; then
41405 echo "configure:41405: here is the fortran 90 program:" >&5
41406 else
41407 echo here is the fortran 90 program: >&5
41410 # 1 is the filename
41411 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
41412 cat conftestf.f90 >&5
41414 { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
41415 echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
41416 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
41417 echo "$as_me: WARNING: See config.log for details" >&2;}
41418 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
41419 echo "$as_me: error: Cannot continue" >&2;}
41420 { (exit 1); exit 1; }; }
41423 if test "$cross_compiling" = "yes"; then
41424 { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5
41425 echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&2;}
41426 { (exit 1); exit 1; }; }
41427 else
41429 # 1 is the command
41430 # 2 is actions to do if success
41431 # 3 is actions to do if fail
41432 echo "configure:41432: ./conftest" >&5
41433 ./conftest 1>&5 2>&1
41434 ompi_status=$?
41436 # 1 is the message
41437 # 2 is whether to put a prefix or not
41438 if test -n "1"; then
41439 echo "configure:41439: \$? = $ompi_status" >&5
41440 else
41441 echo \$? = $ompi_status >&5
41443 if test "$ompi_status" = "0"; then
41444 unset ompi_status
41445 ompi_cv_f90_int_kind_4=`sed 's/ *//' conftestval`
41446 else
41447 unset ompi_status
41448 { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
41449 echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
41450 { (exit 1); exit 1; }; }
41455 unset happy ompi_conftest_h
41456 rm -f conftest*
41458 { echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_4" >&5
41459 echo "${ECHO_T}$ompi_cv_f90_int_kind_4" >&6; }
41461 OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_4
41462 else
41463 OMPI_MPI_ADDRESS_KIND=0
41466 elif test "$ac_cv_sizeof_void_p" = "4"; then
41470 if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
41471 { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(9))" >&5
41472 echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(9))... $ECHO_C" >&6; }
41473 if test "${ompi_cv_f90_int_kind_9+set}" = set; then
41474 echo $ECHO_N "(cached) $ECHO_C" >&6
41475 else
41476 cat > conftestf.f90 <<EOF
41477 program f90findintkind
41478 open(8, file="conftestval")
41479 write(8, fmt="(I5)") selected_int_kind(9)
41480 close(8)
41481 end program
41484 # Try to compile
41486 # 1 is the command
41487 # 2 is actions to do if success
41488 # 3 is actions to do if fail
41489 echo "configure:41489: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
41490 $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
41491 ompi_status=$?
41493 # 1 is the message
41494 # 2 is whether to put a prefix or not
41495 if test -n "1"; then
41496 echo "configure:41496: \$? = $ompi_status" >&5
41497 else
41498 echo \$? = $ompi_status >&5
41500 if test "$ompi_status" = "0"; then
41501 unset ompi_status
41502 happy="yes"
41503 else
41504 unset ompi_status
41505 happy="no"
41508 if test "$happy" = "no"; then
41510 # 1 is the message
41511 # 2 is whether to put a prefix or not
41512 if test -n "1"; then
41513 echo "configure:41513: here is the fortran 90 program:" >&5
41514 else
41515 echo here is the fortran 90 program: >&5
41518 # 1 is the filename
41519 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
41520 cat conftestf.f90 >&5
41522 { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
41523 echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
41524 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
41525 echo "$as_me: WARNING: See config.log for details" >&2;}
41526 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
41527 echo "$as_me: error: Cannot continue" >&2;}
41528 { (exit 1); exit 1; }; }
41531 if test "$cross_compiling" = "yes"; then
41532 { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5
41533 echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&2;}
41534 { (exit 1); exit 1; }; }
41535 else
41537 # 1 is the command
41538 # 2 is actions to do if success
41539 # 3 is actions to do if fail
41540 echo "configure:41540: ./conftest" >&5
41541 ./conftest 1>&5 2>&1
41542 ompi_status=$?
41544 # 1 is the message
41545 # 2 is whether to put a prefix or not
41546 if test -n "1"; then
41547 echo "configure:41547: \$? = $ompi_status" >&5
41548 else
41549 echo \$? = $ompi_status >&5
41551 if test "$ompi_status" = "0"; then
41552 unset ompi_status
41553 ompi_cv_f90_int_kind_9=`sed 's/ *//' conftestval`
41554 else
41555 unset ompi_status
41556 { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
41557 echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
41558 { (exit 1); exit 1; }; }
41563 unset happy ompi_conftest_h
41564 rm -f conftest*
41566 { echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_9" >&5
41567 echo "${ECHO_T}$ompi_cv_f90_int_kind_9" >&6; }
41569 OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_9
41570 else
41571 OMPI_MPI_ADDRESS_KIND=0
41574 elif test "$ac_cv_sizeof_void_p" = "8"; then
41578 if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
41579 { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(18))" >&5
41580 echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(18))... $ECHO_C" >&6; }
41581 if test "${ompi_cv_f90_int_kind_18+set}" = set; then
41582 echo $ECHO_N "(cached) $ECHO_C" >&6
41583 else
41584 cat > conftestf.f90 <<EOF
41585 program f90findintkind
41586 open(8, file="conftestval")
41587 write(8, fmt="(I5)") selected_int_kind(18)
41588 close(8)
41589 end program
41592 # Try to compile
41594 # 1 is the command
41595 # 2 is actions to do if success
41596 # 3 is actions to do if fail
41597 echo "configure:41597: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
41598 $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
41599 ompi_status=$?
41601 # 1 is the message
41602 # 2 is whether to put a prefix or not
41603 if test -n "1"; then
41604 echo "configure:41604: \$? = $ompi_status" >&5
41605 else
41606 echo \$? = $ompi_status >&5
41608 if test "$ompi_status" = "0"; then
41609 unset ompi_status
41610 happy="yes"
41611 else
41612 unset ompi_status
41613 happy="no"
41616 if test "$happy" = "no"; then
41618 # 1 is the message
41619 # 2 is whether to put a prefix or not
41620 if test -n "1"; then
41621 echo "configure:41621: here is the fortran 90 program:" >&5
41622 else
41623 echo here is the fortran 90 program: >&5
41626 # 1 is the filename
41627 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
41628 cat conftestf.f90 >&5
41630 { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
41631 echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
41632 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
41633 echo "$as_me: WARNING: See config.log for details" >&2;}
41634 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
41635 echo "$as_me: error: Cannot continue" >&2;}
41636 { (exit 1); exit 1; }; }
41639 if test "$cross_compiling" = "yes"; then
41640 { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5
41641 echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&2;}
41642 { (exit 1); exit 1; }; }
41643 else
41645 # 1 is the command
41646 # 2 is actions to do if success
41647 # 3 is actions to do if fail
41648 echo "configure:41648: ./conftest" >&5
41649 ./conftest 1>&5 2>&1
41650 ompi_status=$?
41652 # 1 is the message
41653 # 2 is whether to put a prefix or not
41654 if test -n "1"; then
41655 echo "configure:41655: \$? = $ompi_status" >&5
41656 else
41657 echo \$? = $ompi_status >&5
41659 if test "$ompi_status" = "0"; then
41660 unset ompi_status
41661 ompi_cv_f90_int_kind_18=`sed 's/ *//' conftestval`
41662 else
41663 unset ompi_status
41664 { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
41665 echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
41666 { (exit 1); exit 1; }; }
41671 unset happy ompi_conftest_h
41672 rm -f conftest*
41674 { echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5
41675 echo "${ECHO_T}$ompi_cv_f90_int_kind_18" >&6; }
41677 OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_18
41678 else
41679 OMPI_MPI_ADDRESS_KIND=0
41682 elif test "$ac_cv_sizeof_void_p" = "16"; then
41686 if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
41687 { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(19))" >&5
41688 echo $ECHO_N "checking Fortran 90 kind of MPI_ADDRESS_KIND (selected_int_kind(19))... $ECHO_C" >&6; }
41689 if test "${ompi_cv_f90_int_kind_19+set}" = set; then
41690 echo $ECHO_N "(cached) $ECHO_C" >&6
41691 else
41692 cat > conftestf.f90 <<EOF
41693 program f90findintkind
41694 open(8, file="conftestval")
41695 write(8, fmt="(I5)") selected_int_kind(19)
41696 close(8)
41697 end program
41700 # Try to compile
41702 # 1 is the command
41703 # 2 is actions to do if success
41704 # 3 is actions to do if fail
41705 echo "configure:41705: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
41706 $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
41707 ompi_status=$?
41709 # 1 is the message
41710 # 2 is whether to put a prefix or not
41711 if test -n "1"; then
41712 echo "configure:41712: \$? = $ompi_status" >&5
41713 else
41714 echo \$? = $ompi_status >&5
41716 if test "$ompi_status" = "0"; then
41717 unset ompi_status
41718 happy="yes"
41719 else
41720 unset ompi_status
41721 happy="no"
41724 if test "$happy" = "no"; then
41726 # 1 is the message
41727 # 2 is whether to put a prefix or not
41728 if test -n "1"; then
41729 echo "configure:41729: here is the fortran 90 program:" >&5
41730 else
41731 echo here is the fortran 90 program: >&5
41734 # 1 is the filename
41735 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
41736 cat conftestf.f90 >&5
41738 { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
41739 echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
41740 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
41741 echo "$as_me: WARNING: See config.log for details" >&2;}
41742 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
41743 echo "$as_me: error: Cannot continue" >&2;}
41744 { (exit 1); exit 1; }; }
41747 if test "$cross_compiling" = "yes"; then
41748 { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&5
41749 echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_ADDRESS_KIND) when cross-compiling" >&2;}
41750 { (exit 1); exit 1; }; }
41751 else
41753 # 1 is the command
41754 # 2 is actions to do if success
41755 # 3 is actions to do if fail
41756 echo "configure:41756: ./conftest" >&5
41757 ./conftest 1>&5 2>&1
41758 ompi_status=$?
41760 # 1 is the message
41761 # 2 is whether to put a prefix or not
41762 if test -n "1"; then
41763 echo "configure:41763: \$? = $ompi_status" >&5
41764 else
41765 echo \$? = $ompi_status >&5
41767 if test "$ompi_status" = "0"; then
41768 unset ompi_status
41769 ompi_cv_f90_int_kind_19=`sed 's/ *//' conftestval`
41770 else
41771 unset ompi_status
41772 { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&5
41773 echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_ADDRESS_KIND)" >&2;}
41774 { (exit 1); exit 1; }; }
41779 unset happy ompi_conftest_h
41780 rm -f conftest*
41782 { echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_19" >&5
41783 echo "${ECHO_T}$ompi_cv_f90_int_kind_19" >&6; }
41785 OMPI_MPI_ADDRESS_KIND=$ompi_cv_f90_int_kind_19
41786 else
41787 OMPI_MPI_ADDRESS_KIND=0
41790 else
41791 { { echo "$as_me:$LINENO: error: Cannot support Fortran MPI_ADDRESS_KIND!" >&5
41792 echo "$as_me: error: Cannot support Fortran MPI_ADDRESS_KIND!" >&2;}
41793 { (exit 1); exit 1; }; }
41797 # get kind value for Fortran MPI_OFFSET_KIND (corresponding to INTEGER*8)
41801 if test "$OMPI_WANT_F90_BINDINGS" -eq 1 ; then
41802 { echo "$as_me:$LINENO: checking Fortran 90 kind of MPI_OFFSET_KIND (selected_int_kind(18))" >&5
41803 echo $ECHO_N "checking Fortran 90 kind of MPI_OFFSET_KIND (selected_int_kind(18))... $ECHO_C" >&6; }
41804 if test "${ompi_cv_f90_int_kind_18+set}" = set; then
41805 echo $ECHO_N "(cached) $ECHO_C" >&6
41806 else
41807 cat > conftestf.f90 <<EOF
41808 program f90findintkind
41809 open(8, file="conftestval")
41810 write(8, fmt="(I5)") selected_int_kind(18)
41811 close(8)
41812 end program
41815 # Try to compile
41817 # 1 is the command
41818 # 2 is actions to do if success
41819 # 3 is actions to do if fail
41820 echo "configure:41820: $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS" >&5
41821 $FC $FCFLAGS $FCFLAGS_f90 -o conftest conftestf.f90 $LDFLAGS $LIBS 1>&5 2>&1
41822 ompi_status=$?
41824 # 1 is the message
41825 # 2 is whether to put a prefix or not
41826 if test -n "1"; then
41827 echo "configure:41827: \$? = $ompi_status" >&5
41828 else
41829 echo \$? = $ompi_status >&5
41831 if test "$ompi_status" = "0"; then
41832 unset ompi_status
41833 happy="yes"
41834 else
41835 unset ompi_status
41836 happy="no"
41839 if test "$happy" = "no"; then
41841 # 1 is the message
41842 # 2 is whether to put a prefix or not
41843 if test -n "1"; then
41844 echo "configure:41844: here is the fortran 90 program:" >&5
41845 else
41846 echo here is the fortran 90 program: >&5
41849 # 1 is the filename
41850 if test -n "conftestf.f90" -a -f "conftestf.f90"; then
41851 cat conftestf.f90 >&5
41853 { echo "$as_me:$LINENO: WARNING: Could not kind of selected_int_kind(MPI_OFFSET_KIND)" >&5
41854 echo "$as_me: WARNING: Could not kind of selected_int_kind(MPI_OFFSET_KIND)" >&2;}
41855 { echo "$as_me:$LINENO: WARNING: See config.log for details" >&5
41856 echo "$as_me: WARNING: See config.log for details" >&2;}
41857 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
41858 echo "$as_me: error: Cannot continue" >&2;}
41859 { (exit 1); exit 1; }; }
41862 if test "$cross_compiling" = "yes"; then
41863 { { echo "$as_me:$LINENO: error: Can not determine kind of selected_int_kind(MPI_OFFSET_KIND) when cross-compiling" >&5
41864 echo "$as_me: error: Can not determine kind of selected_int_kind(MPI_OFFSET_KIND) when cross-compiling" >&2;}
41865 { (exit 1); exit 1; }; }
41866 else
41868 # 1 is the command
41869 # 2 is actions to do if success
41870 # 3 is actions to do if fail
41871 echo "configure:41871: ./conftest" >&5
41872 ./conftest 1>&5 2>&1
41873 ompi_status=$?
41875 # 1 is the message
41876 # 2 is whether to put a prefix or not
41877 if test -n "1"; then
41878 echo "configure:41878: \$? = $ompi_status" >&5
41879 else
41880 echo \$? = $ompi_status >&5
41882 if test "$ompi_status" = "0"; then
41883 unset ompi_status
41884 ompi_cv_f90_int_kind_18=`sed 's/ *//' conftestval`
41885 else
41886 unset ompi_status
41887 { { echo "$as_me:$LINENO: error: Could not determine kind of selected_int_kind(MPI_OFFSET_KIND)" >&5
41888 echo "$as_me: error: Could not determine kind of selected_int_kind(MPI_OFFSET_KIND)" >&2;}
41889 { (exit 1); exit 1; }; }
41894 unset happy ompi_conftest_h
41895 rm -f conftest*
41897 { echo "$as_me:$LINENO: result: $ompi_cv_f90_int_kind_18" >&5
41898 echo "${ECHO_T}$ompi_cv_f90_int_kind_18" >&6; }
41900 OMPI_MPI_OFFSET_KIND=$ompi_cv_f90_int_kind_18
41901 else
41902 OMPI_MPI_OFFSET_KIND=0
41907 # checkpoint results
41908 cat >confcache <<\_ACEOF
41909 # This file is a shell script that caches the results of configure
41910 # tests run on this system so they can be shared between configure
41911 # scripts and configure runs, see configure's option --config-cache.
41912 # It is not useful on other systems. If it contains results you don't
41913 # want to keep, you may remove or edit it.
41915 # config.status only pays attention to the cache file if you give it
41916 # the --recheck option to rerun configure.
41918 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41919 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41920 # following values.
41922 _ACEOF
41924 # The following way of writing the cache mishandles newlines in values,
41925 # but we know of no workaround that is simple, portable, and efficient.
41926 # So, we kill variables containing newlines.
41927 # Ultrix sh set writes to stderr and can't be redirected directly,
41928 # and sets the high bit in the cache file unless we assign to the vars.
41930 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41931 eval ac_val=\$$ac_var
41932 case $ac_val in #(
41933 *${as_nl}*)
41934 case $ac_var in #(
41935 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41936 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41937 esac
41938 case $ac_var in #(
41939 _ | IFS | as_nl) ;; #(
41940 *) $as_unset $ac_var ;;
41941 esac ;;
41942 esac
41943 done
41945 (set) 2>&1 |
41946 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41947 *${as_nl}ac_space=\ *)
41948 # `set' does not quote correctly, so add quotes (double-quote
41949 # substitution turns \\\\ into \\, and sed turns \\ into \).
41950 sed -n \
41951 "s/'/'\\\\''/g;
41952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41953 ;; #(
41955 # `set' quotes correctly as required by POSIX, so do not add quotes.
41956 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41958 esac |
41959 sort
41961 sed '
41962 /^ac_cv_env_/b end
41963 t clear
41964 :clear
41965 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41966 t end
41967 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41968 :end' >>confcache
41969 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41970 if test -w "$cache_file"; then
41971 test "x$cache_file" != "x/dev/null" &&
41972 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41973 echo "$as_me: updating cache $cache_file" >&6;}
41974 cat confcache >$cache_file
41975 else
41976 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41977 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41980 rm -f confcache
41982 ##################################
41983 # Header files
41984 ##################################
41986 ompi_show_title "Header file tests"
42038 for ac_header in alloca.h aio.h arpa/inet.h dirent.h \
42039 dlfcn.h execinfo.h err.h fcntl.h grp.h inttypes.h libgen.h \
42040 libutil.h netdb.h netinet/in.h netinet/tcp.h \
42041 poll.h pthread.h pty.h pwd.h sched.h stdint.h \
42042 string.h strings.h stropts.h sys/fcntl.h sys/ipc.h \
42043 sys/ioctl.h sys/mman.h sys/param.h sys/queue.h \
42044 sys/resource.h sys/select.h sys/socket.h sys/sockio.h \
42045 sys/stat.h sys/statvfs.h sys/time.h sys/tree.h \
42046 sys/types.h sys/uio.h sys/utsname.h sys/wait.h syslog.h \
42047 time.h termios.h ulimit.h unistd.h util.h utmp.h malloc.h
42049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42054 echo $ECHO_N "(cached) $ECHO_C" >&6
42056 ac_res=`eval echo '${'$as_ac_Header'}'`
42057 { echo "$as_me:$LINENO: result: $ac_res" >&5
42058 echo "${ECHO_T}$ac_res" >&6; }
42059 else
42060 # Is the header compilable?
42061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
42062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
42063 cat >conftest.$ac_ext <<_ACEOF
42064 /* confdefs.h. */
42065 _ACEOF
42066 cat confdefs.h >>conftest.$ac_ext
42067 cat >>conftest.$ac_ext <<_ACEOF
42068 /* end confdefs.h. */
42069 $ac_includes_default
42070 #include <$ac_header>
42071 _ACEOF
42072 rm -f conftest.$ac_objext
42073 if { (ac_try="$ac_compile"
42074 case "(($ac_try" in
42075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42076 *) ac_try_echo=$ac_try;;
42077 esac
42078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42079 (eval "$ac_compile") 2>conftest.er1
42080 ac_status=$?
42081 grep -v '^ *+' conftest.er1 >conftest.err
42082 rm -f conftest.er1
42083 cat conftest.err >&5
42084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42085 (exit $ac_status); } && {
42086 test -z "$ac_c_werror_flag" ||
42087 test ! -s conftest.err
42088 } && test -s conftest.$ac_objext; then
42089 ac_header_compiler=yes
42090 else
42091 echo "$as_me: failed program was:" >&5
42092 sed 's/^/| /' conftest.$ac_ext >&5
42094 ac_header_compiler=no
42097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42099 echo "${ECHO_T}$ac_header_compiler" >&6; }
42101 # Is the header present?
42102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
42103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
42104 cat >conftest.$ac_ext <<_ACEOF
42105 /* confdefs.h. */
42106 _ACEOF
42107 cat confdefs.h >>conftest.$ac_ext
42108 cat >>conftest.$ac_ext <<_ACEOF
42109 /* end confdefs.h. */
42110 #include <$ac_header>
42111 _ACEOF
42112 if { (ac_try="$ac_cpp conftest.$ac_ext"
42113 case "(($ac_try" in
42114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42115 *) ac_try_echo=$ac_try;;
42116 esac
42117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42119 ac_status=$?
42120 grep -v '^ *+' conftest.er1 >conftest.err
42121 rm -f conftest.er1
42122 cat conftest.err >&5
42123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42124 (exit $ac_status); } >/dev/null && {
42125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42126 test ! -s conftest.err
42127 }; then
42128 ac_header_preproc=yes
42129 else
42130 echo "$as_me: failed program was:" >&5
42131 sed 's/^/| /' conftest.$ac_ext >&5
42133 ac_header_preproc=no
42136 rm -f conftest.err conftest.$ac_ext
42137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42138 echo "${ECHO_T}$ac_header_preproc" >&6; }
42140 # So? What about this header?
42141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42142 yes:no: )
42143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42147 ac_header_preproc=yes
42149 no:yes:* )
42150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42162 ( cat <<\_ASBOX
42163 ## ------------------------------------------------------ ##
42164 ## Report this to http://www.open-mpi.org/community/help/ ##
42165 ## ------------------------------------------------------ ##
42166 _ASBOX
42167 ) | sed "s/^/$as_me: WARNING: /" >&2
42169 esac
42170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42173 echo $ECHO_N "(cached) $ECHO_C" >&6
42174 else
42175 eval "$as_ac_Header=\$ac_header_preproc"
42177 ac_res=`eval echo '${'$as_ac_Header'}'`
42178 { echo "$as_me:$LINENO: result: $ac_res" >&5
42179 echo "${ECHO_T}$ac_res" >&6; }
42182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42183 cat >>confdefs.h <<_ACEOF
42184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42185 _ACEOF
42189 done
42192 # Needed to work around Darwin requiring sys/socket.h for
42193 # net/if.h
42195 for ac_header in net/if.h
42197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42201 echo $ECHO_N "(cached) $ECHO_C" >&6
42202 else
42203 cat >conftest.$ac_ext <<_ACEOF
42204 /* confdefs.h. */
42205 _ACEOF
42206 cat confdefs.h >>conftest.$ac_ext
42207 cat >>conftest.$ac_ext <<_ACEOF
42208 /* end confdefs.h. */
42209 #include <stdio.h>
42210 #if STDC_HEADERS
42211 # include <stdlib.h>
42212 # include <stddef.h>
42213 #else
42214 # if HAVE_STDLIB_H
42215 # include <stdlib.h>
42216 # endif
42217 #endif
42218 #if HAVE_SYS_SOCKET_H
42219 # include <sys/socket.h>
42220 #endif
42223 #include <$ac_header>
42224 _ACEOF
42225 rm -f conftest.$ac_objext
42226 if { (ac_try="$ac_compile"
42227 case "(($ac_try" in
42228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42229 *) ac_try_echo=$ac_try;;
42230 esac
42231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42232 (eval "$ac_compile") 2>conftest.er1
42233 ac_status=$?
42234 grep -v '^ *+' conftest.er1 >conftest.err
42235 rm -f conftest.er1
42236 cat conftest.err >&5
42237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42238 (exit $ac_status); } && {
42239 test -z "$ac_c_werror_flag" ||
42240 test ! -s conftest.err
42241 } && test -s conftest.$ac_objext; then
42242 eval "$as_ac_Header=yes"
42243 else
42244 echo "$as_me: failed program was:" >&5
42245 sed 's/^/| /' conftest.$ac_ext >&5
42247 eval "$as_ac_Header=no"
42250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42252 ac_res=`eval echo '${'$as_ac_Header'}'`
42253 { echo "$as_me:$LINENO: result: $ac_res" >&5
42254 echo "${ECHO_T}$ac_res" >&6; }
42255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42256 cat >>confdefs.h <<_ACEOF
42257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42258 _ACEOF
42262 done
42265 # Note that sometimes we have <stdbool.h>, but it doesn't work (e.g.,
42266 # have both Portland and GNU installed; using pgcc will find GNU's
42267 # <stdbool.h>, which all it does -- by standard -- is define "bool" to
42268 # "_Bool" [see
42269 # http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html],
42270 # and Portland has no idea what to do with _Bool).
42272 # So first figure out if we have <stdbool.h> (i.e., check the value of
42273 # the macro HAVE_STDBOOL_H from the result of AC_CHECK_HEADERS,
42274 # above). If we do have it, then check to see if it actually works.
42275 # Define OMPI_USE_STDBOOL_H as approrpaite.
42277 for ac_header in stdbool.h
42279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42284 echo $ECHO_N "(cached) $ECHO_C" >&6
42286 ac_res=`eval echo '${'$as_ac_Header'}'`
42287 { echo "$as_me:$LINENO: result: $ac_res" >&5
42288 echo "${ECHO_T}$ac_res" >&6; }
42289 else
42290 # Is the header compilable?
42291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
42292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
42293 cat >conftest.$ac_ext <<_ACEOF
42294 /* confdefs.h. */
42295 _ACEOF
42296 cat confdefs.h >>conftest.$ac_ext
42297 cat >>conftest.$ac_ext <<_ACEOF
42298 /* end confdefs.h. */
42299 $ac_includes_default
42300 #include <$ac_header>
42301 _ACEOF
42302 rm -f conftest.$ac_objext
42303 if { (ac_try="$ac_compile"
42304 case "(($ac_try" in
42305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42306 *) ac_try_echo=$ac_try;;
42307 esac
42308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42309 (eval "$ac_compile") 2>conftest.er1
42310 ac_status=$?
42311 grep -v '^ *+' conftest.er1 >conftest.err
42312 rm -f conftest.er1
42313 cat conftest.err >&5
42314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42315 (exit $ac_status); } && {
42316 test -z "$ac_c_werror_flag" ||
42317 test ! -s conftest.err
42318 } && test -s conftest.$ac_objext; then
42319 ac_header_compiler=yes
42320 else
42321 echo "$as_me: failed program was:" >&5
42322 sed 's/^/| /' conftest.$ac_ext >&5
42324 ac_header_compiler=no
42327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42329 echo "${ECHO_T}$ac_header_compiler" >&6; }
42331 # Is the header present?
42332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
42333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
42334 cat >conftest.$ac_ext <<_ACEOF
42335 /* confdefs.h. */
42336 _ACEOF
42337 cat confdefs.h >>conftest.$ac_ext
42338 cat >>conftest.$ac_ext <<_ACEOF
42339 /* end confdefs.h. */
42340 #include <$ac_header>
42341 _ACEOF
42342 if { (ac_try="$ac_cpp conftest.$ac_ext"
42343 case "(($ac_try" in
42344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42345 *) ac_try_echo=$ac_try;;
42346 esac
42347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42349 ac_status=$?
42350 grep -v '^ *+' conftest.er1 >conftest.err
42351 rm -f conftest.er1
42352 cat conftest.err >&5
42353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42354 (exit $ac_status); } >/dev/null && {
42355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42356 test ! -s conftest.err
42357 }; then
42358 ac_header_preproc=yes
42359 else
42360 echo "$as_me: failed program was:" >&5
42361 sed 's/^/| /' conftest.$ac_ext >&5
42363 ac_header_preproc=no
42366 rm -f conftest.err conftest.$ac_ext
42367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42368 echo "${ECHO_T}$ac_header_preproc" >&6; }
42370 # So? What about this header?
42371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42372 yes:no: )
42373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42377 ac_header_preproc=yes
42379 no:yes:* )
42380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42392 ( cat <<\_ASBOX
42393 ## ------------------------------------------------------ ##
42394 ## Report this to http://www.open-mpi.org/community/help/ ##
42395 ## ------------------------------------------------------ ##
42396 _ASBOX
42397 ) | sed "s/^/$as_me: WARNING: /" >&2
42399 esac
42400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42403 echo $ECHO_N "(cached) $ECHO_C" >&6
42404 else
42405 eval "$as_ac_Header=\$ac_header_preproc"
42407 ac_res=`eval echo '${'$as_ac_Header'}'`
42408 { echo "$as_me:$LINENO: result: $ac_res" >&5
42409 echo "${ECHO_T}$ac_res" >&6; }
42412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42413 cat >>confdefs.h <<_ACEOF
42414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42415 _ACEOF
42416 have_stdbool_h=1
42417 else
42418 have_stdbool_h=0
42421 done
42423 { echo "$as_me:$LINENO: checking if <stdbool.h> works" >&5
42424 echo $ECHO_N "checking if <stdbool.h> works... $ECHO_C" >&6; }
42425 if test "$have_stdbool_h" = "1"; then
42426 cat >conftest.$ac_ext <<_ACEOF
42427 /* confdefs.h. */
42428 _ACEOF
42429 cat confdefs.h >>conftest.$ac_ext
42430 cat >>conftest.$ac_ext <<_ACEOF
42431 /* end confdefs.h. */
42433 $ac_includes_default
42434 #if HAVE_STDBOOL_H
42435 #include <stdbool.h>
42436 #endif
42438 main ()
42440 bool bar, foo = true; bar = foo;
42442 return 0;
42444 _ACEOF
42445 rm -f conftest.$ac_objext
42446 if { (ac_try="$ac_compile"
42447 case "(($ac_try" in
42448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42449 *) ac_try_echo=$ac_try;;
42450 esac
42451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42452 (eval "$ac_compile") 2>conftest.er1
42453 ac_status=$?
42454 grep -v '^ *+' conftest.er1 >conftest.err
42455 rm -f conftest.er1
42456 cat conftest.err >&5
42457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42458 (exit $ac_status); } && {
42459 test -z "$ac_c_werror_flag" ||
42460 test ! -s conftest.err
42461 } && test -s conftest.$ac_objext; then
42462 OMPI_USE_STDBOOL_H=1 MSG=yes
42463 else
42464 echo "$as_me: failed program was:" >&5
42465 sed 's/^/| /' conftest.$ac_ext >&5
42467 OMPI_USE_STDBOOL_H=0 MSG=no
42470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42471 else
42472 OMPI_USE_STDBOOL_H=0
42473 MSG="no (don't have <stdbool.h>)"
42476 cat >>confdefs.h <<_ACEOF
42477 #define OMPI_USE_STDBOOL_H $OMPI_USE_STDBOOL_H
42478 _ACEOF
42480 { echo "$as_me:$LINENO: result: $MSG" >&5
42481 echo "${ECHO_T}$MSG" >&6; }
42483 # checkpoint results
42484 cat >confcache <<\_ACEOF
42485 # This file is a shell script that caches the results of configure
42486 # tests run on this system so they can be shared between configure
42487 # scripts and configure runs, see configure's option --config-cache.
42488 # It is not useful on other systems. If it contains results you don't
42489 # want to keep, you may remove or edit it.
42491 # config.status only pays attention to the cache file if you give it
42492 # the --recheck option to rerun configure.
42494 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42495 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42496 # following values.
42498 _ACEOF
42500 # The following way of writing the cache mishandles newlines in values,
42501 # but we know of no workaround that is simple, portable, and efficient.
42502 # So, we kill variables containing newlines.
42503 # Ultrix sh set writes to stderr and can't be redirected directly,
42504 # and sets the high bit in the cache file unless we assign to the vars.
42506 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42507 eval ac_val=\$$ac_var
42508 case $ac_val in #(
42509 *${as_nl}*)
42510 case $ac_var in #(
42511 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42512 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42513 esac
42514 case $ac_var in #(
42515 _ | IFS | as_nl) ;; #(
42516 *) $as_unset $ac_var ;;
42517 esac ;;
42518 esac
42519 done
42521 (set) 2>&1 |
42522 case $as_nl`(ac_space=' '; set) 2>&1` in #(
42523 *${as_nl}ac_space=\ *)
42524 # `set' does not quote correctly, so add quotes (double-quote
42525 # substitution turns \\\\ into \\, and sed turns \\ into \).
42526 sed -n \
42527 "s/'/'\\\\''/g;
42528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42529 ;; #(
42531 # `set' quotes correctly as required by POSIX, so do not add quotes.
42532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42534 esac |
42535 sort
42537 sed '
42538 /^ac_cv_env_/b end
42539 t clear
42540 :clear
42541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42542 t end
42543 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42544 :end' >>confcache
42545 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42546 if test -w "$cache_file"; then
42547 test "x$cache_file" != "x/dev/null" &&
42548 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42549 echo "$as_me: updating cache $cache_file" >&6;}
42550 cat confcache >$cache_file
42551 else
42552 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42553 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42556 rm -f confcache
42559 ##################################
42560 # Types
42561 ##################################
42563 ompi_show_title "Type tests"
42565 # Size of pid_t
42566 { echo "$as_me:$LINENO: checking for pid_t" >&5
42567 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
42568 if test "${ac_cv_type_pid_t+set}" = set; then
42569 echo $ECHO_N "(cached) $ECHO_C" >&6
42570 else
42571 cat >conftest.$ac_ext <<_ACEOF
42572 /* confdefs.h. */
42573 _ACEOF
42574 cat confdefs.h >>conftest.$ac_ext
42575 cat >>conftest.$ac_ext <<_ACEOF
42576 /* end confdefs.h. */
42577 $ac_includes_default
42578 typedef pid_t ac__type_new_;
42580 main ()
42582 if ((ac__type_new_ *) 0)
42583 return 0;
42584 if (sizeof (ac__type_new_))
42585 return 0;
42587 return 0;
42589 _ACEOF
42590 rm -f conftest.$ac_objext
42591 if { (ac_try="$ac_compile"
42592 case "(($ac_try" in
42593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42594 *) ac_try_echo=$ac_try;;
42595 esac
42596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42597 (eval "$ac_compile") 2>conftest.er1
42598 ac_status=$?
42599 grep -v '^ *+' conftest.er1 >conftest.err
42600 rm -f conftest.er1
42601 cat conftest.err >&5
42602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42603 (exit $ac_status); } && {
42604 test -z "$ac_c_werror_flag" ||
42605 test ! -s conftest.err
42606 } && test -s conftest.$ac_objext; then
42607 ac_cv_type_pid_t=yes
42608 else
42609 echo "$as_me: failed program was:" >&5
42610 sed 's/^/| /' conftest.$ac_ext >&5
42612 ac_cv_type_pid_t=no
42615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42617 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
42618 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
42620 # The cast to long int works around a bug in the HP C Compiler
42621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
42622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
42623 # This bug is HP SR number 8606223364.
42624 { echo "$as_me:$LINENO: checking size of pid_t" >&5
42625 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
42626 if test "${ac_cv_sizeof_pid_t+set}" = set; then
42627 echo $ECHO_N "(cached) $ECHO_C" >&6
42628 else
42629 if test "$cross_compiling" = yes; then
42630 # Depending upon the size, compute the lo and hi bounds.
42631 cat >conftest.$ac_ext <<_ACEOF
42632 /* confdefs.h. */
42633 _ACEOF
42634 cat confdefs.h >>conftest.$ac_ext
42635 cat >>conftest.$ac_ext <<_ACEOF
42636 /* end confdefs.h. */
42637 $ac_includes_default
42638 typedef pid_t ac__type_sizeof_;
42640 main ()
42642 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
42643 test_array [0] = 0
42646 return 0;
42648 _ACEOF
42649 rm -f conftest.$ac_objext
42650 if { (ac_try="$ac_compile"
42651 case "(($ac_try" in
42652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42653 *) ac_try_echo=$ac_try;;
42654 esac
42655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42656 (eval "$ac_compile") 2>conftest.er1
42657 ac_status=$?
42658 grep -v '^ *+' conftest.er1 >conftest.err
42659 rm -f conftest.er1
42660 cat conftest.err >&5
42661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42662 (exit $ac_status); } && {
42663 test -z "$ac_c_werror_flag" ||
42664 test ! -s conftest.err
42665 } && test -s conftest.$ac_objext; then
42666 ac_lo=0 ac_mid=0
42667 while :; do
42668 cat >conftest.$ac_ext <<_ACEOF
42669 /* confdefs.h. */
42670 _ACEOF
42671 cat confdefs.h >>conftest.$ac_ext
42672 cat >>conftest.$ac_ext <<_ACEOF
42673 /* end confdefs.h. */
42674 $ac_includes_default
42675 typedef pid_t ac__type_sizeof_;
42677 main ()
42679 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
42680 test_array [0] = 0
42683 return 0;
42685 _ACEOF
42686 rm -f conftest.$ac_objext
42687 if { (ac_try="$ac_compile"
42688 case "(($ac_try" in
42689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42690 *) ac_try_echo=$ac_try;;
42691 esac
42692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42693 (eval "$ac_compile") 2>conftest.er1
42694 ac_status=$?
42695 grep -v '^ *+' conftest.er1 >conftest.err
42696 rm -f conftest.er1
42697 cat conftest.err >&5
42698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42699 (exit $ac_status); } && {
42700 test -z "$ac_c_werror_flag" ||
42701 test ! -s conftest.err
42702 } && test -s conftest.$ac_objext; then
42703 ac_hi=$ac_mid; break
42704 else
42705 echo "$as_me: failed program was:" >&5
42706 sed 's/^/| /' conftest.$ac_ext >&5
42708 ac_lo=`expr $ac_mid + 1`
42709 if test $ac_lo -le $ac_mid; then
42710 ac_lo= ac_hi=
42711 break
42713 ac_mid=`expr 2 '*' $ac_mid + 1`
42716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42717 done
42718 else
42719 echo "$as_me: failed program was:" >&5
42720 sed 's/^/| /' conftest.$ac_ext >&5
42722 cat >conftest.$ac_ext <<_ACEOF
42723 /* confdefs.h. */
42724 _ACEOF
42725 cat confdefs.h >>conftest.$ac_ext
42726 cat >>conftest.$ac_ext <<_ACEOF
42727 /* end confdefs.h. */
42728 $ac_includes_default
42729 typedef pid_t ac__type_sizeof_;
42731 main ()
42733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
42734 test_array [0] = 0
42737 return 0;
42739 _ACEOF
42740 rm -f conftest.$ac_objext
42741 if { (ac_try="$ac_compile"
42742 case "(($ac_try" in
42743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42744 *) ac_try_echo=$ac_try;;
42745 esac
42746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42747 (eval "$ac_compile") 2>conftest.er1
42748 ac_status=$?
42749 grep -v '^ *+' conftest.er1 >conftest.err
42750 rm -f conftest.er1
42751 cat conftest.err >&5
42752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753 (exit $ac_status); } && {
42754 test -z "$ac_c_werror_flag" ||
42755 test ! -s conftest.err
42756 } && test -s conftest.$ac_objext; then
42757 ac_hi=-1 ac_mid=-1
42758 while :; do
42759 cat >conftest.$ac_ext <<_ACEOF
42760 /* confdefs.h. */
42761 _ACEOF
42762 cat confdefs.h >>conftest.$ac_ext
42763 cat >>conftest.$ac_ext <<_ACEOF
42764 /* end confdefs.h. */
42765 $ac_includes_default
42766 typedef pid_t ac__type_sizeof_;
42768 main ()
42770 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
42771 test_array [0] = 0
42774 return 0;
42776 _ACEOF
42777 rm -f conftest.$ac_objext
42778 if { (ac_try="$ac_compile"
42779 case "(($ac_try" in
42780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42781 *) ac_try_echo=$ac_try;;
42782 esac
42783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42784 (eval "$ac_compile") 2>conftest.er1
42785 ac_status=$?
42786 grep -v '^ *+' conftest.er1 >conftest.err
42787 rm -f conftest.er1
42788 cat conftest.err >&5
42789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42790 (exit $ac_status); } && {
42791 test -z "$ac_c_werror_flag" ||
42792 test ! -s conftest.err
42793 } && test -s conftest.$ac_objext; then
42794 ac_lo=$ac_mid; break
42795 else
42796 echo "$as_me: failed program was:" >&5
42797 sed 's/^/| /' conftest.$ac_ext >&5
42799 ac_hi=`expr '(' $ac_mid ')' - 1`
42800 if test $ac_mid -le $ac_hi; then
42801 ac_lo= ac_hi=
42802 break
42804 ac_mid=`expr 2 '*' $ac_mid`
42807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42808 done
42809 else
42810 echo "$as_me: failed program was:" >&5
42811 sed 's/^/| /' conftest.$ac_ext >&5
42813 ac_lo= ac_hi=
42816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42820 # Binary search between lo and hi bounds.
42821 while test "x$ac_lo" != "x$ac_hi"; do
42822 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42823 cat >conftest.$ac_ext <<_ACEOF
42824 /* confdefs.h. */
42825 _ACEOF
42826 cat confdefs.h >>conftest.$ac_ext
42827 cat >>conftest.$ac_ext <<_ACEOF
42828 /* end confdefs.h. */
42829 $ac_includes_default
42830 typedef pid_t ac__type_sizeof_;
42832 main ()
42834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
42835 test_array [0] = 0
42838 return 0;
42840 _ACEOF
42841 rm -f conftest.$ac_objext
42842 if { (ac_try="$ac_compile"
42843 case "(($ac_try" in
42844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42845 *) ac_try_echo=$ac_try;;
42846 esac
42847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42848 (eval "$ac_compile") 2>conftest.er1
42849 ac_status=$?
42850 grep -v '^ *+' conftest.er1 >conftest.err
42851 rm -f conftest.er1
42852 cat conftest.err >&5
42853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42854 (exit $ac_status); } && {
42855 test -z "$ac_c_werror_flag" ||
42856 test ! -s conftest.err
42857 } && test -s conftest.$ac_objext; then
42858 ac_hi=$ac_mid
42859 else
42860 echo "$as_me: failed program was:" >&5
42861 sed 's/^/| /' conftest.$ac_ext >&5
42863 ac_lo=`expr '(' $ac_mid ')' + 1`
42866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42867 done
42868 case $ac_lo in
42869 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
42870 '') if test "$ac_cv_type_pid_t" = yes; then
42871 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
42872 See \`config.log' for more details." >&5
42873 echo "$as_me: error: cannot compute sizeof (pid_t)
42874 See \`config.log' for more details." >&2;}
42875 { (exit 77); exit 77; }; }
42876 else
42877 ac_cv_sizeof_pid_t=0
42878 fi ;;
42879 esac
42880 else
42881 cat >conftest.$ac_ext <<_ACEOF
42882 /* confdefs.h. */
42883 _ACEOF
42884 cat confdefs.h >>conftest.$ac_ext
42885 cat >>conftest.$ac_ext <<_ACEOF
42886 /* end confdefs.h. */
42887 $ac_includes_default
42888 typedef pid_t ac__type_sizeof_;
42889 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
42890 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
42891 #include <stdio.h>
42892 #include <stdlib.h>
42894 main ()
42897 FILE *f = fopen ("conftest.val", "w");
42898 if (! f)
42899 return 1;
42900 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
42902 long int i = longval ();
42903 if (i != ((long int) (sizeof (ac__type_sizeof_))))
42904 return 1;
42905 fprintf (f, "%ld\n", i);
42907 else
42909 unsigned long int i = ulongval ();
42910 if (i != ((long int) (sizeof (ac__type_sizeof_))))
42911 return 1;
42912 fprintf (f, "%lu\n", i);
42914 return ferror (f) || fclose (f) != 0;
42917 return 0;
42919 _ACEOF
42920 rm -f conftest$ac_exeext
42921 if { (ac_try="$ac_link"
42922 case "(($ac_try" in
42923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42924 *) ac_try_echo=$ac_try;;
42925 esac
42926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42927 (eval "$ac_link") 2>&5
42928 ac_status=$?
42929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42931 { (case "(($ac_try" in
42932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42933 *) ac_try_echo=$ac_try;;
42934 esac
42935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42936 (eval "$ac_try") 2>&5
42937 ac_status=$?
42938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42939 (exit $ac_status); }; }; then
42940 ac_cv_sizeof_pid_t=`cat conftest.val`
42941 else
42942 echo "$as_me: program exited with status $ac_status" >&5
42943 echo "$as_me: failed program was:" >&5
42944 sed 's/^/| /' conftest.$ac_ext >&5
42946 ( exit $ac_status )
42947 if test "$ac_cv_type_pid_t" = yes; then
42948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
42949 See \`config.log' for more details." >&5
42950 echo "$as_me: error: cannot compute sizeof (pid_t)
42951 See \`config.log' for more details." >&2;}
42952 { (exit 77); exit 77; }; }
42953 else
42954 ac_cv_sizeof_pid_t=0
42957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42959 rm -f conftest.val
42961 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
42962 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
42966 cat >>confdefs.h <<_ACEOF
42967 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
42968 _ACEOF
42972 { echo "$as_me:$LINENO: checking for socklen_t" >&5
42973 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
42974 if test "${ac_cv_type_socklen_t+set}" = set; then
42975 echo $ECHO_N "(cached) $ECHO_C" >&6
42976 else
42977 cat >conftest.$ac_ext <<_ACEOF
42978 /* confdefs.h. */
42979 _ACEOF
42980 cat confdefs.h >>conftest.$ac_ext
42981 cat >>conftest.$ac_ext <<_ACEOF
42982 /* end confdefs.h. */
42983 $ac_includes_default
42984 #include <sys/socket.h>
42986 typedef socklen_t ac__type_new_;
42988 main ()
42990 if ((ac__type_new_ *) 0)
42991 return 0;
42992 if (sizeof (ac__type_new_))
42993 return 0;
42995 return 0;
42997 _ACEOF
42998 rm -f conftest.$ac_objext
42999 if { (ac_try="$ac_compile"
43000 case "(($ac_try" in
43001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43002 *) ac_try_echo=$ac_try;;
43003 esac
43004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43005 (eval "$ac_compile") 2>conftest.er1
43006 ac_status=$?
43007 grep -v '^ *+' conftest.er1 >conftest.err
43008 rm -f conftest.er1
43009 cat conftest.err >&5
43010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43011 (exit $ac_status); } && {
43012 test -z "$ac_c_werror_flag" ||
43013 test ! -s conftest.err
43014 } && test -s conftest.$ac_objext; then
43015 ac_cv_type_socklen_t=yes
43016 else
43017 echo "$as_me: failed program was:" >&5
43018 sed 's/^/| /' conftest.$ac_ext >&5
43020 ac_cv_type_socklen_t=no
43023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43025 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
43026 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
43027 if test $ac_cv_type_socklen_t = yes; then
43029 cat >>confdefs.h <<_ACEOF
43030 #define HAVE_SOCKLEN_T 1
43031 _ACEOF
43034 cat >>confdefs.h <<\_ACEOF
43035 #define HAVE_SOCKLEN_T 1
43036 _ACEOF
43041 { echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5
43042 echo $ECHO_N "checking for struct sockaddr_in... $ECHO_C" >&6; }
43043 if test "${ac_cv_type_struct_sockaddr_in+set}" = set; then
43044 echo $ECHO_N "(cached) $ECHO_C" >&6
43045 else
43046 cat >conftest.$ac_ext <<_ACEOF
43047 /* confdefs.h. */
43048 _ACEOF
43049 cat confdefs.h >>conftest.$ac_ext
43050 cat >>conftest.$ac_ext <<_ACEOF
43051 /* end confdefs.h. */
43052 $ac_includes_default
43053 #ifdef HAVE_NETINET_IN_H
43054 #include <netinet/in.h>
43055 #endif
43057 typedef struct sockaddr_in ac__type_new_;
43059 main ()
43061 if ((ac__type_new_ *) 0)
43062 return 0;
43063 if (sizeof (ac__type_new_))
43064 return 0;
43066 return 0;
43068 _ACEOF
43069 rm -f conftest.$ac_objext
43070 if { (ac_try="$ac_compile"
43071 case "(($ac_try" in
43072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43073 *) ac_try_echo=$ac_try;;
43074 esac
43075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43076 (eval "$ac_compile") 2>conftest.er1
43077 ac_status=$?
43078 grep -v '^ *+' conftest.er1 >conftest.err
43079 rm -f conftest.er1
43080 cat conftest.err >&5
43081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43082 (exit $ac_status); } && {
43083 test -z "$ac_c_werror_flag" ||
43084 test ! -s conftest.err
43085 } && test -s conftest.$ac_objext; then
43086 ac_cv_type_struct_sockaddr_in=yes
43087 else
43088 echo "$as_me: failed program was:" >&5
43089 sed 's/^/| /' conftest.$ac_ext >&5
43091 ac_cv_type_struct_sockaddr_in=no
43094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43096 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5
43097 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in" >&6; }
43098 if test $ac_cv_type_struct_sockaddr_in = yes; then
43100 cat >>confdefs.h <<_ACEOF
43101 #define HAVE_STRUCT_SOCKADDR_IN 1
43102 _ACEOF
43108 # SA_RESTART in signal.h
43109 { echo "$as_me:$LINENO: checking if SA_RESTART defined in signal.h" >&5
43110 echo $ECHO_N "checking if SA_RESTART defined in signal.h... $ECHO_C" >&6; }
43111 cat >conftest.$ac_ext <<_ACEOF
43112 /* confdefs.h. */
43113 _ACEOF
43114 cat confdefs.h >>conftest.$ac_ext
43115 cat >>conftest.$ac_ext <<_ACEOF
43116 /* end confdefs.h. */
43118 #include <signal.h>
43119 #ifdef SA_RESTART
43121 #endif
43122 _ACEOF
43123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43124 $EGREP "yes" >/dev/null 2>&1; then
43125 MSG=yes VALUE=1
43126 else
43127 MSG=no VALUE=0
43129 rm -f conftest*
43132 cat >>confdefs.h <<_ACEOF
43133 #define OMPI_HAVE_SA_RESTART $VALUE
43134 _ACEOF
43136 { echo "$as_me:$LINENO: result: $MSG" >&5
43137 echo "${ECHO_T}$MSG" >&6; }
43139 # sa_len in struct sockaddr
43140 { echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
43141 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6; }
43142 cat >conftest.$ac_ext <<_ACEOF
43143 /* confdefs.h. */
43144 _ACEOF
43145 cat confdefs.h >>conftest.$ac_ext
43146 cat >>conftest.$ac_ext <<_ACEOF
43147 /* end confdefs.h. */
43148 #include <sys/types.h>
43149 #include <sys/socket.h>
43151 main ()
43153 struct sockaddr s; s.sa_len;
43155 return 0;
43157 _ACEOF
43158 rm -f conftest.$ac_objext
43159 if { (ac_try="$ac_compile"
43160 case "(($ac_try" in
43161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43162 *) ac_try_echo=$ac_try;;
43163 esac
43164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43165 (eval "$ac_compile") 2>conftest.er1
43166 ac_status=$?
43167 grep -v '^ *+' conftest.er1 >conftest.err
43168 rm -f conftest.er1
43169 cat conftest.err >&5
43170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43171 (exit $ac_status); } && {
43172 test -z "$ac_c_werror_flag" ||
43173 test ! -s conftest.err
43174 } && test -s conftest.$ac_objext; then
43175 MSG=yes VALUE=1
43176 else
43177 echo "$as_me: failed program was:" >&5
43178 sed 's/^/| /' conftest.$ac_ext >&5
43180 MSG=no VALUE=0
43183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43185 cat >>confdefs.h <<_ACEOF
43186 #define OMPI_HAVE_SA_LEN $VALUE
43187 _ACEOF
43189 { echo "$as_me:$LINENO: result: $MSG" >&5
43190 echo "${ECHO_T}$MSG" >&6; }
43192 { echo "$as_me:$LINENO: checking for struct dirent.d_type" >&5
43193 echo $ECHO_N "checking for struct dirent.d_type... $ECHO_C" >&6; }
43194 if test "${ac_cv_member_struct_dirent_d_type+set}" = set; then
43195 echo $ECHO_N "(cached) $ECHO_C" >&6
43196 else
43197 cat >conftest.$ac_ext <<_ACEOF
43198 /* confdefs.h. */
43199 _ACEOF
43200 cat confdefs.h >>conftest.$ac_ext
43201 cat >>conftest.$ac_ext <<_ACEOF
43202 /* end confdefs.h. */
43204 #include <sys/types.h>
43205 #include <dirent.h>
43208 main ()
43210 static struct dirent ac_aggr;
43211 if (ac_aggr.d_type)
43212 return 0;
43214 return 0;
43216 _ACEOF
43217 rm -f conftest.$ac_objext
43218 if { (ac_try="$ac_compile"
43219 case "(($ac_try" in
43220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43221 *) ac_try_echo=$ac_try;;
43222 esac
43223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43224 (eval "$ac_compile") 2>conftest.er1
43225 ac_status=$?
43226 grep -v '^ *+' conftest.er1 >conftest.err
43227 rm -f conftest.er1
43228 cat conftest.err >&5
43229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43230 (exit $ac_status); } && {
43231 test -z "$ac_c_werror_flag" ||
43232 test ! -s conftest.err
43233 } && test -s conftest.$ac_objext; then
43234 ac_cv_member_struct_dirent_d_type=yes
43235 else
43236 echo "$as_me: failed program was:" >&5
43237 sed 's/^/| /' conftest.$ac_ext >&5
43239 cat >conftest.$ac_ext <<_ACEOF
43240 /* confdefs.h. */
43241 _ACEOF
43242 cat confdefs.h >>conftest.$ac_ext
43243 cat >>conftest.$ac_ext <<_ACEOF
43244 /* end confdefs.h. */
43246 #include <sys/types.h>
43247 #include <dirent.h>
43250 main ()
43252 static struct dirent ac_aggr;
43253 if (sizeof ac_aggr.d_type)
43254 return 0;
43256 return 0;
43258 _ACEOF
43259 rm -f conftest.$ac_objext
43260 if { (ac_try="$ac_compile"
43261 case "(($ac_try" in
43262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43263 *) ac_try_echo=$ac_try;;
43264 esac
43265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43266 (eval "$ac_compile") 2>conftest.er1
43267 ac_status=$?
43268 grep -v '^ *+' conftest.er1 >conftest.err
43269 rm -f conftest.er1
43270 cat conftest.err >&5
43271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43272 (exit $ac_status); } && {
43273 test -z "$ac_c_werror_flag" ||
43274 test ! -s conftest.err
43275 } && test -s conftest.$ac_objext; then
43276 ac_cv_member_struct_dirent_d_type=yes
43277 else
43278 echo "$as_me: failed program was:" >&5
43279 sed 's/^/| /' conftest.$ac_ext >&5
43281 ac_cv_member_struct_dirent_d_type=no
43284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43289 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_type" >&5
43290 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_type" >&6; }
43291 if test $ac_cv_member_struct_dirent_d_type = yes; then
43293 cat >>confdefs.h <<_ACEOF
43294 #define HAVE_STRUCT_DIRENT_D_TYPE 1
43295 _ACEOF
43301 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
43302 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
43303 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
43304 echo $ECHO_N "(cached) $ECHO_C" >&6
43305 else
43306 cat >conftest.$ac_ext <<_ACEOF
43307 /* confdefs.h. */
43308 _ACEOF
43309 cat confdefs.h >>conftest.$ac_ext
43310 cat >>conftest.$ac_ext <<_ACEOF
43311 /* end confdefs.h. */
43312 #include <signal.h>
43315 main ()
43317 static siginfo_t ac_aggr;
43318 if (ac_aggr.si_fd)
43319 return 0;
43321 return 0;
43323 _ACEOF
43324 rm -f conftest.$ac_objext
43325 if { (ac_try="$ac_compile"
43326 case "(($ac_try" in
43327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43328 *) ac_try_echo=$ac_try;;
43329 esac
43330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43331 (eval "$ac_compile") 2>conftest.er1
43332 ac_status=$?
43333 grep -v '^ *+' conftest.er1 >conftest.err
43334 rm -f conftest.er1
43335 cat conftest.err >&5
43336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43337 (exit $ac_status); } && {
43338 test -z "$ac_c_werror_flag" ||
43339 test ! -s conftest.err
43340 } && test -s conftest.$ac_objext; then
43341 ac_cv_member_siginfo_t_si_fd=yes
43342 else
43343 echo "$as_me: failed program was:" >&5
43344 sed 's/^/| /' conftest.$ac_ext >&5
43346 cat >conftest.$ac_ext <<_ACEOF
43347 /* confdefs.h. */
43348 _ACEOF
43349 cat confdefs.h >>conftest.$ac_ext
43350 cat >>conftest.$ac_ext <<_ACEOF
43351 /* end confdefs.h. */
43352 #include <signal.h>
43355 main ()
43357 static siginfo_t ac_aggr;
43358 if (sizeof ac_aggr.si_fd)
43359 return 0;
43361 return 0;
43363 _ACEOF
43364 rm -f conftest.$ac_objext
43365 if { (ac_try="$ac_compile"
43366 case "(($ac_try" in
43367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43368 *) ac_try_echo=$ac_try;;
43369 esac
43370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43371 (eval "$ac_compile") 2>conftest.er1
43372 ac_status=$?
43373 grep -v '^ *+' conftest.er1 >conftest.err
43374 rm -f conftest.er1
43375 cat conftest.err >&5
43376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43377 (exit $ac_status); } && {
43378 test -z "$ac_c_werror_flag" ||
43379 test ! -s conftest.err
43380 } && test -s conftest.$ac_objext; then
43381 ac_cv_member_siginfo_t_si_fd=yes
43382 else
43383 echo "$as_me: failed program was:" >&5
43384 sed 's/^/| /' conftest.$ac_ext >&5
43386 ac_cv_member_siginfo_t_si_fd=no
43389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43394 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
43395 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
43396 if test $ac_cv_member_siginfo_t_si_fd = yes; then
43398 cat >>confdefs.h <<_ACEOF
43399 #define HAVE_SIGINFO_T_SI_FD 1
43400 _ACEOF
43405 { echo "$as_me:$LINENO: checking for siginfo_t.si_band" >&5
43406 echo $ECHO_N "checking for siginfo_t.si_band... $ECHO_C" >&6; }
43407 if test "${ac_cv_member_siginfo_t_si_band+set}" = set; then
43408 echo $ECHO_N "(cached) $ECHO_C" >&6
43409 else
43410 cat >conftest.$ac_ext <<_ACEOF
43411 /* confdefs.h. */
43412 _ACEOF
43413 cat confdefs.h >>conftest.$ac_ext
43414 cat >>conftest.$ac_ext <<_ACEOF
43415 /* end confdefs.h. */
43416 #include <signal.h>
43419 main ()
43421 static siginfo_t ac_aggr;
43422 if (ac_aggr.si_band)
43423 return 0;
43425 return 0;
43427 _ACEOF
43428 rm -f conftest.$ac_objext
43429 if { (ac_try="$ac_compile"
43430 case "(($ac_try" in
43431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43432 *) ac_try_echo=$ac_try;;
43433 esac
43434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43435 (eval "$ac_compile") 2>conftest.er1
43436 ac_status=$?
43437 grep -v '^ *+' conftest.er1 >conftest.err
43438 rm -f conftest.er1
43439 cat conftest.err >&5
43440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43441 (exit $ac_status); } && {
43442 test -z "$ac_c_werror_flag" ||
43443 test ! -s conftest.err
43444 } && test -s conftest.$ac_objext; then
43445 ac_cv_member_siginfo_t_si_band=yes
43446 else
43447 echo "$as_me: failed program was:" >&5
43448 sed 's/^/| /' conftest.$ac_ext >&5
43450 cat >conftest.$ac_ext <<_ACEOF
43451 /* confdefs.h. */
43452 _ACEOF
43453 cat confdefs.h >>conftest.$ac_ext
43454 cat >>conftest.$ac_ext <<_ACEOF
43455 /* end confdefs.h. */
43456 #include <signal.h>
43459 main ()
43461 static siginfo_t ac_aggr;
43462 if (sizeof ac_aggr.si_band)
43463 return 0;
43465 return 0;
43467 _ACEOF
43468 rm -f conftest.$ac_objext
43469 if { (ac_try="$ac_compile"
43470 case "(($ac_try" in
43471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43472 *) ac_try_echo=$ac_try;;
43473 esac
43474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43475 (eval "$ac_compile") 2>conftest.er1
43476 ac_status=$?
43477 grep -v '^ *+' conftest.er1 >conftest.err
43478 rm -f conftest.er1
43479 cat conftest.err >&5
43480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43481 (exit $ac_status); } && {
43482 test -z "$ac_c_werror_flag" ||
43483 test ! -s conftest.err
43484 } && test -s conftest.$ac_objext; then
43485 ac_cv_member_siginfo_t_si_band=yes
43486 else
43487 echo "$as_me: failed program was:" >&5
43488 sed 's/^/| /' conftest.$ac_ext >&5
43490 ac_cv_member_siginfo_t_si_band=no
43493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43498 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_band" >&5
43499 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_band" >&6; }
43500 if test $ac_cv_member_siginfo_t_si_band = yes; then
43502 cat >>confdefs.h <<_ACEOF
43503 #define HAVE_SIGINFO_T_SI_BAND 1
43504 _ACEOF
43511 # checkpoint results
43512 cat >confcache <<\_ACEOF
43513 # This file is a shell script that caches the results of configure
43514 # tests run on this system so they can be shared between configure
43515 # scripts and configure runs, see configure's option --config-cache.
43516 # It is not useful on other systems. If it contains results you don't
43517 # want to keep, you may remove or edit it.
43519 # config.status only pays attention to the cache file if you give it
43520 # the --recheck option to rerun configure.
43522 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43523 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43524 # following values.
43526 _ACEOF
43528 # The following way of writing the cache mishandles newlines in values,
43529 # but we know of no workaround that is simple, portable, and efficient.
43530 # So, we kill variables containing newlines.
43531 # Ultrix sh set writes to stderr and can't be redirected directly,
43532 # and sets the high bit in the cache file unless we assign to the vars.
43534 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43535 eval ac_val=\$$ac_var
43536 case $ac_val in #(
43537 *${as_nl}*)
43538 case $ac_var in #(
43539 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
43540 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
43541 esac
43542 case $ac_var in #(
43543 _ | IFS | as_nl) ;; #(
43544 *) $as_unset $ac_var ;;
43545 esac ;;
43546 esac
43547 done
43549 (set) 2>&1 |
43550 case $as_nl`(ac_space=' '; set) 2>&1` in #(
43551 *${as_nl}ac_space=\ *)
43552 # `set' does not quote correctly, so add quotes (double-quote
43553 # substitution turns \\\\ into \\, and sed turns \\ into \).
43554 sed -n \
43555 "s/'/'\\\\''/g;
43556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43557 ;; #(
43559 # `set' quotes correctly as required by POSIX, so do not add quotes.
43560 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43562 esac |
43563 sort
43565 sed '
43566 /^ac_cv_env_/b end
43567 t clear
43568 :clear
43569 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43570 t end
43571 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43572 :end' >>confcache
43573 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43574 if test -w "$cache_file"; then
43575 test "x$cache_file" != "x/dev/null" &&
43576 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
43577 echo "$as_me: updating cache $cache_file" >&6;}
43578 cat confcache >$cache_file
43579 else
43580 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43581 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43584 rm -f confcache
43587 ##################################
43588 # Libraries
43589 ##################################
43591 ompi_show_title "Library and Function tests"
43594 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
43595 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
43596 if test "${ac_cv_lib_util_openpty+set}" = set; then
43597 echo $ECHO_N "(cached) $ECHO_C" >&6
43598 else
43599 ac_check_lib_save_LIBS=$LIBS
43600 LIBS="-lutil $LIBS"
43601 cat >conftest.$ac_ext <<_ACEOF
43602 /* confdefs.h. */
43603 _ACEOF
43604 cat confdefs.h >>conftest.$ac_ext
43605 cat >>conftest.$ac_ext <<_ACEOF
43606 /* end confdefs.h. */
43608 /* Override any GCC internal prototype to avoid an error.
43609 Use char because int might match the return type of a GCC
43610 builtin and then its argument prototype would still apply. */
43611 #ifdef __cplusplus
43612 extern "C"
43613 #endif
43614 char openpty ();
43616 main ()
43618 return openpty ();
43620 return 0;
43622 _ACEOF
43623 rm -f conftest.$ac_objext conftest$ac_exeext
43624 if { (ac_try="$ac_link"
43625 case "(($ac_try" in
43626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43627 *) ac_try_echo=$ac_try;;
43628 esac
43629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43630 (eval "$ac_link") 2>conftest.er1
43631 ac_status=$?
43632 grep -v '^ *+' conftest.er1 >conftest.err
43633 rm -f conftest.er1
43634 cat conftest.err >&5
43635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43636 (exit $ac_status); } && {
43637 test -z "$ac_c_werror_flag" ||
43638 test ! -s conftest.err
43639 } && test -s conftest$ac_exeext &&
43640 $as_test_x conftest$ac_exeext; then
43641 ac_cv_lib_util_openpty=yes
43642 else
43643 echo "$as_me: failed program was:" >&5
43644 sed 's/^/| /' conftest.$ac_ext >&5
43646 ac_cv_lib_util_openpty=no
43649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43650 conftest$ac_exeext conftest.$ac_ext
43651 LIBS=$ac_check_lib_save_LIBS
43653 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
43654 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
43655 if test $ac_cv_lib_util_openpty = yes; then
43656 cat >>confdefs.h <<_ACEOF
43657 #define HAVE_LIBUTIL 1
43658 _ACEOF
43660 LIBS="-lutil $LIBS"
43666 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
43667 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
43668 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
43669 echo $ECHO_N "(cached) $ECHO_C" >&6
43670 else
43671 ac_check_lib_save_LIBS=$LIBS
43672 LIBS="-lnsl $LIBS"
43673 cat >conftest.$ac_ext <<_ACEOF
43674 /* confdefs.h. */
43675 _ACEOF
43676 cat confdefs.h >>conftest.$ac_ext
43677 cat >>conftest.$ac_ext <<_ACEOF
43678 /* end confdefs.h. */
43680 /* Override any GCC internal prototype to avoid an error.
43681 Use char because int might match the return type of a GCC
43682 builtin and then its argument prototype would still apply. */
43683 #ifdef __cplusplus
43684 extern "C"
43685 #endif
43686 char gethostbyname ();
43688 main ()
43690 return gethostbyname ();
43692 return 0;
43694 _ACEOF
43695 rm -f conftest.$ac_objext conftest$ac_exeext
43696 if { (ac_try="$ac_link"
43697 case "(($ac_try" in
43698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43699 *) ac_try_echo=$ac_try;;
43700 esac
43701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43702 (eval "$ac_link") 2>conftest.er1
43703 ac_status=$?
43704 grep -v '^ *+' conftest.er1 >conftest.err
43705 rm -f conftest.er1
43706 cat conftest.err >&5
43707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43708 (exit $ac_status); } && {
43709 test -z "$ac_c_werror_flag" ||
43710 test ! -s conftest.err
43711 } && test -s conftest$ac_exeext &&
43712 $as_test_x conftest$ac_exeext; then
43713 ac_cv_lib_nsl_gethostbyname=yes
43714 else
43715 echo "$as_me: failed program was:" >&5
43716 sed 's/^/| /' conftest.$ac_ext >&5
43718 ac_cv_lib_nsl_gethostbyname=no
43721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43722 conftest$ac_exeext conftest.$ac_ext
43723 LIBS=$ac_check_lib_save_LIBS
43725 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
43726 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
43727 if test $ac_cv_lib_nsl_gethostbyname = yes; then
43728 cat >>confdefs.h <<_ACEOF
43729 #define HAVE_LIBNSL 1
43730 _ACEOF
43732 LIBS="-lnsl $LIBS"
43738 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43739 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
43740 if test "${ac_cv_lib_socket_socket+set}" = set; then
43741 echo $ECHO_N "(cached) $ECHO_C" >&6
43742 else
43743 ac_check_lib_save_LIBS=$LIBS
43744 LIBS="-lsocket $LIBS"
43745 cat >conftest.$ac_ext <<_ACEOF
43746 /* confdefs.h. */
43747 _ACEOF
43748 cat confdefs.h >>conftest.$ac_ext
43749 cat >>conftest.$ac_ext <<_ACEOF
43750 /* end confdefs.h. */
43752 /* Override any GCC internal prototype to avoid an error.
43753 Use char because int might match the return type of a GCC
43754 builtin and then its argument prototype would still apply. */
43755 #ifdef __cplusplus
43756 extern "C"
43757 #endif
43758 char socket ();
43760 main ()
43762 return socket ();
43764 return 0;
43766 _ACEOF
43767 rm -f conftest.$ac_objext conftest$ac_exeext
43768 if { (ac_try="$ac_link"
43769 case "(($ac_try" in
43770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43771 *) ac_try_echo=$ac_try;;
43772 esac
43773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43774 (eval "$ac_link") 2>conftest.er1
43775 ac_status=$?
43776 grep -v '^ *+' conftest.er1 >conftest.err
43777 rm -f conftest.er1
43778 cat conftest.err >&5
43779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43780 (exit $ac_status); } && {
43781 test -z "$ac_c_werror_flag" ||
43782 test ! -s conftest.err
43783 } && test -s conftest$ac_exeext &&
43784 $as_test_x conftest$ac_exeext; then
43785 ac_cv_lib_socket_socket=yes
43786 else
43787 echo "$as_me: failed program was:" >&5
43788 sed 's/^/| /' conftest.$ac_ext >&5
43790 ac_cv_lib_socket_socket=no
43793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43794 conftest$ac_exeext conftest.$ac_ext
43795 LIBS=$ac_check_lib_save_LIBS
43797 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43798 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
43799 if test $ac_cv_lib_socket_socket = yes; then
43800 cat >>confdefs.h <<_ACEOF
43801 #define HAVE_LIBSOCKET 1
43802 _ACEOF
43804 LIBS="-lsocket $LIBS"
43809 # Solaris has sched_yeild in -lrt, usually in libc
43811 { echo "$as_me:$LINENO: checking if we need -lrt for sched_yield" >&5
43812 echo $ECHO_N "checking if we need -lrt for sched_yield... $ECHO_C" >&6; }
43813 if test "${ompi_cv_func_lib_sched_yield_rt+set}" = set; then
43814 echo $ECHO_N "(cached) $ECHO_C" >&6
43815 else
43816 cat >conftest.$ac_ext <<_ACEOF
43817 /* confdefs.h. */
43818 _ACEOF
43819 cat confdefs.h >>conftest.$ac_ext
43820 cat >>conftest.$ac_ext <<_ACEOF
43821 /* end confdefs.h. */
43822 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
43823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43824 #define sched_yield innocuous_sched_yield
43826 /* System header to define __stub macros and hopefully few prototypes,
43827 which can conflict with char sched_yield (); below.
43828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43829 <limits.h> exists even on freestanding compilers. */
43831 #ifdef __STDC__
43832 # include <limits.h>
43833 #else
43834 # include <assert.h>
43835 #endif
43837 #undef sched_yield
43839 /* Override any GCC internal prototype to avoid an error.
43840 Use char because int might match the return type of a GCC
43841 builtin and then its argument prototype would still apply. */
43842 #ifdef __cplusplus
43843 extern "C"
43844 #endif
43845 char sched_yield ();
43846 /* The GNU C library defines this for functions which it implements
43847 to always fail with ENOSYS. Some functions are actually named
43848 something starting with __ and the normal name is an alias. */
43849 #if defined __stub_sched_yield || defined __stub___sched_yield
43850 choke me
43851 #endif
43854 main ()
43856 return sched_yield ();
43858 return 0;
43860 _ACEOF
43861 rm -f conftest.$ac_objext conftest$ac_exeext
43862 if { (ac_try="$ac_link"
43863 case "(($ac_try" in
43864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43865 *) ac_try_echo=$ac_try;;
43866 esac
43867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43868 (eval "$ac_link") 2>conftest.er1
43869 ac_status=$?
43870 grep -v '^ *+' conftest.er1 >conftest.err
43871 rm -f conftest.er1
43872 cat conftest.err >&5
43873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43874 (exit $ac_status); } && {
43875 test -z "$ac_c_werror_flag" ||
43876 test ! -s conftest.err
43877 } && test -s conftest$ac_exeext &&
43878 $as_test_x conftest$ac_exeext; then
43879 ompi_cv_func_lib_sched_yield_rt="no"
43880 else
43881 echo "$as_me: failed program was:" >&5
43882 sed 's/^/| /' conftest.$ac_ext >&5
43884 LIBS_save="$LIBS"
43885 LIBS="$LIBS -lrt"
43886 cat >conftest.$ac_ext <<_ACEOF
43887 /* confdefs.h. */
43888 _ACEOF
43889 cat confdefs.h >>conftest.$ac_ext
43890 cat >>conftest.$ac_ext <<_ACEOF
43891 /* end confdefs.h. */
43892 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
43893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43894 #define sched_yield innocuous_sched_yield
43896 /* System header to define __stub macros and hopefully few prototypes,
43897 which can conflict with char sched_yield (); below.
43898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43899 <limits.h> exists even on freestanding compilers. */
43901 #ifdef __STDC__
43902 # include <limits.h>
43903 #else
43904 # include <assert.h>
43905 #endif
43907 #undef sched_yield
43909 /* Override any GCC internal prototype to avoid an error.
43910 Use char because int might match the return type of a GCC
43911 builtin and then its argument prototype would still apply. */
43912 #ifdef __cplusplus
43913 extern "C"
43914 #endif
43915 char sched_yield ();
43916 /* The GNU C library defines this for functions which it implements
43917 to always fail with ENOSYS. Some functions are actually named
43918 something starting with __ and the normal name is an alias. */
43919 #if defined __stub_sched_yield || defined __stub___sched_yield
43920 choke me
43921 #endif
43924 main ()
43926 return sched_yield ();
43928 return 0;
43930 _ACEOF
43931 rm -f conftest.$ac_objext conftest$ac_exeext
43932 if { (ac_try="$ac_link"
43933 case "(($ac_try" in
43934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43935 *) ac_try_echo=$ac_try;;
43936 esac
43937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43938 (eval "$ac_link") 2>conftest.er1
43939 ac_status=$?
43940 grep -v '^ *+' conftest.er1 >conftest.err
43941 rm -f conftest.er1
43942 cat conftest.err >&5
43943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43944 (exit $ac_status); } && {
43945 test -z "$ac_c_werror_flag" ||
43946 test ! -s conftest.err
43947 } && test -s conftest$ac_exeext &&
43948 $as_test_x conftest$ac_exeext; then
43949 ompi_cv_func_lib_sched_yield_rt="yes"
43950 else
43951 echo "$as_me: failed program was:" >&5
43952 sed 's/^/| /' conftest.$ac_ext >&5
43954 ompi_cv_func_lib_sched_yield_rt="not found"
43957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43958 conftest$ac_exeext conftest.$ac_ext
43959 LIBS="$LIBS_save"
43962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43963 conftest$ac_exeext conftest.$ac_ext
43965 { echo "$as_me:$LINENO: result: $ompi_cv_func_lib_sched_yield_rt" >&5
43966 echo "${ECHO_T}$ompi_cv_func_lib_sched_yield_rt" >&6; }
43967 if test "$ompi_cv_func_lib_sched_yield_rt" = "yes"; then
43968 LIBS="$LIBS -lrt"
43972 # see if we actually have sched_yield. Use AC_CHECK_FUNCS so that it
43973 # does the glibc "not implemented" check. Will use the current LIBS,
43974 # so will check in -lrt if we decided we needed it above
43976 for ac_func in sched_yield
43978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43982 echo $ECHO_N "(cached) $ECHO_C" >&6
43983 else
43984 cat >conftest.$ac_ext <<_ACEOF
43985 /* confdefs.h. */
43986 _ACEOF
43987 cat confdefs.h >>conftest.$ac_ext
43988 cat >>conftest.$ac_ext <<_ACEOF
43989 /* end confdefs.h. */
43990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43992 #define $ac_func innocuous_$ac_func
43994 /* System header to define __stub macros and hopefully few prototypes,
43995 which can conflict with char $ac_func (); below.
43996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43997 <limits.h> exists even on freestanding compilers. */
43999 #ifdef __STDC__
44000 # include <limits.h>
44001 #else
44002 # include <assert.h>
44003 #endif
44005 #undef $ac_func
44007 /* Override any GCC internal prototype to avoid an error.
44008 Use char because int might match the return type of a GCC
44009 builtin and then its argument prototype would still apply. */
44010 #ifdef __cplusplus
44011 extern "C"
44012 #endif
44013 char $ac_func ();
44014 /* The GNU C library defines this for functions which it implements
44015 to always fail with ENOSYS. Some functions are actually named
44016 something starting with __ and the normal name is an alias. */
44017 #if defined __stub_$ac_func || defined __stub___$ac_func
44018 choke me
44019 #endif
44022 main ()
44024 return $ac_func ();
44026 return 0;
44028 _ACEOF
44029 rm -f conftest.$ac_objext conftest$ac_exeext
44030 if { (ac_try="$ac_link"
44031 case "(($ac_try" in
44032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44033 *) ac_try_echo=$ac_try;;
44034 esac
44035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44036 (eval "$ac_link") 2>conftest.er1
44037 ac_status=$?
44038 grep -v '^ *+' conftest.er1 >conftest.err
44039 rm -f conftest.er1
44040 cat conftest.err >&5
44041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44042 (exit $ac_status); } && {
44043 test -z "$ac_c_werror_flag" ||
44044 test ! -s conftest.err
44045 } && test -s conftest$ac_exeext &&
44046 $as_test_x conftest$ac_exeext; then
44047 eval "$as_ac_var=yes"
44048 else
44049 echo "$as_me: failed program was:" >&5
44050 sed 's/^/| /' conftest.$ac_ext >&5
44052 eval "$as_ac_var=no"
44055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44056 conftest$ac_exeext conftest.$ac_ext
44058 ac_res=`eval echo '${'$as_ac_var'}'`
44059 { echo "$as_me:$LINENO: result: $ac_res" >&5
44060 echo "${ECHO_T}$ac_res" >&6; }
44061 if test `eval echo '${'$as_ac_var'}'` = yes; then
44062 cat >>confdefs.h <<_ACEOF
44063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44064 _ACEOF
44067 done
44071 # FreeBSD has backtrace in -lexecinfo, usually in libc
44073 { echo "$as_me:$LINENO: checking if we need -lexecinfo for backtrace" >&5
44074 echo $ECHO_N "checking if we need -lexecinfo for backtrace... $ECHO_C" >&6; }
44075 if test "${ompi_cv_func_lib_backtrace_execinfo+set}" = set; then
44076 echo $ECHO_N "(cached) $ECHO_C" >&6
44077 else
44078 cat >conftest.$ac_ext <<_ACEOF
44079 /* confdefs.h. */
44080 _ACEOF
44081 cat confdefs.h >>conftest.$ac_ext
44082 cat >>conftest.$ac_ext <<_ACEOF
44083 /* end confdefs.h. */
44084 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
44085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44086 #define backtrace innocuous_backtrace
44088 /* System header to define __stub macros and hopefully few prototypes,
44089 which can conflict with char backtrace (); below.
44090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44091 <limits.h> exists even on freestanding compilers. */
44093 #ifdef __STDC__
44094 # include <limits.h>
44095 #else
44096 # include <assert.h>
44097 #endif
44099 #undef backtrace
44101 /* Override any GCC internal prototype to avoid an error.
44102 Use char because int might match the return type of a GCC
44103 builtin and then its argument prototype would still apply. */
44104 #ifdef __cplusplus
44105 extern "C"
44106 #endif
44107 char backtrace ();
44108 /* The GNU C library defines this for functions which it implements
44109 to always fail with ENOSYS. Some functions are actually named
44110 something starting with __ and the normal name is an alias. */
44111 #if defined __stub_backtrace || defined __stub___backtrace
44112 choke me
44113 #endif
44116 main ()
44118 return backtrace ();
44120 return 0;
44122 _ACEOF
44123 rm -f conftest.$ac_objext conftest$ac_exeext
44124 if { (ac_try="$ac_link"
44125 case "(($ac_try" in
44126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44127 *) ac_try_echo=$ac_try;;
44128 esac
44129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44130 (eval "$ac_link") 2>conftest.er1
44131 ac_status=$?
44132 grep -v '^ *+' conftest.er1 >conftest.err
44133 rm -f conftest.er1
44134 cat conftest.err >&5
44135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44136 (exit $ac_status); } && {
44137 test -z "$ac_c_werror_flag" ||
44138 test ! -s conftest.err
44139 } && test -s conftest$ac_exeext &&
44140 $as_test_x conftest$ac_exeext; then
44141 ompi_cv_func_lib_backtrace_execinfo="no"
44142 else
44143 echo "$as_me: failed program was:" >&5
44144 sed 's/^/| /' conftest.$ac_ext >&5
44146 LIBS_save="$LIBS"
44147 LIBS="$LIBS -lexecinfo"
44148 cat >conftest.$ac_ext <<_ACEOF
44149 /* confdefs.h. */
44150 _ACEOF
44151 cat confdefs.h >>conftest.$ac_ext
44152 cat >>conftest.$ac_ext <<_ACEOF
44153 /* end confdefs.h. */
44154 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
44155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44156 #define backtrace innocuous_backtrace
44158 /* System header to define __stub macros and hopefully few prototypes,
44159 which can conflict with char backtrace (); below.
44160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44161 <limits.h> exists even on freestanding compilers. */
44163 #ifdef __STDC__
44164 # include <limits.h>
44165 #else
44166 # include <assert.h>
44167 #endif
44169 #undef backtrace
44171 /* Override any GCC internal prototype to avoid an error.
44172 Use char because int might match the return type of a GCC
44173 builtin and then its argument prototype would still apply. */
44174 #ifdef __cplusplus
44175 extern "C"
44176 #endif
44177 char backtrace ();
44178 /* The GNU C library defines this for functions which it implements
44179 to always fail with ENOSYS. Some functions are actually named
44180 something starting with __ and the normal name is an alias. */
44181 #if defined __stub_backtrace || defined __stub___backtrace
44182 choke me
44183 #endif
44186 main ()
44188 return backtrace ();
44190 return 0;
44192 _ACEOF
44193 rm -f conftest.$ac_objext conftest$ac_exeext
44194 if { (ac_try="$ac_link"
44195 case "(($ac_try" in
44196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44197 *) ac_try_echo=$ac_try;;
44198 esac
44199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44200 (eval "$ac_link") 2>conftest.er1
44201 ac_status=$?
44202 grep -v '^ *+' conftest.er1 >conftest.err
44203 rm -f conftest.er1
44204 cat conftest.err >&5
44205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44206 (exit $ac_status); } && {
44207 test -z "$ac_c_werror_flag" ||
44208 test ! -s conftest.err
44209 } && test -s conftest$ac_exeext &&
44210 $as_test_x conftest$ac_exeext; then
44211 ompi_cv_func_lib_backtrace_execinfo="yes"
44212 else
44213 echo "$as_me: failed program was:" >&5
44214 sed 's/^/| /' conftest.$ac_ext >&5
44216 ompi_cv_func_lib_backtrace_execinfo="not found"
44219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44220 conftest$ac_exeext conftest.$ac_ext
44221 LIBS="$LIBS_save"
44224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44225 conftest$ac_exeext conftest.$ac_ext
44227 { echo "$as_me:$LINENO: result: $ompi_cv_func_lib_backtrace_execinfo" >&5
44228 echo "${ECHO_T}$ompi_cv_func_lib_backtrace_execinfo" >&6; }
44229 if test "$ompi_cv_func_lib_backtrace_execinfo" = "yes"; then
44230 LIBS="$LIBS -lexecinfo"
44234 # see if we actually have backtrace. Use AC_CHECK_FUNCS so that it
44235 # does the glibc "not implemented" check. Will use the current LIBS,
44236 # so will check in -lexecinfo if we decided we needed it above
44238 for ac_func in backtrace
44240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44244 echo $ECHO_N "(cached) $ECHO_C" >&6
44245 else
44246 cat >conftest.$ac_ext <<_ACEOF
44247 /* confdefs.h. */
44248 _ACEOF
44249 cat confdefs.h >>conftest.$ac_ext
44250 cat >>conftest.$ac_ext <<_ACEOF
44251 /* end confdefs.h. */
44252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44254 #define $ac_func innocuous_$ac_func
44256 /* System header to define __stub macros and hopefully few prototypes,
44257 which can conflict with char $ac_func (); below.
44258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44259 <limits.h> exists even on freestanding compilers. */
44261 #ifdef __STDC__
44262 # include <limits.h>
44263 #else
44264 # include <assert.h>
44265 #endif
44267 #undef $ac_func
44269 /* Override any GCC internal prototype to avoid an error.
44270 Use char because int might match the return type of a GCC
44271 builtin and then its argument prototype would still apply. */
44272 #ifdef __cplusplus
44273 extern "C"
44274 #endif
44275 char $ac_func ();
44276 /* The GNU C library defines this for functions which it implements
44277 to always fail with ENOSYS. Some functions are actually named
44278 something starting with __ and the normal name is an alias. */
44279 #if defined __stub_$ac_func || defined __stub___$ac_func
44280 choke me
44281 #endif
44284 main ()
44286 return $ac_func ();
44288 return 0;
44290 _ACEOF
44291 rm -f conftest.$ac_objext conftest$ac_exeext
44292 if { (ac_try="$ac_link"
44293 case "(($ac_try" in
44294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44295 *) ac_try_echo=$ac_try;;
44296 esac
44297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44298 (eval "$ac_link") 2>conftest.er1
44299 ac_status=$?
44300 grep -v '^ *+' conftest.er1 >conftest.err
44301 rm -f conftest.er1
44302 cat conftest.err >&5
44303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44304 (exit $ac_status); } && {
44305 test -z "$ac_c_werror_flag" ||
44306 test ! -s conftest.err
44307 } && test -s conftest$ac_exeext &&
44308 $as_test_x conftest$ac_exeext; then
44309 eval "$as_ac_var=yes"
44310 else
44311 echo "$as_me: failed program was:" >&5
44312 sed 's/^/| /' conftest.$ac_ext >&5
44314 eval "$as_ac_var=no"
44317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44318 conftest$ac_exeext conftest.$ac_ext
44320 ac_res=`eval echo '${'$as_ac_var'}'`
44321 { echo "$as_me:$LINENO: result: $ac_res" >&5
44322 echo "${ECHO_T}$ac_res" >&6; }
44323 if test `eval echo '${'$as_ac_var'}'` = yes; then
44324 cat >>confdefs.h <<_ACEOF
44325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44326 _ACEOF
44329 done
44333 # IRIX has dirname in -lgen, usually in libc
44335 { echo "$as_me:$LINENO: checking if we need -lgen for dirname" >&5
44336 echo $ECHO_N "checking if we need -lgen for dirname... $ECHO_C" >&6; }
44337 if test "${ompi_cv_func_lib_dirname_gen+set}" = set; then
44338 echo $ECHO_N "(cached) $ECHO_C" >&6
44339 else
44340 cat >conftest.$ac_ext <<_ACEOF
44341 /* confdefs.h. */
44342 _ACEOF
44343 cat confdefs.h >>conftest.$ac_ext
44344 cat >>conftest.$ac_ext <<_ACEOF
44345 /* end confdefs.h. */
44346 /* Define dirname to an innocuous variant, in case <limits.h> declares dirname.
44347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44348 #define dirname innocuous_dirname
44350 /* System header to define __stub macros and hopefully few prototypes,
44351 which can conflict with char dirname (); below.
44352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44353 <limits.h> exists even on freestanding compilers. */
44355 #ifdef __STDC__
44356 # include <limits.h>
44357 #else
44358 # include <assert.h>
44359 #endif
44361 #undef dirname
44363 /* Override any GCC internal prototype to avoid an error.
44364 Use char because int might match the return type of a GCC
44365 builtin and then its argument prototype would still apply. */
44366 #ifdef __cplusplus
44367 extern "C"
44368 #endif
44369 char dirname ();
44370 /* The GNU C library defines this for functions which it implements
44371 to always fail with ENOSYS. Some functions are actually named
44372 something starting with __ and the normal name is an alias. */
44373 #if defined __stub_dirname || defined __stub___dirname
44374 choke me
44375 #endif
44378 main ()
44380 return dirname ();
44382 return 0;
44384 _ACEOF
44385 rm -f conftest.$ac_objext conftest$ac_exeext
44386 if { (ac_try="$ac_link"
44387 case "(($ac_try" in
44388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44389 *) ac_try_echo=$ac_try;;
44390 esac
44391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44392 (eval "$ac_link") 2>conftest.er1
44393 ac_status=$?
44394 grep -v '^ *+' conftest.er1 >conftest.err
44395 rm -f conftest.er1
44396 cat conftest.err >&5
44397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44398 (exit $ac_status); } && {
44399 test -z "$ac_c_werror_flag" ||
44400 test ! -s conftest.err
44401 } && test -s conftest$ac_exeext &&
44402 $as_test_x conftest$ac_exeext; then
44403 ompi_cv_func_lib_dirname_gen="no"
44404 else
44405 echo "$as_me: failed program was:" >&5
44406 sed 's/^/| /' conftest.$ac_ext >&5
44408 LIBS_save="$LIBS"
44409 LIBS="$LIBS -lgen"
44410 cat >conftest.$ac_ext <<_ACEOF
44411 /* confdefs.h. */
44412 _ACEOF
44413 cat confdefs.h >>conftest.$ac_ext
44414 cat >>conftest.$ac_ext <<_ACEOF
44415 /* end confdefs.h. */
44416 /* Define dirname to an innocuous variant, in case <limits.h> declares dirname.
44417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44418 #define dirname innocuous_dirname
44420 /* System header to define __stub macros and hopefully few prototypes,
44421 which can conflict with char dirname (); below.
44422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44423 <limits.h> exists even on freestanding compilers. */
44425 #ifdef __STDC__
44426 # include <limits.h>
44427 #else
44428 # include <assert.h>
44429 #endif
44431 #undef dirname
44433 /* Override any GCC internal prototype to avoid an error.
44434 Use char because int might match the return type of a GCC
44435 builtin and then its argument prototype would still apply. */
44436 #ifdef __cplusplus
44437 extern "C"
44438 #endif
44439 char dirname ();
44440 /* The GNU C library defines this for functions which it implements
44441 to always fail with ENOSYS. Some functions are actually named
44442 something starting with __ and the normal name is an alias. */
44443 #if defined __stub_dirname || defined __stub___dirname
44444 choke me
44445 #endif
44448 main ()
44450 return dirname ();
44452 return 0;
44454 _ACEOF
44455 rm -f conftest.$ac_objext conftest$ac_exeext
44456 if { (ac_try="$ac_link"
44457 case "(($ac_try" in
44458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44459 *) ac_try_echo=$ac_try;;
44460 esac
44461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44462 (eval "$ac_link") 2>conftest.er1
44463 ac_status=$?
44464 grep -v '^ *+' conftest.er1 >conftest.err
44465 rm -f conftest.er1
44466 cat conftest.err >&5
44467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44468 (exit $ac_status); } && {
44469 test -z "$ac_c_werror_flag" ||
44470 test ! -s conftest.err
44471 } && test -s conftest$ac_exeext &&
44472 $as_test_x conftest$ac_exeext; then
44473 ompi_cv_func_lib_dirname_gen="yes"
44474 else
44475 echo "$as_me: failed program was:" >&5
44476 sed 's/^/| /' conftest.$ac_ext >&5
44478 ompi_cv_func_lib_dirname_gen="not found"
44481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44482 conftest$ac_exeext conftest.$ac_ext
44483 LIBS="$LIBS_save"
44486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44487 conftest$ac_exeext conftest.$ac_ext
44489 { echo "$as_me:$LINENO: result: $ompi_cv_func_lib_dirname_gen" >&5
44490 echo "${ECHO_T}$ompi_cv_func_lib_dirname_gen" >&6; }
44491 if test "$ompi_cv_func_lib_dirname_gen" = "yes"; then
44492 LIBS="$LIBS -lgen"
44496 # see if we actually have dirname. Use AC_CHECK_FUNCS so that it
44497 # does the glibc "not implemented" check. Will use the current LIBS,
44498 # so will check in -lgen if we decided we needed it above
44500 for ac_func in dirname
44502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44506 echo $ECHO_N "(cached) $ECHO_C" >&6
44507 else
44508 cat >conftest.$ac_ext <<_ACEOF
44509 /* confdefs.h. */
44510 _ACEOF
44511 cat confdefs.h >>conftest.$ac_ext
44512 cat >>conftest.$ac_ext <<_ACEOF
44513 /* end confdefs.h. */
44514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44516 #define $ac_func innocuous_$ac_func
44518 /* System header to define __stub macros and hopefully few prototypes,
44519 which can conflict with char $ac_func (); below.
44520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44521 <limits.h> exists even on freestanding compilers. */
44523 #ifdef __STDC__
44524 # include <limits.h>
44525 #else
44526 # include <assert.h>
44527 #endif
44529 #undef $ac_func
44531 /* Override any GCC internal prototype to avoid an error.
44532 Use char because int might match the return type of a GCC
44533 builtin and then its argument prototype would still apply. */
44534 #ifdef __cplusplus
44535 extern "C"
44536 #endif
44537 char $ac_func ();
44538 /* The GNU C library defines this for functions which it implements
44539 to always fail with ENOSYS. Some functions are actually named
44540 something starting with __ and the normal name is an alias. */
44541 #if defined __stub_$ac_func || defined __stub___$ac_func
44542 choke me
44543 #endif
44546 main ()
44548 return $ac_func ();
44550 return 0;
44552 _ACEOF
44553 rm -f conftest.$ac_objext conftest$ac_exeext
44554 if { (ac_try="$ac_link"
44555 case "(($ac_try" in
44556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44557 *) ac_try_echo=$ac_try;;
44558 esac
44559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44560 (eval "$ac_link") 2>conftest.er1
44561 ac_status=$?
44562 grep -v '^ *+' conftest.er1 >conftest.err
44563 rm -f conftest.er1
44564 cat conftest.err >&5
44565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44566 (exit $ac_status); } && {
44567 test -z "$ac_c_werror_flag" ||
44568 test ! -s conftest.err
44569 } && test -s conftest$ac_exeext &&
44570 $as_test_x conftest$ac_exeext; then
44571 eval "$as_ac_var=yes"
44572 else
44573 echo "$as_me: failed program was:" >&5
44574 sed 's/^/| /' conftest.$ac_ext >&5
44576 eval "$as_ac_var=no"
44579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44580 conftest$ac_exeext conftest.$ac_ext
44582 ac_res=`eval echo '${'$as_ac_var'}'`
44583 { echo "$as_me:$LINENO: result: $ac_res" >&5
44584 echo "${ECHO_T}$ac_res" >&6; }
44585 if test `eval echo '${'$as_ac_var'}'` = yes; then
44586 cat >>confdefs.h <<_ACEOF
44587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44588 _ACEOF
44591 done
44595 # Darwin doesn't need -lm, as it's a symlink to libSystem.dylib
44597 { echo "$as_me:$LINENO: checking if we need -lm for ceil" >&5
44598 echo $ECHO_N "checking if we need -lm for ceil... $ECHO_C" >&6; }
44599 if test "${ompi_cv_func_lib_ceil_m+set}" = set; then
44600 echo $ECHO_N "(cached) $ECHO_C" >&6
44601 else
44602 cat >conftest.$ac_ext <<_ACEOF
44603 /* confdefs.h. */
44604 _ACEOF
44605 cat confdefs.h >>conftest.$ac_ext
44606 cat >>conftest.$ac_ext <<_ACEOF
44607 /* end confdefs.h. */
44608 /* Define ceil to an innocuous variant, in case <limits.h> declares ceil.
44609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44610 #define ceil innocuous_ceil
44612 /* System header to define __stub macros and hopefully few prototypes,
44613 which can conflict with char ceil (); below.
44614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44615 <limits.h> exists even on freestanding compilers. */
44617 #ifdef __STDC__
44618 # include <limits.h>
44619 #else
44620 # include <assert.h>
44621 #endif
44623 #undef ceil
44625 /* Override any GCC internal prototype to avoid an error.
44626 Use char because int might match the return type of a GCC
44627 builtin and then its argument prototype would still apply. */
44628 #ifdef __cplusplus
44629 extern "C"
44630 #endif
44631 char ceil ();
44632 /* The GNU C library defines this for functions which it implements
44633 to always fail with ENOSYS. Some functions are actually named
44634 something starting with __ and the normal name is an alias. */
44635 #if defined __stub_ceil || defined __stub___ceil
44636 choke me
44637 #endif
44640 main ()
44642 return ceil ();
44644 return 0;
44646 _ACEOF
44647 rm -f conftest.$ac_objext conftest$ac_exeext
44648 if { (ac_try="$ac_link"
44649 case "(($ac_try" in
44650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44651 *) ac_try_echo=$ac_try;;
44652 esac
44653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44654 (eval "$ac_link") 2>conftest.er1
44655 ac_status=$?
44656 grep -v '^ *+' conftest.er1 >conftest.err
44657 rm -f conftest.er1
44658 cat conftest.err >&5
44659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44660 (exit $ac_status); } && {
44661 test -z "$ac_c_werror_flag" ||
44662 test ! -s conftest.err
44663 } && test -s conftest$ac_exeext &&
44664 $as_test_x conftest$ac_exeext; then
44665 ompi_cv_func_lib_ceil_m="no"
44666 else
44667 echo "$as_me: failed program was:" >&5
44668 sed 's/^/| /' conftest.$ac_ext >&5
44670 LIBS_save="$LIBS"
44671 LIBS="$LIBS -lm"
44672 cat >conftest.$ac_ext <<_ACEOF
44673 /* confdefs.h. */
44674 _ACEOF
44675 cat confdefs.h >>conftest.$ac_ext
44676 cat >>conftest.$ac_ext <<_ACEOF
44677 /* end confdefs.h. */
44678 /* Define ceil to an innocuous variant, in case <limits.h> declares ceil.
44679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44680 #define ceil innocuous_ceil
44682 /* System header to define __stub macros and hopefully few prototypes,
44683 which can conflict with char ceil (); below.
44684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44685 <limits.h> exists even on freestanding compilers. */
44687 #ifdef __STDC__
44688 # include <limits.h>
44689 #else
44690 # include <assert.h>
44691 #endif
44693 #undef ceil
44695 /* Override any GCC internal prototype to avoid an error.
44696 Use char because int might match the return type of a GCC
44697 builtin and then its argument prototype would still apply. */
44698 #ifdef __cplusplus
44699 extern "C"
44700 #endif
44701 char ceil ();
44702 /* The GNU C library defines this for functions which it implements
44703 to always fail with ENOSYS. Some functions are actually named
44704 something starting with __ and the normal name is an alias. */
44705 #if defined __stub_ceil || defined __stub___ceil
44706 choke me
44707 #endif
44710 main ()
44712 return ceil ();
44714 return 0;
44716 _ACEOF
44717 rm -f conftest.$ac_objext conftest$ac_exeext
44718 if { (ac_try="$ac_link"
44719 case "(($ac_try" in
44720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44721 *) ac_try_echo=$ac_try;;
44722 esac
44723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44724 (eval "$ac_link") 2>conftest.er1
44725 ac_status=$?
44726 grep -v '^ *+' conftest.er1 >conftest.err
44727 rm -f conftest.er1
44728 cat conftest.err >&5
44729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44730 (exit $ac_status); } && {
44731 test -z "$ac_c_werror_flag" ||
44732 test ! -s conftest.err
44733 } && test -s conftest$ac_exeext &&
44734 $as_test_x conftest$ac_exeext; then
44735 ompi_cv_func_lib_ceil_m="yes"
44736 else
44737 echo "$as_me: failed program was:" >&5
44738 sed 's/^/| /' conftest.$ac_ext >&5
44740 ompi_cv_func_lib_ceil_m="not found"
44743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44744 conftest$ac_exeext conftest.$ac_ext
44745 LIBS="$LIBS_save"
44748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44749 conftest$ac_exeext conftest.$ac_ext
44751 { echo "$as_me:$LINENO: result: $ompi_cv_func_lib_ceil_m" >&5
44752 echo "${ECHO_T}$ompi_cv_func_lib_ceil_m" >&6; }
44753 if test "$ompi_cv_func_lib_ceil_m" = "yes"; then
44754 LIBS="$LIBS -lm"
44758 # see if we actually have ceil. Use AC_CHECK_FUNCS so that it
44759 # does the glibc "not implemented" check. Will use the current LIBS,
44760 # so will check in -lm if we decided we needed it above
44762 for ac_func in ceil
44764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44768 echo $ECHO_N "(cached) $ECHO_C" >&6
44769 else
44770 cat >conftest.$ac_ext <<_ACEOF
44771 /* confdefs.h. */
44772 _ACEOF
44773 cat confdefs.h >>conftest.$ac_ext
44774 cat >>conftest.$ac_ext <<_ACEOF
44775 /* end confdefs.h. */
44776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44778 #define $ac_func innocuous_$ac_func
44780 /* System header to define __stub macros and hopefully few prototypes,
44781 which can conflict with char $ac_func (); below.
44782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44783 <limits.h> exists even on freestanding compilers. */
44785 #ifdef __STDC__
44786 # include <limits.h>
44787 #else
44788 # include <assert.h>
44789 #endif
44791 #undef $ac_func
44793 /* Override any GCC internal prototype to avoid an error.
44794 Use char because int might match the return type of a GCC
44795 builtin and then its argument prototype would still apply. */
44796 #ifdef __cplusplus
44797 extern "C"
44798 #endif
44799 char $ac_func ();
44800 /* The GNU C library defines this for functions which it implements
44801 to always fail with ENOSYS. Some functions are actually named
44802 something starting with __ and the normal name is an alias. */
44803 #if defined __stub_$ac_func || defined __stub___$ac_func
44804 choke me
44805 #endif
44808 main ()
44810 return $ac_func ();
44812 return 0;
44814 _ACEOF
44815 rm -f conftest.$ac_objext conftest$ac_exeext
44816 if { (ac_try="$ac_link"
44817 case "(($ac_try" in
44818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44819 *) ac_try_echo=$ac_try;;
44820 esac
44821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44822 (eval "$ac_link") 2>conftest.er1
44823 ac_status=$?
44824 grep -v '^ *+' conftest.er1 >conftest.err
44825 rm -f conftest.er1
44826 cat conftest.err >&5
44827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44828 (exit $ac_status); } && {
44829 test -z "$ac_c_werror_flag" ||
44830 test ! -s conftest.err
44831 } && test -s conftest$ac_exeext &&
44832 $as_test_x conftest$ac_exeext; then
44833 eval "$as_ac_var=yes"
44834 else
44835 echo "$as_me: failed program was:" >&5
44836 sed 's/^/| /' conftest.$ac_ext >&5
44838 eval "$as_ac_var=no"
44841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44842 conftest$ac_exeext conftest.$ac_ext
44844 ac_res=`eval echo '${'$as_ac_var'}'`
44845 { echo "$as_me:$LINENO: result: $ac_res" >&5
44846 echo "${ECHO_T}$ac_res" >&6; }
44847 if test `eval echo '${'$as_ac_var'}'` = yes; then
44848 cat >>confdefs.h <<_ACEOF
44849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44850 _ACEOF
44853 done
44877 for ac_func in asprintf snprintf vasprintf vsnprintf openpty isatty htonl ntohl htons ntohs getpwuid fork waitpid execve pipe ptsname setsid mmap mallopt tcgetpgrp
44879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44883 echo $ECHO_N "(cached) $ECHO_C" >&6
44884 else
44885 cat >conftest.$ac_ext <<_ACEOF
44886 /* confdefs.h. */
44887 _ACEOF
44888 cat confdefs.h >>conftest.$ac_ext
44889 cat >>conftest.$ac_ext <<_ACEOF
44890 /* end confdefs.h. */
44891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44893 #define $ac_func innocuous_$ac_func
44895 /* System header to define __stub macros and hopefully few prototypes,
44896 which can conflict with char $ac_func (); below.
44897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44898 <limits.h> exists even on freestanding compilers. */
44900 #ifdef __STDC__
44901 # include <limits.h>
44902 #else
44903 # include <assert.h>
44904 #endif
44906 #undef $ac_func
44908 /* Override any GCC internal prototype to avoid an error.
44909 Use char because int might match the return type of a GCC
44910 builtin and then its argument prototype would still apply. */
44911 #ifdef __cplusplus
44912 extern "C"
44913 #endif
44914 char $ac_func ();
44915 /* The GNU C library defines this for functions which it implements
44916 to always fail with ENOSYS. Some functions are actually named
44917 something starting with __ and the normal name is an alias. */
44918 #if defined __stub_$ac_func || defined __stub___$ac_func
44919 choke me
44920 #endif
44923 main ()
44925 return $ac_func ();
44927 return 0;
44929 _ACEOF
44930 rm -f conftest.$ac_objext conftest$ac_exeext
44931 if { (ac_try="$ac_link"
44932 case "(($ac_try" in
44933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44934 *) ac_try_echo=$ac_try;;
44935 esac
44936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44937 (eval "$ac_link") 2>conftest.er1
44938 ac_status=$?
44939 grep -v '^ *+' conftest.er1 >conftest.err
44940 rm -f conftest.er1
44941 cat conftest.err >&5
44942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44943 (exit $ac_status); } && {
44944 test -z "$ac_c_werror_flag" ||
44945 test ! -s conftest.err
44946 } && test -s conftest$ac_exeext &&
44947 $as_test_x conftest$ac_exeext; then
44948 eval "$as_ac_var=yes"
44949 else
44950 echo "$as_me: failed program was:" >&5
44951 sed 's/^/| /' conftest.$ac_ext >&5
44953 eval "$as_ac_var=no"
44956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44957 conftest$ac_exeext conftest.$ac_ext
44959 ac_res=`eval echo '${'$as_ac_var'}'`
44960 { echo "$as_me:$LINENO: result: $ac_res" >&5
44961 echo "${ECHO_T}$ac_res" >&6; }
44962 if test `eval echo '${'$as_ac_var'}'` = yes; then
44963 cat >>confdefs.h <<_ACEOF
44964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44965 _ACEOF
44968 done
44972 # Make sure we can copy va_lists (need check declared, not linkable)
44975 { echo "$as_me:$LINENO: checking whether va_copy is declared" >&5
44976 echo $ECHO_N "checking whether va_copy is declared... $ECHO_C" >&6; }
44977 if test "${ac_cv_have_decl_va_copy+set}" = set; then
44978 echo $ECHO_N "(cached) $ECHO_C" >&6
44979 else
44980 cat >conftest.$ac_ext <<_ACEOF
44981 /* confdefs.h. */
44982 _ACEOF
44983 cat confdefs.h >>conftest.$ac_ext
44984 cat >>conftest.$ac_ext <<_ACEOF
44985 /* end confdefs.h. */
44986 #include <stdarg.h>
44989 main ()
44991 #ifndef va_copy
44992 (void) va_copy;
44993 #endif
44996 return 0;
44998 _ACEOF
44999 rm -f conftest.$ac_objext
45000 if { (ac_try="$ac_compile"
45001 case "(($ac_try" in
45002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45003 *) ac_try_echo=$ac_try;;
45004 esac
45005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45006 (eval "$ac_compile") 2>conftest.er1
45007 ac_status=$?
45008 grep -v '^ *+' conftest.er1 >conftest.err
45009 rm -f conftest.er1
45010 cat conftest.err >&5
45011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45012 (exit $ac_status); } && {
45013 test -z "$ac_c_werror_flag" ||
45014 test ! -s conftest.err
45015 } && test -s conftest.$ac_objext; then
45016 ac_cv_have_decl_va_copy=yes
45017 else
45018 echo "$as_me: failed program was:" >&5
45019 sed 's/^/| /' conftest.$ac_ext >&5
45021 ac_cv_have_decl_va_copy=no
45024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45026 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_va_copy" >&5
45027 echo "${ECHO_T}$ac_cv_have_decl_va_copy" >&6; }
45028 if test $ac_cv_have_decl_va_copy = yes; then
45029 OMPI_HAVE_VA_COPY=1
45030 else
45031 OMPI_HAVE_VA_COPY=0
45035 cat >>confdefs.h <<_ACEOF
45036 #define OMPI_HAVE_VA_COPY $OMPI_HAVE_VA_COPY
45037 _ACEOF
45040 { echo "$as_me:$LINENO: checking whether __va_copy is declared" >&5
45041 echo $ECHO_N "checking whether __va_copy is declared... $ECHO_C" >&6; }
45042 if test "${ac_cv_have_decl___va_copy+set}" = set; then
45043 echo $ECHO_N "(cached) $ECHO_C" >&6
45044 else
45045 cat >conftest.$ac_ext <<_ACEOF
45046 /* confdefs.h. */
45047 _ACEOF
45048 cat confdefs.h >>conftest.$ac_ext
45049 cat >>conftest.$ac_ext <<_ACEOF
45050 /* end confdefs.h. */
45051 #include <stdarg.h>
45054 main ()
45056 #ifndef __va_copy
45057 (void) __va_copy;
45058 #endif
45061 return 0;
45063 _ACEOF
45064 rm -f conftest.$ac_objext
45065 if { (ac_try="$ac_compile"
45066 case "(($ac_try" in
45067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45068 *) ac_try_echo=$ac_try;;
45069 esac
45070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45071 (eval "$ac_compile") 2>conftest.er1
45072 ac_status=$?
45073 grep -v '^ *+' conftest.er1 >conftest.err
45074 rm -f conftest.er1
45075 cat conftest.err >&5
45076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45077 (exit $ac_status); } && {
45078 test -z "$ac_c_werror_flag" ||
45079 test ! -s conftest.err
45080 } && test -s conftest.$ac_objext; then
45081 ac_cv_have_decl___va_copy=yes
45082 else
45083 echo "$as_me: failed program was:" >&5
45084 sed 's/^/| /' conftest.$ac_ext >&5
45086 ac_cv_have_decl___va_copy=no
45089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45091 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___va_copy" >&5
45092 echo "${ECHO_T}$ac_cv_have_decl___va_copy" >&6; }
45093 if test $ac_cv_have_decl___va_copy = yes; then
45094 OMPI_HAVE_UNDERSCORE_VA_COPY=1
45095 else
45096 OMPI_HAVE_UNDERSCORE_VA_COPY=0
45100 cat >>confdefs.h <<_ACEOF
45101 #define OMPI_HAVE_UNDERSCORE_VA_COPY $OMPI_HAVE_UNDERSCORE_VA_COPY
45102 _ACEOF
45105 { echo "$as_me:$LINENO: checking whether __func__ is declared" >&5
45106 echo $ECHO_N "checking whether __func__ is declared... $ECHO_C" >&6; }
45107 if test "${ac_cv_have_decl___func__+set}" = set; then
45108 echo $ECHO_N "(cached) $ECHO_C" >&6
45109 else
45110 cat >conftest.$ac_ext <<_ACEOF
45111 /* confdefs.h. */
45112 _ACEOF
45113 cat confdefs.h >>conftest.$ac_ext
45114 cat >>conftest.$ac_ext <<_ACEOF
45115 /* end confdefs.h. */
45116 $ac_includes_default
45118 main ()
45120 #ifndef __func__
45121 (void) __func__;
45122 #endif
45125 return 0;
45127 _ACEOF
45128 rm -f conftest.$ac_objext
45129 if { (ac_try="$ac_compile"
45130 case "(($ac_try" in
45131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45132 *) ac_try_echo=$ac_try;;
45133 esac
45134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45135 (eval "$ac_compile") 2>conftest.er1
45136 ac_status=$?
45137 grep -v '^ *+' conftest.er1 >conftest.err
45138 rm -f conftest.er1
45139 cat conftest.err >&5
45140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45141 (exit $ac_status); } && {
45142 test -z "$ac_c_werror_flag" ||
45143 test ! -s conftest.err
45144 } && test -s conftest.$ac_objext; then
45145 ac_cv_have_decl___func__=yes
45146 else
45147 echo "$as_me: failed program was:" >&5
45148 sed 's/^/| /' conftest.$ac_ext >&5
45150 ac_cv_have_decl___func__=no
45153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45155 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___func__" >&5
45156 echo "${ECHO_T}$ac_cv_have_decl___func__" >&6; }
45157 if test $ac_cv_have_decl___func__ = yes; then
45159 cat >>confdefs.h <<_ACEOF
45160 #define HAVE_DECL___FUNC__ 1
45161 _ACEOF
45164 else
45165 cat >>confdefs.h <<_ACEOF
45166 #define HAVE_DECL___FUNC__ 0
45167 _ACEOF
45174 # checkpoint results
45175 cat >confcache <<\_ACEOF
45176 # This file is a shell script that caches the results of configure
45177 # tests run on this system so they can be shared between configure
45178 # scripts and configure runs, see configure's option --config-cache.
45179 # It is not useful on other systems. If it contains results you don't
45180 # want to keep, you may remove or edit it.
45182 # config.status only pays attention to the cache file if you give it
45183 # the --recheck option to rerun configure.
45185 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45186 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45187 # following values.
45189 _ACEOF
45191 # The following way of writing the cache mishandles newlines in values,
45192 # but we know of no workaround that is simple, portable, and efficient.
45193 # So, we kill variables containing newlines.
45194 # Ultrix sh set writes to stderr and can't be redirected directly,
45195 # and sets the high bit in the cache file unless we assign to the vars.
45197 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45198 eval ac_val=\$$ac_var
45199 case $ac_val in #(
45200 *${as_nl}*)
45201 case $ac_var in #(
45202 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
45203 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
45204 esac
45205 case $ac_var in #(
45206 _ | IFS | as_nl) ;; #(
45207 *) $as_unset $ac_var ;;
45208 esac ;;
45209 esac
45210 done
45212 (set) 2>&1 |
45213 case $as_nl`(ac_space=' '; set) 2>&1` in #(
45214 *${as_nl}ac_space=\ *)
45215 # `set' does not quote correctly, so add quotes (double-quote
45216 # substitution turns \\\\ into \\, and sed turns \\ into \).
45217 sed -n \
45218 "s/'/'\\\\''/g;
45219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45220 ;; #(
45222 # `set' quotes correctly as required by POSIX, so do not add quotes.
45223 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45225 esac |
45226 sort
45228 sed '
45229 /^ac_cv_env_/b end
45230 t clear
45231 :clear
45232 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45233 t end
45234 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45235 :end' >>confcache
45236 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45237 if test -w "$cache_file"; then
45238 test "x$cache_file" != "x/dev/null" &&
45239 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
45240 echo "$as_me: updating cache $cache_file" >&6;}
45241 cat confcache >$cache_file
45242 else
45243 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
45244 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45247 rm -f confcache
45250 ##################################
45251 # System-specific tests
45252 ##################################
45254 ompi_show_title "System-specific tests"
45257 # Test to determine type of MPI_Offset. This is searched in the following order
45258 # int64_t, long long, long, int. If none of these are 8 bytes, then we should
45259 # search for int32_t, long long, long, int.
45261 MPI_OFFSET_TYPE="not found"
45262 MPI_OFFSET_DATATYPE="not found"
45263 { echo "$as_me:$LINENO: checking checking for type of MPI_Offset" >&5
45264 echo $ECHO_N "checking checking for type of MPI_Offset... $ECHO_C" >&6; }
45265 if test "$ac_cv_type_long_long" = "yes" -a "$ac_cv_sizeof_long_long" = 8; then
45266 MPI_OFFSET_TYPE="long long"
45267 MPI_OFFSET_DATATYPE=MPI_LONG_LONG
45268 MPI_OFFSET_SIZE=8
45269 elif test "$ac_cv_type_long" = "yes" -a "$ac_cv_sizeof_long" = 8; then
45270 MPI_OFFSET_TYPE="long"
45271 MPI_OFFSET_DATATYPE=MPI_LONG
45272 MPI_OFFSET_SIZE=8
45273 elif test "ac_cv_sizeof_int" = 8; then
45274 MPI_OFFSET_TYPE=int
45275 MPI_OFFSET_DATATYPE=MPI_INT
45276 MPI_OFFSET_SIZE=8
45277 elif test "$ac_cv_type_long_long" = "yes" -a "$ac_cv_sizeof_long_long" = 4; then
45278 MPI_OFFSET_TYPE="long long"
45279 MPI_OFFSET_DATATYPE=MPI_LONG_LONG
45280 MPI_OFFSET_SIZE=4
45281 elif test "$ac_cv_type_long" = "yes" -a "$ac_cv_sizeof_long" = 4; then
45282 MPI_OFFSET_TYPE="long"
45283 MPI_OFFSET_DATATYPE=MPI_LONG
45284 MPI_OFFSET_SIZE=4
45285 elif test "ac_cv_sizeof_int" = 4; then
45286 MPI_OFFSET_TYPE=int
45287 MPI_OFFSET_DATATYPE=MPI_INT
45288 MPI_OFFSET_SIZE=4
45290 { echo "$as_me:$LINENO: result: $MPI_OFFSET_TYPE" >&5
45291 echo "${ECHO_T}$MPI_OFFSET_TYPE" >&6; }
45292 if test "$MPI_OFFSET_TYPE" = "not found"; then
45293 { echo "$as_me:$LINENO: WARNING: *** Unable to find the right definition for MPI_Offset" >&5
45294 echo "$as_me: WARNING: *** Unable to find the right definition for MPI_Offset" >&2;}
45295 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
45296 echo "$as_me: error: Cannot continue" >&2;}
45297 { (exit 1); exit 1; }; }
45300 cat >>confdefs.h <<_ACEOF
45301 #define OMPI_MPI_OFFSET_TYPE $MPI_OFFSET_TYPE
45302 _ACEOF
45306 # If we haven't already, figure out an MPI datatype that corresponds
45307 # to the back-end C type of MPI_Offset.
45309 { echo "$as_me:$LINENO: checking checking for an MPI datatype for MPI_Offset" >&5
45310 echo $ECHO_N "checking checking for an MPI datatype for MPI_Offset... $ECHO_C" >&6; }
45311 { echo "$as_me:$LINENO: result: $MPI_OFFSET_DATATYPE" >&5
45312 echo "${ECHO_T}$MPI_OFFSET_DATATYPE" >&6; }
45313 if test "$MPI_OFFSET_DATATYPE" = "not found"; then
45314 { echo "$as_me:$LINENO: WARNING: *** Unable to find an MPI datatype corresponding to MPI_Offset" >&5
45315 echo "$as_me: WARNING: *** Unable to find an MPI datatype corresponding to MPI_Offset" >&2;}
45316 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
45317 echo "$as_me: error: Cannot continue" >&2;}
45318 { (exit 1); exit 1; }; }
45321 cat >>confdefs.h <<_ACEOF
45322 #define OMPI_OFFSET_DATATYPE $MPI_OFFSET_DATATYPE
45323 _ACEOF
45326 # all: endian
45328 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
45329 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
45330 if test "${ac_cv_c_bigendian+set}" = set; then
45331 echo $ECHO_N "(cached) $ECHO_C" >&6
45332 else
45333 # See if sys/param.h defines the BYTE_ORDER macro.
45334 cat >conftest.$ac_ext <<_ACEOF
45335 /* confdefs.h. */
45336 _ACEOF
45337 cat confdefs.h >>conftest.$ac_ext
45338 cat >>conftest.$ac_ext <<_ACEOF
45339 /* end confdefs.h. */
45340 #include <sys/types.h>
45341 #include <sys/param.h>
45344 main ()
45346 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
45347 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
45348 bogus endian macros
45349 #endif
45352 return 0;
45354 _ACEOF
45355 rm -f conftest.$ac_objext
45356 if { (ac_try="$ac_compile"
45357 case "(($ac_try" in
45358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45359 *) ac_try_echo=$ac_try;;
45360 esac
45361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45362 (eval "$ac_compile") 2>conftest.er1
45363 ac_status=$?
45364 grep -v '^ *+' conftest.er1 >conftest.err
45365 rm -f conftest.er1
45366 cat conftest.err >&5
45367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45368 (exit $ac_status); } && {
45369 test -z "$ac_c_werror_flag" ||
45370 test ! -s conftest.err
45371 } && test -s conftest.$ac_objext; then
45372 # It does; now see whether it defined to BIG_ENDIAN or not.
45373 cat >conftest.$ac_ext <<_ACEOF
45374 /* confdefs.h. */
45375 _ACEOF
45376 cat confdefs.h >>conftest.$ac_ext
45377 cat >>conftest.$ac_ext <<_ACEOF
45378 /* end confdefs.h. */
45379 #include <sys/types.h>
45380 #include <sys/param.h>
45383 main ()
45385 #if BYTE_ORDER != BIG_ENDIAN
45386 not big endian
45387 #endif
45390 return 0;
45392 _ACEOF
45393 rm -f conftest.$ac_objext
45394 if { (ac_try="$ac_compile"
45395 case "(($ac_try" in
45396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45397 *) ac_try_echo=$ac_try;;
45398 esac
45399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45400 (eval "$ac_compile") 2>conftest.er1
45401 ac_status=$?
45402 grep -v '^ *+' conftest.er1 >conftest.err
45403 rm -f conftest.er1
45404 cat conftest.err >&5
45405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45406 (exit $ac_status); } && {
45407 test -z "$ac_c_werror_flag" ||
45408 test ! -s conftest.err
45409 } && test -s conftest.$ac_objext; then
45410 ac_cv_c_bigendian=yes
45411 else
45412 echo "$as_me: failed program was:" >&5
45413 sed 's/^/| /' conftest.$ac_ext >&5
45415 ac_cv_c_bigendian=no
45418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45419 else
45420 echo "$as_me: failed program was:" >&5
45421 sed 's/^/| /' conftest.$ac_ext >&5
45423 # It does not; compile a test program.
45424 if test "$cross_compiling" = yes; then
45425 # try to guess the endianness by grepping values into an object file
45426 ac_cv_c_bigendian=unknown
45427 cat >conftest.$ac_ext <<_ACEOF
45428 /* confdefs.h. */
45429 _ACEOF
45430 cat confdefs.h >>conftest.$ac_ext
45431 cat >>conftest.$ac_ext <<_ACEOF
45432 /* end confdefs.h. */
45433 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
45434 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
45435 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
45436 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
45437 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
45438 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
45440 main ()
45442 _ascii (); _ebcdic ();
45444 return 0;
45446 _ACEOF
45447 rm -f conftest.$ac_objext
45448 if { (ac_try="$ac_compile"
45449 case "(($ac_try" in
45450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45451 *) ac_try_echo=$ac_try;;
45452 esac
45453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45454 (eval "$ac_compile") 2>conftest.er1
45455 ac_status=$?
45456 grep -v '^ *+' conftest.er1 >conftest.err
45457 rm -f conftest.er1
45458 cat conftest.err >&5
45459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45460 (exit $ac_status); } && {
45461 test -z "$ac_c_werror_flag" ||
45462 test ! -s conftest.err
45463 } && test -s conftest.$ac_objext; then
45464 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
45465 ac_cv_c_bigendian=yes
45467 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
45468 if test "$ac_cv_c_bigendian" = unknown; then
45469 ac_cv_c_bigendian=no
45470 else
45471 # finding both strings is unlikely to happen, but who knows?
45472 ac_cv_c_bigendian=unknown
45475 else
45476 echo "$as_me: failed program was:" >&5
45477 sed 's/^/| /' conftest.$ac_ext >&5
45482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45483 else
45484 cat >conftest.$ac_ext <<_ACEOF
45485 /* confdefs.h. */
45486 _ACEOF
45487 cat confdefs.h >>conftest.$ac_ext
45488 cat >>conftest.$ac_ext <<_ACEOF
45489 /* end confdefs.h. */
45490 $ac_includes_default
45492 main ()
45495 /* Are we little or big endian? From Harbison&Steele. */
45496 union
45498 long int l;
45499 char c[sizeof (long int)];
45500 } u;
45501 u.l = 1;
45502 return u.c[sizeof (long int) - 1] == 1;
45505 return 0;
45507 _ACEOF
45508 rm -f conftest$ac_exeext
45509 if { (ac_try="$ac_link"
45510 case "(($ac_try" in
45511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45512 *) ac_try_echo=$ac_try;;
45513 esac
45514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45515 (eval "$ac_link") 2>&5
45516 ac_status=$?
45517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45519 { (case "(($ac_try" in
45520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45521 *) ac_try_echo=$ac_try;;
45522 esac
45523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45524 (eval "$ac_try") 2>&5
45525 ac_status=$?
45526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45527 (exit $ac_status); }; }; then
45528 ac_cv_c_bigendian=no
45529 else
45530 echo "$as_me: program exited with status $ac_status" >&5
45531 echo "$as_me: failed program was:" >&5
45532 sed 's/^/| /' conftest.$ac_ext >&5
45534 ( exit $ac_status )
45535 ac_cv_c_bigendian=yes
45537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45545 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
45546 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
45547 case $ac_cv_c_bigendian in
45548 yes)
45550 cat >>confdefs.h <<\_ACEOF
45551 #define WORDS_BIGENDIAN 1
45552 _ACEOF
45557 { { echo "$as_me:$LINENO: error: unknown endianness
45558 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
45559 echo "$as_me: error: unknown endianness
45560 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
45561 { (exit 1); exit 1; }; } ;;
45562 esac
45566 { echo "$as_me:$LINENO: checking for broken qsort" >&5
45567 echo $ECHO_N "checking for broken qsort... $ECHO_C" >&6; }
45569 result=
45570 define_result=0
45571 case "$host" in
45572 *solaris*)
45573 result="yes (solaris)"
45574 define_result=1
45577 result="no"
45578 define_result=0
45580 esac
45582 { echo "$as_me:$LINENO: result: $result" >&5
45583 echo "${ECHO_T}$result" >&6; }
45585 cat >>confdefs.h <<_ACEOF
45586 #define OMPI_HAVE_BROKEN_QSORT $define_result
45587 _ACEOF
45589 unset result define_result
45591 # all: SYSV semaphores
45592 # all: SYSV shared memory
45593 # all: size of FD_SET
45594 # all: sizeof struct stat members
45595 # all: type of getsockopt optlen
45596 # all: type of recvfrom optlen
45599 # Check out what thread support we have
45604 # Arguments: none
45606 # Dependencies: None
45608 # Modifies:
45609 # none - see called tests
45611 # configure threads
45614 # create templates
45621 # Check for thread types - add your type here...
45624 ompi_pthread_c_success=0
45625 ompi_pthread_f77_success=0
45626 ompi_pthread_cxx_success=0
45628 orig_CFLAGS="$CFLAGS"
45629 orig_FFLAGS="$FFLAGS"
45630 orig_CXXFLAGS="$CXXFLAGS"
45631 orig_CPPFLAGS="$CPPFLAGS"
45632 orig_CXXCPPFLAGS="$CXXCPPFLAGS"
45633 orig_LDFLAGS="$LDFLAGS"
45634 orig_LIBS="$LIBS"
45636 PTRHEAD_CFLAGS=
45637 PTHREAD_FFLAGS=
45638 PTHREAD_CXXFLAGS=
45639 PTHREAD_CPPFLAGS=
45640 PTHREAD_CXXCPPFLAGS=
45641 PTHREAD_LDFLAGS=
45642 PTHREAD_LIBS=
45644 # Try with the basics, mam.
45646 # BEGIN: OMPI_INTL_POSIX_THREADS_PLAIN
45648 # Check if can compile without any special flags
45649 # we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in
45650 # case. Some systems (OS X, for example) generally don't need
45651 # the defines, but then will on one system header here or there
45652 # why take chances?
45655 # Only run C++ and Fortran if those compilers already configured
45658 # C compiler
45660 if test "$ompi_pthread_c_success" = "0"; then
45661 { echo "$as_me:$LINENO: checking if C compiler and POSIX threads work as is" >&5
45662 echo $ECHO_N "checking if C compiler and POSIX threads work as is... $ECHO_C" >&6; }
45663 if test "$HAVE_POSIX_THREADS" = "1" ; then
45664 run_this_test=1
45665 else
45666 case "${host_cpu}-${host_os}" in
45667 *solaris*)
45668 { echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5
45669 echo "${ECHO_T}no - Solaris, not checked" >&6; }
45670 run_this_test=0
45672 *-aix* | *-freebsd*)
45673 if test "`echo $CPPFLAGS | grep 'D_THREAD_SAFE'`" = ""; then
45674 PTRHEAD_CPPFLAGS="-D_THREAD_SAFE"
45675 CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
45677 run_this_test=1
45680 if test "`echo $CPPFLAGS | grep 'D_REENTRANT'`" = ""; then
45681 PTHREAD_CPPFLAGS="-D_REENTRANT"
45682 CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
45684 run_this_test=1
45686 esac
45689 if test "$run_this_test" = "1" ; then
45690 ac_ext=c
45691 ac_cpp='$CPP $CPPFLAGS'
45692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45697 # BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
45699 # Make sure that we can run a small application in C or C++, which
45700 # ever is the current language. Do make sure that C or C++ is the
45701 # current language.
45703 # As long as this is not being run....
45704 # pthread_t may be anything from an int to a struct -- init with self-tid.
45706 cat >conftest.$ac_ext <<_ACEOF
45707 /* confdefs.h. */
45708 _ACEOF
45709 cat confdefs.h >>conftest.$ac_ext
45710 cat >>conftest.$ac_ext <<_ACEOF
45711 /* end confdefs.h. */
45712 #include <pthread.h>
45714 main ()
45716 pthread_t th=pthread_self(); pthread_join(th, 0);
45717 pthread_attr_init(0); pthread_cleanup_push(0, 0);
45718 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
45720 return 0;
45722 _ACEOF
45723 rm -f conftest.$ac_objext conftest$ac_exeext
45724 if { (ac_try="$ac_link"
45725 case "(($ac_try" in
45726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45727 *) ac_try_echo=$ac_try;;
45728 esac
45729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45730 (eval "$ac_link") 2>conftest.er1
45731 ac_status=$?
45732 grep -v '^ *+' conftest.er1 >conftest.err
45733 rm -f conftest.er1
45734 cat conftest.err >&5
45735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45736 (exit $ac_status); } && {
45737 test -z "$ac_c_werror_flag" ||
45738 test ! -s conftest.err
45739 } && test -s conftest$ac_exeext &&
45740 $as_test_x conftest$ac_exeext; then
45741 ompi_pthread_c_success=1
45742 else
45743 echo "$as_me: failed program was:" >&5
45744 sed 's/^/| /' conftest.$ac_ext >&5
45746 ompi_pthread_c_success=0
45749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45750 conftest$ac_exeext conftest.$ac_ext
45751 # END: OMPI_INTL_PTHREAD_TRY_LINK
45753 ac_ext=c
45754 ac_cpp='$CPP $CPPFLAGS'
45755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45759 if test "$ompi_pthread_c_success" = "1"; then
45760 { echo "$as_me:$LINENO: result: yes" >&5
45761 echo "${ECHO_T}yes" >&6; }
45762 else
45763 PTHREAD_CPPFLAGS=
45764 CPPFLAGS="$orig_CPPFLAGS"
45765 { echo "$as_me:$LINENO: result: no" >&5
45766 echo "${ECHO_T}no" >&6; }
45774 # C++ compiler
45776 if test "$ompi_pthread_cxx_success" = "0"; then
45777 { echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work as is" >&5
45778 echo $ECHO_N "checking if C++ compiler and POSIX threads work as is... $ECHO_C" >&6; }
45779 if test "$HAVE_POSIX_THREADS" = "1" ; then
45780 run_this_test=1
45781 else
45782 case "${host_cpu}-${host_os}" in
45783 *solaris*)
45784 { echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5
45785 echo "${ECHO_T}no - Solaris, not checked" >&6; }
45786 run_this_test=0
45788 *-aix* | *-freebsd*)
45789 if test "`echo $CXXCPPFLAGS | grep 'D_THREAD_SAFE'`" = ""; then
45790 PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE"
45791 CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
45793 run_this_test=1
45796 if test "`echo $CXXCPPFLAGS | grep 'D_REENTRANT'`" = ""; then
45797 PTHREAD_CXXCPPFLAGS="-D_REENTRANT"
45798 CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
45800 run_this_test=1
45802 esac
45805 if test "$run_this_test" = "1" ; then
45806 ac_ext=cpp
45807 ac_cpp='$CXXCPP $CPPFLAGS'
45808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45813 # BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
45815 # Make sure that we can run a small application in C or C++, which
45816 # ever is the current language. Do make sure that C or C++ is the
45817 # current language.
45819 # As long as this is not being run....
45820 # pthread_t may be anything from an int to a struct -- init with self-tid.
45822 cat >conftest.$ac_ext <<_ACEOF
45823 /* confdefs.h. */
45824 _ACEOF
45825 cat confdefs.h >>conftest.$ac_ext
45826 cat >>conftest.$ac_ext <<_ACEOF
45827 /* end confdefs.h. */
45828 #include <pthread.h>
45830 main ()
45832 pthread_t th=pthread_self(); pthread_join(th, 0);
45833 pthread_attr_init(0); pthread_cleanup_push(0, 0);
45834 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
45836 return 0;
45838 _ACEOF
45839 rm -f conftest.$ac_objext conftest$ac_exeext
45840 if { (ac_try="$ac_link"
45841 case "(($ac_try" in
45842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45843 *) ac_try_echo=$ac_try;;
45844 esac
45845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45846 (eval "$ac_link") 2>conftest.er1
45847 ac_status=$?
45848 grep -v '^ *+' conftest.er1 >conftest.err
45849 rm -f conftest.er1
45850 cat conftest.err >&5
45851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45852 (exit $ac_status); } && {
45853 test -z "$ac_cxx_werror_flag" ||
45854 test ! -s conftest.err
45855 } && test -s conftest$ac_exeext &&
45856 $as_test_x conftest$ac_exeext; then
45857 ompi_pthread_cxx_success=1
45858 else
45859 echo "$as_me: failed program was:" >&5
45860 sed 's/^/| /' conftest.$ac_ext >&5
45862 ompi_pthread_cxx_success=0
45865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45866 conftest$ac_exeext conftest.$ac_ext
45867 # END: OMPI_INTL_PTHREAD_TRY_LINK
45869 ac_ext=c
45870 ac_cpp='$CPP $CPPFLAGS'
45871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45875 if test "$ompi_pthread_cxx_success" = "1"; then
45876 { echo "$as_me:$LINENO: result: yes" >&5
45877 echo "${ECHO_T}yes" >&6; }
45878 else
45879 PTHREAD_CXXCPPFLAGS=
45880 CXXCPPFLAGS="$orig_CXXCPPFLAGS"
45881 { echo "$as_me:$LINENO: result: no" >&5
45882 echo "${ECHO_T}no" >&6; }
45890 # Fortran compiler
45892 if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then
45893 { echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work as is" >&5
45894 echo $ECHO_N "checking if F77 compiler and POSIX threads work as is... $ECHO_C" >&6; }
45895 if test "$HAVE_POSIX_THREADS" = "1" ; then
45896 run_this_test=1
45897 else
45898 case "${host_cpu}-${host_os}" in
45899 *solaris*)
45900 { echo "$as_me:$LINENO: result: no - Solaris, not checked" >&5
45901 echo "${ECHO_T}no - Solaris, not checked" >&6; }
45902 run_this_test=0
45905 run_this_test=1
45907 esac
45910 if test "$run_this_test" = "1" ; then
45911 ac_ext=c
45912 ac_cpp='$CPP $CPPFLAGS'
45913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45918 # BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77
45920 # Make sure that we can run a small application in Fortran, with
45921 # pthreads living in a C object file
45923 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
45924 # so the general rule is that if there is an _ in the function
45925 # name, then there are two trailing underscores. Otherwise,
45926 # there is only one trailing underscore. Any idea how to do
45927 # that with m4_translit?
45928 if echo pthreadtest | grep _ >/dev/null 2>&1 ; then
45929 ompi_ac_thread_fn=pthreadtest__
45930 else
45931 ompi_ac_thread_fn=pthreadtest_
45933 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
45934 ompi_ac_thread_fn=pthreadtest_
45935 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
45936 ompi_ac_thread_fn=pthreadtest
45937 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
45938 ompi_ac_thread_fn=pthreadtest
45939 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
45940 ompi_ac_thread_fn=PTHREADTEST
45941 else
45942 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
45943 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
45944 { (exit 1); exit 1; }; }
45948 # Fortran module
45949 cat > conftestf.f <<EOF
45950 program fpthread
45951 call pthreadtest
45955 # C module
45956 if test -f conftest.h; then
45957 ompi_conftest_h="#include \"conftest.h\""
45958 else
45959 ompi_conftest_h=""
45961 cat > conftest.c <<EOF
45962 #include <stdio.h>
45963 #include <stdlib.h>
45964 #include <pthread.h>
45965 $ompi_conftest_h
45967 #ifdef __cplusplus
45968 extern "C" {
45969 #endif
45970 void $ompi_ac_thread_fn()
45972 pthread_t th;
45973 pthread_create(&th, NULL, NULL, NULL);
45974 pthread_join(th, 0);
45975 pthread_attr_init(0);
45976 pthread_cleanup_push(0, 0);
45977 pthread_create(0,0,0,0);
45978 pthread_cleanup_pop(0);
45980 #ifdef __cplusplus
45982 #endif
45985 # Try the compile
45987 # 1 is the command
45988 # 2 is actions to do if success
45989 # 3 is actions to do if fail
45990 echo "configure:45990: $CC $CFLAGS -I. -c conftest.c" >&5
45991 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
45992 ompi_status=$?
45994 # 1 is the message
45995 # 2 is whether to put a prefix or not
45996 if test -n "1"; then
45997 echo "configure:45997: \$? = $ompi_status" >&5
45998 else
45999 echo \$? = $ompi_status >&5
46001 if test "$ompi_status" = "0"; then
46002 unset ompi_status
46004 # 1 is the command
46005 # 2 is actions to do if success
46006 # 3 is actions to do if fail
46007 echo "configure:46007: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
46008 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
46009 ompi_status=$?
46011 # 1 is the message
46012 # 2 is whether to put a prefix or not
46013 if test -n "1"; then
46014 echo "configure:46014: \$? = $ompi_status" >&5
46015 else
46016 echo \$? = $ompi_status >&5
46018 if test "$ompi_status" = "0"; then
46019 unset ompi_status
46020 HAPPY=1
46021 else
46022 unset ompi_status
46023 HAPPY=0
46025 else
46026 unset ompi_status
46027 HAPPY=0
46030 if test "$HAPPY" = "1"; then
46031 ompi_pthread_f77_success=1
46032 else
46034 # 1 is the message
46035 # 2 is whether to put a prefix or not
46036 if test -n "1"; then
46037 echo "configure:46037: here is the C program:" >&5
46038 else
46039 echo here is the C program: >&5
46042 # 1 is the filename
46043 if test -n "conftest.c" -a -f "conftest.c"; then
46044 cat conftest.c >&5
46046 if test -f conftest.h; then
46048 # 1 is the message
46049 # 2 is whether to put a prefix or not
46050 if test -n "1"; then
46051 echo "configure:46051: here is contest.h:" >&5
46052 else
46053 echo here is contest.h: >&5
46056 # 1 is the filename
46057 if test -n "conftest.h" -a -f "conftest.h"; then
46058 cat conftest.h >&5
46062 # 1 is the message
46063 # 2 is whether to put a prefix or not
46064 if test -n "1"; then
46065 echo "configure:46065: here is the fortran program:" >&5
46066 else
46067 echo here is the fortran program: >&5
46070 # 1 is the filename
46071 if test -n "conftestf.f" -a -f "conftestf.f"; then
46072 cat conftestf.f >&5
46074 ompi_pthread_f77_success=0
46077 unset HAPPY ompi_conftest_h
46078 /bin/rm -f conftest*
46079 # END: OMPI_INTL_PTHREAD_TRY_LINK_F77
46081 ac_ext=c
46082 ac_cpp='$CPP $CPPFLAGS'
46083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46087 if test "$ompi_pthread_f77_success" = "1"; then
46088 { echo "$as_me:$LINENO: result: yes" >&5
46089 echo "${ECHO_T}yes" >&6; }
46090 else
46091 { echo "$as_me:$LINENO: result: no" >&5
46092 echo "${ECHO_T}no" >&6; }
46098 # End: OMPI_INTL_POSIX_THREADS_PLAIN
46101 # Try the super-special compiler flags.
46103 # Begin: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS
46105 # If above didn't work, try some super-special compiler flags
46106 # that get evaluated to the "right" things.
46108 # -Kthread:
46109 # -kthread: FreeBSD kernel threads
46110 # -pthread: Modern GCC (most all platforms)
46111 # -pthreads: GCC on solaris
46112 # -mthreads:
46113 # -mt: Solaris native compilers / HP-UX aCC
46115 # Put -mt before -mthreads because HP-UX aCC will properly compile
46116 # with -mthreads (reading as -mt), but emit a warning about unknown
46117 # flags hreads. Stupid compilers.
46119 case "${host_cpu}-${host_os}" in
46120 *solaris*)
46121 pflags="-pthread -pthreads -mt"
46124 pflags="-Kthread -kthread -pthread -pthreads -mt -mthreads"
46126 esac
46128 # Only run C++ and Fortran if those compilers already configured
46131 # C compiler
46133 if test "$ompi_pthread_c_success" = "0"; then
46134 for pf in $pflags; do
46135 { echo "$as_me:$LINENO: checking if C compiler and POSIX threads work with $pf" >&5
46136 echo $ECHO_N "checking if C compiler and POSIX threads work with $pf... $ECHO_C" >&6; }
46137 CFLAGS="$orig_CFLAGS $pf"
46138 ac_ext=c
46139 ac_cpp='$CPP $CPPFLAGS'
46140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46145 # BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
46147 # Make sure that we can run a small application in C or C++, which
46148 # ever is the current language. Do make sure that C or C++ is the
46149 # current language.
46151 # As long as this is not being run....
46152 # pthread_t may be anything from an int to a struct -- init with self-tid.
46154 cat >conftest.$ac_ext <<_ACEOF
46155 /* confdefs.h. */
46156 _ACEOF
46157 cat confdefs.h >>conftest.$ac_ext
46158 cat >>conftest.$ac_ext <<_ACEOF
46159 /* end confdefs.h. */
46160 #include <pthread.h>
46162 main ()
46164 pthread_t th=pthread_self(); pthread_join(th, 0);
46165 pthread_attr_init(0); pthread_cleanup_push(0, 0);
46166 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
46168 return 0;
46170 _ACEOF
46171 rm -f conftest.$ac_objext conftest$ac_exeext
46172 if { (ac_try="$ac_link"
46173 case "(($ac_try" in
46174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46175 *) ac_try_echo=$ac_try;;
46176 esac
46177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46178 (eval "$ac_link") 2>conftest.er1
46179 ac_status=$?
46180 grep -v '^ *+' conftest.er1 >conftest.err
46181 rm -f conftest.er1
46182 cat conftest.err >&5
46183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46184 (exit $ac_status); } && {
46185 test -z "$ac_c_werror_flag" ||
46186 test ! -s conftest.err
46187 } && test -s conftest$ac_exeext &&
46188 $as_test_x conftest$ac_exeext; then
46189 ompi_pthread_c_success=1
46190 else
46191 echo "$as_me: failed program was:" >&5
46192 sed 's/^/| /' conftest.$ac_ext >&5
46194 ompi_pthread_c_success=0
46197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46198 conftest$ac_exeext conftest.$ac_ext
46199 # END: OMPI_INTL_PTHREAD_TRY_LINK
46201 ac_ext=c
46202 ac_cpp='$CPP $CPPFLAGS'
46203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46207 if test "$ompi_pthread_c_success" = "1"; then
46208 PTHREAD_CFLAGS="$pf"
46209 { echo "$as_me:$LINENO: result: yes" >&5
46210 echo "${ECHO_T}yes" >&6; }
46211 break
46212 else
46213 PTHREAD_CFLAGS=
46214 CFLAGS="$orig_CFLAGS"
46215 { echo "$as_me:$LINENO: result: no" >&5
46216 echo "${ECHO_T}no" >&6; }
46218 done
46224 # C++ compiler
46226 if test "$ompi_pthread_cxx_success" = "0"; then
46227 for pf in $pflags; do
46228 { echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $pf" >&5
46229 echo $ECHO_N "checking if C++ compiler and POSIX threads work with $pf... $ECHO_C" >&6; }
46230 CXXFLAGS="$orig_CXXFLAGS $pf"
46231 ac_ext=cpp
46232 ac_cpp='$CXXCPP $CPPFLAGS'
46233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46238 # BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
46240 # Make sure that we can run a small application in C or C++, which
46241 # ever is the current language. Do make sure that C or C++ is the
46242 # current language.
46244 # As long as this is not being run....
46245 # pthread_t may be anything from an int to a struct -- init with self-tid.
46247 cat >conftest.$ac_ext <<_ACEOF
46248 /* confdefs.h. */
46249 _ACEOF
46250 cat confdefs.h >>conftest.$ac_ext
46251 cat >>conftest.$ac_ext <<_ACEOF
46252 /* end confdefs.h. */
46253 #include <pthread.h>
46255 main ()
46257 pthread_t th=pthread_self(); pthread_join(th, 0);
46258 pthread_attr_init(0); pthread_cleanup_push(0, 0);
46259 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
46261 return 0;
46263 _ACEOF
46264 rm -f conftest.$ac_objext conftest$ac_exeext
46265 if { (ac_try="$ac_link"
46266 case "(($ac_try" in
46267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46268 *) ac_try_echo=$ac_try;;
46269 esac
46270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46271 (eval "$ac_link") 2>conftest.er1
46272 ac_status=$?
46273 grep -v '^ *+' conftest.er1 >conftest.err
46274 rm -f conftest.er1
46275 cat conftest.err >&5
46276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46277 (exit $ac_status); } && {
46278 test -z "$ac_cxx_werror_flag" ||
46279 test ! -s conftest.err
46280 } && test -s conftest$ac_exeext &&
46281 $as_test_x conftest$ac_exeext; then
46282 ompi_pthread_cxx_success=1
46283 else
46284 echo "$as_me: failed program was:" >&5
46285 sed 's/^/| /' conftest.$ac_ext >&5
46287 ompi_pthread_cxx_success=0
46290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46291 conftest$ac_exeext conftest.$ac_ext
46292 # END: OMPI_INTL_PTHREAD_TRY_LINK
46294 ac_ext=c
46295 ac_cpp='$CPP $CPPFLAGS'
46296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46300 if test "$ompi_pthread_cxx_success" = "1"; then
46301 PTHREAD_CXXFLAGS="$pf"
46302 { echo "$as_me:$LINENO: result: yes" >&5
46303 echo "${ECHO_T}yes" >&6; }
46304 break
46305 else
46306 PTHREAD_CXXFLAGS=
46307 CXXFLAGS="$orig_CXXFLAGS"
46308 { echo "$as_me:$LINENO: result: no" >&5
46309 echo "${ECHO_T}no" >&6; }
46311 done
46317 # Fortran compiler
46319 if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then
46320 for pf in $pflags; do
46321 { echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $pf" >&5
46322 echo $ECHO_N "checking if F77 compiler and POSIX threads work with $pf... $ECHO_C" >&6; }
46323 FFLAGS="$orig_FFLAGS $pf"
46324 ac_ext=c
46325 ac_cpp='$CPP $CPPFLAGS'
46326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46331 # BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77
46333 # Make sure that we can run a small application in Fortran, with
46334 # pthreads living in a C object file
46336 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
46337 # so the general rule is that if there is an _ in the function
46338 # name, then there are two trailing underscores. Otherwise,
46339 # there is only one trailing underscore. Any idea how to do
46340 # that with m4_translit?
46341 if echo pthreadtest | grep _ >/dev/null 2>&1 ; then
46342 ompi_ac_thread_fn=pthreadtest__
46343 else
46344 ompi_ac_thread_fn=pthreadtest_
46346 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
46347 ompi_ac_thread_fn=pthreadtest_
46348 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
46349 ompi_ac_thread_fn=pthreadtest
46350 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
46351 ompi_ac_thread_fn=pthreadtest
46352 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
46353 ompi_ac_thread_fn=PTHREADTEST
46354 else
46355 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
46356 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
46357 { (exit 1); exit 1; }; }
46361 # Fortran module
46362 cat > conftestf.f <<EOF
46363 program fpthread
46364 call pthreadtest
46368 # C module
46369 if test -f conftest.h; then
46370 ompi_conftest_h="#include \"conftest.h\""
46371 else
46372 ompi_conftest_h=""
46374 cat > conftest.c <<EOF
46375 #include <stdio.h>
46376 #include <stdlib.h>
46377 #include <pthread.h>
46378 $ompi_conftest_h
46380 #ifdef __cplusplus
46381 extern "C" {
46382 #endif
46383 void $ompi_ac_thread_fn()
46385 pthread_t th;
46386 pthread_create(&th, NULL, NULL, NULL);
46387 pthread_join(th, 0);
46388 pthread_attr_init(0);
46389 pthread_cleanup_push(0, 0);
46390 pthread_create(0,0,0,0);
46391 pthread_cleanup_pop(0);
46393 #ifdef __cplusplus
46395 #endif
46398 # Try the compile
46400 # 1 is the command
46401 # 2 is actions to do if success
46402 # 3 is actions to do if fail
46403 echo "configure:46403: $CC $CFLAGS -I. -c conftest.c" >&5
46404 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
46405 ompi_status=$?
46407 # 1 is the message
46408 # 2 is whether to put a prefix or not
46409 if test -n "1"; then
46410 echo "configure:46410: \$? = $ompi_status" >&5
46411 else
46412 echo \$? = $ompi_status >&5
46414 if test "$ompi_status" = "0"; then
46415 unset ompi_status
46417 # 1 is the command
46418 # 2 is actions to do if success
46419 # 3 is actions to do if fail
46420 echo "configure:46420: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
46421 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
46422 ompi_status=$?
46424 # 1 is the message
46425 # 2 is whether to put a prefix or not
46426 if test -n "1"; then
46427 echo "configure:46427: \$? = $ompi_status" >&5
46428 else
46429 echo \$? = $ompi_status >&5
46431 if test "$ompi_status" = "0"; then
46432 unset ompi_status
46433 HAPPY=1
46434 else
46435 unset ompi_status
46436 HAPPY=0
46438 else
46439 unset ompi_status
46440 HAPPY=0
46443 if test "$HAPPY" = "1"; then
46444 ompi_pthread_f77_success=1
46445 else
46447 # 1 is the message
46448 # 2 is whether to put a prefix or not
46449 if test -n "1"; then
46450 echo "configure:46450: here is the C program:" >&5
46451 else
46452 echo here is the C program: >&5
46455 # 1 is the filename
46456 if test -n "conftest.c" -a -f "conftest.c"; then
46457 cat conftest.c >&5
46459 if test -f conftest.h; then
46461 # 1 is the message
46462 # 2 is whether to put a prefix or not
46463 if test -n "1"; then
46464 echo "configure:46464: here is contest.h:" >&5
46465 else
46466 echo here is contest.h: >&5
46469 # 1 is the filename
46470 if test -n "conftest.h" -a -f "conftest.h"; then
46471 cat conftest.h >&5
46475 # 1 is the message
46476 # 2 is whether to put a prefix or not
46477 if test -n "1"; then
46478 echo "configure:46478: here is the fortran program:" >&5
46479 else
46480 echo here is the fortran program: >&5
46483 # 1 is the filename
46484 if test -n "conftestf.f" -a -f "conftestf.f"; then
46485 cat conftestf.f >&5
46487 ompi_pthread_f77_success=0
46490 unset HAPPY ompi_conftest_h
46491 /bin/rm -f conftest*
46492 # END: OMPI_INTL_PTHREAD_TRY_LINK_F77
46494 ac_ext=c
46495 ac_cpp='$CPP $CPPFLAGS'
46496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46500 if test "$ompi_pthread_f77_success" = "1"; then
46501 PTHREAD_FFLAGS="$pf"
46502 { echo "$as_me:$LINENO: result: yes" >&5
46503 echo "${ECHO_T}yes" >&6; }
46504 break
46505 else
46506 PTHREAD_FFLAGS=
46507 FFLAGS="$orig_FFLAGS"
46508 { echo "$as_me:$LINENO: result: no" >&5
46509 echo "${ECHO_T}no" >&6; }
46511 done
46515 # End: OMPI_INTL_POSIX_THREADS_SPECIAL_FLAGS
46518 # Try the normal linking methods (that's no fun)
46520 # Begin: OMPI_INTL_POSIX_THREADS_LIBS
46522 # if we can't find a super-special compiler flags, try some libraries.
46523 # we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in case. Some
46524 # systems (OS X, for example) generally don't need the defines, but
46525 # then will on one system header here or there why take chances?
46527 # libpthreads: AIX - must check before libpthread
46528 # liblthread: LinuxThreads on FreeBSD
46529 # libpthread: The usual place (like we can define usual!)
46530 plibs="-lpthreads -llthread -lpthread"
46532 # Only run C++ and Fortran if those compilers already configured
46535 # C compiler
46537 if test "$ompi_pthread_c_success" = "0"; then
46538 for pl in $plibs; do
46539 { echo "$as_me:$LINENO: checking if C compiler and POSIX threads work with $pl" >&5
46540 echo $ECHO_N "checking if C compiler and POSIX threads work with $pl... $ECHO_C" >&6; }
46541 case "${host_cpu}-${host-_os}" in
46542 *-aix* | *-freebsd*)
46543 if test "`echo $CPPFLAGS | grep 'D_THREAD_SAFE'`" = ""; then
46544 PTRHEAD_CPPFLAGS="-D_THREAD_SAFE"
46545 CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
46549 if test "`echo $CPPFLAGS | grep 'D_REENTRANT'`" = ""; then
46550 PTHREAD_CPPFLAGS="-D_REENTRANT"
46551 CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
46554 esac
46555 LIBS="$orig_LIBS $pl"
46556 ac_ext=c
46557 ac_cpp='$CPP $CPPFLAGS'
46558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46563 # BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
46565 # Make sure that we can run a small application in C or C++, which
46566 # ever is the current language. Do make sure that C or C++ is the
46567 # current language.
46569 # As long as this is not being run....
46570 # pthread_t may be anything from an int to a struct -- init with self-tid.
46572 cat >conftest.$ac_ext <<_ACEOF
46573 /* confdefs.h. */
46574 _ACEOF
46575 cat confdefs.h >>conftest.$ac_ext
46576 cat >>conftest.$ac_ext <<_ACEOF
46577 /* end confdefs.h. */
46578 #include <pthread.h>
46580 main ()
46582 pthread_t th=pthread_self(); pthread_join(th, 0);
46583 pthread_attr_init(0); pthread_cleanup_push(0, 0);
46584 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
46586 return 0;
46588 _ACEOF
46589 rm -f conftest.$ac_objext conftest$ac_exeext
46590 if { (ac_try="$ac_link"
46591 case "(($ac_try" in
46592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46593 *) ac_try_echo=$ac_try;;
46594 esac
46595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46596 (eval "$ac_link") 2>conftest.er1
46597 ac_status=$?
46598 grep -v '^ *+' conftest.er1 >conftest.err
46599 rm -f conftest.er1
46600 cat conftest.err >&5
46601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46602 (exit $ac_status); } && {
46603 test -z "$ac_c_werror_flag" ||
46604 test ! -s conftest.err
46605 } && test -s conftest$ac_exeext &&
46606 $as_test_x conftest$ac_exeext; then
46607 ompi_pthread_c_success=1
46608 else
46609 echo "$as_me: failed program was:" >&5
46610 sed 's/^/| /' conftest.$ac_ext >&5
46612 ompi_pthread_c_success=0
46615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46616 conftest$ac_exeext conftest.$ac_ext
46617 # END: OMPI_INTL_PTHREAD_TRY_LINK
46619 ac_ext=c
46620 ac_cpp='$CPP $CPPFLAGS'
46621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46625 if test "$ompi_pthread_c_success" = "1"; then
46626 PTHREAD_LIBS="$pl"
46627 { echo "$as_me:$LINENO: result: yes" >&5
46628 echo "${ECHO_T}yes" >&6; }
46629 else
46630 PTHREAD_CPPFLAGS=
46631 CPPFLAGS="$orig_CPPFLAGS"
46632 LIBS="$orig_LIBS"
46633 { echo "$as_me:$LINENO: result: no" >&5
46634 echo "${ECHO_T}no" >&6; }
46636 done
46642 # C++ compiler
46644 if test "$ompi_pthread_cxx_success" = "0"; then
46645 if test ! "$ompi_pthread_c_success" = "0" -a ! "$PTHREAD_LIBS" = "" ; then
46646 { echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS" >&5
46647 echo $ECHO_N "checking if C++ compiler and POSIX threads work with $PTHREAD_LIBS... $ECHO_C" >&6; }
46648 case "${host_cpu}-${host-_os}" in
46649 *-aix* | *-freebsd*)
46650 if test "`echo $CXXCPPFLAGS | grep 'D_THREAD_SAFE'`" = ""; then
46651 PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE"
46652 CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
46656 if test "`echo $CXXCPPFLAGS | grep 'D_REENTRANT'`" = ""; then
46657 PTHREAD_CXXCPPFLAGS="-D_REENTRANT"
46658 CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
46661 esac
46662 LIBS="$orig_LIBS $PTHREAD_LIBS"
46663 ac_ext=cpp
46664 ac_cpp='$CXXCPP $CPPFLAGS'
46665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46670 # BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
46672 # Make sure that we can run a small application in C or C++, which
46673 # ever is the current language. Do make sure that C or C++ is the
46674 # current language.
46676 # As long as this is not being run....
46677 # pthread_t may be anything from an int to a struct -- init with self-tid.
46679 cat >conftest.$ac_ext <<_ACEOF
46680 /* confdefs.h. */
46681 _ACEOF
46682 cat confdefs.h >>conftest.$ac_ext
46683 cat >>conftest.$ac_ext <<_ACEOF
46684 /* end confdefs.h. */
46685 #include <pthread.h>
46687 main ()
46689 pthread_t th=pthread_self(); pthread_join(th, 0);
46690 pthread_attr_init(0); pthread_cleanup_push(0, 0);
46691 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
46693 return 0;
46695 _ACEOF
46696 rm -f conftest.$ac_objext conftest$ac_exeext
46697 if { (ac_try="$ac_link"
46698 case "(($ac_try" in
46699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46700 *) ac_try_echo=$ac_try;;
46701 esac
46702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46703 (eval "$ac_link") 2>conftest.er1
46704 ac_status=$?
46705 grep -v '^ *+' conftest.er1 >conftest.err
46706 rm -f conftest.er1
46707 cat conftest.err >&5
46708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46709 (exit $ac_status); } && {
46710 test -z "$ac_cxx_werror_flag" ||
46711 test ! -s conftest.err
46712 } && test -s conftest$ac_exeext &&
46713 $as_test_x conftest$ac_exeext; then
46714 ompi_pthread_cxx_success=1
46715 else
46716 echo "$as_me: failed program was:" >&5
46717 sed 's/^/| /' conftest.$ac_ext >&5
46719 ompi_pthread_cxx_success=0
46722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46723 conftest$ac_exeext conftest.$ac_ext
46724 # END: OMPI_INTL_PTHREAD_TRY_LINK
46726 ac_ext=c
46727 ac_cpp='$CPP $CPPFLAGS'
46728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46732 if test "$ompi_pthread_cxx_success" = "1"; then
46733 PTHREAD_LIBS="$pl"
46734 { echo "$as_me:$LINENO: result: yes" >&5
46735 echo "${ECHO_T}yes" >&6; }
46736 else
46737 CXXCPPFLAGS="$orig_CXXCPPFLAGS"
46738 { echo "$as_me:$LINENO: result: no" >&5
46739 echo "${ECHO_T}no" >&6; }
46740 { { echo "$as_me:$LINENO: error: Can not find working threads configuration. aborting" >&5
46741 echo "$as_me: error: Can not find working threads configuration. aborting" >&2;}
46742 { (exit 1); exit 1; }; }
46744 else
46745 for pl in $plibs; do
46746 { echo "$as_me:$LINENO: checking if C++ compiler and POSIX threads work with $pl" >&5
46747 echo $ECHO_N "checking if C++ compiler and POSIX threads work with $pl... $ECHO_C" >&6; }
46748 case "${host_cpu}-${host-_os}" in
46749 *-aix* | *-freebsd*)
46750 if test "`echo $CXXCPPFLAGS | grep 'D_THREAD_SAFE'`" = ""; then
46751 PTRHEAD_CXXCPPFLAGS="-D_THREAD_SAFE"
46752 CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
46756 if test "`echo $CXXCPPFLAGS | grep 'D_REENTRANT'`" = ""; then
46757 PTHREAD_CXXCPPFLAGS="-D_REENTRANT"
46758 CXXCPPFLAGS="$CXXCPPFLAGS $PTHREAD_CXXCPPFLAGS"
46761 esac
46762 LIBS="$orig_LIBS $pl"
46763 ac_ext=cpp
46764 ac_cpp='$CXXCPP $CPPFLAGS'
46765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46770 # BEGIN: OMPI_INTL_PTHREAD_TRY_LINK
46772 # Make sure that we can run a small application in C or C++, which
46773 # ever is the current language. Do make sure that C or C++ is the
46774 # current language.
46776 # As long as this is not being run....
46777 # pthread_t may be anything from an int to a struct -- init with self-tid.
46779 cat >conftest.$ac_ext <<_ACEOF
46780 /* confdefs.h. */
46781 _ACEOF
46782 cat confdefs.h >>conftest.$ac_ext
46783 cat >>conftest.$ac_ext <<_ACEOF
46784 /* end confdefs.h. */
46785 #include <pthread.h>
46787 main ()
46789 pthread_t th=pthread_self(); pthread_join(th, 0);
46790 pthread_attr_init(0); pthread_cleanup_push(0, 0);
46791 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
46793 return 0;
46795 _ACEOF
46796 rm -f conftest.$ac_objext conftest$ac_exeext
46797 if { (ac_try="$ac_link"
46798 case "(($ac_try" in
46799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46800 *) ac_try_echo=$ac_try;;
46801 esac
46802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46803 (eval "$ac_link") 2>conftest.er1
46804 ac_status=$?
46805 grep -v '^ *+' conftest.er1 >conftest.err
46806 rm -f conftest.er1
46807 cat conftest.err >&5
46808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46809 (exit $ac_status); } && {
46810 test -z "$ac_cxx_werror_flag" ||
46811 test ! -s conftest.err
46812 } && test -s conftest$ac_exeext &&
46813 $as_test_x conftest$ac_exeext; then
46814 ompi_pthread_cxx_success=1
46815 else
46816 echo "$as_me: failed program was:" >&5
46817 sed 's/^/| /' conftest.$ac_ext >&5
46819 ompi_pthread_cxx_success=0
46822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46823 conftest$ac_exeext conftest.$ac_ext
46824 # END: OMPI_INTL_PTHREAD_TRY_LINK
46826 ac_ext=c
46827 ac_cpp='$CPP $CPPFLAGS'
46828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46832 if test "$ompi_pthread_cxx_success" = "1"; then
46833 PTHREAD_LIBS="$pl"
46834 { echo "$as_me:$LINENO: result: yes" >&5
46835 echo "${ECHO_T}yes" >&6; }
46836 else
46837 PTHREAD_CXXCPPFLAGS=
46838 CXXCPPFLAGS="$orig_CXXCPPFLAGS"
46839 { echo "$as_me:$LINENO: result: no" >&5
46840 echo "${ECHO_T}no" >&6; }
46842 done
46849 # Fortran compiler
46851 if test "$ompi_pthread_f77_success" = "0" -a "$OMPI_WANT_F77_BINDINGS" = "1"; then
46852 if test ! "$ompi_pthread_c_success" = "0" -a ! "$PTHREAD_LIBS" = "" ; then
46853 { echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $PTHREAD_LIBS" >&5
46854 echo $ECHO_N "checking if F77 compiler and POSIX threads work with $PTHREAD_LIBS... $ECHO_C" >&6; }
46855 LIBS="$orig_LIBS $PTHREAD_LIBS"
46856 ac_ext=c
46857 ac_cpp='$CPP $CPPFLAGS'
46858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46863 # BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77
46865 # Make sure that we can run a small application in Fortran, with
46866 # pthreads living in a C object file
46868 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
46869 # so the general rule is that if there is an _ in the function
46870 # name, then there are two trailing underscores. Otherwise,
46871 # there is only one trailing underscore. Any idea how to do
46872 # that with m4_translit?
46873 if echo pthreadtest | grep _ >/dev/null 2>&1 ; then
46874 ompi_ac_thread_fn=pthreadtest__
46875 else
46876 ompi_ac_thread_fn=pthreadtest_
46878 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
46879 ompi_ac_thread_fn=pthreadtest_
46880 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
46881 ompi_ac_thread_fn=pthreadtest
46882 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
46883 ompi_ac_thread_fn=pthreadtest
46884 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
46885 ompi_ac_thread_fn=PTHREADTEST
46886 else
46887 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
46888 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
46889 { (exit 1); exit 1; }; }
46893 # Fortran module
46894 cat > conftestf.f <<EOF
46895 program fpthread
46896 call pthreadtest
46900 # C module
46901 if test -f conftest.h; then
46902 ompi_conftest_h="#include \"conftest.h\""
46903 else
46904 ompi_conftest_h=""
46906 cat > conftest.c <<EOF
46907 #include <stdio.h>
46908 #include <stdlib.h>
46909 #include <pthread.h>
46910 $ompi_conftest_h
46912 #ifdef __cplusplus
46913 extern "C" {
46914 #endif
46915 void $ompi_ac_thread_fn()
46917 pthread_t th;
46918 pthread_create(&th, NULL, NULL, NULL);
46919 pthread_join(th, 0);
46920 pthread_attr_init(0);
46921 pthread_cleanup_push(0, 0);
46922 pthread_create(0,0,0,0);
46923 pthread_cleanup_pop(0);
46925 #ifdef __cplusplus
46927 #endif
46930 # Try the compile
46932 # 1 is the command
46933 # 2 is actions to do if success
46934 # 3 is actions to do if fail
46935 echo "configure:46935: $CC $CFLAGS -I. -c conftest.c" >&5
46936 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
46937 ompi_status=$?
46939 # 1 is the message
46940 # 2 is whether to put a prefix or not
46941 if test -n "1"; then
46942 echo "configure:46942: \$? = $ompi_status" >&5
46943 else
46944 echo \$? = $ompi_status >&5
46946 if test "$ompi_status" = "0"; then
46947 unset ompi_status
46949 # 1 is the command
46950 # 2 is actions to do if success
46951 # 3 is actions to do if fail
46952 echo "configure:46952: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
46953 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
46954 ompi_status=$?
46956 # 1 is the message
46957 # 2 is whether to put a prefix or not
46958 if test -n "1"; then
46959 echo "configure:46959: \$? = $ompi_status" >&5
46960 else
46961 echo \$? = $ompi_status >&5
46963 if test "$ompi_status" = "0"; then
46964 unset ompi_status
46965 HAPPY=1
46966 else
46967 unset ompi_status
46968 HAPPY=0
46970 else
46971 unset ompi_status
46972 HAPPY=0
46975 if test "$HAPPY" = "1"; then
46976 ompi_pthread_f77_success=1
46977 else
46979 # 1 is the message
46980 # 2 is whether to put a prefix or not
46981 if test -n "1"; then
46982 echo "configure:46982: here is the C program:" >&5
46983 else
46984 echo here is the C program: >&5
46987 # 1 is the filename
46988 if test -n "conftest.c" -a -f "conftest.c"; then
46989 cat conftest.c >&5
46991 if test -f conftest.h; then
46993 # 1 is the message
46994 # 2 is whether to put a prefix or not
46995 if test -n "1"; then
46996 echo "configure:46996: here is contest.h:" >&5
46997 else
46998 echo here is contest.h: >&5
47001 # 1 is the filename
47002 if test -n "conftest.h" -a -f "conftest.h"; then
47003 cat conftest.h >&5
47007 # 1 is the message
47008 # 2 is whether to put a prefix or not
47009 if test -n "1"; then
47010 echo "configure:47010: here is the fortran program:" >&5
47011 else
47012 echo here is the fortran program: >&5
47015 # 1 is the filename
47016 if test -n "conftestf.f" -a -f "conftestf.f"; then
47017 cat conftestf.f >&5
47019 ompi_pthread_f77_success=0
47022 unset HAPPY ompi_conftest_h
47023 /bin/rm -f conftest*
47024 # END: OMPI_INTL_PTHREAD_TRY_LINK_F77
47026 ac_ext=c
47027 ac_cpp='$CPP $CPPFLAGS'
47028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47032 LIBS="$orig_LIBS"
47033 if test "$ompi_pthread_f77_success" = "1"; then
47034 { echo "$as_me:$LINENO: result: yes" >&5
47035 echo "${ECHO_T}yes" >&6; }
47036 else
47037 { echo "$as_me:$LINENO: result: no" >&5
47038 echo "${ECHO_T}no" >&6; }
47039 { { echo "$as_me:$LINENO: error: Can not find working threads configuration. aborting" >&5
47040 echo "$as_me: error: Can not find working threads configuration. aborting" >&2;}
47041 { (exit 1); exit 1; }; }
47043 else
47044 for pl in $plibs; do
47045 { echo "$as_me:$LINENO: checking if F77 compiler and POSIX threads work with $pl" >&5
47046 echo $ECHO_N "checking if F77 compiler and POSIX threads work with $pl... $ECHO_C" >&6; }
47047 LIBS="$orig_LIBS $pl"
47048 ac_ext=c
47049 ac_cpp='$CPP $CPPFLAGS'
47050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47055 # BEGIN: OMPI_INTL_PTHREAD_TRY_LINK_F77
47057 # Make sure that we can run a small application in Fortran, with
47058 # pthreads living in a C object file
47060 if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
47061 # so the general rule is that if there is an _ in the function
47062 # name, then there are two trailing underscores. Otherwise,
47063 # there is only one trailing underscore. Any idea how to do
47064 # that with m4_translit?
47065 if echo pthreadtest | grep _ >/dev/null 2>&1 ; then
47066 ompi_ac_thread_fn=pthreadtest__
47067 else
47068 ompi_ac_thread_fn=pthreadtest_
47070 elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
47071 ompi_ac_thread_fn=pthreadtest_
47072 elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
47073 ompi_ac_thread_fn=pthreadtest
47074 elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
47075 ompi_ac_thread_fn=pthreadtest
47076 elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
47077 ompi_ac_thread_fn=PTHREADTEST
47078 else
47079 { { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
47080 echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
47081 { (exit 1); exit 1; }; }
47085 # Fortran module
47086 cat > conftestf.f <<EOF
47087 program fpthread
47088 call pthreadtest
47092 # C module
47093 if test -f conftest.h; then
47094 ompi_conftest_h="#include \"conftest.h\""
47095 else
47096 ompi_conftest_h=""
47098 cat > conftest.c <<EOF
47099 #include <stdio.h>
47100 #include <stdlib.h>
47101 #include <pthread.h>
47102 $ompi_conftest_h
47104 #ifdef __cplusplus
47105 extern "C" {
47106 #endif
47107 void $ompi_ac_thread_fn()
47109 pthread_t th;
47110 pthread_create(&th, NULL, NULL, NULL);
47111 pthread_join(th, 0);
47112 pthread_attr_init(0);
47113 pthread_cleanup_push(0, 0);
47114 pthread_create(0,0,0,0);
47115 pthread_cleanup_pop(0);
47117 #ifdef __cplusplus
47119 #endif
47122 # Try the compile
47124 # 1 is the command
47125 # 2 is actions to do if success
47126 # 3 is actions to do if fail
47127 echo "configure:47127: $CC $CFLAGS -I. -c conftest.c" >&5
47128 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
47129 ompi_status=$?
47131 # 1 is the message
47132 # 2 is whether to put a prefix or not
47133 if test -n "1"; then
47134 echo "configure:47134: \$? = $ompi_status" >&5
47135 else
47136 echo \$? = $ompi_status >&5
47138 if test "$ompi_status" = "0"; then
47139 unset ompi_status
47141 # 1 is the command
47142 # 2 is actions to do if success
47143 # 3 is actions to do if fail
47144 echo "configure:47144: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
47145 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
47146 ompi_status=$?
47148 # 1 is the message
47149 # 2 is whether to put a prefix or not
47150 if test -n "1"; then
47151 echo "configure:47151: \$? = $ompi_status" >&5
47152 else
47153 echo \$? = $ompi_status >&5
47155 if test "$ompi_status" = "0"; then
47156 unset ompi_status
47157 HAPPY=1
47158 else
47159 unset ompi_status
47160 HAPPY=0
47162 else
47163 unset ompi_status
47164 HAPPY=0
47167 if test "$HAPPY" = "1"; then
47168 ompi_pthread_f77_success=1
47169 else
47171 # 1 is the message
47172 # 2 is whether to put a prefix or not
47173 if test -n "1"; then
47174 echo "configure:47174: here is the C program:" >&5
47175 else
47176 echo here is the C program: >&5
47179 # 1 is the filename
47180 if test -n "conftest.c" -a -f "conftest.c"; then
47181 cat conftest.c >&5
47183 if test -f conftest.h; then
47185 # 1 is the message
47186 # 2 is whether to put a prefix or not
47187 if test -n "1"; then
47188 echo "configure:47188: here is contest.h:" >&5
47189 else
47190 echo here is contest.h: >&5
47193 # 1 is the filename
47194 if test -n "conftest.h" -a -f "conftest.h"; then
47195 cat conftest.h >&5
47199 # 1 is the message
47200 # 2 is whether to put a prefix or not
47201 if test -n "1"; then
47202 echo "configure:47202: here is the fortran program:" >&5
47203 else
47204 echo here is the fortran program: >&5
47207 # 1 is the filename
47208 if test -n "conftestf.f" -a -f "conftestf.f"; then
47209 cat conftestf.f >&5
47211 ompi_pthread_f77_success=0
47214 unset HAPPY ompi_conftest_h
47215 /bin/rm -f conftest*
47216 # END: OMPI_INTL_PTHREAD_TRY_LINK_F77
47218 ac_ext=c
47219 ac_cpp='$CPP $CPPFLAGS'
47220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47224 LIBS="$orig_LIBS"
47225 if test "$ompi_pthread_f77_success" = "1"; then
47226 PTHREAD_LIBS="$pl"
47227 { echo "$as_me:$LINENO: result: yes" >&5
47228 echo "${ECHO_T}yes" >&6; }
47229 break
47230 else
47231 { echo "$as_me:$LINENO: result: no" >&5
47232 echo "${ECHO_T}no" >&6; }
47234 done
47239 # End: OMPI_INTL_POSIX_THREADS_LIBS
47244 # check to see if we can set error checking mutexes
47247 # LinuxThreads
47248 { echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
47249 echo $ECHO_N "checking for PTHREAD_MUTEX_ERRORCHECK_NP... $ECHO_C" >&6; }
47250 cat >conftest.$ac_ext <<_ACEOF
47251 /* confdefs.h. */
47252 _ACEOF
47253 cat confdefs.h >>conftest.$ac_ext
47254 cat >>conftest.$ac_ext <<_ACEOF
47255 /* end confdefs.h. */
47256 #include <pthread.h>
47258 main ()
47260 pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK_NP);
47262 return 0;
47264 _ACEOF
47265 rm -f conftest.$ac_objext conftest$ac_exeext
47266 if { (ac_try="$ac_link"
47267 case "(($ac_try" in
47268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47269 *) ac_try_echo=$ac_try;;
47270 esac
47271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47272 (eval "$ac_link") 2>conftest.er1
47273 ac_status=$?
47274 grep -v '^ *+' conftest.er1 >conftest.err
47275 rm -f conftest.er1
47276 cat conftest.err >&5
47277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47278 (exit $ac_status); } && {
47279 test -z "$ac_c_werror_flag" ||
47280 test ! -s conftest.err
47281 } && test -s conftest$ac_exeext &&
47282 $as_test_x conftest$ac_exeext; then
47283 result="yes" defval=1
47284 else
47285 echo "$as_me: failed program was:" >&5
47286 sed 's/^/| /' conftest.$ac_ext >&5
47288 result="no" defval=0
47291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47292 conftest$ac_exeext conftest.$ac_ext
47293 { echo "$as_me:$LINENO: result: $result" >&5
47294 echo "${ECHO_T}$result" >&6; }
47296 cat >>confdefs.h <<_ACEOF
47297 #define OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP $defval
47298 _ACEOF
47301 # Mac OS X
47302 { echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_ERRORCHECK" >&5
47303 echo $ECHO_N "checking for PTHREAD_MUTEX_ERRORCHECK... $ECHO_C" >&6; }
47304 cat >conftest.$ac_ext <<_ACEOF
47305 /* confdefs.h. */
47306 _ACEOF
47307 cat confdefs.h >>conftest.$ac_ext
47308 cat >>conftest.$ac_ext <<_ACEOF
47309 /* end confdefs.h. */
47310 #include <pthread.h>
47312 main ()
47314 pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK);
47316 return 0;
47318 _ACEOF
47319 rm -f conftest.$ac_objext conftest$ac_exeext
47320 if { (ac_try="$ac_link"
47321 case "(($ac_try" in
47322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47323 *) ac_try_echo=$ac_try;;
47324 esac
47325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47326 (eval "$ac_link") 2>conftest.er1
47327 ac_status=$?
47328 grep -v '^ *+' conftest.er1 >conftest.err
47329 rm -f conftest.er1
47330 cat conftest.err >&5
47331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47332 (exit $ac_status); } && {
47333 test -z "$ac_c_werror_flag" ||
47334 test ! -s conftest.err
47335 } && test -s conftest$ac_exeext &&
47336 $as_test_x conftest$ac_exeext; then
47337 result="yes" defval=1
47338 else
47339 echo "$as_me: failed program was:" >&5
47340 sed 's/^/| /' conftest.$ac_ext >&5
47342 result="no" defval=0
47345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47346 conftest$ac_exeext conftest.$ac_ext
47347 { echo "$as_me:$LINENO: result: $result" >&5
47348 echo "${ECHO_T}$result" >&6; }
47350 cat >>confdefs.h <<_ACEOF
47351 #define OMPI_HAVE_PTHREAD_MUTEX_ERRORCHECK $defval
47352 _ACEOF
47355 CFLAGS="$orig_CFLAGS"
47356 FFLAGS="$orig_FFLAGS"
47357 CXXFLAGS="$orig_CXXFLAGS"
47358 CPPFLAGS="$orig_CPPFLAGS"
47359 CXXCPPFLAGS="$orig_CXXCPPFLAGS"
47360 LDFLAGS="$orig_LDFLAGS"
47361 LIBS="$orig_LIBS"
47363 if test "$OMPI_WANT_F77_BINDINGS" != "1"; then
47364 ompi_pthread_f77_success=1
47367 if test "$ompi_pthread_c_success" = "1" -a \
47368 "$ompi_pthread_cxx_success" = "1" -a \
47369 "$ompi_pthread_f77_success" = "1"; then
47370 internal_useless=1
47371 HAVE_POSIX_THREADS=1
47372 else
47373 internal_useless=1
47374 HAVE_POSIX_THREADS=0
47377 unset ompi_pthread_c_success ompi_pthread_f77_success ompi_pthread_cxx_success
47378 unset internal_useless
47380 { echo "$as_me:$LINENO: checking for working POSIX threads package" >&5
47381 echo $ECHO_N "checking for working POSIX threads package... $ECHO_C" >&6; }
47382 if test "$HAVE_POSIX_THREADS" = "1" ; then
47383 { echo "$as_me:$LINENO: result: yes" >&5
47384 echo "${ECHO_T}yes" >&6; }
47385 else
47386 { echo "$as_me:$LINENO: result: no" >&5
47387 echo "${ECHO_T}no" >&6; }
47389 export HAVE_POSIX_THREADS
47392 ompi_sthread_c_success=0
47393 ompi_sthread_f77_success=0
47394 ompi_sthread_cxx_success=0
47396 orig_CFLAGS="$CFLAGS"
47397 orig_FFLAGS="$FFLAGS"
47398 orig_CXXFLAGS="$CXXFLAGS"
47399 orig_CPPFLAGS="$CPPFLAGS"
47400 orig_CXXCPPFLAGS="$CXXCPPFLAGS"
47401 orig_LDFLAGS="$LDFLAGS"
47402 orig_LIBS="$LIBS"
47404 STHREAD_CFLAGS=
47405 STHREAD_FFLAGS=
47406 STHREAD_CXXFLAGS=
47407 STHREAD_CPPFLAGS=
47408 STHREAD_CXXCPPFLAGS=
47409 STHREAD_LDFLAGS=
47410 STHREAD_LIBS=
47412 # Only run C++ and Fortran if those compilers already configured
47414 if test "$BASECC" = "cc"; then
47415 STHREAD_CFLAGS="-mt"
47416 style="Workshop/Forte"
47417 else
47418 STHREAD_CPPFLAGS="-D_REENTRANT"
47419 STHREAD_LIBS="-lthread"
47420 style="-lthread"
47422 { echo "$as_me:$LINENO: checking if C compiler and Solaris threads work" >&5
47423 echo $ECHO_N "checking if C compiler and Solaris threads work... $ECHO_C" >&6; }
47424 CFLAGS="$STHREAD_CFLAGS $CFLAGS_orig"
47425 CPPFLAGS="$STHREAD_CPPFLAGS $CPPFLAGS_orig"
47426 LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig"
47427 LIBS="$STHREAD_LIBS $LIBS_orig"
47428 ac_ext=c
47429 ac_cpp='$CPP $CPPFLAGS'
47430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47435 # BEGIN: OMPI_INTL_SOLARIS_TRY_LINK
47437 # Make sure that we can run a small application in C or C++, which
47438 # ever is the current language. Do make sure that C or C++ is the
47439 # current language.
47440 cat >conftest.$ac_ext <<_ACEOF
47441 /* confdefs.h. */
47442 _ACEOF
47443 cat confdefs.h >>conftest.$ac_ext
47444 cat >>conftest.$ac_ext <<_ACEOF
47445 /* end confdefs.h. */
47446 #include <thread.h>
47448 main ()
47450 thread_t th; thr_join(th, 0, 0);
47451 thr_create(0,0,0,0,0,0);
47453 return 0;
47455 _ACEOF
47456 rm -f conftest.$ac_objext conftest$ac_exeext
47457 if { (ac_try="$ac_link"
47458 case "(($ac_try" in
47459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47460 *) ac_try_echo=$ac_try;;
47461 esac
47462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47463 (eval "$ac_link") 2>conftest.er1
47464 ac_status=$?
47465 grep -v '^ *+' conftest.er1 >conftest.err
47466 rm -f conftest.er1
47467 cat conftest.err >&5
47468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47469 (exit $ac_status); } && {
47470 test -z "$ac_c_werror_flag" ||
47471 test ! -s conftest.err
47472 } && test -s conftest$ac_exeext &&
47473 $as_test_x conftest$ac_exeext; then
47474 ompi_sthread_c_success=1
47475 else
47476 echo "$as_me: failed program was:" >&5
47477 sed 's/^/| /' conftest.$ac_ext >&5
47479 ompi_sthread_c_success=0
47482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47483 conftest$ac_exeext conftest.$ac_ext
47484 # END: OMPI_INTL_SOLARIS_TRY_LINK
47486 ac_ext=c
47487 ac_cpp='$CPP $CPPFLAGS'
47488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47492 if test "$ompi_sthread_c_success" = "1"; then
47493 { echo "$as_me:$LINENO: result: yes - $style" >&5
47494 echo "${ECHO_T}yes - $style" >&6; }
47495 else
47496 { echo "$as_me:$LINENO: result: no" >&5
47497 echo "${ECHO_T}no" >&6; }
47502 if test "$BASECXX" = "CC"; then
47503 STHREAD_CXXFLAGS="-mt"
47504 style="Workshop/Forte"
47505 elif test "$BASECXX" = "KCC"; then
47506 STHREAD_CXXFLAGS="--backend -mt"
47507 style="KCC"
47508 else
47509 STHREAD_CXXCPPFLAGS="-D_REENTRANT"
47510 STHREAD_LIBS="-lthread"
47511 style="-lthread"
47513 CXXFLAGS="$STHREAD_CXXFLAGS $CXXFLAGS_orig"
47514 CXXCPPFLAGS="$STHREAD_CXXPPFLAGS $CXXPPFLAGS_orig"
47515 LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig"
47516 LIBS="$STHREAD_LIBS $LIBS_orig"
47517 { echo "$as_me:$LINENO: checking if C++ compiler and Solaris threads work" >&5
47518 echo $ECHO_N "checking if C++ compiler and Solaris threads work... $ECHO_C" >&6; }
47519 ac_ext=cpp
47520 ac_cpp='$CXXCPP $CPPFLAGS'
47521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47526 # BEGIN: OMPI_INTL_SOLARIS_TRY_LINK
47528 # Make sure that we can run a small application in C or C++, which
47529 # ever is the current language. Do make sure that C or C++ is the
47530 # current language.
47531 cat >conftest.$ac_ext <<_ACEOF
47532 /* confdefs.h. */
47533 _ACEOF
47534 cat confdefs.h >>conftest.$ac_ext
47535 cat >>conftest.$ac_ext <<_ACEOF
47536 /* end confdefs.h. */
47537 #include <thread.h>
47539 main ()
47541 thread_t th; thr_join(th, 0, 0);
47542 thr_create(0,0,0,0,0,0);
47544 return 0;
47546 _ACEOF
47547 rm -f conftest.$ac_objext conftest$ac_exeext
47548 if { (ac_try="$ac_link"
47549 case "(($ac_try" in
47550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47551 *) ac_try_echo=$ac_try;;
47552 esac
47553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47554 (eval "$ac_link") 2>conftest.er1
47555 ac_status=$?
47556 grep -v '^ *+' conftest.er1 >conftest.err
47557 rm -f conftest.er1
47558 cat conftest.err >&5
47559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47560 (exit $ac_status); } && {
47561 test -z "$ac_cxx_werror_flag" ||
47562 test ! -s conftest.err
47563 } && test -s conftest$ac_exeext &&
47564 $as_test_x conftest$ac_exeext; then
47565 ompi_sthread_cxx_success=1
47566 else
47567 echo "$as_me: failed program was:" >&5
47568 sed 's/^/| /' conftest.$ac_ext >&5
47570 ompi_sthread_cxx_success=0
47573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47574 conftest$ac_exeext conftest.$ac_ext
47575 # END: OMPI_INTL_SOLARIS_TRY_LINK
47577 ac_ext=c
47578 ac_cpp='$CPP $CPPFLAGS'
47579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47583 if test "$ompi_sthread_cxx_success" = "1"; then
47584 { echo "$as_me:$LINENO: result: yes - $style" >&5
47585 echo "${ECHO_T}yes - $style" >&6; }
47586 else
47587 { echo "$as_me:$LINENO: result: no" >&5
47588 echo "${ECHO_T}no" >&6; }
47593 if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
47594 if test "$BASEFC" = "f77"; then
47595 STHREAD_FFLAGS="-mt"
47596 style="Workshop/Forte"
47597 else
47598 STHREAD_LIBS="-lthread"
47599 style="-lthread"
47601 FFLAGS="$STHREAD_FFLAGS $FFLAGS_orig"
47602 CFLAGS="$STHREAD_CFLAGS $CFLAGS_orig"
47603 CPPFLAGS="$STHREAD_CPPFLAGS $CPPFLAGS_orig"
47604 LDFLAGS="$STHREAD_LDFLAGS $LDFLAGS_orig"
47605 LIBS="$STHREAD_LIBS $LIBS_orig"
47606 { echo "$as_me:$LINENO: checking if F77 compiler and Solaris threads work" >&5
47607 echo $ECHO_N "checking if F77 compiler and Solaris threads work... $ECHO_C" >&6; }
47608 ac_ext=c
47609 ac_cpp='$CPP $CPPFLAGS'
47610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47615 # BEGIN: OMPI_INTL_SOLARIS_TRY_LINK_F77
47617 # Make sure that we can run a small application in Fortran, with
47618 # pthreads living in a C object file
47620 # Fortran module
47621 cat > conftestf.f <<EOF
47622 program fpthread
47623 INTEGER i
47624 i = 1
47628 # C module
47629 if test -f conftest.h; then
47630 ompi_conftest_h="#include \"conftest.h\""
47631 else
47632 ompi_conftest_h=""
47634 cat > conftest.c <<EOF
47635 #include <stdio.h>
47636 #include <stdlib.h>
47637 #include <thread.h>
47638 $ompi_conftest_h
47640 #ifdef __cplusplus
47641 extern "C" {
47642 #endif
47643 void ompi_pthread()
47645 thread_t th;
47646 thr_join(th, 0, 0);
47647 thr_create(0,0,0,0,0,0);
47649 #ifdef __cplusplus
47651 #endif
47654 # Try the compile
47656 # 1 is the command
47657 # 2 is actions to do if success
47658 # 3 is actions to do if fail
47659 echo "configure:47659: $CC $CFLAGS -I. -c conftest.c" >&5
47660 $CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
47661 ompi_status=$?
47663 # 1 is the message
47664 # 2 is whether to put a prefix or not
47665 if test -n "1"; then
47666 echo "configure:47666: \$? = $ompi_status" >&5
47667 else
47668 echo \$? = $ompi_status >&5
47670 if test "$ompi_status" = "0"; then
47671 unset ompi_status
47673 # 1 is the command
47674 # 2 is actions to do if success
47675 # 3 is actions to do if fail
47676 echo "configure:47676: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
47677 $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
47678 ompi_status=$?
47680 # 1 is the message
47681 # 2 is whether to put a prefix or not
47682 if test -n "1"; then
47683 echo "configure:47683: \$? = $ompi_status" >&5
47684 else
47685 echo \$? = $ompi_status >&5
47687 if test "$ompi_status" = "0"; then
47688 unset ompi_status
47689 HAPPY=1
47690 else
47691 unset ompi_status
47692 HAPPY=0
47694 else
47695 unset ompi_status
47696 HAPPY=0
47699 if test "$HAPPY" = "1"; then
47700 ompi_sthread_f77_success=1
47701 else
47703 # 1 is the message
47704 # 2 is whether to put a prefix or not
47705 if test -n "1"; then
47706 echo "configure:47706: here is the C program:" >&5
47707 else
47708 echo here is the C program: >&5
47711 # 1 is the filename
47712 if test -n "conftest.c" -a -f "conftest.c"; then
47713 cat conftest.c >&5
47715 if test -f conftest.h; then
47717 # 1 is the message
47718 # 2 is whether to put a prefix or not
47719 if test -n "1"; then
47720 echo "configure:47720: here is contest.h:" >&5
47721 else
47722 echo here is contest.h: >&5
47725 # 1 is the filename
47726 if test -n "conftest.h" -a -f "conftest.h"; then
47727 cat conftest.h >&5
47731 # 1 is the message
47732 # 2 is whether to put a prefix or not
47733 if test -n "1"; then
47734 echo "configure:47734: here is the fortran program:" >&5
47735 else
47736 echo here is the fortran program: >&5
47739 # 1 is the filename
47740 if test -n "conftestf.f" -a -f "conftestf.f"; then
47741 cat conftestf.f >&5
47743 ompi_sthread_f77_success=0
47746 unset HAPPY ompi_conftest_h
47747 /bin/rm -f conftest*
47748 # END: OMPI_INTL_SOLARIS_TRY_LINK_F77
47750 ac_ext=c
47751 ac_cpp='$CPP $CPPFLAGS'
47752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47756 if test "$ompi_sthread_f77_success" = "1"; then
47757 { echo "$as_me:$LINENO: result: yes - $style" >&5
47758 echo "${ECHO_T}yes - $style" >&6; }
47759 else
47760 { echo "$as_me:$LINENO: result: no" >&5
47761 echo "${ECHO_T}no" >&6; }
47763 else
47764 ompi_sthread_f77_success=1
47768 CFLAGS="$orig_CFLAGS"
47769 FFLAGS="$orig_FFLAGS"
47770 CXXFLAGS="$orig_CXXFLAGS"
47771 CPPFLAGS="$orig_CPPFLAGS"
47772 CXXCPPFLAGS="$orig_CXXCPPFLAGS"
47773 LDFLAGS="$orig_LDFLAGS"
47774 LIBS="$orig_LIBS"
47776 if test "$ompi_sthread_c_success" = "1" -a \
47777 "$ompi_sthread_cxx_success" = "1" -a \
47778 "$ompi_sthread_f77_success" = "1"; then
47779 internal_useless=1
47780 HAVE_SOLARIS_THREADS=1
47781 else
47782 internal_useless=1
47783 HAVE_SOLARIS_THREADS=0
47786 unset ompi_sthread_c_success ompi_sthread_f77_success ompi_sthread_cxx_success
47787 unset internal_useless
47789 { echo "$as_me:$LINENO: checking for working Solaris threads package" >&5
47790 echo $ECHO_N "checking for working Solaris threads package... $ECHO_C" >&6; }
47791 if test "$HAVE_SOLARIS_THREADS" = "1" ; then
47792 { echo "$as_me:$LINENO: result: yes" >&5
47793 echo "${ECHO_T}yes" >&6; }
47794 else
47795 { echo "$as_me:$LINENO: result: no" >&5
47796 echo "${ECHO_T}no" >&6; }
47798 export HAVE_SOLARIS_THREADS
47801 # Ask what threading we want (allow solaris / posix right now)
47803 { echo "$as_me:$LINENO: checking for type of thread support" >&5
47804 echo $ECHO_N "checking for type of thread support... $ECHO_C" >&6; }
47806 # Check whether --with-threads was given.
47807 if test "${with_threads+set}" = set; then
47808 withval=$with_threads; THREAD_TYPE=$withval
47812 if test "$THREAD_TYPE" = "solaris"; then
47814 if test "$HAVE_SOLARIS_THREADS" = "0"; then
47815 { echo "$as_me:$LINENO: WARNING: \"*** You have chosen Solaris threads, which are not\"" >&5
47816 echo "$as_me: WARNING: \"*** You have chosen Solaris threads, which are not\"" >&2;}
47817 { echo "$as_me:$LINENO: WARNING: \"*** available on your system \"" >&5
47818 echo "$as_me: WARNING: \"*** available on your system \"" >&2;}
47819 { { echo "$as_me:$LINENO: error: \"*** Can not continue\"" >&5
47820 echo "$as_me: error: \"*** Can not continue\"" >&2;}
47821 { (exit 1); exit 1; }; }
47823 elif test "$THREAD_TYPE" = "posix"; then
47825 if test "$HAVE_POSIX_THREADS" = "0"; then
47826 { echo "$as_me:$LINENO: WARNING: \"*** You have chosen POSIX threads, which are not\"" >&5
47827 echo "$as_me: WARNING: \"*** You have chosen POSIX threads, which are not\"" >&2;}
47828 { echo "$as_me:$LINENO: WARNING: \"*** available on your system \"" >&5
47829 echo "$as_me: WARNING: \"*** available on your system \"" >&2;}
47830 { { echo "$as_me:$LINENO: error: \"*** Can not continue\"" >&5
47831 echo "$as_me: error: \"*** Can not continue\"" >&2;}
47832 { (exit 1); exit 1; }; }
47834 elif test "$THREAD_TYPE" = "no"; then
47835 THREAD_TYPE="none"
47836 elif test -z "$THREAD_TYPE" -o "$THREAD_TYPE" = "yes"; then
47838 # Actual logic here - properly set THREAD_TYPE - we go for system
47839 # optimized where ever possible
47840 case "$host" in
47841 *solaris*)
47842 if test "$HAVE_SOLARIS_THREADS" = "1"; then
47843 THREAD_TYPE="solaris"
47844 elif test "$HAVE_POSIX_THREADS" = "1"; then
47845 THREAD_TYPE="posix"
47846 else
47847 THEAD_TYPE="none found"
47851 if test "$HAVE_POSIX_THREADS" = "1"; then
47852 THREAD_TYPE="posix"
47853 else
47854 THREAD_TYPE="none found"
47857 esac
47858 else
47860 { echo "$as_me:$LINENO: WARNING: \"*** You have specified a thread type that I do not\"" >&5
47861 echo "$as_me: WARNING: \"*** You have specified a thread type that I do not\"" >&2;}
47862 { echo "$as_me:$LINENO: WARNING: \"*** understand. Valid options are posix and solaris\"" >&5
47863 echo "$as_me: WARNING: \"*** understand. Valid options are posix and solaris\"" >&2;}
47864 { { echo "$as_me:$LINENO: error: \"*** Can not continue.\"" >&5
47865 echo "$as_me: error: \"*** Can not continue.\"" >&2;}
47866 { (exit 1); exit 1; }; }
47868 { echo "$as_me:$LINENO: result: $THREAD_TYPE" >&5
47869 echo "${ECHO_T}$THREAD_TYPE" >&6; }
47873 # Ok, now run the configuration for that thread package.
47875 # Blah - this should be made better, but I don't know how...
47877 if test "$THREAD_TYPE" = "solaris"; then
47878 cat >>confdefs.h <<\_ACEOF
47879 #define OMPI_HAVE_SOLARIS_THREADS 1
47880 _ACEOF
47882 cat >>confdefs.h <<\_ACEOF
47883 #define OMPI_HAVE_POSIX_THREADS 0
47884 _ACEOF
47886 cat >>confdefs.h <<\_ACEOF
47887 #define OMPI_THREADS_HAVE_DIFFERENT_PIDS 0
47888 _ACEOF
47891 THREAD_CFLAGS="$STHREAD_CFLAGS"
47892 THREAD_FFLAGS="$STHREAD_FFLAGS"
47893 THREAD_CXXFLAGS="$STHREAD_CXXFLAGS"
47894 THREAD_CPPFLAGS="$STHREAD_CPPFLAGS"
47895 THREAD_CXXCPPFLAGS="$STHREAD_CXXCPPFLAGS"
47896 THREAD_LDFLAGS="$STHREAD_LDFLAGS"
47897 THREAD_LIBS="$STHREAD_LIBS"
47898 elif test "$THREAD_TYPE" = "posix"; then
47899 cat >>confdefs.h <<\_ACEOF
47900 #define OMPI_HAVE_SOLARIS_THREADS 0
47901 _ACEOF
47903 cat >>confdefs.h <<\_ACEOF
47904 #define OMPI_HAVE_POSIX_THREADS 1
47905 _ACEOF
47908 THREAD_CFLAGS="$PTHREAD_CFLAGS"
47909 THREAD_FFLAGS="$PTHREAD_FFLAGS"
47910 THREAD_CXXFLAGS="$PTHREAD_CXXFLAGS"
47911 THREAD_CPPFLAGS="$PTHREAD_CPPFLAGS"
47912 THREAD_CXXCPPFLAGS="$PTHREAD_CXXCPPFLAGS"
47913 THREAD_LDFLAGS="$PTHREAD_LDFLAGS"
47914 THREAD_LIBS="$PTHREAD_LIBS"
47918 # Arguments: none
47920 # Dependencies: None
47922 # Sets:
47923 # OMPI_THREADS_HAVE_DIFFERENT_PIDS (variable)
47925 # Test for Linux-like threads in the system. We will need to handle things like
47926 # getpid() differently in the case of a Linux-like threads model.
47932 { echo "$as_me:$LINENO: checking if threads have different pids (pthreads on linux)" >&5
47933 echo $ECHO_N "checking if threads have different pids (pthreads on linux)... $ECHO_C" >&6; }
47934 CPPFLAGS_save="$CPPFLAGS"
47935 CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
47936 LDFLAGS_save="$LDFLAGS"
47937 LDFLAGS="$LDFLAGS $THREAD_LDFLAGS"
47938 LIBS_save="$LIBS"
47939 LIBS="$LIBS $THREAD_LIBS"
47940 if test "$cross_compiling" = yes; then
47941 case $host in
47942 *-linux*)
47943 MSG="cross compiling - assuming yes"
47944 OMPI_THREADS_HAVE_DIFFERENT_PIDS=1
47947 MSG="cross compiling - assuming no"
47948 OMPI_THREADS_HAVE_DIFFERENT_PIDS=0
47950 esac
47952 else
47953 cat >conftest.$ac_ext <<_ACEOF
47954 /* confdefs.h. */
47955 _ACEOF
47956 cat confdefs.h >>conftest.$ac_ext
47957 cat >>conftest.$ac_ext <<_ACEOF
47958 /* end confdefs.h. */
47959 #include <pthread.h>
47960 #include <sys/types.h>
47961 #include <unistd.h>
47962 #include <stdlib.h>
47963 void *checkpid(void *arg);
47964 int main(int argc, char* argv[]) {
47965 pthread_t thr;
47966 int pid, retval;
47967 pid = getpid();
47968 pthread_create(&thr, NULL, checkpid, &pid);
47969 pthread_join(thr, (void **) &retval);
47970 exit(retval);
47972 void *checkpid(void *arg) {
47973 int ret;
47974 int ppid = *((int *) arg);
47975 if (ppid == getpid())
47976 ret = 0;
47977 else
47978 ret = 1;
47979 pthread_exit((void *) ret);
47981 _ACEOF
47982 rm -f conftest$ac_exeext
47983 if { (ac_try="$ac_link"
47984 case "(($ac_try" in
47985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47986 *) ac_try_echo=$ac_try;;
47987 esac
47988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47989 (eval "$ac_link") 2>&5
47990 ac_status=$?
47991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47993 { (case "(($ac_try" in
47994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47995 *) ac_try_echo=$ac_try;;
47996 esac
47997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47998 (eval "$ac_try") 2>&5
47999 ac_status=$?
48000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48001 (exit $ac_status); }; }; then
48002 MSG=no OMPI_THREADS_HAVE_DIFFERENT_PIDS=0
48003 else
48004 echo "$as_me: program exited with status $ac_status" >&5
48005 echo "$as_me: failed program was:" >&5
48006 sed 's/^/| /' conftest.$ac_ext >&5
48008 ( exit $ac_status )
48009 MSG=yes OMPI_THREADS_HAVE_DIFFERENT_PIDS=1
48011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48016 CPPFLAGS="$CPPFLAGS_save"
48017 LDFLAGS="$LDFLAGS_save"
48018 LIBS="$LIBS_save"
48020 { echo "$as_me:$LINENO: result: $MSG" >&5
48021 echo "${ECHO_T}$MSG" >&6; }
48022 cat >>confdefs.h <<_ACEOF
48023 #define OMPI_THREADS_HAVE_DIFFERENT_PIDS $OMPI_THREADS_HAVE_DIFFERENT_PIDS
48024 _ACEOF
48028 # if pthreads is not available, then the system does not have an insane threads
48029 # model
48031 unset MSG
48032 else
48033 cat >>confdefs.h <<\_ACEOF
48034 #define OMPI_HAVE_SOLARIS_THREADS 0
48035 _ACEOF
48037 cat >>confdefs.h <<\_ACEOF
48038 #define OMPI_HAVE_POSIX_THREADS 0
48039 _ACEOF
48041 cat >>confdefs.h <<\_ACEOF
48042 #define OMPI_THREADS_HAVE_DIFFERENT_PIDS 0
48043 _ACEOF
48046 TRHEAD_CFLAGS=
48047 THREAD_FFLAGS=
48048 THREAD_CXXFLAGS=
48049 THREAD_CPPFLAGS=
48050 THREAD_CXXCPPFLAGS=
48051 THREAD_LDFLAGS=
48052 THREAD_LIBS=
48053 if test "$THREAD_TYPE" != "none" ; then
48054 cat <<EOF
48056 ************************************************************************
48058 Open MPI was unable to find threading support on your system. In the
48059 near future, the OMPI development team is considering requiring
48060 threading support for proper OMPI execution. This is in part because
48061 we are not aware of any users that do not have thread support - so we
48062 need you to e-mail us at ompi@ompi-mpi.org and let us know about this
48063 problem.
48065 ************************************************************************
48073 if test "$THREAD_TYPE" = "posix"; then
48074 OMPI_HAVE_POSIX_THREADS_TRUE=
48075 OMPI_HAVE_POSIX_THREADS_FALSE='#'
48076 else
48077 OMPI_HAVE_POSIX_THREADS_TRUE='#'
48078 OMPI_HAVE_POSIX_THREADS_FALSE=
48083 if test "$THREAD_TYPE" = "solaris"; then
48084 OMPI_HAVE_SOLARIS_THREADS_TRUE=
48085 OMPI_HAVE_SOLARIS_THREADS_FALSE='#'
48086 else
48087 OMPI_HAVE_SOLARIS_THREADS_TRUE='#'
48088 OMPI_HAVE_SOLARIS_THREADS_FALSE=
48093 # Now configure the whole MPI and progress thread gorp
48095 { echo "$as_me:$LINENO: checking if want MPI thread support" >&5
48096 echo $ECHO_N "checking if want MPI thread support... $ECHO_C" >&6; }
48097 # Check whether --enable-mpi-threads was given.
48098 if test "${enable_mpi_threads+set}" = set; then
48099 enableval=$enable_mpi_threads; enable_mpi_threads="$enableval"
48103 if test "$enable_mpi_threads" = "" ; then
48104 # no argument - default to no
48105 OMPI_ENABLE_MPI_THREADS=0
48106 enable_mpi_threads="no"
48107 elif test "$enable_mpi_threads" = "no" ; then
48108 OMPI_ENABLE_MPI_THREADS=0
48109 else
48110 # they want MPI threads. Make sure we have threads
48111 if test "$THREAD_TYPE" != "none" ; then
48112 OMPI_ENABLE_MPI_THREADS=1
48113 enable_mpi_threads="yes"
48114 else
48115 { { echo "$as_me:$LINENO: error: User requested MPI threads, but no threading model supported" >&5
48116 echo "$as_me: error: User requested MPI threads, but no threading model supported" >&2;}
48117 { (exit 1); exit 1; }; }
48121 cat >>confdefs.h <<_ACEOF
48122 #define OMPI_ENABLE_MPI_THREADS $OMPI_ENABLE_MPI_THREADS
48123 _ACEOF
48125 { echo "$as_me:$LINENO: result: $enable_mpi_threads" >&5
48126 echo "${ECHO_T}$enable_mpi_threads" >&6; }
48129 { echo "$as_me:$LINENO: checking if want asynchronous progress thread support" >&5
48130 echo $ECHO_N "checking if want asynchronous progress thread support... $ECHO_C" >&6; }
48131 # Check whether --enable-progress-threads was given.
48132 if test "${enable_progress_threads+set}" = set; then
48133 enableval=$enable_progress_threads; enable_progress_threads="$enableval"
48137 if test "$enable_progress_threads" = "" ; then
48138 # no argument given either way. Default to no.
48139 OMPI_ENABLE_PROGRESS_THREADS=0
48140 enable_progress_threads="no"
48141 elif test "$enable_progress_threads" = "no" ; then
48142 OMPI_ENABLE_PROGRESS_THREADS=0
48143 enable_progress_threads="no"
48144 else
48145 # they want threaded progress
48146 if test "$THREAD_TYPE" != "none" ; then
48147 OMPI_ENABLE_PROGRESS_THREADS=1
48148 enable_progress_threads="yes"
48149 else
48150 { { echo "$as_me:$LINENO: error: User requested progress threads, but no threading model supported" >&5
48151 echo "$as_me: error: User requested progress threads, but no threading model supported" >&2;}
48152 { (exit 1); exit 1; }; }
48156 cat >>confdefs.h <<_ACEOF
48157 #define OMPI_ENABLE_PROGRESS_THREADS $OMPI_ENABLE_PROGRESS_THREADS
48158 _ACEOF
48160 { echo "$as_me:$LINENO: result: $enable_progress_threads" >&5
48161 echo "${ECHO_T}$enable_progress_threads" >&6; }
48163 CFLAGS="$CFLAGS $THREAD_CFLAGS"
48164 CXXFLAGS="$CXXFLAGS $THREAD_CXXFLAGS"
48165 CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
48166 CXXCPPFLAGS="$CXXCPPFLAGS $THREAD_CXXCPPFLAGS"
48167 LDFLAGS="$LDFLAGS $THREAD_LDFLAGS"
48168 LIBS="$LIBS $THREAD_LIBS"
48171 WRAPPER_EXTRA_CPPFLAGS="$WRAPPER_EXTRA_CPPFLAGS $THREAD_CPPFLAGS"
48172 WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS $THREAD_CFLAGS"
48173 WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS $THREAD_CXXFLAGS"
48174 WRAPPER_EXTRA_FFLAGS="$WRAPPER_EXTRA_FFLAGS $THREAD_FFLAGS"
48175 WRAPPER_EXTRA_FCFLAGS="$WRAPPER_EXTRA_FCFLAGS $THREAD_FFLAGS"
48176 WRAPPER_EXTRA_LDFLAGS="$WRAPPER_EXTRA_LDFLAGS $THREAD_LDFLAGS"
48177 # no need to update WRAPPER_EXTRA_LIBS - we'll get it from LT later
48180 # What is the local equivalent of "ln -s"
48183 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
48184 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
48185 LN_S=$as_ln_s
48186 if test "$LN_S" = "ln -s"; then
48187 { echo "$as_me:$LINENO: result: yes" >&5
48188 echo "${ECHO_T}yes" >&6; }
48189 else
48190 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
48191 echo "${ECHO_T}no, using $LN_S" >&6; }
48196 # We need as and lex
48198 # By default we simply use the C compiler to build assembly code.
48200 test "${CCAS+set}" = set || CCAS=$CC
48201 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
48205 for ac_prog in flex lex
48207 # Extract the first word of "$ac_prog", so it can be a program name with args.
48208 set dummy $ac_prog; ac_word=$2
48209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48211 if test "${ac_cv_prog_LEX+set}" = set; then
48212 echo $ECHO_N "(cached) $ECHO_C" >&6
48213 else
48214 if test -n "$LEX"; then
48215 ac_cv_prog_LEX="$LEX" # Let the user override the test.
48216 else
48217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48218 for as_dir in $PATH
48220 IFS=$as_save_IFS
48221 test -z "$as_dir" && as_dir=.
48222 for ac_exec_ext in '' $ac_executable_extensions; do
48223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48224 ac_cv_prog_LEX="$ac_prog"
48225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48226 break 2
48228 done
48229 done
48230 IFS=$as_save_IFS
48234 LEX=$ac_cv_prog_LEX
48235 if test -n "$LEX"; then
48236 { echo "$as_me:$LINENO: result: $LEX" >&5
48237 echo "${ECHO_T}$LEX" >&6; }
48238 else
48239 { echo "$as_me:$LINENO: result: no" >&5
48240 echo "${ECHO_T}no" >&6; }
48244 test -n "$LEX" && break
48245 done
48246 test -n "$LEX" || LEX=":"
48248 if test "x$LEX" != "x:"; then
48249 cat >conftest.l <<_ACEOF
48251 a { ECHO; }
48252 b { REJECT; }
48253 c { yymore (); }
48254 d { yyless (1); }
48255 e { yyless (input () != 0); }
48256 f { unput (yytext[0]); }
48257 . { BEGIN INITIAL; }
48259 #ifdef YYTEXT_POINTER
48260 extern char *yytext;
48261 #endif
48263 main (void)
48265 return ! yylex () + ! yywrap ();
48267 _ACEOF
48268 { (ac_try="$LEX conftest.l"
48269 case "(($ac_try" in
48270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48271 *) ac_try_echo=$ac_try;;
48272 esac
48273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48274 (eval "$LEX conftest.l") 2>&5
48275 ac_status=$?
48276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48277 (exit $ac_status); }
48278 { echo "$as_me:$LINENO: checking lex output file root" >&5
48279 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
48280 if test "${ac_cv_prog_lex_root+set}" = set; then
48281 echo $ECHO_N "(cached) $ECHO_C" >&6
48282 else
48284 if test -f lex.yy.c; then
48285 ac_cv_prog_lex_root=lex.yy
48286 elif test -f lexyy.c; then
48287 ac_cv_prog_lex_root=lexyy
48288 else
48289 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
48290 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
48291 { (exit 1); exit 1; }; }
48294 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
48295 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
48296 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
48298 if test -z "${LEXLIB+set}"; then
48299 { echo "$as_me:$LINENO: checking lex library" >&5
48300 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
48301 if test "${ac_cv_lib_lex+set}" = set; then
48302 echo $ECHO_N "(cached) $ECHO_C" >&6
48303 else
48305 ac_save_LIBS=$LIBS
48306 ac_cv_lib_lex='none needed'
48307 for ac_lib in '' -lfl -ll; do
48308 LIBS="$ac_lib $ac_save_LIBS"
48309 cat >conftest.$ac_ext <<_ACEOF
48310 `cat $LEX_OUTPUT_ROOT.c`
48311 _ACEOF
48312 rm -f conftest.$ac_objext conftest$ac_exeext
48313 if { (ac_try="$ac_link"
48314 case "(($ac_try" in
48315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48316 *) ac_try_echo=$ac_try;;
48317 esac
48318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48319 (eval "$ac_link") 2>conftest.er1
48320 ac_status=$?
48321 grep -v '^ *+' conftest.er1 >conftest.err
48322 rm -f conftest.er1
48323 cat conftest.err >&5
48324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48325 (exit $ac_status); } && {
48326 test -z "$ac_c_werror_flag" ||
48327 test ! -s conftest.err
48328 } && test -s conftest$ac_exeext &&
48329 $as_test_x conftest$ac_exeext; then
48330 ac_cv_lib_lex=$ac_lib
48331 else
48332 echo "$as_me: failed program was:" >&5
48333 sed 's/^/| /' conftest.$ac_ext >&5
48338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48339 conftest$ac_exeext conftest.$ac_ext
48340 test "$ac_cv_lib_lex" != 'none needed' && break
48341 done
48342 LIBS=$ac_save_LIBS
48345 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
48346 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
48347 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
48351 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
48352 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
48353 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
48354 echo $ECHO_N "(cached) $ECHO_C" >&6
48355 else
48356 # POSIX says lex can declare yytext either as a pointer or an array; the
48357 # default is implementation-dependent. Figure out which it is, since
48358 # not all implementations provide the %pointer and %array declarations.
48359 ac_cv_prog_lex_yytext_pointer=no
48360 ac_save_LIBS=$LIBS
48361 LIBS="$LEXLIB $ac_save_LIBS"
48362 cat >conftest.$ac_ext <<_ACEOF
48363 #define YYTEXT_POINTER 1
48364 `cat $LEX_OUTPUT_ROOT.c`
48365 _ACEOF
48366 rm -f conftest.$ac_objext conftest$ac_exeext
48367 if { (ac_try="$ac_link"
48368 case "(($ac_try" in
48369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48370 *) ac_try_echo=$ac_try;;
48371 esac
48372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48373 (eval "$ac_link") 2>conftest.er1
48374 ac_status=$?
48375 grep -v '^ *+' conftest.er1 >conftest.err
48376 rm -f conftest.er1
48377 cat conftest.err >&5
48378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48379 (exit $ac_status); } && {
48380 test -z "$ac_c_werror_flag" ||
48381 test ! -s conftest.err
48382 } && test -s conftest$ac_exeext &&
48383 $as_test_x conftest$ac_exeext; then
48384 ac_cv_prog_lex_yytext_pointer=yes
48385 else
48386 echo "$as_me: failed program was:" >&5
48387 sed 's/^/| /' conftest.$ac_ext >&5
48392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48393 conftest$ac_exeext conftest.$ac_ext
48394 LIBS=$ac_save_LIBS
48397 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
48398 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
48399 if test $ac_cv_prog_lex_yytext_pointer = yes; then
48401 cat >>confdefs.h <<\_ACEOF
48402 #define YYTEXT_POINTER 1
48403 _ACEOF
48406 rm -f conftest.l $LEX_OUTPUT_ROOT.c
48409 if test "$LEX" = :; then
48410 LEX=${am_missing_run}flex
48413 # If we don't have GNU Flex and we don't have a generated .c file
48414 # (distribution tarballs will have the .c file included, but SVN
48415 # checkouts will not), then error. Must have GNU Flex -- other
48416 # versions of Lex are not workable (all things being equal, since this
48417 # is *only* required for developers, we decided that it really was not
48418 # worth it to be portable between different versions of lex ;-).
48420 if test -z "$LEX" -o -n "`echo $LEX | grep missing`" -o \
48421 "`basename $LEX`" != "flex"; then
48422 if test ! -f "$srcdir/opal/util/show_help_lex.c"; then
48423 { echo "$as_me:$LINENO: WARNING: *** Could not find GNU Flex on your system." >&5
48424 echo "$as_me: WARNING: *** Could not find GNU Flex on your system." >&2;}
48425 { echo "$as_me:$LINENO: WARNING: *** GNU Flex required for developer builds of Open MPI." >&5
48426 echo "$as_me: WARNING: *** GNU Flex required for developer builds of Open MPI." >&2;}
48427 { echo "$as_me:$LINENO: WARNING: *** Other versions of Lex are not supported." >&5
48428 echo "$as_me: WARNING: *** Other versions of Lex are not supported." >&2;}
48429 { echo "$as_me:$LINENO: WARNING: *** YOU DO NOT NEED FLEX FOR DISTRIBUTION TARBALLS!" >&5
48430 echo "$as_me: WARNING: *** YOU DO NOT NEED FLEX FOR DISTRIBUTION TARBALLS!" >&2;}
48431 { echo "$as_me:$LINENO: WARNING: *** If you absolutely cannot install GNU Flex on this system" >&5
48432 echo "$as_me: WARNING: *** If you absolutely cannot install GNU Flex on this system" >&2;}
48433 { echo "$as_me:$LINENO: WARNING: *** consider using a distribution tarball, or generate the" >&5
48434 echo "$as_me: WARNING: *** consider using a distribution tarball, or generate the" >&2;}
48435 { echo "$as_me:$LINENO: WARNING: *** following files on another system (using Flex) and" >&5
48436 echo "$as_me: WARNING: *** following files on another system (using Flex) and" >&2;}
48437 { echo "$as_me:$LINENO: WARNING: *** copy them here:" >&5
48438 echo "$as_me: WARNING: *** copy them here:" >&2;}
48439 for lfile in `find . -name \*.l -print`; do
48440 cfile="`echo $lfile | cut -d. -f-2`"
48441 { echo "$as_me:$LINENO: WARNING: *** $cfile.c" >&5
48442 echo "$as_me: WARNING: *** $cfile.c" >&2;}
48443 done
48444 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
48445 echo "$as_me: error: Cannot continue" >&2;}
48446 { (exit 1); exit 1; }; }
48451 # File system case sensitivity
48456 # Arguments: none
48458 # Dependencies: None
48460 # See if we are on a case sensitive filesystem. Some filesystems
48461 # (like HFS+ on MacOS X and MS Windows) are not case sensitive - mpicc
48462 # and mpiCC are the same file.
48464 # Sets prefix_OS_HAVE_CASE_SENSITIVE_FS to 1 if filesystem is case
48465 # sensitive (ie, mpicc and mpiCC will be different files) or 0 if
48466 # filesystem is not case sensitive (ie, mpicc and mpiCC will be
48467 # the same file).
48471 have_cs_fs=1
48473 { echo "$as_me:$LINENO: checking if build filesystem is case sensitive" >&5
48474 echo $ECHO_N "checking if build filesystem is case sensitive... $ECHO_C" >&6; }
48475 cat > conf_fs_test.$$ <<EOF
48476 lowercase
48479 cat > CONF_FS_TEST.$$ <<EOF
48480 uppercase
48483 if test "`cat conf_fs_test.$$`" = "lowercase"; then
48484 have_cs_fs=1
48485 { echo "$as_me:$LINENO: result: yes" >&5
48486 echo "${ECHO_T}yes" >&6; }
48487 else
48488 have_cs_fs=0
48489 { echo "$as_me:$LINENO: result: no" >&5
48490 echo "${ECHO_T}no" >&6; }
48493 rm -f conf_fs_test.$$ CONF_FS_TEST.$$
48496 # Now see what the user wants to do...
48498 { echo "$as_me:$LINENO: checking if configuring for case sensitive filesystem" >&5
48499 echo $ECHO_N "checking if configuring for case sensitive filesystem... $ECHO_C" >&6; }
48501 # Check whether --with-cs_fs was given.
48502 if test "${with_cs_fs+set}" = set; then
48503 withval=$with_cs_fs;
48507 if test "$with_cs_fs" = "yes"; then
48508 OMPI_WANT_CS_FS=1
48509 elif test -z "$with_cs_fs"; then
48510 OMPI_WANT_CS_FS=$have_cs_fs
48511 else
48512 OMPI_WANT_CS_FS=0
48515 if test "$OMPI_WANT_CS_FS" = "1"; then
48516 { echo "$as_me:$LINENO: result: yes" >&5
48517 echo "${ECHO_T}yes" >&6; }
48518 else
48519 { echo "$as_me:$LINENO: result: no" >&5
48520 echo "${ECHO_T}no" >&6; }
48525 if test "$OMPI_WANT_CS_FS" = "1"; then
48526 CASE_SENSITIVE_FS_TRUE=
48527 CASE_SENSITIVE_FS_FALSE='#'
48528 else
48529 CASE_SENSITIVE_FS_TRUE='#'
48530 CASE_SENSITIVE_FS_FALSE=
48534 if test "$OMPI_WANT_CS_FS" = "0"; then
48535 cat <<EOF
48537 *******************************************************************************
48538 NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
48539 *******************************************************************************
48541 Because Open MPI is being installed on a non-case sensitive file
48542 system, the C++ wrapper compiler will be named mpic++ instead of the
48543 traditional mpiCC.
48545 Please update any makefiles appropriately.
48547 *******************************************************************************
48548 NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
48549 *******************************************************************************
48554 # Clean up
48555 unset have_cs_fs
48557 # AIX: FIONBIO in sys/ioctl.h
48558 # glibc: memcpy
48560 # checkpoint results
48561 cat >confcache <<\_ACEOF
48562 # This file is a shell script that caches the results of configure
48563 # tests run on this system so they can be shared between configure
48564 # scripts and configure runs, see configure's option --config-cache.
48565 # It is not useful on other systems. If it contains results you don't
48566 # want to keep, you may remove or edit it.
48568 # config.status only pays attention to the cache file if you give it
48569 # the --recheck option to rerun configure.
48571 # `ac_cv_env_foo' variables (set or unset) will be overridden when
48572 # loading this file, other *unset* `ac_cv_foo' will be assigned the
48573 # following values.
48575 _ACEOF
48577 # The following way of writing the cache mishandles newlines in values,
48578 # but we know of no workaround that is simple, portable, and efficient.
48579 # So, we kill variables containing newlines.
48580 # Ultrix sh set writes to stderr and can't be redirected directly,
48581 # and sets the high bit in the cache file unless we assign to the vars.
48583 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
48584 eval ac_val=\$$ac_var
48585 case $ac_val in #(
48586 *${as_nl}*)
48587 case $ac_var in #(
48588 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
48589 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
48590 esac
48591 case $ac_var in #(
48592 _ | IFS | as_nl) ;; #(
48593 *) $as_unset $ac_var ;;
48594 esac ;;
48595 esac
48596 done
48598 (set) 2>&1 |
48599 case $as_nl`(ac_space=' '; set) 2>&1` in #(
48600 *${as_nl}ac_space=\ *)
48601 # `set' does not quote correctly, so add quotes (double-quote
48602 # substitution turns \\\\ into \\, and sed turns \\ into \).
48603 sed -n \
48604 "s/'/'\\\\''/g;
48605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
48606 ;; #(
48608 # `set' quotes correctly as required by POSIX, so do not add quotes.
48609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
48611 esac |
48612 sort
48614 sed '
48615 /^ac_cv_env_/b end
48616 t clear
48617 :clear
48618 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48619 t end
48620 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48621 :end' >>confcache
48622 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
48623 if test -w "$cache_file"; then
48624 test "x$cache_file" != "x/dev/null" &&
48625 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
48626 echo "$as_me: updating cache $cache_file" >&6;}
48627 cat confcache >$cache_file
48628 else
48629 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
48630 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
48633 rm -f confcache
48636 ##################################
48637 # MCA
48638 ##################################
48640 ompi_show_title "Modular Component Architecture (MCA) setup"
48642 { echo "$as_me:$LINENO: checking for subdir args" >&5
48643 echo $ECHO_N "checking for subdir args... $ECHO_C" >&6; }
48646 # Invoke configure in subdirectories.
48648 # ompi_subdir_args is the name of the variable to assign the output to
48652 # Make a list of command line args --eliminate the --srcdir and
48653 # --cache-file args, because we need to replace them with our own
48654 # values when invoking the sub-configure script.
48657 subdirs_args=
48658 subdirs_skip=no
48660 eval "set x $ac_configure_args"
48661 shift
48662 for subdirs_arg
48664 if test "$subdirs_skip" = "yes"; then
48665 subdirs_skip=no
48666 else
48667 case $subdirs_arg in
48668 -cache-file | --cache-file | -cache | --cache)
48669 subdirs_skip=yes
48671 --config-cache | -C)
48673 -cache-file=* | --cache-file=*)
48675 -srcdir | --srcdir)
48676 subdirs_skip=yes
48678 -srcdir=* | --srcdir=*)
48681 case $subdir_arg in
48682 *\'*) subdir_arg=`echo "$subdir_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
48683 esac
48684 subdirs_args="$subdirs_args '$subdirs_arg'"
48686 esac
48688 done
48691 # Assign the output
48694 subdirs_str=ompi_subdir_args=\"$subdirs_args\"
48695 eval "$subdirs_str"
48698 # Clean up
48701 unset subdirs_str subdirs_skip subdirs_args subdirs_arg
48702 { echo "$as_me:$LINENO: result: $ompi_subdir_args" >&5
48703 echo "${ECHO_T}$ompi_subdir_args" >&6; }
48708 if test -n "$ac_tool_prefix"; then
48709 for ac_prog in $CCC gcc cc objc
48711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
48712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
48713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48715 if test "${ac_cv_prog_OBJC+set}" = set; then
48716 echo $ECHO_N "(cached) $ECHO_C" >&6
48717 else
48718 if test -n "$OBJC"; then
48719 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
48720 else
48721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48722 for as_dir in $PATH
48724 IFS=$as_save_IFS
48725 test -z "$as_dir" && as_dir=.
48726 for ac_exec_ext in '' $ac_executable_extensions; do
48727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48728 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
48729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48730 break 2
48732 done
48733 done
48734 IFS=$as_save_IFS
48738 OBJC=$ac_cv_prog_OBJC
48739 if test -n "$OBJC"; then
48740 { echo "$as_me:$LINENO: result: $OBJC" >&5
48741 echo "${ECHO_T}$OBJC" >&6; }
48742 else
48743 { echo "$as_me:$LINENO: result: no" >&5
48744 echo "${ECHO_T}no" >&6; }
48748 test -n "$OBJC" && break
48749 done
48751 if test -z "$OBJC"; then
48752 ac_ct_OBJC=$OBJC
48753 for ac_prog in $CCC gcc cc objc
48755 # Extract the first word of "$ac_prog", so it can be a program name with args.
48756 set dummy $ac_prog; ac_word=$2
48757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48759 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
48760 echo $ECHO_N "(cached) $ECHO_C" >&6
48761 else
48762 if test -n "$ac_ct_OBJC"; then
48763 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
48764 else
48765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48766 for as_dir in $PATH
48768 IFS=$as_save_IFS
48769 test -z "$as_dir" && as_dir=.
48770 for ac_exec_ext in '' $ac_executable_extensions; do
48771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48772 ac_cv_prog_ac_ct_OBJC="$ac_prog"
48773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48774 break 2
48776 done
48777 done
48778 IFS=$as_save_IFS
48782 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
48783 if test -n "$ac_ct_OBJC"; then
48784 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
48785 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
48786 else
48787 { echo "$as_me:$LINENO: result: no" >&5
48788 echo "${ECHO_T}no" >&6; }
48792 test -n "$ac_ct_OBJC" && break
48793 done
48795 if test "x$ac_ct_OBJC" = x; then
48796 OBJC="gcc"
48797 else
48798 case $cross_compiling:$ac_tool_warned in
48799 yes:)
48800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48801 whose name does not start with the host triplet. If you think this
48802 configuration is useful to you, please write to autoconf@gnu.org." >&5
48803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48804 whose name does not start with the host triplet. If you think this
48805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48806 ac_tool_warned=yes ;;
48807 esac
48808 OBJC=$ac_ct_OBJC
48813 depcc="$OBJC" am_compiler_list='gcc3 gcc'
48815 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
48816 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
48817 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
48818 echo $ECHO_N "(cached) $ECHO_C" >&6
48819 else
48820 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
48821 # We make a subdir and do the tests there. Otherwise we can end up
48822 # making bogus files that we don't know about and never remove. For
48823 # instance it was reported that on HP-UX the gcc test will end up
48824 # making a dummy file named `D' -- because `-MD' means `put the output
48825 # in D'.
48826 mkdir conftest.dir
48827 # Copy depcomp to subdir because otherwise we won't find it if we're
48828 # using a relative directory.
48829 cp "$am_depcomp" conftest.dir
48830 cd conftest.dir
48831 # We will build objects and dependencies in a subdirectory because
48832 # it helps to detect inapplicable dependency modes. For instance
48833 # both Tru64's cc and ICC support -MD to output dependencies as a
48834 # side effect of compilation, but ICC will put the dependencies in
48835 # the current directory while Tru64 will put them in the object
48836 # directory.
48837 mkdir sub
48839 am_cv_OBJC_dependencies_compiler_type=none
48840 if test "$am_compiler_list" = ""; then
48841 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
48843 for depmode in $am_compiler_list; do
48844 # Setup a source with many dependencies, because some compilers
48845 # like to wrap large dependency lists on column 80 (with \), and
48846 # we should not choose a depcomp mode which is confused by this.
48848 # We need to recreate these files for each test, as the compiler may
48849 # overwrite some of them when testing with obscure command lines.
48850 # This happens at least with the AIX C compiler.
48851 : > sub/conftest.c
48852 for i in 1 2 3 4 5 6; do
48853 echo '#include "conftst'$i'.h"' >> sub/conftest.c
48854 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
48855 # Solaris 8's {/usr,}/bin/sh.
48856 touch sub/conftst$i.h
48857 done
48858 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
48860 case $depmode in
48861 nosideeffect)
48862 # after this tag, mechanisms are not by side-effect, so they'll
48863 # only be used when explicitly requested
48864 if test "x$enable_dependency_tracking" = xyes; then
48865 continue
48866 else
48867 break
48870 none) break ;;
48871 esac
48872 # We check with `-c' and `-o' for the sake of the "dashmstdout"
48873 # mode. It turns out that the SunPro C++ compiler does not properly
48874 # handle `-M -o', and we need to detect this.
48875 if depmode=$depmode \
48876 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
48877 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
48878 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
48879 >/dev/null 2>conftest.err &&
48880 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
48881 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
48882 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
48883 # icc doesn't choke on unknown options, it will just issue warnings
48884 # or remarks (even with -Werror). So we grep stderr for any message
48885 # that says an option was ignored or not supported.
48886 # When given -MP, icc 7.0 and 7.1 complain thusly:
48887 # icc: Command line warning: ignoring option '-M'; no argument required
48888 # The diagnosis changed in icc 8.0:
48889 # icc: Command line remark: option '-MP' not supported
48890 if (grep 'ignoring option' conftest.err ||
48891 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
48892 am_cv_OBJC_dependencies_compiler_type=$depmode
48893 break
48896 done
48898 cd ..
48899 rm -rf conftest.dir
48900 else
48901 am_cv_OBJC_dependencies_compiler_type=none
48905 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
48906 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
48907 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
48912 test "x$enable_dependency_tracking" != xno \
48913 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
48914 am__fastdepOBJC_TRUE=
48915 am__fastdepOBJC_FALSE='#'
48916 else
48917 am__fastdepOBJC_TRUE='#'
48918 am__fastdepOBJC_FALSE=
48924 # Find which components should be built as run-time loadable components
48925 # Acceptable combinations:
48927 # [default -- no option given]
48928 # --enable-mca-dso
48929 # --enable-mca-dso=[.+,]*COMPONENT_TYPE[.+,]*
48930 # --enable-mca-dso=[.+,]*COMPONENT_TYPE-COMPONENT_NAME[.+,]*
48931 # --disable-mca-dso
48933 # Check whether --enable-mca-no-build was given.
48934 if test "${enable_mca_no_build+set}" = set; then
48935 enableval=$enable_mca_no_build;
48938 # Check whether --enable-mca-dso was given.
48939 if test "${enable_mca_dso+set}" = set; then
48940 enableval=$enable_mca_dso;
48943 # Check whether --enable-mca-static was given.
48944 if test "${enable_mca_static+set}" = set; then
48945 enableval=$enable_mca_static;
48948 # Check whether --enable-mca-direct was given.
48949 if test "${enable_mca_direct+set}" = set; then
48950 enableval=$enable_mca_direct;
48954 { echo "$as_me:$LINENO: checking which components should be disabled" >&5
48955 echo $ECHO_N "checking which components should be disabled... $ECHO_C" >&6; }
48956 if test "$enable_mca_no_build" = "yes"; then
48957 { echo "$as_me:$LINENO: result: yes" >&5
48958 echo "${ECHO_T}yes" >&6; }
48959 { { echo "$as_me:$LINENO: error: *** The enable-mca-no-build flag requires an explicit list
48960 *** of type-component pairs. For example, --enable-mca-direct=pml-teg" >&5
48961 echo "$as_me: error: *** The enable-mca-no-build flag requires an explicit list
48962 *** of type-component pairs. For example, --enable-mca-direct=pml-teg" >&2;}
48963 { (exit 1); exit 1; }; }
48964 else
48965 ifs_save="$IFS"
48966 IFS="${IFS}$PATH_SEPARATOR,"
48967 msg=
48968 for item in $enable_mca_no_build; do
48969 type="`echo $item | cut -f1 -d-`"
48970 comp="`echo $item | cut -f2- -d-`"
48971 if test -z $type -o -z $comp ; then
48972 { { echo "$as_me:$LINENO: error: *** The enable-no-build flag requires a
48973 *** list of type-component pairs. Invalid input detected." >&5
48974 echo "$as_me: error: *** The enable-no-build flag requires a
48975 *** list of type-component pairs. Invalid input detected." >&2;}
48976 { (exit 1); exit 1; }; }
48977 else
48978 str="`echo DISABLE_${type}_${comp}=1 | sed s/-/_/g`"
48979 eval $str
48980 msg="$item $msg"
48982 done
48983 IFS="$ifs_save"
48985 { echo "$as_me:$LINENO: result: $msg" >&5
48986 echo "${ECHO_T}$msg" >&6; }
48987 unset msg
48990 # First, add all the mca-direct components / types into the mca-static
48991 # lists and create a list of component types that are direct compile,
48992 # in the form DIRECT_[type]=[component]
48994 { echo "$as_me:$LINENO: checking which components should be direct-linked into the library" >&5
48995 echo $ECHO_N "checking which components should be direct-linked into the library... $ECHO_C" >&6; }
48996 if test "$enable_mca_direct" = "yes" ; then
48997 { echo "$as_me:$LINENO: result: yes" >&5
48998 echo "${ECHO_T}yes" >&6; }
48999 { { echo "$as_me:$LINENO: error: *** The enable-mca-direct flag requires an explicit list of
49000 *** type-component pairs. For example, --enable-mca-direct=pml-teg,coll-basic" >&5
49001 echo "$as_me: error: *** The enable-mca-direct flag requires an explicit list of
49002 *** type-component pairs. For example, --enable-mca-direct=pml-teg,coll-basic" >&2;}
49003 { (exit 1); exit 1; }; }
49004 elif test ! -z "$enable_mca_direct" -a "$enable_mca_direct" != "" ; then
49006 # we need to add this into the static list, unless the static list
49007 # is everything
49009 if test "$enable_mca_static" = "no" ; then
49010 { echo "$as_me:$LINENO: WARNING: *** Re-enabling static component support for direct call" >&5
49011 echo "$as_me: WARNING: *** Re-enabling static component support for direct call" >&2;}
49012 enable_mca_static="$enable_mca_direct"
49013 elif test -z "$enable_mca_static" ; then
49014 enable_mca_static="$enable_mca_direct"
49015 elif test "$enable_mca_static" != "yes" ; then
49016 enable_mca_static="$enable_mca_direct,$enable_mca_static"
49019 ifs_save="$IFS"
49020 IFS="${IFS}$PATH_SEPARATOR,"
49021 msg=
49022 for item in $enable_mca_direct; do
49023 type="`echo $item | cut -f1 -d-`"
49024 comp="`echo $item | cut -f2- -d-`"
49025 if test -z $type -o -z $comp ; then
49026 { { echo "$as_me:$LINENO: error: *** The enable-mca-direct flag requires a
49027 *** list of type-component pairs. Invalid input detected." >&5
49028 echo "$as_me: error: *** The enable-mca-direct flag requires a
49029 *** list of type-component pairs. Invalid input detected." >&2;}
49030 { (exit 1); exit 1; }; }
49031 else
49032 str="`echo DIRECT_$type=$comp | sed s/-/_/g`"
49033 eval $str
49034 msg="$item $msg"
49036 done
49037 IFS="$ifs_save"
49039 { echo "$as_me:$LINENO: result: $msg" >&5
49040 echo "${ECHO_T}$msg" >&6; }
49041 unset msg
49044 # Second, set the DSO_all and STATIC_all variables. conflict
49045 # resolution (prefer static) is done in the big loop below
49047 { echo "$as_me:$LINENO: checking which components should be run-time loadable" >&5
49048 echo $ECHO_N "checking which components should be run-time loadable... $ECHO_C" >&6; }
49049 if test "$enable_static" != "no"; then
49050 DSO_all=0
49051 msg=none
49052 elif test -z "$enable_mca_dso" -o "$enable_mca_dso" = "yes"; then
49053 DSO_all=1
49054 msg=all
49055 elif test "$enable_mca_dso" = "no"; then
49056 DSO_all=0
49057 msg=none
49058 else
49059 DSO_all=0
49060 ifs_save="$IFS"
49061 IFS="${IFS}$PATH_SEPARATOR,"
49062 msg=
49063 for item in $enable_mca_dso; do
49064 str="`echo DSO_$item=1 | sed s/-/_/g`"
49065 eval $str
49066 msg="$item $msg"
49067 done
49068 IFS="$ifs_save"
49070 { echo "$as_me:$LINENO: result: $msg" >&5
49071 echo "${ECHO_T}$msg" >&6; }
49072 unset msg
49073 if test "$enable_static" != "no"; then
49074 { echo "$as_me:$LINENO: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&5
49075 echo "$as_me: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&2;}
49076 { echo "$as_me:$LINENO: WARNING: *** Building MCA components as DSOs automatically disabled" >&5
49077 echo "$as_me: WARNING: *** Building MCA components as DSOs automatically disabled" >&2;}
49080 { echo "$as_me:$LINENO: checking which components should be static" >&5
49081 echo $ECHO_N "checking which components should be static... $ECHO_C" >&6; }
49082 if test "$enable_mca_static" = "yes"; then
49083 STATIC_all=1
49084 msg=all
49085 elif test -z "$enable_mca_static" -o "$enable_mca_static" = "no"; then
49086 STATIC_all=0
49087 msg=none
49088 else
49089 STATIC_all=0
49090 ifs_save="$IFS"
49091 IFS="${IFS}$PATH_SEPARATOR,"
49092 msg=
49093 for item in $enable_mca_static; do
49094 str="`echo STATIC_$item=1 | sed s/-/_/g`"
49095 eval $str
49096 msg="$item $msg"
49097 done
49098 IFS="$ifs_save"
49100 { echo "$as_me:$LINENO: result: $msg" >&5
49101 echo "${ECHO_T}$msg" >&6; }
49102 unset msg
49104 { echo "$as_me:$LINENO: checking for projects containing MCA frameworks" >&5
49105 echo $ECHO_N "checking for projects containing MCA frameworks... $ECHO_C" >&6; }
49106 { echo "$as_me:$LINENO: result: opal, orte, ompi" >&5
49107 echo "${ECHO_T}opal, orte, ompi" >&6; }
49109 # if there isn't a project list, abort
49112 # now configre all the projects, frameworks, and components. Most
49113 # of the hard stuff is in here
49114 MCA_PROJECT_SUBDIRS=
49115 MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS opal"
49117 # can't use a variable rename here because these need to be evaled
49118 # at auto* time.
49120 ompi_show_subtitle "Configuring MCA for opal"
49122 { echo "$as_me:$LINENO: checking for frameworks for opal" >&5
49123 echo $ECHO_N "checking for frameworks for opal... $ECHO_C" >&6; }
49124 { echo "$as_me:$LINENO: result: maffinity, memcpy, memory, paffinity, timer" >&5
49125 echo "${ECHO_T}maffinity, memcpy, memory, paffinity, timer" >&6; }
49127 # iterate through the list of frameworks. There is something
49128 # funky with m4 foreach if the list is defined, but empty. It
49129 # will call the 3rd argument once with an empty value for the
49130 # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK
49131 # with an empty second argument. Grrr....
49132 # if there isn't a project list, abort
49134 # Also setup two variables for Makefiles:
49135 # MCA_project_FRAMEWORKS - list of frameworks in that project
49136 # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing
49137 # to more libraries) that must be included
49138 # in the project's main library
49141 MCA_opal_FRAMEWORKS=
49142 MCA_opal_FRAMEWORKS_SUBDIRS=
49143 MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS=
49144 MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS=
49145 MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS=
49146 MCA_opal_FRAMEWORK_LIBS=
49148 # common has to go up front
49149 if test "maffinity" = "common" ; then
49150 MCA_opal_FRAMEWORKS="maffinity $MCA_opal_FRAMEWORKS"
49151 MCA_opal_FRAMEWORKS_SUBDIRS="mca/maffinity $MCA_opal_FRAMEWORKS_SUBDIRS"
49152 MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_maffinity_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
49153 MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_maffinity_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
49154 MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_maffinity_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
49155 else
49156 MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS maffinity"
49157 MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/maffinity"
49158 MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_maffinity_ALL_SUBDIRS)"
49159 MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_maffinity_DSO_SUBDIRS)"
49160 MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_maffinity_STATIC_SUBDIRS)"
49162 if test "maffinity" != "common" ; then
49163 MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/maffinity/libmca_maffinity.la"
49165 MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_maffinity_STATIC_LTLIBS)"
49167 ompi_show_subsubtitle "Configuring MCA framework maffinity"
49169 # setup for framework
49170 all_components=
49171 static_components=
49172 dso_components=
49173 static_ltlibs=
49175 # Ensure that the directory where the #include file is to live
49176 # exists. Need to do this for VPATH builds, because the directory
49177 # may not exist yet. For the "common" type, it's not really a
49178 # component, so it doesn't have a base.
49179 if test "maffinity" = "common" ; then
49180 outdir=opal/mca/common
49181 else
49182 outdir=opal/mca/maffinity/base
49184 { as_dir=$outdir
49185 case $as_dir in #(
49186 -*) as_dir=./$as_dir;;
49187 esac
49188 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
49189 as_dirs=
49190 while :; do
49191 case $as_dir in #(
49192 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
49193 *) as_qdir=$as_dir;;
49194 esac
49195 as_dirs="'$as_qdir' $as_dirs"
49196 as_dir=`$as_dirname -- "$as_dir" ||
49197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49198 X"$as_dir" : 'X\(//\)[^/]' \| \
49199 X"$as_dir" : 'X\(//\)$' \| \
49200 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
49201 echo X"$as_dir" |
49202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49203 s//\1/
49206 /^X\(\/\/\)[^/].*/{
49207 s//\1/
49210 /^X\(\/\/\)$/{
49211 s//\1/
49214 /^X\(\/\).*/{
49215 s//\1/
49218 s/.*/./; q'`
49219 test -d "$as_dir" && break
49220 done
49221 test -z "$as_dirs" || eval "mkdir $as_dirs"
49222 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
49223 echo "$as_me: error: cannot create directory $as_dir" >&2;}
49224 { (exit 1); exit 1; }; }; }
49226 # remove any previously generated #include files
49227 outfile_real=$outdir/static-components.h
49228 outfile=$outfile_real.new
49229 rm -f $outfile $outfile.struct $outfile.extern
49230 touch $outfile.struct $outfile.extern
49232 # print some nice messages about what we're about to do...
49233 { echo "$as_me:$LINENO: checking for no configure components in framework maffinity" >&5
49234 echo $ECHO_N "checking for no configure components in framework maffinity... $ECHO_C" >&6; }
49235 { echo "$as_me:$LINENO: result: first_use" >&5
49236 echo "${ECHO_T}first_use" >&6; }
49237 { echo "$as_me:$LINENO: checking for m4 configure components in framework maffinity" >&5
49238 echo $ECHO_N "checking for m4 configure components in framework maffinity... $ECHO_C" >&6; }
49239 { echo "$as_me:$LINENO: result: libnuma" >&5
49240 echo "${ECHO_T}libnuma" >&6; }
49242 # if we only want the first successful component, set the variable
49243 # happy_value to 0 so we stop on first assignment. Otherwise, set
49244 # it to zero so that components_looking_for_succeed is always 1
49245 happy_value=1
49247 components_looking_for_succeed=1
49249 # configure components that don't have any component-specific
49250 # configuration. See comment in CONFIGURE_PROJECT about the
49251 # m4_ifval
49252 # if there isn't a component list, abort
49255 ompi_show_subsubsubtitle "MCA component maffinity:first_use (no configuration)"
49258 project=opal
49259 framework=maffinity
49260 component=first_use
49261 component_path="$srcdir/$project/mca/$framework/$component"
49262 want_component=0
49264 # build if:
49265 # - the component type is direct and we are that component
49266 # - there is no ompi_ignore file
49267 # - there is an ompi_ignore, but there is an empty ompi_unignore
49268 # - there is an ompi_ignore, but username is in ompi_unignore
49269 if test -d $component_path ; then
49270 # decide if we want the component to be built or not. This
49271 # is spread out because some of the logic is a little complex
49272 # and test's syntax isn't exactly the greatest. We want to
49273 # build the component by default.
49274 want_component=1
49275 if test -f $component_path/.ompi_ignore ; then
49276 # If there is an ompi_ignore file, don't build
49277 # the component. Note that this decision can be
49278 # overriden by the unignore logic below.
49279 want_component=0
49281 if test -f $component_path/.ompi_unignore ; then
49282 # if there is an empty ompi_unignore, that is
49283 # equivalent to having your userid in the unignore file.
49284 # If userid is in the file, unignore the ignore file.
49285 if test ! -s $component_path/.ompi_unignore ; then
49286 want_component=1
49287 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
49288 want_component=1
49291 # if this component type is direct and we are not it, we don't want
49292 # to be built. Otherwise, we do want to be built.
49293 if test ! -z "$DIRECT_maffinity" ; then
49294 if test "$DIRECT_maffinity" = "$component" ; then
49295 want_component=1
49296 else
49297 want_component=0
49302 # if we were explicitly disabled, don't build :)
49303 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
49304 eval $str
49305 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
49306 want_component=0
49309 if test "$want_component" = "1"; then
49310 should_build=$components_looking_for_succeed
49311 else
49312 should_build=0
49317 project=opal
49318 framework=maffinity
49319 component=first_use
49321 # Is this component going to built staic or shared? $component
49322 # might not be known until configure time, so have to use eval
49323 # tricks - can't set variable names at autogen time.
49324 str="SHARED_FRAMEWORK=\$DSO_$framework"
49325 eval $str
49326 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
49327 eval $str
49329 str="STATIC_FRAMEWORK=\$STATIC_$framework"
49330 eval $str
49331 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
49332 eval $str
49334 shared_mode_override=static
49336 # Setup for either shared or static
49337 if test "$STATIC_FRAMEWORK" = "1" -o \
49338 "$STATIC_COMPONENT" = "1" -o \
49339 "$STATIC_all" = "1" ; then
49340 compile_mode="static"
49341 elif test "$shared_mode_override" = "dso" -o \
49342 "$SHARED_FRAMEWORK" = "1" -o \
49343 "$SHARED_COMPONENT" = "1" -o \
49344 "$DSO_all" = "1"; then
49345 compile_mode="dso"
49346 else
49347 compile_mode="static"
49350 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
49351 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
49352 if test "$DIRECT_maffinity" = "$component" ; then
49353 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
49354 echo "${ECHO_T}$compile_mode - direct" >&6; }
49355 else
49356 { echo "$as_me:$LINENO: result: $compile_mode" >&5
49357 echo "${ECHO_T}$compile_mode" >&6; }
49361 if test "$should_build" = "1" ; then
49363 project=opal
49364 framework=maffinity
49365 component=first_use
49367 # See if it dropped an output file for us to pick up some
49368 # shell variables in.
49369 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
49371 # Add this subdir to the mast list of all MCA component subdirs
49372 all_components="$all_components $component"
49374 if test "$compile_mode" = "dso" ; then
49375 dso_components="$dso_components $component"
49376 else
49377 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
49378 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
49379 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
49380 static_components="$static_components $component"
49383 # Output pretty results
49384 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
49385 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
49386 { echo "$as_me:$LINENO: result: yes" >&5
49387 echo "${ECHO_T}yes" >&6; }
49389 # If there's an output file, add the values to
49390 # scope_EXTRA_flags.
49391 if test -f $infile; then
49393 # First check for the ABORT tag
49394 line="`grep ABORT= $infile | cut -d= -f2-`"
49395 if test -n "$line" -a "$line" != "no"; then
49396 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
49397 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
49398 { { echo "$as_me:$LINENO: error: cannot continue" >&5
49399 echo "$as_me: error: cannot continue" >&2;}
49400 { (exit 1); exit 1; }; }
49403 # Check for flags passed up from the component. If we're
49404 # compiling statically, then take all flags passed up from the
49405 # component.
49406 if test "$compile_mode" = "static"; then
49407 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
49408 eval "line=$line"
49409 if test -n "$line"; then
49410 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
49412 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
49413 eval "line=$line"
49414 if test -n "$line"; then
49415 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
49419 if test "$DIRECT_maffinity" = "$component" ; then
49420 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
49421 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
49422 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
49423 eval $str
49424 else
49425 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
49426 *** does not appear to support direct calling.
49427 *** Aborting" >&5
49428 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
49429 *** does not appear to support direct calling.
49430 *** Aborting" >&2;}
49431 { (exit 1); exit 1; }; }
49434 else
49435 # were we supposed to have found something in the
49436 # post_configure.sh, but the file didn't exist?
49437 if test "$DIRECT_maffinity" = "$component" ; then
49438 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
49439 *** does not appear to support direct calling.
49440 *** Aborting" >&5
49441 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
49442 *** does not appear to support direct calling.
49443 *** Aborting" >&2;}
49444 { (exit 1); exit 1; }; }
49448 # now add the flags that were set in the environment variables
49449 # framework_component_FOO (for example, the flags set by
49450 # m4_configure components)
49452 # Check for flags passed up from the component. If we're
49453 # compiling statically, then take all flags passed up from the
49454 # component.
49455 if test "$compile_mode" = "static"; then
49456 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
49457 eval "$str"
49458 if test -n "$line" ; then
49459 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
49461 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
49462 eval "$str"
49463 if test -n "$line" ; then
49464 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
49468 else
49470 { echo "$as_me:$LINENO: checking if MCA component maffinity:first_use can compile" >&5
49471 echo $ECHO_N "checking if MCA component maffinity:first_use can compile... $ECHO_C" >&6; }
49472 { echo "$as_me:$LINENO: result: no" >&5
49473 echo "${ECHO_T}no" >&6; }
49475 # If this component was requested as the default for this
49476 # type, then abort.
49477 if test "$with_maffinity" = "first_use" ; then
49478 { echo "$as_me:$LINENO: WARNING: MCA component \"first_use\" failed to configure properly" >&5
49479 echo "$as_me: WARNING: MCA component \"first_use\" failed to configure properly" >&2;}
49480 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
49481 echo "$as_me: WARNING: This component was selected as the default" >&2;}
49482 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
49483 echo "$as_me: error: Cannot continue" >&2;}
49484 { (exit 1); exit 1; }; }
49485 exit 1
49488 if test ! -z "$DIRECT_maffinity" ; then
49489 if test "$DIRECT_maffinity" = "first_use" ; then
49490 { echo "$as_me:$LINENO: WARNING: MCA component \"first_use\" failed to configure properly" >&5
49491 echo "$as_me: WARNING: MCA component \"first_use\" failed to configure properly" >&2;}
49492 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
49493 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
49494 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
49495 echo "$as_me: error: Cannot continue" >&2;}
49496 { (exit 1); exit 1; }; }
49497 exit 1
49501 # add component to all component list
49502 all_components="$all_components first_use"
49505 # set the AM_CONDITIONAL on how we should build
49506 if test "$compile_mode" = "dso" ; then
49507 BUILD_maffinity_first_use_DSO=1
49508 else
49509 BUILD_maffinity_first_use_DSO=0
49513 if test "$BUILD_maffinity_first_use_DSO" = "1"; then
49514 OMPI_BUILD_maffinity_first_use_DSO_TRUE=
49515 OMPI_BUILD_maffinity_first_use_DSO_FALSE='#'
49516 else
49517 OMPI_BUILD_maffinity_first_use_DSO_TRUE='#'
49518 OMPI_BUILD_maffinity_first_use_DSO_FALSE=
49522 unset compile_mode
49525 # configure components that use built-in configuration scripts
49526 # see comment in CONFIGURE_PROJECT about the m4_ifval
49527 # if there isn't a component list, abort
49530 ompi_show_subsubsubtitle "MCA component maffinity:libnuma (m4 configuration macro)"
49533 project=opal
49534 framework=maffinity
49535 component=libnuma
49536 component_path="$srcdir/$project/mca/$framework/$component"
49537 want_component=0
49539 # build if:
49540 # - the component type is direct and we are that component
49541 # - there is no ompi_ignore file
49542 # - there is an ompi_ignore, but there is an empty ompi_unignore
49543 # - there is an ompi_ignore, but username is in ompi_unignore
49544 if test -d $component_path ; then
49545 # decide if we want the component to be built or not. This
49546 # is spread out because some of the logic is a little complex
49547 # and test's syntax isn't exactly the greatest. We want to
49548 # build the component by default.
49549 want_component=1
49550 if test -f $component_path/.ompi_ignore ; then
49551 # If there is an ompi_ignore file, don't build
49552 # the component. Note that this decision can be
49553 # overriden by the unignore logic below.
49554 want_component=0
49556 if test -f $component_path/.ompi_unignore ; then
49557 # if there is an empty ompi_unignore, that is
49558 # equivalent to having your userid in the unignore file.
49559 # If userid is in the file, unignore the ignore file.
49560 if test ! -s $component_path/.ompi_unignore ; then
49561 want_component=1
49562 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
49563 want_component=1
49566 # if this component type is direct and we are not it, we don't want
49567 # to be built. Otherwise, we do want to be built.
49568 if test ! -z "$DIRECT_maffinity" ; then
49569 if test "$DIRECT_maffinity" = "$component" ; then
49570 want_component=1
49571 else
49572 want_component=0
49577 # if we were explicitly disabled, don't build :)
49578 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
49579 eval $str
49580 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
49581 want_component=0
49584 if test "$want_component" = "1"; then
49585 should_build=$components_looking_for_succeed
49586 else
49587 should_build=0
49591 # Allow the component to override the build mode if it really wants to.
49592 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
49594 project=opal
49595 framework=maffinity
49596 component=libnuma
49598 # Is this component going to built staic or shared? $component
49599 # might not be known until configure time, so have to use eval
49600 # tricks - can't set variable names at autogen time.
49601 str="SHARED_FRAMEWORK=\$DSO_$framework"
49602 eval $str
49603 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
49604 eval $str
49606 str="STATIC_FRAMEWORK=\$STATIC_$framework"
49607 eval $str
49608 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
49609 eval $str
49611 shared_mode_override=static
49613 # Setup for either shared or static
49614 if test "$STATIC_FRAMEWORK" = "1" -o \
49615 "$STATIC_COMPONENT" = "1" -o \
49616 "$STATIC_all" = "1" ; then
49617 compile_mode="static"
49618 elif test "$shared_mode_override" = "dso" -o \
49619 "$SHARED_FRAMEWORK" = "1" -o \
49620 "$SHARED_COMPONENT" = "1" -o \
49621 "$DSO_all" = "1"; then
49622 compile_mode="dso"
49623 else
49624 compile_mode="static"
49627 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
49628 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
49629 if test "$DIRECT_maffinity" = "$component" ; then
49630 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
49631 echo "${ECHO_T}$compile_mode - direct" >&6; }
49632 else
49633 { echo "$as_me:$LINENO: result: $compile_mode" >&5
49634 echo "${ECHO_T}$compile_mode" >&6; }
49638 # try to configure the component. pay no attention to
49639 # --enable-dist, since we'll always have makefiles.
49640 if test "$should_build" = "1"; then
49643 # Check whether --with-libnuma was given.
49644 if test "${with_libnuma+set}" = set; then
49645 withval=$with_libnuma;
49649 if test "$with_libnuma" = "no"; then
49650 maffinity_libnuma_happy="no"
49651 else
49652 maffinity_libnuma_happy="yes"
49656 if test "$maffinity_libnuma_happy" = "yes"; then
49658 ompi_check_package_maffinity_libnuma_save_CPPFLAGS="$CPPFLAGS"
49659 ompi_check_package_maffinity_libnuma_save_LDFLAGS="$LDFLAGS"
49660 ompi_check_package_maffinity_libnuma_save_LIBS="$LIBS"
49662 ompi_check_package_maffinity_libnuma_orig_CPPFLAGS="$maffinity_libnuma_CPPFLAGS"
49663 ompi_check_package_maffinity_libnuma_orig_LDFLAGS="$maffinity_libnuma_LDFLAGS"
49664 ompi_check_package_maffinity_libnuma_orig_LIBS="$maffinity_libnuma_LIBS"
49667 # This is stolen from autoconf to peek under the covers to get the
49668 # cache variable for the library check. one should not copy this
49669 # code into other places unless you want much pain and suffering
49672 # so this sucks, but there's no way to get through the progression
49673 # of header includes without killing off the cache variable and trying
49674 # again...
49675 unset ac_cv_header_numa_h
49677 ompi_check_package_header_happy="no"
49678 if test "$with_libnuma" = "/usr" -o "$with_libnuma" = "/usr/local"; then
49679 # try as is...
49680 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
49681 echo "${ECHO_T}looking for header without includes" >&6; }
49682 if test "${ac_cv_header_numa_h+set}" = set; then
49683 { echo "$as_me:$LINENO: checking for numa.h" >&5
49684 echo $ECHO_N "checking for numa.h... $ECHO_C" >&6; }
49685 if test "${ac_cv_header_numa_h+set}" = set; then
49686 echo $ECHO_N "(cached) $ECHO_C" >&6
49688 { echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5
49689 echo "${ECHO_T}$ac_cv_header_numa_h" >&6; }
49690 else
49691 # Is the header compilable?
49692 { echo "$as_me:$LINENO: checking numa.h usability" >&5
49693 echo $ECHO_N "checking numa.h usability... $ECHO_C" >&6; }
49694 cat >conftest.$ac_ext <<_ACEOF
49695 /* confdefs.h. */
49696 _ACEOF
49697 cat confdefs.h >>conftest.$ac_ext
49698 cat >>conftest.$ac_ext <<_ACEOF
49699 /* end confdefs.h. */
49700 $ac_includes_default
49701 #include <numa.h>
49702 _ACEOF
49703 rm -f conftest.$ac_objext
49704 if { (ac_try="$ac_compile"
49705 case "(($ac_try" in
49706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49707 *) ac_try_echo=$ac_try;;
49708 esac
49709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49710 (eval "$ac_compile") 2>conftest.er1
49711 ac_status=$?
49712 grep -v '^ *+' conftest.er1 >conftest.err
49713 rm -f conftest.er1
49714 cat conftest.err >&5
49715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49716 (exit $ac_status); } && {
49717 test -z "$ac_c_werror_flag" ||
49718 test ! -s conftest.err
49719 } && test -s conftest.$ac_objext; then
49720 ac_header_compiler=yes
49721 else
49722 echo "$as_me: failed program was:" >&5
49723 sed 's/^/| /' conftest.$ac_ext >&5
49725 ac_header_compiler=no
49728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49730 echo "${ECHO_T}$ac_header_compiler" >&6; }
49732 # Is the header present?
49733 { echo "$as_me:$LINENO: checking numa.h presence" >&5
49734 echo $ECHO_N "checking numa.h presence... $ECHO_C" >&6; }
49735 cat >conftest.$ac_ext <<_ACEOF
49736 /* confdefs.h. */
49737 _ACEOF
49738 cat confdefs.h >>conftest.$ac_ext
49739 cat >>conftest.$ac_ext <<_ACEOF
49740 /* end confdefs.h. */
49741 #include <numa.h>
49742 _ACEOF
49743 if { (ac_try="$ac_cpp conftest.$ac_ext"
49744 case "(($ac_try" in
49745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49746 *) ac_try_echo=$ac_try;;
49747 esac
49748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49750 ac_status=$?
49751 grep -v '^ *+' conftest.er1 >conftest.err
49752 rm -f conftest.er1
49753 cat conftest.err >&5
49754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49755 (exit $ac_status); } >/dev/null && {
49756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49757 test ! -s conftest.err
49758 }; then
49759 ac_header_preproc=yes
49760 else
49761 echo "$as_me: failed program was:" >&5
49762 sed 's/^/| /' conftest.$ac_ext >&5
49764 ac_header_preproc=no
49767 rm -f conftest.err conftest.$ac_ext
49768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49769 echo "${ECHO_T}$ac_header_preproc" >&6; }
49771 # So? What about this header?
49772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49773 yes:no: )
49774 { echo "$as_me:$LINENO: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&5
49775 echo "$as_me: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49776 { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the compiler's result" >&5
49777 echo "$as_me: WARNING: numa.h: proceeding with the compiler's result" >&2;}
49778 ac_header_preproc=yes
49780 no:yes:* )
49781 { echo "$as_me:$LINENO: WARNING: numa.h: present but cannot be compiled" >&5
49782 echo "$as_me: WARNING: numa.h: present but cannot be compiled" >&2;}
49783 { echo "$as_me:$LINENO: WARNING: numa.h: check for missing prerequisite headers?" >&5
49784 echo "$as_me: WARNING: numa.h: check for missing prerequisite headers?" >&2;}
49785 { echo "$as_me:$LINENO: WARNING: numa.h: see the Autoconf documentation" >&5
49786 echo "$as_me: WARNING: numa.h: see the Autoconf documentation" >&2;}
49787 { echo "$as_me:$LINENO: WARNING: numa.h: section \"Present But Cannot Be Compiled\"" >&5
49788 echo "$as_me: WARNING: numa.h: section \"Present But Cannot Be Compiled\"" >&2;}
49789 { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the preprocessor's result" >&5
49790 echo "$as_me: WARNING: numa.h: proceeding with the preprocessor's result" >&2;}
49791 { echo "$as_me:$LINENO: WARNING: numa.h: in the future, the compiler will take precedence" >&5
49792 echo "$as_me: WARNING: numa.h: in the future, the compiler will take precedence" >&2;}
49793 ( cat <<\_ASBOX
49794 ## ------------------------------------------------------ ##
49795 ## Report this to http://www.open-mpi.org/community/help/ ##
49796 ## ------------------------------------------------------ ##
49797 _ASBOX
49798 ) | sed "s/^/$as_me: WARNING: /" >&2
49800 esac
49801 { echo "$as_me:$LINENO: checking for numa.h" >&5
49802 echo $ECHO_N "checking for numa.h... $ECHO_C" >&6; }
49803 if test "${ac_cv_header_numa_h+set}" = set; then
49804 echo $ECHO_N "(cached) $ECHO_C" >&6
49805 else
49806 ac_cv_header_numa_h=$ac_header_preproc
49808 { echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5
49809 echo "${ECHO_T}$ac_cv_header_numa_h" >&6; }
49812 if test $ac_cv_header_numa_h = yes; then
49813 ompi_check_package_header_happy="yes"
49814 else
49815 ompi_check_package_header_happy="no"
49819 if test "$ompi_check_package_header_happy" = "no"; then
49820 # no go on the as is - reset the cache and try again
49821 unset ac_cv_header_numa_h
49827 if test "$ompi_check_package_header_happy" = "no"; then
49828 if test "$with_libnuma" != ""; then
49829 maffinity_libnuma_CPPFLAGS="$maffinity_libnuma_CPPFLAGS -I$with_libnuma/include"
49830 CPPFLAGS="$CPPFLAGS -I$with_libnuma/include"
49833 if test "${ac_cv_header_numa_h+set}" = set; then
49834 { echo "$as_me:$LINENO: checking for numa.h" >&5
49835 echo $ECHO_N "checking for numa.h... $ECHO_C" >&6; }
49836 if test "${ac_cv_header_numa_h+set}" = set; then
49837 echo $ECHO_N "(cached) $ECHO_C" >&6
49839 { echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5
49840 echo "${ECHO_T}$ac_cv_header_numa_h" >&6; }
49841 else
49842 # Is the header compilable?
49843 { echo "$as_me:$LINENO: checking numa.h usability" >&5
49844 echo $ECHO_N "checking numa.h usability... $ECHO_C" >&6; }
49845 cat >conftest.$ac_ext <<_ACEOF
49846 /* confdefs.h. */
49847 _ACEOF
49848 cat confdefs.h >>conftest.$ac_ext
49849 cat >>conftest.$ac_ext <<_ACEOF
49850 /* end confdefs.h. */
49851 $ac_includes_default
49852 #include <numa.h>
49853 _ACEOF
49854 rm -f conftest.$ac_objext
49855 if { (ac_try="$ac_compile"
49856 case "(($ac_try" in
49857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49858 *) ac_try_echo=$ac_try;;
49859 esac
49860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49861 (eval "$ac_compile") 2>conftest.er1
49862 ac_status=$?
49863 grep -v '^ *+' conftest.er1 >conftest.err
49864 rm -f conftest.er1
49865 cat conftest.err >&5
49866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49867 (exit $ac_status); } && {
49868 test -z "$ac_c_werror_flag" ||
49869 test ! -s conftest.err
49870 } && test -s conftest.$ac_objext; then
49871 ac_header_compiler=yes
49872 else
49873 echo "$as_me: failed program was:" >&5
49874 sed 's/^/| /' conftest.$ac_ext >&5
49876 ac_header_compiler=no
49879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49881 echo "${ECHO_T}$ac_header_compiler" >&6; }
49883 # Is the header present?
49884 { echo "$as_me:$LINENO: checking numa.h presence" >&5
49885 echo $ECHO_N "checking numa.h presence... $ECHO_C" >&6; }
49886 cat >conftest.$ac_ext <<_ACEOF
49887 /* confdefs.h. */
49888 _ACEOF
49889 cat confdefs.h >>conftest.$ac_ext
49890 cat >>conftest.$ac_ext <<_ACEOF
49891 /* end confdefs.h. */
49892 #include <numa.h>
49893 _ACEOF
49894 if { (ac_try="$ac_cpp conftest.$ac_ext"
49895 case "(($ac_try" in
49896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49897 *) ac_try_echo=$ac_try;;
49898 esac
49899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49901 ac_status=$?
49902 grep -v '^ *+' conftest.er1 >conftest.err
49903 rm -f conftest.er1
49904 cat conftest.err >&5
49905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49906 (exit $ac_status); } >/dev/null && {
49907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49908 test ! -s conftest.err
49909 }; then
49910 ac_header_preproc=yes
49911 else
49912 echo "$as_me: failed program was:" >&5
49913 sed 's/^/| /' conftest.$ac_ext >&5
49915 ac_header_preproc=no
49918 rm -f conftest.err conftest.$ac_ext
49919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49920 echo "${ECHO_T}$ac_header_preproc" >&6; }
49922 # So? What about this header?
49923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49924 yes:no: )
49925 { echo "$as_me:$LINENO: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&5
49926 echo "$as_me: WARNING: numa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49927 { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the compiler's result" >&5
49928 echo "$as_me: WARNING: numa.h: proceeding with the compiler's result" >&2;}
49929 ac_header_preproc=yes
49931 no:yes:* )
49932 { echo "$as_me:$LINENO: WARNING: numa.h: present but cannot be compiled" >&5
49933 echo "$as_me: WARNING: numa.h: present but cannot be compiled" >&2;}
49934 { echo "$as_me:$LINENO: WARNING: numa.h: check for missing prerequisite headers?" >&5
49935 echo "$as_me: WARNING: numa.h: check for missing prerequisite headers?" >&2;}
49936 { echo "$as_me:$LINENO: WARNING: numa.h: see the Autoconf documentation" >&5
49937 echo "$as_me: WARNING: numa.h: see the Autoconf documentation" >&2;}
49938 { echo "$as_me:$LINENO: WARNING: numa.h: section \"Present But Cannot Be Compiled\"" >&5
49939 echo "$as_me: WARNING: numa.h: section \"Present But Cannot Be Compiled\"" >&2;}
49940 { echo "$as_me:$LINENO: WARNING: numa.h: proceeding with the preprocessor's result" >&5
49941 echo "$as_me: WARNING: numa.h: proceeding with the preprocessor's result" >&2;}
49942 { echo "$as_me:$LINENO: WARNING: numa.h: in the future, the compiler will take precedence" >&5
49943 echo "$as_me: WARNING: numa.h: in the future, the compiler will take precedence" >&2;}
49944 ( cat <<\_ASBOX
49945 ## ------------------------------------------------------ ##
49946 ## Report this to http://www.open-mpi.org/community/help/ ##
49947 ## ------------------------------------------------------ ##
49948 _ASBOX
49949 ) | sed "s/^/$as_me: WARNING: /" >&2
49951 esac
49952 { echo "$as_me:$LINENO: checking for numa.h" >&5
49953 echo $ECHO_N "checking for numa.h... $ECHO_C" >&6; }
49954 if test "${ac_cv_header_numa_h+set}" = set; then
49955 echo $ECHO_N "(cached) $ECHO_C" >&6
49956 else
49957 ac_cv_header_numa_h=$ac_header_preproc
49959 { echo "$as_me:$LINENO: result: $ac_cv_header_numa_h" >&5
49960 echo "${ECHO_T}$ac_cv_header_numa_h" >&6; }
49963 if test $ac_cv_header_numa_h = yes; then
49965 # This is stolen from autoconf to peek under the covers to get the
49966 # cache variable for the library check. one should not copy this
49967 # code into other places unless you want much pain and suffering
49969 # see comment above
49970 unset ac_cv_lib_numa_numa_available
49971 ompi_check_package_lib_happy="no"
49972 if test "" != ""; then
49973 # libdir was specified - search only there
49974 maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L"
49975 LDFLAGS="$LDFLAGS -L"
49976 { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
49977 echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; }
49978 if test "${ac_cv_lib_numa_numa_available+set}" = set; then
49979 echo $ECHO_N "(cached) $ECHO_C" >&6
49980 else
49981 ac_check_lib_save_LIBS=$LIBS
49982 LIBS="-lnuma $LIBS"
49983 cat >conftest.$ac_ext <<_ACEOF
49984 /* confdefs.h. */
49985 _ACEOF
49986 cat confdefs.h >>conftest.$ac_ext
49987 cat >>conftest.$ac_ext <<_ACEOF
49988 /* end confdefs.h. */
49990 /* Override any GCC internal prototype to avoid an error.
49991 Use char because int might match the return type of a GCC
49992 builtin and then its argument prototype would still apply. */
49993 #ifdef __cplusplus
49994 extern "C"
49995 #endif
49996 char numa_available ();
49998 main ()
50000 return numa_available ();
50002 return 0;
50004 _ACEOF
50005 rm -f conftest.$ac_objext conftest$ac_exeext
50006 if { (ac_try="$ac_link"
50007 case "(($ac_try" in
50008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50009 *) ac_try_echo=$ac_try;;
50010 esac
50011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50012 (eval "$ac_link") 2>conftest.er1
50013 ac_status=$?
50014 grep -v '^ *+' conftest.er1 >conftest.err
50015 rm -f conftest.er1
50016 cat conftest.err >&5
50017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50018 (exit $ac_status); } && {
50019 test -z "$ac_c_werror_flag" ||
50020 test ! -s conftest.err
50021 } && test -s conftest$ac_exeext &&
50022 $as_test_x conftest$ac_exeext; then
50023 ac_cv_lib_numa_numa_available=yes
50024 else
50025 echo "$as_me: failed program was:" >&5
50026 sed 's/^/| /' conftest.$ac_ext >&5
50028 ac_cv_lib_numa_numa_available=no
50031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50032 conftest$ac_exeext conftest.$ac_ext
50033 LIBS=$ac_check_lib_save_LIBS
50035 { echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
50036 echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; }
50037 if test $ac_cv_lib_numa_numa_available = yes; then
50038 ompi_check_package_lib_happy="yes"
50039 else
50040 ompi_check_package_lib_happy="no"
50043 if test "$ompi_check_package_lib_happy" = "no"; then
50044 LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
50045 maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
50046 unset ac_cv_lib_numa_numa_available
50049 else
50050 # libdir was not specified - go through search path
50051 ompi_check_package_libdir="$with_libnuma"
50052 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
50053 # try as is...
50054 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
50055 echo "${ECHO_T}looking for library without search path" >&6; }
50056 { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
50057 echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; }
50058 if test "${ac_cv_lib_numa_numa_available+set}" = set; then
50059 echo $ECHO_N "(cached) $ECHO_C" >&6
50060 else
50061 ac_check_lib_save_LIBS=$LIBS
50062 LIBS="-lnuma $LIBS"
50063 cat >conftest.$ac_ext <<_ACEOF
50064 /* confdefs.h. */
50065 _ACEOF
50066 cat confdefs.h >>conftest.$ac_ext
50067 cat >>conftest.$ac_ext <<_ACEOF
50068 /* end confdefs.h. */
50070 /* Override any GCC internal prototype to avoid an error.
50071 Use char because int might match the return type of a GCC
50072 builtin and then its argument prototype would still apply. */
50073 #ifdef __cplusplus
50074 extern "C"
50075 #endif
50076 char numa_available ();
50078 main ()
50080 return numa_available ();
50082 return 0;
50084 _ACEOF
50085 rm -f conftest.$ac_objext conftest$ac_exeext
50086 if { (ac_try="$ac_link"
50087 case "(($ac_try" in
50088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50089 *) ac_try_echo=$ac_try;;
50090 esac
50091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50092 (eval "$ac_link") 2>conftest.er1
50093 ac_status=$?
50094 grep -v '^ *+' conftest.er1 >conftest.err
50095 rm -f conftest.er1
50096 cat conftest.err >&5
50097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50098 (exit $ac_status); } && {
50099 test -z "$ac_c_werror_flag" ||
50100 test ! -s conftest.err
50101 } && test -s conftest$ac_exeext &&
50102 $as_test_x conftest$ac_exeext; then
50103 ac_cv_lib_numa_numa_available=yes
50104 else
50105 echo "$as_me: failed program was:" >&5
50106 sed 's/^/| /' conftest.$ac_ext >&5
50108 ac_cv_lib_numa_numa_available=no
50111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50112 conftest$ac_exeext conftest.$ac_ext
50113 LIBS=$ac_check_lib_save_LIBS
50115 { echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
50116 echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; }
50117 if test $ac_cv_lib_numa_numa_available = yes; then
50118 ompi_check_package_lib_happy="yes"
50119 else
50120 ompi_check_package_lib_happy="no"
50123 if test "$ompi_check_package_lib_happy" = "no"; then
50124 # no go on the as is.. see what happens later...
50125 LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
50126 maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
50127 unset ac_cv_lib_numa_numa_available
50133 if test "$ompi_check_package_lib_happy" = "no"; then
50134 if test "$ompi_check_package_libdir" != ""; then
50135 maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib"
50136 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
50137 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
50138 echo "${ECHO_T}looking for library in lib" >&6; }
50139 { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
50140 echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; }
50141 if test "${ac_cv_lib_numa_numa_available+set}" = set; then
50142 echo $ECHO_N "(cached) $ECHO_C" >&6
50143 else
50144 ac_check_lib_save_LIBS=$LIBS
50145 LIBS="-lnuma $LIBS"
50146 cat >conftest.$ac_ext <<_ACEOF
50147 /* confdefs.h. */
50148 _ACEOF
50149 cat confdefs.h >>conftest.$ac_ext
50150 cat >>conftest.$ac_ext <<_ACEOF
50151 /* end confdefs.h. */
50153 /* Override any GCC internal prototype to avoid an error.
50154 Use char because int might match the return type of a GCC
50155 builtin and then its argument prototype would still apply. */
50156 #ifdef __cplusplus
50157 extern "C"
50158 #endif
50159 char numa_available ();
50161 main ()
50163 return numa_available ();
50165 return 0;
50167 _ACEOF
50168 rm -f conftest.$ac_objext conftest$ac_exeext
50169 if { (ac_try="$ac_link"
50170 case "(($ac_try" in
50171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50172 *) ac_try_echo=$ac_try;;
50173 esac
50174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50175 (eval "$ac_link") 2>conftest.er1
50176 ac_status=$?
50177 grep -v '^ *+' conftest.er1 >conftest.err
50178 rm -f conftest.er1
50179 cat conftest.err >&5
50180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50181 (exit $ac_status); } && {
50182 test -z "$ac_c_werror_flag" ||
50183 test ! -s conftest.err
50184 } && test -s conftest$ac_exeext &&
50185 $as_test_x conftest$ac_exeext; then
50186 ac_cv_lib_numa_numa_available=yes
50187 else
50188 echo "$as_me: failed program was:" >&5
50189 sed 's/^/| /' conftest.$ac_ext >&5
50191 ac_cv_lib_numa_numa_available=no
50194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50195 conftest$ac_exeext conftest.$ac_ext
50196 LIBS=$ac_check_lib_save_LIBS
50198 { echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
50199 echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; }
50200 if test $ac_cv_lib_numa_numa_available = yes; then
50201 ompi_check_package_lib_happy="yes"
50202 else
50203 ompi_check_package_lib_happy="no"
50206 if test "$ompi_check_package_lib_happy" = "no"; then
50207 # no go on the as is.. see what happens later...
50208 LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
50209 maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
50210 unset ac_cv_lib_numa_numa_available
50218 if test "$ompi_check_package_lib_happy" = "no"; then
50219 if test "$ompi_check_package_libdir" != ""; then
50220 maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib64"
50221 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
50222 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
50223 echo "${ECHO_T}looking for library in lib64" >&6; }
50224 { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
50225 echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; }
50226 if test "${ac_cv_lib_numa_numa_available+set}" = set; then
50227 echo $ECHO_N "(cached) $ECHO_C" >&6
50228 else
50229 ac_check_lib_save_LIBS=$LIBS
50230 LIBS="-lnuma $LIBS"
50231 cat >conftest.$ac_ext <<_ACEOF
50232 /* confdefs.h. */
50233 _ACEOF
50234 cat confdefs.h >>conftest.$ac_ext
50235 cat >>conftest.$ac_ext <<_ACEOF
50236 /* end confdefs.h. */
50238 /* Override any GCC internal prototype to avoid an error.
50239 Use char because int might match the return type of a GCC
50240 builtin and then its argument prototype would still apply. */
50241 #ifdef __cplusplus
50242 extern "C"
50243 #endif
50244 char numa_available ();
50246 main ()
50248 return numa_available ();
50250 return 0;
50252 _ACEOF
50253 rm -f conftest.$ac_objext conftest$ac_exeext
50254 if { (ac_try="$ac_link"
50255 case "(($ac_try" in
50256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50257 *) ac_try_echo=$ac_try;;
50258 esac
50259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50260 (eval "$ac_link") 2>conftest.er1
50261 ac_status=$?
50262 grep -v '^ *+' conftest.er1 >conftest.err
50263 rm -f conftest.er1
50264 cat conftest.err >&5
50265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50266 (exit $ac_status); } && {
50267 test -z "$ac_c_werror_flag" ||
50268 test ! -s conftest.err
50269 } && test -s conftest$ac_exeext &&
50270 $as_test_x conftest$ac_exeext; then
50271 ac_cv_lib_numa_numa_available=yes
50272 else
50273 echo "$as_me: failed program was:" >&5
50274 sed 's/^/| /' conftest.$ac_ext >&5
50276 ac_cv_lib_numa_numa_available=no
50279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50280 conftest$ac_exeext conftest.$ac_ext
50281 LIBS=$ac_check_lib_save_LIBS
50283 { echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
50284 echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; }
50285 if test $ac_cv_lib_numa_numa_available = yes; then
50286 ompi_check_package_lib_happy="yes"
50287 else
50288 ompi_check_package_lib_happy="no"
50291 if test "$ompi_check_package_lib_happy" = "no"; then
50292 # no go on the as is.. see what happens later...
50293 LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
50294 maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
50295 unset ac_cv_lib_numa_numa_available
50305 if test "$ompi_check_package_lib_happy" = "yes"; then
50306 ompi_check_package_happy="yes"
50307 else
50308 ompi_check_package_happy="no"
50313 else
50314 ompi_check_package_happy="no"
50318 else
50320 # This is stolen from autoconf to peek under the covers to get the
50321 # cache variable for the library check. one should not copy this
50322 # code into other places unless you want much pain and suffering
50324 # see comment above
50325 unset ac_cv_lib_numa_numa_available
50326 ompi_check_package_lib_happy="no"
50327 if test "" != ""; then
50328 # libdir was specified - search only there
50329 maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L"
50330 LDFLAGS="$LDFLAGS -L"
50331 { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
50332 echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; }
50333 if test "${ac_cv_lib_numa_numa_available+set}" = set; then
50334 echo $ECHO_N "(cached) $ECHO_C" >&6
50335 else
50336 ac_check_lib_save_LIBS=$LIBS
50337 LIBS="-lnuma $LIBS"
50338 cat >conftest.$ac_ext <<_ACEOF
50339 /* confdefs.h. */
50340 _ACEOF
50341 cat confdefs.h >>conftest.$ac_ext
50342 cat >>conftest.$ac_ext <<_ACEOF
50343 /* end confdefs.h. */
50345 /* Override any GCC internal prototype to avoid an error.
50346 Use char because int might match the return type of a GCC
50347 builtin and then its argument prototype would still apply. */
50348 #ifdef __cplusplus
50349 extern "C"
50350 #endif
50351 char numa_available ();
50353 main ()
50355 return numa_available ();
50357 return 0;
50359 _ACEOF
50360 rm -f conftest.$ac_objext conftest$ac_exeext
50361 if { (ac_try="$ac_link"
50362 case "(($ac_try" in
50363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50364 *) ac_try_echo=$ac_try;;
50365 esac
50366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50367 (eval "$ac_link") 2>conftest.er1
50368 ac_status=$?
50369 grep -v '^ *+' conftest.er1 >conftest.err
50370 rm -f conftest.er1
50371 cat conftest.err >&5
50372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50373 (exit $ac_status); } && {
50374 test -z "$ac_c_werror_flag" ||
50375 test ! -s conftest.err
50376 } && test -s conftest$ac_exeext &&
50377 $as_test_x conftest$ac_exeext; then
50378 ac_cv_lib_numa_numa_available=yes
50379 else
50380 echo "$as_me: failed program was:" >&5
50381 sed 's/^/| /' conftest.$ac_ext >&5
50383 ac_cv_lib_numa_numa_available=no
50386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50387 conftest$ac_exeext conftest.$ac_ext
50388 LIBS=$ac_check_lib_save_LIBS
50390 { echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
50391 echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; }
50392 if test $ac_cv_lib_numa_numa_available = yes; then
50393 ompi_check_package_lib_happy="yes"
50394 else
50395 ompi_check_package_lib_happy="no"
50398 if test "$ompi_check_package_lib_happy" = "no"; then
50399 LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
50400 maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
50401 unset ac_cv_lib_numa_numa_available
50404 else
50405 # libdir was not specified - go through search path
50406 ompi_check_package_libdir="$with_libnuma"
50407 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
50408 # try as is...
50409 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
50410 echo "${ECHO_T}looking for library without search path" >&6; }
50411 { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
50412 echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; }
50413 if test "${ac_cv_lib_numa_numa_available+set}" = set; then
50414 echo $ECHO_N "(cached) $ECHO_C" >&6
50415 else
50416 ac_check_lib_save_LIBS=$LIBS
50417 LIBS="-lnuma $LIBS"
50418 cat >conftest.$ac_ext <<_ACEOF
50419 /* confdefs.h. */
50420 _ACEOF
50421 cat confdefs.h >>conftest.$ac_ext
50422 cat >>conftest.$ac_ext <<_ACEOF
50423 /* end confdefs.h. */
50425 /* Override any GCC internal prototype to avoid an error.
50426 Use char because int might match the return type of a GCC
50427 builtin and then its argument prototype would still apply. */
50428 #ifdef __cplusplus
50429 extern "C"
50430 #endif
50431 char numa_available ();
50433 main ()
50435 return numa_available ();
50437 return 0;
50439 _ACEOF
50440 rm -f conftest.$ac_objext conftest$ac_exeext
50441 if { (ac_try="$ac_link"
50442 case "(($ac_try" in
50443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50444 *) ac_try_echo=$ac_try;;
50445 esac
50446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50447 (eval "$ac_link") 2>conftest.er1
50448 ac_status=$?
50449 grep -v '^ *+' conftest.er1 >conftest.err
50450 rm -f conftest.er1
50451 cat conftest.err >&5
50452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50453 (exit $ac_status); } && {
50454 test -z "$ac_c_werror_flag" ||
50455 test ! -s conftest.err
50456 } && test -s conftest$ac_exeext &&
50457 $as_test_x conftest$ac_exeext; then
50458 ac_cv_lib_numa_numa_available=yes
50459 else
50460 echo "$as_me: failed program was:" >&5
50461 sed 's/^/| /' conftest.$ac_ext >&5
50463 ac_cv_lib_numa_numa_available=no
50466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50467 conftest$ac_exeext conftest.$ac_ext
50468 LIBS=$ac_check_lib_save_LIBS
50470 { echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
50471 echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; }
50472 if test $ac_cv_lib_numa_numa_available = yes; then
50473 ompi_check_package_lib_happy="yes"
50474 else
50475 ompi_check_package_lib_happy="no"
50478 if test "$ompi_check_package_lib_happy" = "no"; then
50479 # no go on the as is.. see what happens later...
50480 LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
50481 maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
50482 unset ac_cv_lib_numa_numa_available
50488 if test "$ompi_check_package_lib_happy" = "no"; then
50489 if test "$ompi_check_package_libdir" != ""; then
50490 maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib"
50491 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
50492 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
50493 echo "${ECHO_T}looking for library in lib" >&6; }
50494 { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
50495 echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; }
50496 if test "${ac_cv_lib_numa_numa_available+set}" = set; then
50497 echo $ECHO_N "(cached) $ECHO_C" >&6
50498 else
50499 ac_check_lib_save_LIBS=$LIBS
50500 LIBS="-lnuma $LIBS"
50501 cat >conftest.$ac_ext <<_ACEOF
50502 /* confdefs.h. */
50503 _ACEOF
50504 cat confdefs.h >>conftest.$ac_ext
50505 cat >>conftest.$ac_ext <<_ACEOF
50506 /* end confdefs.h. */
50508 /* Override any GCC internal prototype to avoid an error.
50509 Use char because int might match the return type of a GCC
50510 builtin and then its argument prototype would still apply. */
50511 #ifdef __cplusplus
50512 extern "C"
50513 #endif
50514 char numa_available ();
50516 main ()
50518 return numa_available ();
50520 return 0;
50522 _ACEOF
50523 rm -f conftest.$ac_objext conftest$ac_exeext
50524 if { (ac_try="$ac_link"
50525 case "(($ac_try" in
50526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50527 *) ac_try_echo=$ac_try;;
50528 esac
50529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50530 (eval "$ac_link") 2>conftest.er1
50531 ac_status=$?
50532 grep -v '^ *+' conftest.er1 >conftest.err
50533 rm -f conftest.er1
50534 cat conftest.err >&5
50535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50536 (exit $ac_status); } && {
50537 test -z "$ac_c_werror_flag" ||
50538 test ! -s conftest.err
50539 } && test -s conftest$ac_exeext &&
50540 $as_test_x conftest$ac_exeext; then
50541 ac_cv_lib_numa_numa_available=yes
50542 else
50543 echo "$as_me: failed program was:" >&5
50544 sed 's/^/| /' conftest.$ac_ext >&5
50546 ac_cv_lib_numa_numa_available=no
50549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50550 conftest$ac_exeext conftest.$ac_ext
50551 LIBS=$ac_check_lib_save_LIBS
50553 { echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
50554 echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; }
50555 if test $ac_cv_lib_numa_numa_available = yes; then
50556 ompi_check_package_lib_happy="yes"
50557 else
50558 ompi_check_package_lib_happy="no"
50561 if test "$ompi_check_package_lib_happy" = "no"; then
50562 # no go on the as is.. see what happens later...
50563 LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
50564 maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
50565 unset ac_cv_lib_numa_numa_available
50573 if test "$ompi_check_package_lib_happy" = "no"; then
50574 if test "$ompi_check_package_libdir" != ""; then
50575 maffinity_libnuma_LDFLAGS="$maffinity_libnuma_LDFLAGS -L$ompi_check_package_libdir/lib64"
50576 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
50577 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
50578 echo "${ECHO_T}looking for library in lib64" >&6; }
50579 { echo "$as_me:$LINENO: checking for numa_available in -lnuma" >&5
50580 echo $ECHO_N "checking for numa_available in -lnuma... $ECHO_C" >&6; }
50581 if test "${ac_cv_lib_numa_numa_available+set}" = set; then
50582 echo $ECHO_N "(cached) $ECHO_C" >&6
50583 else
50584 ac_check_lib_save_LIBS=$LIBS
50585 LIBS="-lnuma $LIBS"
50586 cat >conftest.$ac_ext <<_ACEOF
50587 /* confdefs.h. */
50588 _ACEOF
50589 cat confdefs.h >>conftest.$ac_ext
50590 cat >>conftest.$ac_ext <<_ACEOF
50591 /* end confdefs.h. */
50593 /* Override any GCC internal prototype to avoid an error.
50594 Use char because int might match the return type of a GCC
50595 builtin and then its argument prototype would still apply. */
50596 #ifdef __cplusplus
50597 extern "C"
50598 #endif
50599 char numa_available ();
50601 main ()
50603 return numa_available ();
50605 return 0;
50607 _ACEOF
50608 rm -f conftest.$ac_objext conftest$ac_exeext
50609 if { (ac_try="$ac_link"
50610 case "(($ac_try" in
50611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50612 *) ac_try_echo=$ac_try;;
50613 esac
50614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50615 (eval "$ac_link") 2>conftest.er1
50616 ac_status=$?
50617 grep -v '^ *+' conftest.er1 >conftest.err
50618 rm -f conftest.er1
50619 cat conftest.err >&5
50620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50621 (exit $ac_status); } && {
50622 test -z "$ac_c_werror_flag" ||
50623 test ! -s conftest.err
50624 } && test -s conftest$ac_exeext &&
50625 $as_test_x conftest$ac_exeext; then
50626 ac_cv_lib_numa_numa_available=yes
50627 else
50628 echo "$as_me: failed program was:" >&5
50629 sed 's/^/| /' conftest.$ac_ext >&5
50631 ac_cv_lib_numa_numa_available=no
50634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50635 conftest$ac_exeext conftest.$ac_ext
50636 LIBS=$ac_check_lib_save_LIBS
50638 { echo "$as_me:$LINENO: result: $ac_cv_lib_numa_numa_available" >&5
50639 echo "${ECHO_T}$ac_cv_lib_numa_numa_available" >&6; }
50640 if test $ac_cv_lib_numa_numa_available = yes; then
50641 ompi_check_package_lib_happy="yes"
50642 else
50643 ompi_check_package_lib_happy="no"
50646 if test "$ompi_check_package_lib_happy" = "no"; then
50647 # no go on the as is.. see what happens later...
50648 LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
50649 maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
50650 unset ac_cv_lib_numa_numa_available
50660 if test "$ompi_check_package_lib_happy" = "yes"; then
50661 ompi_check_package_happy="yes"
50662 else
50663 ompi_check_package_happy="no"
50670 unset ompi_check_package_header_happy
50672 if test "$ompi_check_package_happy" = "yes"; then
50673 maffinity_libnuma_happy="yes"
50674 maffinity_libnuma_LIBS="-lnuma "
50675 else
50676 maffinity_libnuma_CPPFLAGS="$ompi_check_package_maffinity_libnuma_orig_CPPFLAGS"
50677 maffinity_libnuma_LDFLAGS="$ompi_check_package_maffinity_libnuma_orig_LDFLAGS"
50678 maffinity_libnuma_LIBS="$ompi_check_package_maffinity_libnuma_orig_LIBS"
50679 maffinity_libnuma_happy="no"
50683 CPPFLAGS="$ompi_check_package_maffinity_libnuma_save_CPPFLAGS"
50684 LDFLAGS="$ompi_check_package_maffinity_libnuma_save_LDFLAGS"
50685 LIBS="$ompi_check_package_maffinity_libnuma_save_LIBS"
50690 if test "$maffinity_libnuma_happy" = "yes"; then
50691 maffinity_libnuma_WRAPPER_EXTRA_LDFLAGS="$maffinity_libnuma_LDFLAGS"
50692 maffinity_libnuma_WRAPPER_EXTRA_LIBS="$maffinity_libnuma_LIBS"
50693 should_build=1
50694 else
50695 should_build=0
50699 # sanity check
50700 if test "$maffinity_libnuma_happy" = "no"; then
50701 if test "$with_libnuma" != "no" -a ! -z "$with_libnuma"; then
50702 { { echo "$as_me:$LINENO: error: maffinity:libnuma requested but not found. Aborting" >&5
50703 echo "$as_me: error: maffinity:libnuma requested but not found. Aborting" >&2;}
50704 { (exit 1); exit 1; }; }
50710 # substitute in the things needed to build gm
50718 if test "$should_build" = "1"; then
50720 project=opal
50721 framework=maffinity
50722 component=libnuma
50724 # See if it dropped an output file for us to pick up some
50725 # shell variables in.
50726 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
50728 # Add this subdir to the mast list of all MCA component subdirs
50729 all_components="$all_components $component"
50731 if test "$compile_mode" = "dso" ; then
50732 dso_components="$dso_components $component"
50733 else
50734 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
50735 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
50736 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
50737 static_components="$static_components $component"
50740 # Output pretty results
50741 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
50742 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
50743 { echo "$as_me:$LINENO: result: yes" >&5
50744 echo "${ECHO_T}yes" >&6; }
50746 # If there's an output file, add the values to
50747 # scope_EXTRA_flags.
50748 if test -f $infile; then
50750 # First check for the ABORT tag
50751 line="`grep ABORT= $infile | cut -d= -f2-`"
50752 if test -n "$line" -a "$line" != "no"; then
50753 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
50754 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
50755 { { echo "$as_me:$LINENO: error: cannot continue" >&5
50756 echo "$as_me: error: cannot continue" >&2;}
50757 { (exit 1); exit 1; }; }
50760 # Check for flags passed up from the component. If we're
50761 # compiling statically, then take all flags passed up from the
50762 # component.
50763 if test "$compile_mode" = "static"; then
50764 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
50765 eval "line=$line"
50766 if test -n "$line"; then
50767 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
50769 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
50770 eval "line=$line"
50771 if test -n "$line"; then
50772 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
50776 if test "$DIRECT_maffinity" = "$component" ; then
50777 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
50778 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
50779 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
50780 eval $str
50781 else
50782 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
50783 *** does not appear to support direct calling.
50784 *** Aborting" >&5
50785 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
50786 *** does not appear to support direct calling.
50787 *** Aborting" >&2;}
50788 { (exit 1); exit 1; }; }
50791 else
50792 # were we supposed to have found something in the
50793 # post_configure.sh, but the file didn't exist?
50794 if test "$DIRECT_maffinity" = "$component" ; then
50795 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
50796 *** does not appear to support direct calling.
50797 *** Aborting" >&5
50798 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
50799 *** does not appear to support direct calling.
50800 *** Aborting" >&2;}
50801 { (exit 1); exit 1; }; }
50805 # now add the flags that were set in the environment variables
50806 # framework_component_FOO (for example, the flags set by
50807 # m4_configure components)
50809 # Check for flags passed up from the component. If we're
50810 # compiling statically, then take all flags passed up from the
50811 # component.
50812 if test "$compile_mode" = "static"; then
50813 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
50814 eval "$str"
50815 if test -n "$line" ; then
50816 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
50818 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
50819 eval "$str"
50820 if test -n "$line" ; then
50821 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
50825 else
50827 { echo "$as_me:$LINENO: checking if MCA component maffinity:libnuma can compile" >&5
50828 echo $ECHO_N "checking if MCA component maffinity:libnuma can compile... $ECHO_C" >&6; }
50829 { echo "$as_me:$LINENO: result: no" >&5
50830 echo "${ECHO_T}no" >&6; }
50832 # If this component was requested as the default for this
50833 # type, then abort.
50834 if test "$with_maffinity" = "libnuma" ; then
50835 { echo "$as_me:$LINENO: WARNING: MCA component \"libnuma\" failed to configure properly" >&5
50836 echo "$as_me: WARNING: MCA component \"libnuma\" failed to configure properly" >&2;}
50837 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
50838 echo "$as_me: WARNING: This component was selected as the default" >&2;}
50839 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
50840 echo "$as_me: error: Cannot continue" >&2;}
50841 { (exit 1); exit 1; }; }
50842 exit 1
50845 if test ! -z "$DIRECT_maffinity" ; then
50846 if test "$DIRECT_maffinity" = "libnuma" ; then
50847 { echo "$as_me:$LINENO: WARNING: MCA component \"libnuma\" failed to configure properly" >&5
50848 echo "$as_me: WARNING: MCA component \"libnuma\" failed to configure properly" >&2;}
50849 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
50850 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
50851 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
50852 echo "$as_me: error: Cannot continue" >&2;}
50853 { (exit 1); exit 1; }; }
50854 exit 1
50858 # add component to all component list
50859 all_components="$all_components libnuma"
50863 # set the AM_CONDITIONAL on how we should build
50864 if test "$compile_mode" = "dso"; then
50865 BUILD_maffinity_libnuma_DSO=1
50866 else
50867 BUILD_maffinity_libnuma_DSO=0
50872 if test "$BUILD_maffinity_libnuma_DSO" = "1"; then
50873 OMPI_BUILD_maffinity_libnuma_DSO_TRUE=
50874 OMPI_BUILD_maffinity_libnuma_DSO_FALSE='#'
50875 else
50876 OMPI_BUILD_maffinity_libnuma_DSO_TRUE='#'
50877 OMPI_BUILD_maffinity_libnuma_DSO_FALSE=
50881 if test "$should_build" = "1"; then
50882 components_looking_for_succeed="$happy_value"
50886 unset compile_mode
50889 # configure components that provide their own configure script.
50890 # It would be really hard to run these for "find first that
50891 # works", so we don't :)
50892 if test "$happy_value" = "1"; then
50894 for component_path in $srcdir/opal/mca/maffinity/* ; do
50895 component="`basename $component_path`"
50896 if test -d $component_path -a -x $component_path/configure ; then
50897 ompi_show_subsubsubtitle "MCA component maffinity:$component (need to configure)"
50900 project=opal
50901 framework=maffinity
50902 component=$component
50903 component_path="$srcdir/$project/mca/$framework/$component"
50904 want_component=0
50906 # build if:
50907 # - the component type is direct and we are that component
50908 # - there is no ompi_ignore file
50909 # - there is an ompi_ignore, but there is an empty ompi_unignore
50910 # - there is an ompi_ignore, but username is in ompi_unignore
50911 if test -d $component_path ; then
50912 # decide if we want the component to be built or not. This
50913 # is spread out because some of the logic is a little complex
50914 # and test's syntax isn't exactly the greatest. We want to
50915 # build the component by default.
50916 want_component=1
50917 if test -f $component_path/.ompi_ignore ; then
50918 # If there is an ompi_ignore file, don't build
50919 # the component. Note that this decision can be
50920 # overriden by the unignore logic below.
50921 want_component=0
50923 if test -f $component_path/.ompi_unignore ; then
50924 # if there is an empty ompi_unignore, that is
50925 # equivalent to having your userid in the unignore file.
50926 # If userid is in the file, unignore the ignore file.
50927 if test ! -s $component_path/.ompi_unignore ; then
50928 want_component=1
50929 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
50930 want_component=1
50933 # if this component type is direct and we are not it, we don't want
50934 # to be built. Otherwise, we do want to be built.
50935 if test ! -z "$DIRECT_maffinity" ; then
50936 if test "$DIRECT_maffinity" = "$component" ; then
50937 want_component=1
50938 else
50939 want_component=0
50944 # if we were explicitly disabled, don't build :)
50945 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
50946 eval $str
50947 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
50948 want_component=0
50951 if test "$want_component" = "1"; then
50952 should_build=1
50953 else
50954 should_build=0
50959 project=opal
50960 framework=maffinity
50961 component=$component
50963 # Is this component going to built staic or shared? $component
50964 # might not be known until configure time, so have to use eval
50965 # tricks - can't set variable names at autogen time.
50966 str="SHARED_FRAMEWORK=\$DSO_$framework"
50967 eval $str
50968 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
50969 eval $str
50971 str="STATIC_FRAMEWORK=\$STATIC_$framework"
50972 eval $str
50973 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
50974 eval $str
50976 shared_mode_override=static
50978 # Setup for either shared or static
50979 if test "$STATIC_FRAMEWORK" = "1" -o \
50980 "$STATIC_COMPONENT" = "1" -o \
50981 "$STATIC_all" = "1" ; then
50982 compile_mode="static"
50983 elif test "$shared_mode_override" = "dso" -o \
50984 "$SHARED_FRAMEWORK" = "1" -o \
50985 "$SHARED_COMPONENT" = "1" -o \
50986 "$DSO_all" = "1"; then
50987 compile_mode="dso"
50988 else
50989 compile_mode="static"
50992 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
50993 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
50994 if test "$DIRECT_maffinity" = "$component" ; then
50995 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
50996 echo "${ECHO_T}$compile_mode - direct" >&6; }
50997 else
50998 { echo "$as_me:$LINENO: result: $compile_mode" >&5
50999 echo "${ECHO_T}$compile_mode" >&6; }
51003 if test "$should_build" = "1" ; then
51006 # Invoke configure in a specific subdirectory.
51008 # opal/mca/maffinity/$component is the directory to invoke in
51009 # $ompi_subdir_args is the list of arguments to pass
51010 # should_build=1 is actions to execute upon success
51011 # should_build=2 is actions to execute upon failure
51013 subdir_dir="opal/mca/maffinity/$component"
51014 subdir_args="$ompi_subdir_args"
51015 subdir_success="should_build=1"
51016 subdir_failure="should_build=2"
51019 # Sanity checks
51022 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
51023 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
51024 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
51027 # Gotta check where srcdir is for VPATH builds. If srcdir is not
51028 # ., then we need to mkdir the subdir. Otherwise, we can just cd
51029 # into it.
51032 case $srcdir in
51036 { case $subdir_dir in
51037 [\\/]* | ?:[\\/]* ) total_dir=;;
51038 *) total_dir=.;;
51039 esac
51040 temp=$subdir_dir
51041 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
51042 case $dir_part in
51043 # Skip DOS drivespec
51044 ?:) total_dir=$dir_part ;;
51045 *) total_dir=$total_dir/$dir_part
51046 test -d "$total_dir" ||
51047 mkdir "$total_dir" ||
51048 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
51049 echo "$as_me: error: cannot create $subdir_dir" >&2;}
51050 { (exit 1); exit 1; }; }
51052 esac
51053 done; }
51055 if test -d ./$subdir_dir; then :;
51056 else
51057 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
51058 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
51059 { (exit 1); exit 1; }; }
51062 esac
51065 # Move into the target directory
51068 subdir_parent=`pwd`
51069 cd $subdir_dir
51072 # Make a "../" for each directory in $subdir_dir.
51075 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
51077 # Construct the --srcdir argument
51080 case $srcdir in
51082 # In place
51083 subdir_srcdir="$srcdir"
51085 [\\/]* | ?:[\\/]* )
51086 # Absolute path
51087 subdir_srcdir="$srcdir/$subdir_dir"
51090 # Relative path
51091 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
51093 esac
51096 # Construct the --cache-file argument
51099 # BWB - subdir caching is a pain since we change CFLAGS and all that.
51100 # Just disable it for now
51101 subdir_cache_file="/dev/null"
51104 # Invoke the configure script in the subdirectory
51107 export CFLAGS CPPFLAGS
51108 export CXXFLAGS CXXCPPFLAGS
51109 export FFLAGS
51110 export LDFLAGS LIBS
51111 sub_configure="$SHELL '$subdir_srcdir/configure'"
51112 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
51113 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
51114 eval "$sub_configure $subdir_args \
51115 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
51116 if test "$?" = "0"; then
51117 eval $subdir_success
51118 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
51119 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
51120 else
51121 eval $subdir_failure
51122 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
51123 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
51127 # Go back to the topdir
51130 cd $subdir_parent
51134 # Clean up
51137 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
51138 unset subdir_args subdir_dots total_dir dir_part temp
51141 if test "$should_build" = "1" ; then
51143 project=opal
51144 framework=maffinity
51145 component=$component
51147 # See if it dropped an output file for us to pick up some
51148 # shell variables in.
51149 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
51151 # Add this subdir to the mast list of all MCA component subdirs
51152 all_components="$all_components $component"
51154 if test "$compile_mode" = "dso" ; then
51155 dso_components="$dso_components $component"
51156 else
51157 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
51158 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
51159 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
51160 static_components="$static_components $component"
51163 # Output pretty results
51164 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
51165 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
51166 { echo "$as_me:$LINENO: result: yes" >&5
51167 echo "${ECHO_T}yes" >&6; }
51169 # If there's an output file, add the values to
51170 # scope_EXTRA_flags.
51171 if test -f $infile; then
51173 # First check for the ABORT tag
51174 line="`grep ABORT= $infile | cut -d= -f2-`"
51175 if test -n "$line" -a "$line" != "no"; then
51176 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
51177 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
51178 { { echo "$as_me:$LINENO: error: cannot continue" >&5
51179 echo "$as_me: error: cannot continue" >&2;}
51180 { (exit 1); exit 1; }; }
51183 # Check for flags passed up from the component. If we're
51184 # compiling statically, then take all flags passed up from the
51185 # component.
51186 if test "$compile_mode" = "static"; then
51187 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
51188 eval "line=$line"
51189 if test -n "$line"; then
51190 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
51192 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
51193 eval "line=$line"
51194 if test -n "$line"; then
51195 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
51199 if test "$DIRECT_maffinity" = "$component" ; then
51200 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
51201 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
51202 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
51203 eval $str
51204 else
51205 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
51206 *** does not appear to support direct calling.
51207 *** Aborting" >&5
51208 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
51209 *** does not appear to support direct calling.
51210 *** Aborting" >&2;}
51211 { (exit 1); exit 1; }; }
51214 else
51215 # were we supposed to have found something in the
51216 # post_configure.sh, but the file didn't exist?
51217 if test "$DIRECT_maffinity" = "$component" ; then
51218 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
51219 *** does not appear to support direct calling.
51220 *** Aborting" >&5
51221 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
51222 *** does not appear to support direct calling.
51223 *** Aborting" >&2;}
51224 { (exit 1); exit 1; }; }
51228 # now add the flags that were set in the environment variables
51229 # framework_component_FOO (for example, the flags set by
51230 # m4_configure components)
51232 # Check for flags passed up from the component. If we're
51233 # compiling statically, then take all flags passed up from the
51234 # component.
51235 if test "$compile_mode" = "static"; then
51236 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
51237 eval "$str"
51238 if test -n "$line" ; then
51239 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
51241 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
51242 eval "$str"
51243 if test -n "$line" ; then
51244 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
51248 else
51250 { echo "$as_me:$LINENO: checking if MCA component maffinity:$component can compile" >&5
51251 echo $ECHO_N "checking if MCA component maffinity:$component can compile... $ECHO_C" >&6; }
51252 { echo "$as_me:$LINENO: result: no" >&5
51253 echo "${ECHO_T}no" >&6; }
51255 # If this component was requested as the default for this
51256 # type, then abort.
51257 if test "$with_maffinity" = "$component" ; then
51258 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
51259 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
51260 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
51261 echo "$as_me: WARNING: This component was selected as the default" >&2;}
51262 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
51263 echo "$as_me: error: Cannot continue" >&2;}
51264 { (exit 1); exit 1; }; }
51265 exit 1
51268 if test ! -z "$DIRECT_maffinity" ; then
51269 if test "$DIRECT_maffinity" = "$component" ; then
51270 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
51271 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
51272 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
51273 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
51274 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
51275 echo "$as_me: error: Cannot continue" >&2;}
51276 { (exit 1); exit 1; }; }
51277 exit 1
51283 done
51288 MCA_maffinity_ALL_COMPONENTS="$all_components"
51289 MCA_maffinity_STATIC_COMPONENTS="$static_components"
51290 MCA_maffinity_DSO_COMPONENTS="$dso_components"
51291 MCA_maffinity_STATIC_LTLIBS="$static_ltlibs"
51299 MCA_maffinity_ALL_SUBDIRS=
51300 for item in $all_components ; do
51301 MCA_maffinity_ALL_SUBDIRS="$MCA_maffinity_ALL_SUBDIRS mca/maffinity/$item"
51302 done
51306 MCA_maffinity_STATIC_SUBDIRS=
51307 for item in $static_components ; do
51308 MCA_maffinity_STATIC_SUBDIRS="$MCA_maffinity_STATIC_SUBDIRS mca/maffinity/$item"
51309 done
51313 MCA_maffinity_DSO_SUBDIRS=
51314 for item in $dso_components ; do
51315 MCA_maffinity_DSO_SUBDIRS="$MCA_maffinity_DSO_SUBDIRS mca/maffinity/$item"
51316 done
51320 # add all the makefiles for the framework to the CONFIG_FILES.
51321 # Don't add common/base, since it doesn't exist
51322 ac_config_files="$ac_config_files opal/mca/maffinity/Makefile"
51325 # Create the final .h file that will be included in the type's
51326 # top-level glue. This lists all the static components. We don't
51327 # need to do this for "common".
51328 if test "maffinity" != "common"; then
51329 cat > $outfile <<EOF
51331 * \$HEADER\$
51334 `cat $outfile.extern`
51336 const mca_base_component_t *mca_maffinity_base_static_components[] = {
51337 `cat $outfile.struct`
51338 NULL
51341 # Only replace the header file if a) it doesn't previously
51342 # exist, or b) the contents are different. Do this to not
51343 # trigger recompilation of certain .c files just because the
51344 # timestamp changed on $outfile_real (similar to the way AC
51345 # handles AC_CONFIG_HEADER files).
51346 diff $outfile $outfile_real > /dev/null 2>&1
51347 if test "$?" != "0"; then
51348 mv $outfile $outfile_real
51349 else
51350 rm -f $outfile
51353 rm -f $outfile.struct $outfile.extern
51355 unset all_components static_components dso_components outfile outfile_real
51356 # common has to go up front
51357 if test "memcpy" = "common" ; then
51358 MCA_opal_FRAMEWORKS="memcpy $MCA_opal_FRAMEWORKS"
51359 MCA_opal_FRAMEWORKS_SUBDIRS="mca/memcpy $MCA_opal_FRAMEWORKS_SUBDIRS"
51360 MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memcpy_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
51361 MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memcpy_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
51362 MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memcpy_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
51363 else
51364 MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memcpy"
51365 MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memcpy"
51366 MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memcpy_ALL_SUBDIRS)"
51367 MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memcpy_DSO_SUBDIRS)"
51368 MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memcpy_STATIC_SUBDIRS)"
51370 if test "memcpy" != "common" ; then
51371 MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memcpy/libmca_memcpy.la"
51373 MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memcpy_STATIC_LTLIBS)"
51375 memcpy_base_include=
51377 # first, compile all the components
51379 ompi_show_subsubtitle "Configuring MCA framework memcpy"
51381 # setup for framework
51382 all_components=
51383 static_components=
51384 dso_components=
51385 static_ltlibs=
51387 # Ensure that the directory where the #include file is to live
51388 # exists. Need to do this for VPATH builds, because the directory
51389 # may not exist yet. For the "common" type, it's not really a
51390 # component, so it doesn't have a base.
51391 if test "memcpy" = "common" ; then
51392 outdir=opal/mca/common
51393 else
51394 outdir=opal/mca/memcpy/base
51396 { as_dir=$outdir
51397 case $as_dir in #(
51398 -*) as_dir=./$as_dir;;
51399 esac
51400 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51401 as_dirs=
51402 while :; do
51403 case $as_dir in #(
51404 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
51405 *) as_qdir=$as_dir;;
51406 esac
51407 as_dirs="'$as_qdir' $as_dirs"
51408 as_dir=`$as_dirname -- "$as_dir" ||
51409 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51410 X"$as_dir" : 'X\(//\)[^/]' \| \
51411 X"$as_dir" : 'X\(//\)$' \| \
51412 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51413 echo X"$as_dir" |
51414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51415 s//\1/
51418 /^X\(\/\/\)[^/].*/{
51419 s//\1/
51422 /^X\(\/\/\)$/{
51423 s//\1/
51426 /^X\(\/\).*/{
51427 s//\1/
51430 s/.*/./; q'`
51431 test -d "$as_dir" && break
51432 done
51433 test -z "$as_dirs" || eval "mkdir $as_dirs"
51434 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
51435 echo "$as_me: error: cannot create directory $as_dir" >&2;}
51436 { (exit 1); exit 1; }; }; }
51438 # remove any previously generated #include files
51439 outfile_real=$outdir/static-components.h
51440 outfile=$outfile_real.new
51441 rm -f $outfile $outfile.struct $outfile.extern
51442 touch $outfile.struct $outfile.extern
51444 # print some nice messages about what we're about to do...
51445 { echo "$as_me:$LINENO: checking for no configure components in framework memcpy" >&5
51446 echo $ECHO_N "checking for no configure components in framework memcpy... $ECHO_C" >&6; }
51447 { echo "$as_me:$LINENO: result: " >&5
51448 echo "${ECHO_T}" >&6; }
51449 { echo "$as_me:$LINENO: checking for m4 configure components in framework memcpy" >&5
51450 echo $ECHO_N "checking for m4 configure components in framework memcpy... $ECHO_C" >&6; }
51451 { echo "$as_me:$LINENO: result: " >&5
51452 echo "${ECHO_T}" >&6; }
51454 # if we only want the first successful component, set the variable
51455 # happy_value to 0 so we stop on first assignment. Otherwise, set
51456 # it to zero so that components_looking_for_succeed is always 1
51457 happy_value=0
51459 components_looking_for_succeed=1
51461 # configure components that don't have any component-specific
51462 # configuration. See comment in CONFIGURE_PROJECT about the
51463 # m4_ifval
51464 # if there isn't a component list, abort
51468 # configure components that use built-in configuration scripts
51469 # see comment in CONFIGURE_PROJECT about the m4_ifval
51470 # if there isn't a component list, abort
51474 # configure components that provide their own configure script.
51475 # It would be really hard to run these for "find first that
51476 # works", so we don't :)
51477 if test "$happy_value" = "1"; then
51479 for component_path in $srcdir/opal/mca/memcpy/* ; do
51480 component="`basename $component_path`"
51481 if test -d $component_path -a -x $component_path/configure ; then
51482 ompi_show_subsubsubtitle "MCA component memcpy:$component (need to configure)"
51485 project=opal
51486 framework=memcpy
51487 component=$component
51488 component_path="$srcdir/$project/mca/$framework/$component"
51489 want_component=0
51491 # build if:
51492 # - the component type is direct and we are that component
51493 # - there is no ompi_ignore file
51494 # - there is an ompi_ignore, but there is an empty ompi_unignore
51495 # - there is an ompi_ignore, but username is in ompi_unignore
51496 if test -d $component_path ; then
51497 # decide if we want the component to be built or not. This
51498 # is spread out because some of the logic is a little complex
51499 # and test's syntax isn't exactly the greatest. We want to
51500 # build the component by default.
51501 want_component=1
51502 if test -f $component_path/.ompi_ignore ; then
51503 # If there is an ompi_ignore file, don't build
51504 # the component. Note that this decision can be
51505 # overriden by the unignore logic below.
51506 want_component=0
51508 if test -f $component_path/.ompi_unignore ; then
51509 # if there is an empty ompi_unignore, that is
51510 # equivalent to having your userid in the unignore file.
51511 # If userid is in the file, unignore the ignore file.
51512 if test ! -s $component_path/.ompi_unignore ; then
51513 want_component=1
51514 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
51515 want_component=1
51518 # if this component type is direct and we are not it, we don't want
51519 # to be built. Otherwise, we do want to be built.
51520 if test ! -z "$DIRECT_memcpy" ; then
51521 if test "$DIRECT_memcpy" = "$component" ; then
51522 want_component=1
51523 else
51524 want_component=0
51529 # if we were explicitly disabled, don't build :)
51530 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
51531 eval $str
51532 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
51533 want_component=0
51536 if test "$want_component" = "1"; then
51537 should_build=1
51538 else
51539 should_build=0
51544 project=opal
51545 framework=memcpy
51546 component=$component
51548 # Is this component going to built staic or shared? $component
51549 # might not be known until configure time, so have to use eval
51550 # tricks - can't set variable names at autogen time.
51551 str="SHARED_FRAMEWORK=\$DSO_$framework"
51552 eval $str
51553 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
51554 eval $str
51556 str="STATIC_FRAMEWORK=\$STATIC_$framework"
51557 eval $str
51558 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
51559 eval $str
51561 shared_mode_override=static
51563 # Setup for either shared or static
51564 if test "$STATIC_FRAMEWORK" = "1" -o \
51565 "$STATIC_COMPONENT" = "1" -o \
51566 "$STATIC_all" = "1" ; then
51567 compile_mode="static"
51568 elif test "$shared_mode_override" = "dso" -o \
51569 "$SHARED_FRAMEWORK" = "1" -o \
51570 "$SHARED_COMPONENT" = "1" -o \
51571 "$DSO_all" = "1"; then
51572 compile_mode="dso"
51573 else
51574 compile_mode="static"
51577 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
51578 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
51579 if test "$DIRECT_memcpy" = "$component" ; then
51580 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
51581 echo "${ECHO_T}$compile_mode - direct" >&6; }
51582 else
51583 { echo "$as_me:$LINENO: result: $compile_mode" >&5
51584 echo "${ECHO_T}$compile_mode" >&6; }
51588 if test "$should_build" = "1" ; then
51591 # Invoke configure in a specific subdirectory.
51593 # opal/mca/memcpy/$component is the directory to invoke in
51594 # $ompi_subdir_args is the list of arguments to pass
51595 # should_build=1 is actions to execute upon success
51596 # should_build=2 is actions to execute upon failure
51598 subdir_dir="opal/mca/memcpy/$component"
51599 subdir_args="$ompi_subdir_args"
51600 subdir_success="should_build=1"
51601 subdir_failure="should_build=2"
51604 # Sanity checks
51607 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
51608 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
51609 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
51612 # Gotta check where srcdir is for VPATH builds. If srcdir is not
51613 # ., then we need to mkdir the subdir. Otherwise, we can just cd
51614 # into it.
51617 case $srcdir in
51621 { case $subdir_dir in
51622 [\\/]* | ?:[\\/]* ) total_dir=;;
51623 *) total_dir=.;;
51624 esac
51625 temp=$subdir_dir
51626 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
51627 case $dir_part in
51628 # Skip DOS drivespec
51629 ?:) total_dir=$dir_part ;;
51630 *) total_dir=$total_dir/$dir_part
51631 test -d "$total_dir" ||
51632 mkdir "$total_dir" ||
51633 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
51634 echo "$as_me: error: cannot create $subdir_dir" >&2;}
51635 { (exit 1); exit 1; }; }
51637 esac
51638 done; }
51640 if test -d ./$subdir_dir; then :;
51641 else
51642 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
51643 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
51644 { (exit 1); exit 1; }; }
51647 esac
51650 # Move into the target directory
51653 subdir_parent=`pwd`
51654 cd $subdir_dir
51657 # Make a "../" for each directory in $subdir_dir.
51660 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
51662 # Construct the --srcdir argument
51665 case $srcdir in
51667 # In place
51668 subdir_srcdir="$srcdir"
51670 [\\/]* | ?:[\\/]* )
51671 # Absolute path
51672 subdir_srcdir="$srcdir/$subdir_dir"
51675 # Relative path
51676 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
51678 esac
51681 # Construct the --cache-file argument
51684 # BWB - subdir caching is a pain since we change CFLAGS and all that.
51685 # Just disable it for now
51686 subdir_cache_file="/dev/null"
51689 # Invoke the configure script in the subdirectory
51692 export CFLAGS CPPFLAGS
51693 export CXXFLAGS CXXCPPFLAGS
51694 export FFLAGS
51695 export LDFLAGS LIBS
51696 sub_configure="$SHELL '$subdir_srcdir/configure'"
51697 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
51698 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
51699 eval "$sub_configure $subdir_args \
51700 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
51701 if test "$?" = "0"; then
51702 eval $subdir_success
51703 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
51704 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
51705 else
51706 eval $subdir_failure
51707 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
51708 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
51712 # Go back to the topdir
51715 cd $subdir_parent
51719 # Clean up
51722 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
51723 unset subdir_args subdir_dots total_dir dir_part temp
51726 if test "$should_build" = "1" ; then
51728 project=opal
51729 framework=memcpy
51730 component=$component
51732 # See if it dropped an output file for us to pick up some
51733 # shell variables in.
51734 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
51736 # Add this subdir to the mast list of all MCA component subdirs
51737 all_components="$all_components $component"
51739 if test "$compile_mode" = "dso" ; then
51740 dso_components="$dso_components $component"
51741 else
51742 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
51743 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
51744 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
51745 static_components="$static_components $component"
51748 # Output pretty results
51749 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
51750 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
51751 { echo "$as_me:$LINENO: result: yes" >&5
51752 echo "${ECHO_T}yes" >&6; }
51754 # If there's an output file, add the values to
51755 # scope_EXTRA_flags.
51756 if test -f $infile; then
51758 # First check for the ABORT tag
51759 line="`grep ABORT= $infile | cut -d= -f2-`"
51760 if test -n "$line" -a "$line" != "no"; then
51761 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
51762 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
51763 { { echo "$as_me:$LINENO: error: cannot continue" >&5
51764 echo "$as_me: error: cannot continue" >&2;}
51765 { (exit 1); exit 1; }; }
51768 # Check for flags passed up from the component. If we're
51769 # compiling statically, then take all flags passed up from the
51770 # component.
51771 if test "$compile_mode" = "static"; then
51772 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
51773 eval "line=$line"
51774 if test -n "$line"; then
51775 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
51777 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
51778 eval "line=$line"
51779 if test -n "$line"; then
51780 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
51784 if test "$DIRECT_memcpy" = "$component" ; then
51785 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
51786 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
51787 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
51788 eval $str
51789 else
51790 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
51791 *** does not appear to support direct calling.
51792 *** Aborting" >&5
51793 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
51794 *** does not appear to support direct calling.
51795 *** Aborting" >&2;}
51796 { (exit 1); exit 1; }; }
51799 else
51800 # were we supposed to have found something in the
51801 # post_configure.sh, but the file didn't exist?
51802 if test "$DIRECT_memcpy" = "$component" ; then
51803 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
51804 *** does not appear to support direct calling.
51805 *** Aborting" >&5
51806 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
51807 *** does not appear to support direct calling.
51808 *** Aborting" >&2;}
51809 { (exit 1); exit 1; }; }
51813 # now add the flags that were set in the environment variables
51814 # framework_component_FOO (for example, the flags set by
51815 # m4_configure components)
51817 # Check for flags passed up from the component. If we're
51818 # compiling statically, then take all flags passed up from the
51819 # component.
51820 if test "$compile_mode" = "static"; then
51821 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
51822 eval "$str"
51823 if test -n "$line" ; then
51824 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
51826 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
51827 eval "$str"
51828 if test -n "$line" ; then
51829 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
51833 else
51835 { echo "$as_me:$LINENO: checking if MCA component memcpy:$component can compile" >&5
51836 echo $ECHO_N "checking if MCA component memcpy:$component can compile... $ECHO_C" >&6; }
51837 { echo "$as_me:$LINENO: result: no" >&5
51838 echo "${ECHO_T}no" >&6; }
51840 # If this component was requested as the default for this
51841 # type, then abort.
51842 if test "$with_memcpy" = "$component" ; then
51843 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
51844 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
51845 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
51846 echo "$as_me: WARNING: This component was selected as the default" >&2;}
51847 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
51848 echo "$as_me: error: Cannot continue" >&2;}
51849 { (exit 1); exit 1; }; }
51850 exit 1
51853 if test ! -z "$DIRECT_memcpy" ; then
51854 if test "$DIRECT_memcpy" = "$component" ; then
51855 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
51856 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
51857 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
51858 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
51859 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
51860 echo "$as_me: error: Cannot continue" >&2;}
51861 { (exit 1); exit 1; }; }
51862 exit 1
51868 done
51873 MCA_memcpy_ALL_COMPONENTS="$all_components"
51874 MCA_memcpy_STATIC_COMPONENTS="$static_components"
51875 MCA_memcpy_DSO_COMPONENTS="$dso_components"
51876 MCA_memcpy_STATIC_LTLIBS="$static_ltlibs"
51884 MCA_memcpy_ALL_SUBDIRS=
51885 for item in $all_components ; do
51886 MCA_memcpy_ALL_SUBDIRS="$MCA_memcpy_ALL_SUBDIRS mca/memcpy/$item"
51887 done
51891 MCA_memcpy_STATIC_SUBDIRS=
51892 for item in $static_components ; do
51893 MCA_memcpy_STATIC_SUBDIRS="$MCA_memcpy_STATIC_SUBDIRS mca/memcpy/$item"
51894 done
51898 MCA_memcpy_DSO_SUBDIRS=
51899 for item in $dso_components ; do
51900 MCA_memcpy_DSO_SUBDIRS="$MCA_memcpy_DSO_SUBDIRS mca/memcpy/$item"
51901 done
51905 # add all the makefiles for the framework to the CONFIG_FILES.
51906 # Don't add common/base, since it doesn't exist
51907 ac_config_files="$ac_config_files opal/mca/memcpy/Makefile"
51910 # Create the final .h file that will be included in the type's
51911 # top-level glue. This lists all the static components. We don't
51912 # need to do this for "common".
51913 if test "memcpy" != "common"; then
51914 cat > $outfile <<EOF
51916 * \$HEADER\$
51919 `cat $outfile.extern`
51921 const mca_base_component_t *mca_memcpy_base_static_components[] = {
51922 `cat $outfile.struct`
51923 NULL
51926 # Only replace the header file if a) it doesn't previously
51927 # exist, or b) the contents are different. Do this to not
51928 # trigger recompilation of certain .c files just because the
51929 # timestamp changed on $outfile_real (similar to the way AC
51930 # handles AC_CONFIG_HEADER files).
51931 diff $outfile $outfile_real > /dev/null 2>&1
51932 if test "$?" != "0"; then
51933 mv $outfile $outfile_real
51934 else
51935 rm -f $outfile
51938 rm -f $outfile.struct $outfile.extern
51940 unset all_components static_components dso_components outfile outfile_real
51943 # someone should have set this...
51944 if test "$memcpy_base_include" = "" ; then
51945 memcpy_base_include="base/memcpy_base_default.h"
51948 ac_config_links="$ac_config_links opal/mca/memcpy/base/base_impl.h:opal/mca/memcpy/$memcpy_base_include"
51950 # common has to go up front
51951 if test "memory" = "common" ; then
51952 MCA_opal_FRAMEWORKS="memory $MCA_opal_FRAMEWORKS"
51953 MCA_opal_FRAMEWORKS_SUBDIRS="mca/memory $MCA_opal_FRAMEWORKS_SUBDIRS"
51954 MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_memory_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
51955 MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_memory_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
51956 MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_memory_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
51957 else
51958 MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS memory"
51959 MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/memory"
51960 MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_memory_ALL_SUBDIRS)"
51961 MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_memory_DSO_SUBDIRS)"
51962 MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_memory_STATIC_SUBDIRS)"
51964 if test "memory" != "common" ; then
51965 MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/memory/libmca_memory.la"
51967 MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_memory_STATIC_LTLIBS)"
51969 memory_base_found=0
51971 # first, compile all the components
51973 ompi_show_subsubtitle "Configuring MCA framework memory"
51975 # setup for framework
51976 all_components=
51977 static_components=
51978 dso_components=
51979 static_ltlibs=
51981 # Ensure that the directory where the #include file is to live
51982 # exists. Need to do this for VPATH builds, because the directory
51983 # may not exist yet. For the "common" type, it's not really a
51984 # component, so it doesn't have a base.
51985 if test "memory" = "common" ; then
51986 outdir=opal/mca/common
51987 else
51988 outdir=opal/mca/memory/base
51990 { as_dir=$outdir
51991 case $as_dir in #(
51992 -*) as_dir=./$as_dir;;
51993 esac
51994 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51995 as_dirs=
51996 while :; do
51997 case $as_dir in #(
51998 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
51999 *) as_qdir=$as_dir;;
52000 esac
52001 as_dirs="'$as_qdir' $as_dirs"
52002 as_dir=`$as_dirname -- "$as_dir" ||
52003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52004 X"$as_dir" : 'X\(//\)[^/]' \| \
52005 X"$as_dir" : 'X\(//\)$' \| \
52006 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52007 echo X"$as_dir" |
52008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52009 s//\1/
52012 /^X\(\/\/\)[^/].*/{
52013 s//\1/
52016 /^X\(\/\/\)$/{
52017 s//\1/
52020 /^X\(\/\).*/{
52021 s//\1/
52024 s/.*/./; q'`
52025 test -d "$as_dir" && break
52026 done
52027 test -z "$as_dirs" || eval "mkdir $as_dirs"
52028 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52029 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52030 { (exit 1); exit 1; }; }; }
52032 # remove any previously generated #include files
52033 outfile_real=$outdir/static-components.h
52034 outfile=$outfile_real.new
52035 rm -f $outfile $outfile.struct $outfile.extern
52036 touch $outfile.struct $outfile.extern
52038 # print some nice messages about what we're about to do...
52039 { echo "$as_me:$LINENO: checking for no configure components in framework memory" >&5
52040 echo $ECHO_N "checking for no configure components in framework memory... $ECHO_C" >&6; }
52041 { echo "$as_me:$LINENO: result: " >&5
52042 echo "${ECHO_T}" >&6; }
52043 { echo "$as_me:$LINENO: checking for m4 configure components in framework memory" >&5
52044 echo $ECHO_N "checking for m4 configure components in framework memory... $ECHO_C" >&6; }
52045 { echo "$as_me:$LINENO: result: darwin, ptmalloc2, malloc_hooks" >&5
52046 echo "${ECHO_T}darwin, ptmalloc2, malloc_hooks" >&6; }
52048 # if we only want the first successful component, set the variable
52049 # happy_value to 0 so we stop on first assignment. Otherwise, set
52050 # it to zero so that components_looking_for_succeed is always 1
52051 happy_value=0
52053 components_looking_for_succeed=1
52055 # configure components that don't have any component-specific
52056 # configuration. See comment in CONFIGURE_PROJECT about the
52057 # m4_ifval
52058 # if there isn't a component list, abort
52062 # configure components that use built-in configuration scripts
52063 # see comment in CONFIGURE_PROJECT about the m4_ifval
52064 # if there isn't a component list, abort
52067 ompi_show_subsubsubtitle "MCA component memory:darwin (m4 configuration macro)"
52070 project=opal
52071 framework=memory
52072 component=darwin
52073 component_path="$srcdir/$project/mca/$framework/$component"
52074 want_component=0
52076 # build if:
52077 # - the component type is direct and we are that component
52078 # - there is no ompi_ignore file
52079 # - there is an ompi_ignore, but there is an empty ompi_unignore
52080 # - there is an ompi_ignore, but username is in ompi_unignore
52081 if test -d $component_path ; then
52082 # decide if we want the component to be built or not. This
52083 # is spread out because some of the logic is a little complex
52084 # and test's syntax isn't exactly the greatest. We want to
52085 # build the component by default.
52086 want_component=1
52087 if test -f $component_path/.ompi_ignore ; then
52088 # If there is an ompi_ignore file, don't build
52089 # the component. Note that this decision can be
52090 # overriden by the unignore logic below.
52091 want_component=0
52093 if test -f $component_path/.ompi_unignore ; then
52094 # if there is an empty ompi_unignore, that is
52095 # equivalent to having your userid in the unignore file.
52096 # If userid is in the file, unignore the ignore file.
52097 if test ! -s $component_path/.ompi_unignore ; then
52098 want_component=1
52099 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
52100 want_component=1
52103 # if this component type is direct and we are not it, we don't want
52104 # to be built. Otherwise, we do want to be built.
52105 if test ! -z "$DIRECT_memory" ; then
52106 if test "$DIRECT_memory" = "$component" ; then
52107 want_component=1
52108 else
52109 want_component=0
52114 # if we were explicitly disabled, don't build :)
52115 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
52116 eval $str
52117 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
52118 want_component=0
52121 if test "$want_component" = "1"; then
52122 should_build=$components_looking_for_succeed
52123 else
52124 should_build=0
52128 # Allow the component to override the build mode if it really wants to.
52129 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
52131 { echo "$as_me:$LINENO: checking for MCA component memory:darwin compile mode" >&5
52132 echo $ECHO_N "checking for MCA component memory:darwin compile mode... $ECHO_C" >&6; }
52133 compile_mode="static"
52134 { echo "$as_me:$LINENO: result: $compile_mode" >&5
52135 echo "${ECHO_T}$compile_mode" >&6; }
52138 # try to configure the component. pay no attention to
52139 # --enable-dist, since we'll always have makefiles.
52140 if test "$should_build" = "1"; then
52143 # Check whether --with-memory-manager was given.
52144 if test "${with_memory_manager+set}" = set; then
52145 withval=$with_memory_manager;
52149 if test "$with_memory_manager" = "darwin"; then
52150 memory_darwin_happy="yes"
52151 memory_darwin_should_use=1
52152 else
52153 memory_darwin_should_use=0
52154 if test "$with_memory_manager" = ""; then
52155 memory_darwin_happy="yes"
52156 else
52157 memory_darwin_happy="no"
52163 if test "$memory_darwin_happy" = "yes"; then
52164 # check for malloc/malloc.h
52165 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
52166 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
52167 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
52168 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
52169 echo $ECHO_N "(cached) $ECHO_C" >&6
52171 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
52172 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
52173 else
52174 # Is the header compilable?
52175 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
52176 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
52177 cat >conftest.$ac_ext <<_ACEOF
52178 /* confdefs.h. */
52179 _ACEOF
52180 cat confdefs.h >>conftest.$ac_ext
52181 cat >>conftest.$ac_ext <<_ACEOF
52182 /* end confdefs.h. */
52183 $ac_includes_default
52184 #include <malloc/malloc.h>
52185 _ACEOF
52186 rm -f conftest.$ac_objext
52187 if { (ac_try="$ac_compile"
52188 case "(($ac_try" in
52189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52190 *) ac_try_echo=$ac_try;;
52191 esac
52192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52193 (eval "$ac_compile") 2>conftest.er1
52194 ac_status=$?
52195 grep -v '^ *+' conftest.er1 >conftest.err
52196 rm -f conftest.er1
52197 cat conftest.err >&5
52198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52199 (exit $ac_status); } && {
52200 test -z "$ac_c_werror_flag" ||
52201 test ! -s conftest.err
52202 } && test -s conftest.$ac_objext; then
52203 ac_header_compiler=yes
52204 else
52205 echo "$as_me: failed program was:" >&5
52206 sed 's/^/| /' conftest.$ac_ext >&5
52208 ac_header_compiler=no
52211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52213 echo "${ECHO_T}$ac_header_compiler" >&6; }
52215 # Is the header present?
52216 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
52217 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
52218 cat >conftest.$ac_ext <<_ACEOF
52219 /* confdefs.h. */
52220 _ACEOF
52221 cat confdefs.h >>conftest.$ac_ext
52222 cat >>conftest.$ac_ext <<_ACEOF
52223 /* end confdefs.h. */
52224 #include <malloc/malloc.h>
52225 _ACEOF
52226 if { (ac_try="$ac_cpp conftest.$ac_ext"
52227 case "(($ac_try" in
52228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52229 *) ac_try_echo=$ac_try;;
52230 esac
52231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52233 ac_status=$?
52234 grep -v '^ *+' conftest.er1 >conftest.err
52235 rm -f conftest.er1
52236 cat conftest.err >&5
52237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52238 (exit $ac_status); } >/dev/null && {
52239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52240 test ! -s conftest.err
52241 }; then
52242 ac_header_preproc=yes
52243 else
52244 echo "$as_me: failed program was:" >&5
52245 sed 's/^/| /' conftest.$ac_ext >&5
52247 ac_header_preproc=no
52250 rm -f conftest.err conftest.$ac_ext
52251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52252 echo "${ECHO_T}$ac_header_preproc" >&6; }
52254 # So? What about this header?
52255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52256 yes:no: )
52257 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
52258 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52259 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
52260 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
52261 ac_header_preproc=yes
52263 no:yes:* )
52264 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
52265 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
52266 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
52267 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
52268 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
52269 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
52270 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
52271 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
52272 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
52273 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
52274 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
52275 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
52276 ( cat <<\_ASBOX
52277 ## ------------------------------------------------------ ##
52278 ## Report this to http://www.open-mpi.org/community/help/ ##
52279 ## ------------------------------------------------------ ##
52280 _ASBOX
52281 ) | sed "s/^/$as_me: WARNING: /" >&2
52283 esac
52284 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
52285 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
52286 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
52287 echo $ECHO_N "(cached) $ECHO_C" >&6
52288 else
52289 ac_cv_header_malloc_malloc_h=$ac_header_preproc
52291 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
52292 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
52295 if test $ac_cv_header_malloc_malloc_h = yes; then
52296 memory_darwin_happy="yes"
52297 else
52298 memory_darwin_happy="no"
52305 if test "$memory_darwin_happy" = "yes"; then
52306 # check for hook to get correct callbacks
52307 { echo "$as_me:$LINENO: checking for malloc_default_zone" >&5
52308 echo $ECHO_N "checking for malloc_default_zone... $ECHO_C" >&6; }
52309 if test "${ac_cv_func_malloc_default_zone+set}" = set; then
52310 echo $ECHO_N "(cached) $ECHO_C" >&6
52311 else
52312 cat >conftest.$ac_ext <<_ACEOF
52313 /* confdefs.h. */
52314 _ACEOF
52315 cat confdefs.h >>conftest.$ac_ext
52316 cat >>conftest.$ac_ext <<_ACEOF
52317 /* end confdefs.h. */
52318 /* Define malloc_default_zone to an innocuous variant, in case <limits.h> declares malloc_default_zone.
52319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52320 #define malloc_default_zone innocuous_malloc_default_zone
52322 /* System header to define __stub macros and hopefully few prototypes,
52323 which can conflict with char malloc_default_zone (); below.
52324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52325 <limits.h> exists even on freestanding compilers. */
52327 #ifdef __STDC__
52328 # include <limits.h>
52329 #else
52330 # include <assert.h>
52331 #endif
52333 #undef malloc_default_zone
52335 /* Override any GCC internal prototype to avoid an error.
52336 Use char because int might match the return type of a GCC
52337 builtin and then its argument prototype would still apply. */
52338 #ifdef __cplusplus
52339 extern "C"
52340 #endif
52341 char malloc_default_zone ();
52342 /* The GNU C library defines this for functions which it implements
52343 to always fail with ENOSYS. Some functions are actually named
52344 something starting with __ and the normal name is an alias. */
52345 #if defined __stub_malloc_default_zone || defined __stub___malloc_default_zone
52346 choke me
52347 #endif
52350 main ()
52352 return malloc_default_zone ();
52354 return 0;
52356 _ACEOF
52357 rm -f conftest.$ac_objext conftest$ac_exeext
52358 if { (ac_try="$ac_link"
52359 case "(($ac_try" in
52360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52361 *) ac_try_echo=$ac_try;;
52362 esac
52363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52364 (eval "$ac_link") 2>conftest.er1
52365 ac_status=$?
52366 grep -v '^ *+' conftest.er1 >conftest.err
52367 rm -f conftest.er1
52368 cat conftest.err >&5
52369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52370 (exit $ac_status); } && {
52371 test -z "$ac_c_werror_flag" ||
52372 test ! -s conftest.err
52373 } && test -s conftest$ac_exeext &&
52374 $as_test_x conftest$ac_exeext; then
52375 ac_cv_func_malloc_default_zone=yes
52376 else
52377 echo "$as_me: failed program was:" >&5
52378 sed 's/^/| /' conftest.$ac_ext >&5
52380 ac_cv_func_malloc_default_zone=no
52383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52384 conftest$ac_exeext conftest.$ac_ext
52386 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_default_zone" >&5
52387 echo "${ECHO_T}$ac_cv_func_malloc_default_zone" >&6; }
52388 if test $ac_cv_func_malloc_default_zone = yes; then
52389 memory_darwin_happy="yes"
52390 else
52391 memory_darwin_happy="no"
52397 # this should be true for any reasonably recent version of OS X,
52398 # but make sure.
52399 if test "$memory_darwin_happy" = "yes"; then
52400 { echo "$as_me:$LINENO: checking for dlsym" >&5
52401 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; }
52402 if test "${ac_cv_func_dlsym+set}" = set; then
52403 echo $ECHO_N "(cached) $ECHO_C" >&6
52404 else
52405 cat >conftest.$ac_ext <<_ACEOF
52406 /* confdefs.h. */
52407 _ACEOF
52408 cat confdefs.h >>conftest.$ac_ext
52409 cat >>conftest.$ac_ext <<_ACEOF
52410 /* end confdefs.h. */
52411 /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
52412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52413 #define dlsym innocuous_dlsym
52415 /* System header to define __stub macros and hopefully few prototypes,
52416 which can conflict with char dlsym (); below.
52417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52418 <limits.h> exists even on freestanding compilers. */
52420 #ifdef __STDC__
52421 # include <limits.h>
52422 #else
52423 # include <assert.h>
52424 #endif
52426 #undef dlsym
52428 /* Override any GCC internal prototype to avoid an error.
52429 Use char because int might match the return type of a GCC
52430 builtin and then its argument prototype would still apply. */
52431 #ifdef __cplusplus
52432 extern "C"
52433 #endif
52434 char dlsym ();
52435 /* The GNU C library defines this for functions which it implements
52436 to always fail with ENOSYS. Some functions are actually named
52437 something starting with __ and the normal name is an alias. */
52438 #if defined __stub_dlsym || defined __stub___dlsym
52439 choke me
52440 #endif
52443 main ()
52445 return dlsym ();
52447 return 0;
52449 _ACEOF
52450 rm -f conftest.$ac_objext conftest$ac_exeext
52451 if { (ac_try="$ac_link"
52452 case "(($ac_try" in
52453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52454 *) ac_try_echo=$ac_try;;
52455 esac
52456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52457 (eval "$ac_link") 2>conftest.er1
52458 ac_status=$?
52459 grep -v '^ *+' conftest.er1 >conftest.err
52460 rm -f conftest.er1
52461 cat conftest.err >&5
52462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52463 (exit $ac_status); } && {
52464 test -z "$ac_c_werror_flag" ||
52465 test ! -s conftest.err
52466 } && test -s conftest$ac_exeext &&
52467 $as_test_x conftest$ac_exeext; then
52468 ac_cv_func_dlsym=yes
52469 else
52470 echo "$as_me: failed program was:" >&5
52471 sed 's/^/| /' conftest.$ac_ext >&5
52473 ac_cv_func_dlsym=no
52476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52477 conftest$ac_exeext conftest.$ac_ext
52479 { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
52480 echo "${ECHO_T}$ac_cv_func_dlsym" >&6; }
52481 if test $ac_cv_func_dlsym = yes; then
52482 memory_darwin_happy="yes"
52483 else
52484 memory_darwin_happy="no"
52490 if test "$memory_darwin_happy" = "no" -a \
52491 "$memory_malloc_hoooks_should_use" = "1"; then
52492 { { echo "$as_me:$LINENO: error: Darwin memory management requested but not available. Aborting." >&5
52493 echo "$as_me: error: Darwin memory management requested but not available. Aborting." >&2;}
52494 { (exit 1); exit 1; }; }
52498 if test "$memory_darwin_happy" = "yes"; then
52499 # Yes, we really do want to screw with LDFLAGS here...
52500 LDFLAGS="$LDFLAGS -Wl,-u,_munmap -Wl,-multiply_defined,suppress"
52501 memory_darwin_WRAPPER_EXTRA_LDFLAGS="-Wl,-u,_munmap -Wl,-multiply_defined,suppress"
52502 memory_base_found=1
52503 should_build=1
52504 else
52505 should_build=0
52512 if test "$should_build" = "1"; then
52514 project=opal
52515 framework=memory
52516 component=darwin
52518 # See if it dropped an output file for us to pick up some
52519 # shell variables in.
52520 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
52522 # Add this subdir to the mast list of all MCA component subdirs
52523 all_components="$all_components $component"
52525 if test "$compile_mode" = "dso" ; then
52526 dso_components="$dso_components $component"
52527 else
52528 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
52529 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
52530 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
52531 static_components="$static_components $component"
52534 # Output pretty results
52535 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
52536 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
52537 { echo "$as_me:$LINENO: result: yes" >&5
52538 echo "${ECHO_T}yes" >&6; }
52540 # If there's an output file, add the values to
52541 # scope_EXTRA_flags.
52542 if test -f $infile; then
52544 # First check for the ABORT tag
52545 line="`grep ABORT= $infile | cut -d= -f2-`"
52546 if test -n "$line" -a "$line" != "no"; then
52547 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
52548 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
52549 { { echo "$as_me:$LINENO: error: cannot continue" >&5
52550 echo "$as_me: error: cannot continue" >&2;}
52551 { (exit 1); exit 1; }; }
52554 # Check for flags passed up from the component. If we're
52555 # compiling statically, then take all flags passed up from the
52556 # component.
52557 if test "$compile_mode" = "static"; then
52558 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
52559 eval "line=$line"
52560 if test -n "$line"; then
52561 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
52563 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
52564 eval "line=$line"
52565 if test -n "$line"; then
52566 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
52570 if test "$DIRECT_memory" = "$component" ; then
52571 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
52572 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
52573 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
52574 eval $str
52575 else
52576 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
52577 *** does not appear to support direct calling.
52578 *** Aborting" >&5
52579 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
52580 *** does not appear to support direct calling.
52581 *** Aborting" >&2;}
52582 { (exit 1); exit 1; }; }
52585 else
52586 # were we supposed to have found something in the
52587 # post_configure.sh, but the file didn't exist?
52588 if test "$DIRECT_memory" = "$component" ; then
52589 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
52590 *** does not appear to support direct calling.
52591 *** Aborting" >&5
52592 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
52593 *** does not appear to support direct calling.
52594 *** Aborting" >&2;}
52595 { (exit 1); exit 1; }; }
52599 # now add the flags that were set in the environment variables
52600 # framework_component_FOO (for example, the flags set by
52601 # m4_configure components)
52603 # Check for flags passed up from the component. If we're
52604 # compiling statically, then take all flags passed up from the
52605 # component.
52606 if test "$compile_mode" = "static"; then
52607 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
52608 eval "$str"
52609 if test -n "$line" ; then
52610 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
52612 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
52613 eval "$str"
52614 if test -n "$line" ; then
52615 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
52619 else
52621 { echo "$as_me:$LINENO: checking if MCA component memory:darwin can compile" >&5
52622 echo $ECHO_N "checking if MCA component memory:darwin can compile... $ECHO_C" >&6; }
52623 { echo "$as_me:$LINENO: result: no" >&5
52624 echo "${ECHO_T}no" >&6; }
52626 # If this component was requested as the default for this
52627 # type, then abort.
52628 if test "$with_memory" = "darwin" ; then
52629 { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
52630 echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
52631 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
52632 echo "$as_me: WARNING: This component was selected as the default" >&2;}
52633 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
52634 echo "$as_me: error: Cannot continue" >&2;}
52635 { (exit 1); exit 1; }; }
52636 exit 1
52639 if test ! -z "$DIRECT_memory" ; then
52640 if test "$DIRECT_memory" = "darwin" ; then
52641 { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
52642 echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
52643 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
52644 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
52645 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
52646 echo "$as_me: error: Cannot continue" >&2;}
52647 { (exit 1); exit 1; }; }
52648 exit 1
52652 # add component to all component list
52653 all_components="$all_components darwin"
52657 # set the AM_CONDITIONAL on how we should build
52658 if test "$compile_mode" = "dso"; then
52659 BUILD_memory_darwin_DSO=1
52660 else
52661 BUILD_memory_darwin_DSO=0
52666 if test "$BUILD_memory_darwin_DSO" = "1"; then
52667 OMPI_BUILD_memory_darwin_DSO_TRUE=
52668 OMPI_BUILD_memory_darwin_DSO_FALSE='#'
52669 else
52670 OMPI_BUILD_memory_darwin_DSO_TRUE='#'
52671 OMPI_BUILD_memory_darwin_DSO_FALSE=
52675 if test "$should_build" = "1"; then
52676 components_looking_for_succeed="$happy_value"
52680 unset compile_mode
52682 ompi_show_subsubsubtitle "MCA component memory:ptmalloc2 (m4 configuration macro)"
52685 project=opal
52686 framework=memory
52687 component=ptmalloc2
52688 component_path="$srcdir/$project/mca/$framework/$component"
52689 want_component=0
52691 # build if:
52692 # - the component type is direct and we are that component
52693 # - there is no ompi_ignore file
52694 # - there is an ompi_ignore, but there is an empty ompi_unignore
52695 # - there is an ompi_ignore, but username is in ompi_unignore
52696 if test -d $component_path ; then
52697 # decide if we want the component to be built or not. This
52698 # is spread out because some of the logic is a little complex
52699 # and test's syntax isn't exactly the greatest. We want to
52700 # build the component by default.
52701 want_component=1
52702 if test -f $component_path/.ompi_ignore ; then
52703 # If there is an ompi_ignore file, don't build
52704 # the component. Note that this decision can be
52705 # overriden by the unignore logic below.
52706 want_component=0
52708 if test -f $component_path/.ompi_unignore ; then
52709 # if there is an empty ompi_unignore, that is
52710 # equivalent to having your userid in the unignore file.
52711 # If userid is in the file, unignore the ignore file.
52712 if test ! -s $component_path/.ompi_unignore ; then
52713 want_component=1
52714 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
52715 want_component=1
52718 # if this component type is direct and we are not it, we don't want
52719 # to be built. Otherwise, we do want to be built.
52720 if test ! -z "$DIRECT_memory" ; then
52721 if test "$DIRECT_memory" = "$component" ; then
52722 want_component=1
52723 else
52724 want_component=0
52729 # if we were explicitly disabled, don't build :)
52730 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
52731 eval $str
52732 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
52733 want_component=0
52736 if test "$want_component" = "1"; then
52737 should_build=$components_looking_for_succeed
52738 else
52739 should_build=0
52743 # Allow the component to override the build mode if it really wants to.
52744 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
52746 { echo "$as_me:$LINENO: checking for MCA component memory:ptmalloc2 compile mode" >&5
52747 echo $ECHO_N "checking for MCA component memory:ptmalloc2 compile mode... $ECHO_C" >&6; }
52748 compile_mode="static"
52749 { echo "$as_me:$LINENO: result: $compile_mode" >&5
52750 echo "${ECHO_T}$compile_mode" >&6; }
52753 # try to configure the component. pay no attention to
52754 # --enable-dist, since we'll always have makefiles.
52755 if test "$should_build" = "1"; then
52758 # Check whether --with-memory-manager was given.
52759 if test "${with_memory_manager+set}" = set; then
52760 withval=$with_memory_manager;
52764 # Check whether --enable-ptmalloc2-opt-sbrk was given.
52765 if test "${enable_ptmalloc2_opt_sbrk+set}" = set; then
52766 enableval=$enable_ptmalloc2_opt_sbrk;
52770 if test "$enable_ptmalloc2_opt_sbrk" = "no" ; then
52771 memory_ptmalloc2_opt_sbrk=0
52772 else
52773 memory_ptmalloc2_opt_sbrk=1
52776 cat >>confdefs.h <<_ACEOF
52777 #define OMPI_MEMORY_PTMALLOC2_OPT_SBRK $memory_ptmalloc2_opt_sbrk
52778 _ACEOF
52781 if test "$with_memory_manager" = "ptmalloc2"; then
52782 if test "`echo $host | grep apple-darwin`" != "" ; then
52783 { echo "$as_me:$LINENO: WARNING: *** Using ptmalloc with OS X will result in failure." >&5
52784 echo "$as_me: WARNING: *** Using ptmalloc with OS X will result in failure." >&2;}
52785 { { echo "$as_me:$LINENO: error: *** Aborting to save you the effort" >&5
52786 echo "$as_me: error: *** Aborting to save you the effort" >&2;}
52787 { (exit 1); exit 1; }; }
52789 memory_ptmalloc2_happy="yes"
52790 memory_ptmalloc2_should_use=1
52791 else
52792 memory_ptmalloc2_should_use=0
52793 if test "$with_memory_manager" = ""; then
52794 memory_ptmalloc2_happy="yes"
52795 else
52796 memory_ptmalloc2_happy="no"
52802 # Per ticket #227, Intel 9.0 v20051201 on ia64 with optimization
52803 # of -O2 or higher will bork ptmalloc2 in strange in mysterious
52804 # ways. Doh! So if the compiler vendor is intel and we're on an
52805 # ia64 box, run "icc --version" and snarf the version string. If
52806 # it's 9.0 and the version is <= 20051201, then disable ptmalloc2.
52807 # Executive decision: ignore optimization levels (even though -O1
52808 # and -O0 seem to work). The upgrade to 9.1 is free, so that's a
52809 # better path than trying to make a much more complicated test
52810 # here.
52812 case $host in
52813 ia64-*)
52814 if test "$ompi_c_vendor" = "intel"; then
52815 # check for v9.0 <= 20051201
52816 icc_major_ver="`$CC --version | head -n 1 | awk '{ print $3 }'`"
52817 icc_minor_ver="`$CC --version | head -n 1 | awk '{ print $4 }'`"
52818 if test "$icc_major_ver" = "9.0" -a "`expr $icc_minor_ver \<= 20051201`" = "1"; then
52819 memory_ptmalloc2_happy="no"
52820 { echo "$as_me:$LINENO: WARNING: *** Detected Intel C compiler v9.0 <= 20051201 on ia64" >&5
52821 echo "$as_me: WARNING: *** Detected Intel C compiler v9.0 <= 20051201 on ia64" >&2;}
52822 { echo "$as_me:$LINENO: WARNING: *** This compiler/platform combination has known problems with ptmalloc2" >&5
52823 echo "$as_me: WARNING: *** This compiler/platform combination has known problems with ptmalloc2" >&2;}
52824 { echo "$as_me:$LINENO: WARNING: *** Automatically disabling ptmalloc2" >&5
52825 echo "$as_me: WARNING: *** Automatically disabling ptmalloc2" >&2;}
52828 unset icc_major_ver icc_minor_ver
52832 esac
52834 if test "$memory_ptmalloc2_happy" = "yes"; then
52835 # check for malloc.h
52836 if test "${ac_cv_header_malloc_h+set}" = set; then
52837 { echo "$as_me:$LINENO: checking for malloc.h" >&5
52838 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
52839 if test "${ac_cv_header_malloc_h+set}" = set; then
52840 echo $ECHO_N "(cached) $ECHO_C" >&6
52842 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
52843 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
52844 else
52845 # Is the header compilable?
52846 { echo "$as_me:$LINENO: checking malloc.h usability" >&5
52847 echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; }
52848 cat >conftest.$ac_ext <<_ACEOF
52849 /* confdefs.h. */
52850 _ACEOF
52851 cat confdefs.h >>conftest.$ac_ext
52852 cat >>conftest.$ac_ext <<_ACEOF
52853 /* end confdefs.h. */
52854 $ac_includes_default
52855 #include <malloc.h>
52856 _ACEOF
52857 rm -f conftest.$ac_objext
52858 if { (ac_try="$ac_compile"
52859 case "(($ac_try" in
52860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52861 *) ac_try_echo=$ac_try;;
52862 esac
52863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52864 (eval "$ac_compile") 2>conftest.er1
52865 ac_status=$?
52866 grep -v '^ *+' conftest.er1 >conftest.err
52867 rm -f conftest.er1
52868 cat conftest.err >&5
52869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52870 (exit $ac_status); } && {
52871 test -z "$ac_c_werror_flag" ||
52872 test ! -s conftest.err
52873 } && test -s conftest.$ac_objext; then
52874 ac_header_compiler=yes
52875 else
52876 echo "$as_me: failed program was:" >&5
52877 sed 's/^/| /' conftest.$ac_ext >&5
52879 ac_header_compiler=no
52882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52884 echo "${ECHO_T}$ac_header_compiler" >&6; }
52886 # Is the header present?
52887 { echo "$as_me:$LINENO: checking malloc.h presence" >&5
52888 echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; }
52889 cat >conftest.$ac_ext <<_ACEOF
52890 /* confdefs.h. */
52891 _ACEOF
52892 cat confdefs.h >>conftest.$ac_ext
52893 cat >>conftest.$ac_ext <<_ACEOF
52894 /* end confdefs.h. */
52895 #include <malloc.h>
52896 _ACEOF
52897 if { (ac_try="$ac_cpp conftest.$ac_ext"
52898 case "(($ac_try" in
52899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52900 *) ac_try_echo=$ac_try;;
52901 esac
52902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52904 ac_status=$?
52905 grep -v '^ *+' conftest.er1 >conftest.err
52906 rm -f conftest.er1
52907 cat conftest.err >&5
52908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52909 (exit $ac_status); } >/dev/null && {
52910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52911 test ! -s conftest.err
52912 }; then
52913 ac_header_preproc=yes
52914 else
52915 echo "$as_me: failed program was:" >&5
52916 sed 's/^/| /' conftest.$ac_ext >&5
52918 ac_header_preproc=no
52921 rm -f conftest.err conftest.$ac_ext
52922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52923 echo "${ECHO_T}$ac_header_preproc" >&6; }
52925 # So? What about this header?
52926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52927 yes:no: )
52928 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
52929 echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52930 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
52931 echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
52932 ac_header_preproc=yes
52934 no:yes:* )
52935 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
52936 echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
52937 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
52938 echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
52939 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
52940 echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
52941 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
52942 echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
52943 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
52944 echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
52945 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
52946 echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
52947 ( cat <<\_ASBOX
52948 ## ------------------------------------------------------ ##
52949 ## Report this to http://www.open-mpi.org/community/help/ ##
52950 ## ------------------------------------------------------ ##
52951 _ASBOX
52952 ) | sed "s/^/$as_me: WARNING: /" >&2
52954 esac
52955 { echo "$as_me:$LINENO: checking for malloc.h" >&5
52956 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
52957 if test "${ac_cv_header_malloc_h+set}" = set; then
52958 echo $ECHO_N "(cached) $ECHO_C" >&6
52959 else
52960 ac_cv_header_malloc_h=$ac_header_preproc
52962 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
52963 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
52966 if test $ac_cv_header_malloc_h = yes; then
52967 memory_ptmalloc2_happy="yes"
52968 else
52969 memory_ptmalloc2_happy="no"
52976 if test "$memory_ptmalloc2_happy" = "yes"; then
52977 # check for init hook symbol
52978 { echo "$as_me:$LINENO: checking whether __malloc_initialize_hook is declared" >&5
52979 echo $ECHO_N "checking whether __malloc_initialize_hook is declared... $ECHO_C" >&6; }
52980 if test "${ac_cv_have_decl___malloc_initialize_hook+set}" = set; then
52981 echo $ECHO_N "(cached) $ECHO_C" >&6
52982 else
52983 cat >conftest.$ac_ext <<_ACEOF
52984 /* confdefs.h. */
52985 _ACEOF
52986 cat confdefs.h >>conftest.$ac_ext
52987 cat >>conftest.$ac_ext <<_ACEOF
52988 /* end confdefs.h. */
52989 $ac_includes_default
52990 #include <malloc.h>
52993 main ()
52995 #ifndef __malloc_initialize_hook
52996 (void) __malloc_initialize_hook;
52997 #endif
53000 return 0;
53002 _ACEOF
53003 rm -f conftest.$ac_objext
53004 if { (ac_try="$ac_compile"
53005 case "(($ac_try" in
53006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53007 *) ac_try_echo=$ac_try;;
53008 esac
53009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53010 (eval "$ac_compile") 2>conftest.er1
53011 ac_status=$?
53012 grep -v '^ *+' conftest.er1 >conftest.err
53013 rm -f conftest.er1
53014 cat conftest.err >&5
53015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53016 (exit $ac_status); } && {
53017 test -z "$ac_c_werror_flag" ||
53018 test ! -s conftest.err
53019 } && test -s conftest.$ac_objext; then
53020 ac_cv_have_decl___malloc_initialize_hook=yes
53021 else
53022 echo "$as_me: failed program was:" >&5
53023 sed 's/^/| /' conftest.$ac_ext >&5
53025 ac_cv_have_decl___malloc_initialize_hook=no
53028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53030 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___malloc_initialize_hook" >&5
53031 echo "${ECHO_T}$ac_cv_have_decl___malloc_initialize_hook" >&6; }
53032 if test $ac_cv_have_decl___malloc_initialize_hook = yes; then
53033 memory_ptmalloc2_happy="yes"
53034 else
53035 memory_ptmalloc2_happy="no"
53042 # See if we have sbrk prototyped
53044 { echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
53045 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6; }
53046 if test "${ac_cv_have_decl_sbrk+set}" = set; then
53047 echo $ECHO_N "(cached) $ECHO_C" >&6
53048 else
53049 cat >conftest.$ac_ext <<_ACEOF
53050 /* confdefs.h. */
53051 _ACEOF
53052 cat confdefs.h >>conftest.$ac_ext
53053 cat >>conftest.$ac_ext <<_ACEOF
53054 /* end confdefs.h. */
53055 $ac_includes_default
53057 main ()
53059 #ifndef sbrk
53060 (void) sbrk;
53061 #endif
53064 return 0;
53066 _ACEOF
53067 rm -f conftest.$ac_objext
53068 if { (ac_try="$ac_compile"
53069 case "(($ac_try" in
53070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53071 *) ac_try_echo=$ac_try;;
53072 esac
53073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53074 (eval "$ac_compile") 2>conftest.er1
53075 ac_status=$?
53076 grep -v '^ *+' conftest.er1 >conftest.err
53077 rm -f conftest.er1
53078 cat conftest.err >&5
53079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53080 (exit $ac_status); } && {
53081 test -z "$ac_c_werror_flag" ||
53082 test ! -s conftest.err
53083 } && test -s conftest.$ac_objext; then
53084 ac_cv_have_decl_sbrk=yes
53085 else
53086 echo "$as_me: failed program was:" >&5
53087 sed 's/^/| /' conftest.$ac_ext >&5
53089 ac_cv_have_decl_sbrk=no
53092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53094 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
53095 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6; }
53096 if test $ac_cv_have_decl_sbrk = yes; then
53098 cat >>confdefs.h <<_ACEOF
53099 #define HAVE_DECL_SBRK 1
53100 _ACEOF
53103 else
53104 cat >>confdefs.h <<_ACEOF
53105 #define HAVE_DECL_SBRK 0
53106 _ACEOF
53114 # Figure out how we're going to call mmap/munmap for real
53116 if test "$memory_ptmalloc2_happy" = "yes"; then
53117 memory_ptmalloc2_mmap=0
53118 memory_ptmalloc2_munmap=1
53120 # it's nearly impossible to call mmap from syscall(), so
53121 # only go this route if we can't get at munmap any other
53122 # way.
53123 if test "${ac_cv_header_syscall_h+set}" = set; then
53124 { echo "$as_me:$LINENO: checking for syscall.h" >&5
53125 echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6; }
53126 if test "${ac_cv_header_syscall_h+set}" = set; then
53127 echo $ECHO_N "(cached) $ECHO_C" >&6
53129 { echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5
53130 echo "${ECHO_T}$ac_cv_header_syscall_h" >&6; }
53131 else
53132 # Is the header compilable?
53133 { echo "$as_me:$LINENO: checking syscall.h usability" >&5
53134 echo $ECHO_N "checking syscall.h usability... $ECHO_C" >&6; }
53135 cat >conftest.$ac_ext <<_ACEOF
53136 /* confdefs.h. */
53137 _ACEOF
53138 cat confdefs.h >>conftest.$ac_ext
53139 cat >>conftest.$ac_ext <<_ACEOF
53140 /* end confdefs.h. */
53141 $ac_includes_default
53142 #include <syscall.h>
53143 _ACEOF
53144 rm -f conftest.$ac_objext
53145 if { (ac_try="$ac_compile"
53146 case "(($ac_try" in
53147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53148 *) ac_try_echo=$ac_try;;
53149 esac
53150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53151 (eval "$ac_compile") 2>conftest.er1
53152 ac_status=$?
53153 grep -v '^ *+' conftest.er1 >conftest.err
53154 rm -f conftest.er1
53155 cat conftest.err >&5
53156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53157 (exit $ac_status); } && {
53158 test -z "$ac_c_werror_flag" ||
53159 test ! -s conftest.err
53160 } && test -s conftest.$ac_objext; then
53161 ac_header_compiler=yes
53162 else
53163 echo "$as_me: failed program was:" >&5
53164 sed 's/^/| /' conftest.$ac_ext >&5
53166 ac_header_compiler=no
53169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53171 echo "${ECHO_T}$ac_header_compiler" >&6; }
53173 # Is the header present?
53174 { echo "$as_me:$LINENO: checking syscall.h presence" >&5
53175 echo $ECHO_N "checking syscall.h presence... $ECHO_C" >&6; }
53176 cat >conftest.$ac_ext <<_ACEOF
53177 /* confdefs.h. */
53178 _ACEOF
53179 cat confdefs.h >>conftest.$ac_ext
53180 cat >>conftest.$ac_ext <<_ACEOF
53181 /* end confdefs.h. */
53182 #include <syscall.h>
53183 _ACEOF
53184 if { (ac_try="$ac_cpp conftest.$ac_ext"
53185 case "(($ac_try" in
53186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53187 *) ac_try_echo=$ac_try;;
53188 esac
53189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53191 ac_status=$?
53192 grep -v '^ *+' conftest.er1 >conftest.err
53193 rm -f conftest.er1
53194 cat conftest.err >&5
53195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53196 (exit $ac_status); } >/dev/null && {
53197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
53198 test ! -s conftest.err
53199 }; then
53200 ac_header_preproc=yes
53201 else
53202 echo "$as_me: failed program was:" >&5
53203 sed 's/^/| /' conftest.$ac_ext >&5
53205 ac_header_preproc=no
53208 rm -f conftest.err conftest.$ac_ext
53209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53210 echo "${ECHO_T}$ac_header_preproc" >&6; }
53212 # So? What about this header?
53213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53214 yes:no: )
53215 { echo "$as_me:$LINENO: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5
53216 echo "$as_me: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53217 { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the compiler's result" >&5
53218 echo "$as_me: WARNING: syscall.h: proceeding with the compiler's result" >&2;}
53219 ac_header_preproc=yes
53221 no:yes:* )
53222 { echo "$as_me:$LINENO: WARNING: syscall.h: present but cannot be compiled" >&5
53223 echo "$as_me: WARNING: syscall.h: present but cannot be compiled" >&2;}
53224 { echo "$as_me:$LINENO: WARNING: syscall.h: check for missing prerequisite headers?" >&5
53225 echo "$as_me: WARNING: syscall.h: check for missing prerequisite headers?" >&2;}
53226 { echo "$as_me:$LINENO: WARNING: syscall.h: see the Autoconf documentation" >&5
53227 echo "$as_me: WARNING: syscall.h: see the Autoconf documentation" >&2;}
53228 { echo "$as_me:$LINENO: WARNING: syscall.h: section \"Present But Cannot Be Compiled\"" >&5
53229 echo "$as_me: WARNING: syscall.h: section \"Present But Cannot Be Compiled\"" >&2;}
53230 { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the preprocessor's result" >&5
53231 echo "$as_me: WARNING: syscall.h: proceeding with the preprocessor's result" >&2;}
53232 { echo "$as_me:$LINENO: WARNING: syscall.h: in the future, the compiler will take precedence" >&5
53233 echo "$as_me: WARNING: syscall.h: in the future, the compiler will take precedence" >&2;}
53234 ( cat <<\_ASBOX
53235 ## ------------------------------------------------------ ##
53236 ## Report this to http://www.open-mpi.org/community/help/ ##
53237 ## ------------------------------------------------------ ##
53238 _ASBOX
53239 ) | sed "s/^/$as_me: WARNING: /" >&2
53241 esac
53242 { echo "$as_me:$LINENO: checking for syscall.h" >&5
53243 echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6; }
53244 if test "${ac_cv_header_syscall_h+set}" = set; then
53245 echo $ECHO_N "(cached) $ECHO_C" >&6
53246 else
53247 ac_cv_header_syscall_h=$ac_header_preproc
53249 { echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5
53250 echo "${ECHO_T}$ac_cv_header_syscall_h" >&6; }
53253 if test $ac_cv_header_syscall_h = yes; then
53255 for ac_func in syscall
53257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53258 { echo "$as_me:$LINENO: checking for $ac_func" >&5
53259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
53260 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
53261 echo $ECHO_N "(cached) $ECHO_C" >&6
53262 else
53263 cat >conftest.$ac_ext <<_ACEOF
53264 /* confdefs.h. */
53265 _ACEOF
53266 cat confdefs.h >>conftest.$ac_ext
53267 cat >>conftest.$ac_ext <<_ACEOF
53268 /* end confdefs.h. */
53269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53271 #define $ac_func innocuous_$ac_func
53273 /* System header to define __stub macros and hopefully few prototypes,
53274 which can conflict with char $ac_func (); below.
53275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53276 <limits.h> exists even on freestanding compilers. */
53278 #ifdef __STDC__
53279 # include <limits.h>
53280 #else
53281 # include <assert.h>
53282 #endif
53284 #undef $ac_func
53286 /* Override any GCC internal prototype to avoid an error.
53287 Use char because int might match the return type of a GCC
53288 builtin and then its argument prototype would still apply. */
53289 #ifdef __cplusplus
53290 extern "C"
53291 #endif
53292 char $ac_func ();
53293 /* The GNU C library defines this for functions which it implements
53294 to always fail with ENOSYS. Some functions are actually named
53295 something starting with __ and the normal name is an alias. */
53296 #if defined __stub_$ac_func || defined __stub___$ac_func
53297 choke me
53298 #endif
53301 main ()
53303 return $ac_func ();
53305 return 0;
53307 _ACEOF
53308 rm -f conftest.$ac_objext conftest$ac_exeext
53309 if { (ac_try="$ac_link"
53310 case "(($ac_try" in
53311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53312 *) ac_try_echo=$ac_try;;
53313 esac
53314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53315 (eval "$ac_link") 2>conftest.er1
53316 ac_status=$?
53317 grep -v '^ *+' conftest.er1 >conftest.err
53318 rm -f conftest.er1
53319 cat conftest.err >&5
53320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53321 (exit $ac_status); } && {
53322 test -z "$ac_c_werror_flag" ||
53323 test ! -s conftest.err
53324 } && test -s conftest$ac_exeext &&
53325 $as_test_x conftest$ac_exeext; then
53326 eval "$as_ac_var=yes"
53327 else
53328 echo "$as_me: failed program was:" >&5
53329 sed 's/^/| /' conftest.$ac_ext >&5
53331 eval "$as_ac_var=no"
53334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53335 conftest$ac_exeext conftest.$ac_ext
53337 ac_res=`eval echo '${'$as_ac_var'}'`
53338 { echo "$as_me:$LINENO: result: $ac_res" >&5
53339 echo "${ECHO_T}$ac_res" >&6; }
53340 if test `eval echo '${'$as_ac_var'}'` = yes; then
53341 cat >>confdefs.h <<_ACEOF
53342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53343 _ACEOF
53345 else
53346 memory_ptmalloc2_munmap=0
53348 done
53354 # Always look for __munmap and __mmap
53356 for ac_func in __munmap
53358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
53360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
53361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
53362 echo $ECHO_N "(cached) $ECHO_C" >&6
53363 else
53364 cat >conftest.$ac_ext <<_ACEOF
53365 /* confdefs.h. */
53366 _ACEOF
53367 cat confdefs.h >>conftest.$ac_ext
53368 cat >>conftest.$ac_ext <<_ACEOF
53369 /* end confdefs.h. */
53370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53372 #define $ac_func innocuous_$ac_func
53374 /* System header to define __stub macros and hopefully few prototypes,
53375 which can conflict with char $ac_func (); below.
53376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53377 <limits.h> exists even on freestanding compilers. */
53379 #ifdef __STDC__
53380 # include <limits.h>
53381 #else
53382 # include <assert.h>
53383 #endif
53385 #undef $ac_func
53387 /* Override any GCC internal prototype to avoid an error.
53388 Use char because int might match the return type of a GCC
53389 builtin and then its argument prototype would still apply. */
53390 #ifdef __cplusplus
53391 extern "C"
53392 #endif
53393 char $ac_func ();
53394 /* The GNU C library defines this for functions which it implements
53395 to always fail with ENOSYS. Some functions are actually named
53396 something starting with __ and the normal name is an alias. */
53397 #if defined __stub_$ac_func || defined __stub___$ac_func
53398 choke me
53399 #endif
53402 main ()
53404 return $ac_func ();
53406 return 0;
53408 _ACEOF
53409 rm -f conftest.$ac_objext conftest$ac_exeext
53410 if { (ac_try="$ac_link"
53411 case "(($ac_try" in
53412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53413 *) ac_try_echo=$ac_try;;
53414 esac
53415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53416 (eval "$ac_link") 2>conftest.er1
53417 ac_status=$?
53418 grep -v '^ *+' conftest.er1 >conftest.err
53419 rm -f conftest.er1
53420 cat conftest.err >&5
53421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53422 (exit $ac_status); } && {
53423 test -z "$ac_c_werror_flag" ||
53424 test ! -s conftest.err
53425 } && test -s conftest$ac_exeext &&
53426 $as_test_x conftest$ac_exeext; then
53427 eval "$as_ac_var=yes"
53428 else
53429 echo "$as_me: failed program was:" >&5
53430 sed 's/^/| /' conftest.$ac_ext >&5
53432 eval "$as_ac_var=no"
53435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53436 conftest$ac_exeext conftest.$ac_ext
53438 ac_res=`eval echo '${'$as_ac_var'}'`
53439 { echo "$as_me:$LINENO: result: $ac_res" >&5
53440 echo "${ECHO_T}$ac_res" >&6; }
53441 if test `eval echo '${'$as_ac_var'}'` = yes; then
53442 cat >>confdefs.h <<_ACEOF
53443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53444 _ACEOF
53445 memory_ptmalloc2_mmap=1
53447 done
53450 for ac_func in __mmap
53452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
53454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
53455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
53456 echo $ECHO_N "(cached) $ECHO_C" >&6
53457 else
53458 cat >conftest.$ac_ext <<_ACEOF
53459 /* confdefs.h. */
53460 _ACEOF
53461 cat confdefs.h >>conftest.$ac_ext
53462 cat >>conftest.$ac_ext <<_ACEOF
53463 /* end confdefs.h. */
53464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53466 #define $ac_func innocuous_$ac_func
53468 /* System header to define __stub macros and hopefully few prototypes,
53469 which can conflict with char $ac_func (); below.
53470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53471 <limits.h> exists even on freestanding compilers. */
53473 #ifdef __STDC__
53474 # include <limits.h>
53475 #else
53476 # include <assert.h>
53477 #endif
53479 #undef $ac_func
53481 /* Override any GCC internal prototype to avoid an error.
53482 Use char because int might match the return type of a GCC
53483 builtin and then its argument prototype would still apply. */
53484 #ifdef __cplusplus
53485 extern "C"
53486 #endif
53487 char $ac_func ();
53488 /* The GNU C library defines this for functions which it implements
53489 to always fail with ENOSYS. Some functions are actually named
53490 something starting with __ and the normal name is an alias. */
53491 #if defined __stub_$ac_func || defined __stub___$ac_func
53492 choke me
53493 #endif
53496 main ()
53498 return $ac_func ();
53500 return 0;
53502 _ACEOF
53503 rm -f conftest.$ac_objext conftest$ac_exeext
53504 if { (ac_try="$ac_link"
53505 case "(($ac_try" in
53506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53507 *) ac_try_echo=$ac_try;;
53508 esac
53509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53510 (eval "$ac_link") 2>conftest.er1
53511 ac_status=$?
53512 grep -v '^ *+' conftest.er1 >conftest.err
53513 rm -f conftest.er1
53514 cat conftest.err >&5
53515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53516 (exit $ac_status); } && {
53517 test -z "$ac_c_werror_flag" ||
53518 test ! -s conftest.err
53519 } && test -s conftest$ac_exeext &&
53520 $as_test_x conftest$ac_exeext; then
53521 eval "$as_ac_var=yes"
53522 else
53523 echo "$as_me: failed program was:" >&5
53524 sed 's/^/| /' conftest.$ac_ext >&5
53526 eval "$as_ac_var=no"
53529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53530 conftest$ac_exeext conftest.$ac_ext
53532 ac_res=`eval echo '${'$as_ac_var'}'`
53533 { echo "$as_me:$LINENO: result: $ac_res" >&5
53534 echo "${ECHO_T}$ac_res" >&6; }
53535 if test `eval echo '${'$as_ac_var'}'` = yes; then
53536 cat >>confdefs.h <<_ACEOF
53537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53538 _ACEOF
53541 done
53544 # only allow dlsym (and therefore add -ldl) if we
53545 # really need to
53546 if test "$memory_ptmalloc2_mmap" = "0"; then
53547 memory_ptmalloc2_LIBS_SAVE="$LIBS"
53548 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
53549 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
53550 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
53551 echo $ECHO_N "(cached) $ECHO_C" >&6
53552 else
53553 ac_check_lib_save_LIBS=$LIBS
53554 LIBS="-ldl $LIBS"
53555 cat >conftest.$ac_ext <<_ACEOF
53556 /* confdefs.h. */
53557 _ACEOF
53558 cat confdefs.h >>conftest.$ac_ext
53559 cat >>conftest.$ac_ext <<_ACEOF
53560 /* end confdefs.h. */
53562 /* Override any GCC internal prototype to avoid an error.
53563 Use char because int might match the return type of a GCC
53564 builtin and then its argument prototype would still apply. */
53565 #ifdef __cplusplus
53566 extern "C"
53567 #endif
53568 char dlsym ();
53570 main ()
53572 return dlsym ();
53574 return 0;
53576 _ACEOF
53577 rm -f conftest.$ac_objext conftest$ac_exeext
53578 if { (ac_try="$ac_link"
53579 case "(($ac_try" in
53580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53581 *) ac_try_echo=$ac_try;;
53582 esac
53583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53584 (eval "$ac_link") 2>conftest.er1
53585 ac_status=$?
53586 grep -v '^ *+' conftest.er1 >conftest.err
53587 rm -f conftest.er1
53588 cat conftest.err >&5
53589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53590 (exit $ac_status); } && {
53591 test -z "$ac_c_werror_flag" ||
53592 test ! -s conftest.err
53593 } && test -s conftest$ac_exeext &&
53594 $as_test_x conftest$ac_exeext; then
53595 ac_cv_lib_dl_dlsym=yes
53596 else
53597 echo "$as_me: failed program was:" >&5
53598 sed 's/^/| /' conftest.$ac_ext >&5
53600 ac_cv_lib_dl_dlsym=no
53603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53604 conftest$ac_exeext conftest.$ac_ext
53605 LIBS=$ac_check_lib_save_LIBS
53607 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
53608 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
53609 if test $ac_cv_lib_dl_dlsym = yes; then
53610 LIBS="$LIBS -ldl"
53611 memory_ptmalloc2_LIBS="-ldl"
53612 memory_ptmalloc2_mmap=1
53616 for ac_func in dlsym
53618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
53620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
53621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
53622 echo $ECHO_N "(cached) $ECHO_C" >&6
53623 else
53624 cat >conftest.$ac_ext <<_ACEOF
53625 /* confdefs.h. */
53626 _ACEOF
53627 cat confdefs.h >>conftest.$ac_ext
53628 cat >>conftest.$ac_ext <<_ACEOF
53629 /* end confdefs.h. */
53630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53632 #define $ac_func innocuous_$ac_func
53634 /* System header to define __stub macros and hopefully few prototypes,
53635 which can conflict with char $ac_func (); below.
53636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53637 <limits.h> exists even on freestanding compilers. */
53639 #ifdef __STDC__
53640 # include <limits.h>
53641 #else
53642 # include <assert.h>
53643 #endif
53645 #undef $ac_func
53647 /* Override any GCC internal prototype to avoid an error.
53648 Use char because int might match the return type of a GCC
53649 builtin and then its argument prototype would still apply. */
53650 #ifdef __cplusplus
53651 extern "C"
53652 #endif
53653 char $ac_func ();
53654 /* The GNU C library defines this for functions which it implements
53655 to always fail with ENOSYS. Some functions are actually named
53656 something starting with __ and the normal name is an alias. */
53657 #if defined __stub_$ac_func || defined __stub___$ac_func
53658 choke me
53659 #endif
53662 main ()
53664 return $ac_func ();
53666 return 0;
53668 _ACEOF
53669 rm -f conftest.$ac_objext conftest$ac_exeext
53670 if { (ac_try="$ac_link"
53671 case "(($ac_try" in
53672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53673 *) ac_try_echo=$ac_try;;
53674 esac
53675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53676 (eval "$ac_link") 2>conftest.er1
53677 ac_status=$?
53678 grep -v '^ *+' conftest.er1 >conftest.err
53679 rm -f conftest.er1
53680 cat conftest.err >&5
53681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53682 (exit $ac_status); } && {
53683 test -z "$ac_c_werror_flag" ||
53684 test ! -s conftest.err
53685 } && test -s conftest$ac_exeext &&
53686 $as_test_x conftest$ac_exeext; then
53687 eval "$as_ac_var=yes"
53688 else
53689 echo "$as_me: failed program was:" >&5
53690 sed 's/^/| /' conftest.$ac_ext >&5
53692 eval "$as_ac_var=no"
53695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53696 conftest$ac_exeext conftest.$ac_ext
53698 ac_res=`eval echo '${'$as_ac_var'}'`
53699 { echo "$as_me:$LINENO: result: $ac_res" >&5
53700 echo "${ECHO_T}$ac_res" >&6; }
53701 if test `eval echo '${'$as_ac_var'}'` = yes; then
53702 cat >>confdefs.h <<_ACEOF
53703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53704 _ACEOF
53707 done
53709 LIBS="$memory_ptmalloc2_LIBS_SAVE"
53713 if test "$memory_ptmalloc2_mmap" = "0" -a "$memory_ptmalloc2_munmap" = "0"; then
53714 memory_ptmalloc2_happy="no"
53720 if test "$memory_ptmalloc2_happy" = "yes"; then
53721 memory_ptmalloc2_WRAPPER_EXTRA_LIBS="$memory_ptmalloc2_LIBS"
53725 if test "$memory_ptmalloc2_happy" = "no" -a \
53726 "$memory_malloc_hoooks_should_use" = "1"; then
53727 { { echo "$as_me:$LINENO: error: ptmalloc2 memory management requested but not available. Aborting." >&5
53728 echo "$as_me: error: ptmalloc2 memory management requested but not available. Aborting." >&2;}
53729 { (exit 1); exit 1; }; }
53735 if test "$memory_ptmalloc2_happy" = "yes"; then
53736 memory_base_found=1
53737 should_build=1
53738 else
53739 should_build=0
53746 if test "$should_build" = "1"; then
53748 project=opal
53749 framework=memory
53750 component=ptmalloc2
53752 # See if it dropped an output file for us to pick up some
53753 # shell variables in.
53754 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
53756 # Add this subdir to the mast list of all MCA component subdirs
53757 all_components="$all_components $component"
53759 if test "$compile_mode" = "dso" ; then
53760 dso_components="$dso_components $component"
53761 else
53762 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
53763 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
53764 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
53765 static_components="$static_components $component"
53768 # Output pretty results
53769 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
53770 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
53771 { echo "$as_me:$LINENO: result: yes" >&5
53772 echo "${ECHO_T}yes" >&6; }
53774 # If there's an output file, add the values to
53775 # scope_EXTRA_flags.
53776 if test -f $infile; then
53778 # First check for the ABORT tag
53779 line="`grep ABORT= $infile | cut -d= -f2-`"
53780 if test -n "$line" -a "$line" != "no"; then
53781 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
53782 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
53783 { { echo "$as_me:$LINENO: error: cannot continue" >&5
53784 echo "$as_me: error: cannot continue" >&2;}
53785 { (exit 1); exit 1; }; }
53788 # Check for flags passed up from the component. If we're
53789 # compiling statically, then take all flags passed up from the
53790 # component.
53791 if test "$compile_mode" = "static"; then
53792 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
53793 eval "line=$line"
53794 if test -n "$line"; then
53795 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
53797 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
53798 eval "line=$line"
53799 if test -n "$line"; then
53800 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
53804 if test "$DIRECT_memory" = "$component" ; then
53805 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
53806 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
53807 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
53808 eval $str
53809 else
53810 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
53811 *** does not appear to support direct calling.
53812 *** Aborting" >&5
53813 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
53814 *** does not appear to support direct calling.
53815 *** Aborting" >&2;}
53816 { (exit 1); exit 1; }; }
53819 else
53820 # were we supposed to have found something in the
53821 # post_configure.sh, but the file didn't exist?
53822 if test "$DIRECT_memory" = "$component" ; then
53823 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
53824 *** does not appear to support direct calling.
53825 *** Aborting" >&5
53826 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
53827 *** does not appear to support direct calling.
53828 *** Aborting" >&2;}
53829 { (exit 1); exit 1; }; }
53833 # now add the flags that were set in the environment variables
53834 # framework_component_FOO (for example, the flags set by
53835 # m4_configure components)
53837 # Check for flags passed up from the component. If we're
53838 # compiling statically, then take all flags passed up from the
53839 # component.
53840 if test "$compile_mode" = "static"; then
53841 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
53842 eval "$str"
53843 if test -n "$line" ; then
53844 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
53846 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
53847 eval "$str"
53848 if test -n "$line" ; then
53849 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
53853 else
53855 { echo "$as_me:$LINENO: checking if MCA component memory:ptmalloc2 can compile" >&5
53856 echo $ECHO_N "checking if MCA component memory:ptmalloc2 can compile... $ECHO_C" >&6; }
53857 { echo "$as_me:$LINENO: result: no" >&5
53858 echo "${ECHO_T}no" >&6; }
53860 # If this component was requested as the default for this
53861 # type, then abort.
53862 if test "$with_memory" = "ptmalloc2" ; then
53863 { echo "$as_me:$LINENO: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&5
53864 echo "$as_me: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&2;}
53865 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
53866 echo "$as_me: WARNING: This component was selected as the default" >&2;}
53867 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
53868 echo "$as_me: error: Cannot continue" >&2;}
53869 { (exit 1); exit 1; }; }
53870 exit 1
53873 if test ! -z "$DIRECT_memory" ; then
53874 if test "$DIRECT_memory" = "ptmalloc2" ; then
53875 { echo "$as_me:$LINENO: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&5
53876 echo "$as_me: WARNING: MCA component \"ptmalloc2\" failed to configure properly" >&2;}
53877 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
53878 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
53879 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
53880 echo "$as_me: error: Cannot continue" >&2;}
53881 { (exit 1); exit 1; }; }
53882 exit 1
53886 # add component to all component list
53887 all_components="$all_components ptmalloc2"
53891 # set the AM_CONDITIONAL on how we should build
53892 if test "$compile_mode" = "dso"; then
53893 BUILD_memory_ptmalloc2_DSO=1
53894 else
53895 BUILD_memory_ptmalloc2_DSO=0
53900 if test "$BUILD_memory_ptmalloc2_DSO" = "1"; then
53901 OMPI_BUILD_memory_ptmalloc2_DSO_TRUE=
53902 OMPI_BUILD_memory_ptmalloc2_DSO_FALSE='#'
53903 else
53904 OMPI_BUILD_memory_ptmalloc2_DSO_TRUE='#'
53905 OMPI_BUILD_memory_ptmalloc2_DSO_FALSE=
53909 if test "$should_build" = "1"; then
53910 components_looking_for_succeed="$happy_value"
53914 unset compile_mode
53916 ompi_show_subsubsubtitle "MCA component memory:malloc_hooks (m4 configuration macro)"
53919 project=opal
53920 framework=memory
53921 component=malloc_hooks
53922 component_path="$srcdir/$project/mca/$framework/$component"
53923 want_component=0
53925 # build if:
53926 # - the component type is direct and we are that component
53927 # - there is no ompi_ignore file
53928 # - there is an ompi_ignore, but there is an empty ompi_unignore
53929 # - there is an ompi_ignore, but username is in ompi_unignore
53930 if test -d $component_path ; then
53931 # decide if we want the component to be built or not. This
53932 # is spread out because some of the logic is a little complex
53933 # and test's syntax isn't exactly the greatest. We want to
53934 # build the component by default.
53935 want_component=1
53936 if test -f $component_path/.ompi_ignore ; then
53937 # If there is an ompi_ignore file, don't build
53938 # the component. Note that this decision can be
53939 # overriden by the unignore logic below.
53940 want_component=0
53942 if test -f $component_path/.ompi_unignore ; then
53943 # if there is an empty ompi_unignore, that is
53944 # equivalent to having your userid in the unignore file.
53945 # If userid is in the file, unignore the ignore file.
53946 if test ! -s $component_path/.ompi_unignore ; then
53947 want_component=1
53948 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
53949 want_component=1
53952 # if this component type is direct and we are not it, we don't want
53953 # to be built. Otherwise, we do want to be built.
53954 if test ! -z "$DIRECT_memory" ; then
53955 if test "$DIRECT_memory" = "$component" ; then
53956 want_component=1
53957 else
53958 want_component=0
53963 # if we were explicitly disabled, don't build :)
53964 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
53965 eval $str
53966 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
53967 want_component=0
53970 if test "$want_component" = "1"; then
53971 should_build=$components_looking_for_succeed
53972 else
53973 should_build=0
53977 # Allow the component to override the build mode if it really wants to.
53978 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
53980 { echo "$as_me:$LINENO: checking for MCA component memory:malloc_hooks compile mode" >&5
53981 echo $ECHO_N "checking for MCA component memory:malloc_hooks compile mode... $ECHO_C" >&6; }
53982 compile_mode="static"
53983 { echo "$as_me:$LINENO: result: $compile_mode" >&5
53984 echo "${ECHO_T}$compile_mode" >&6; }
53987 # try to configure the component. pay no attention to
53988 # --enable-dist, since we'll always have makefiles.
53989 if test "$should_build" = "1"; then
53992 # Check whether --with-memory-manager was given.
53993 if test "${with_memory_manager+set}" = set; then
53994 withval=$with_memory_manager;
53998 if test "$with_memory_manager" = "malloc_hooks"; then
53999 memory_malloc_hooks_happy="yes"
54000 memory_malloc_hooks_should_use=1
54001 else
54002 memory_malloc_hooks_should_use=0
54003 if test "$with_memory_manager" = ""; then
54004 memory_malloc_hooks_happy="yes"
54005 else
54006 memory_malloc_hooks_happy="no"
54012 if test "$memory_malloc_hooks_happy" = "yes"; then
54013 if test "$enable_mpi_threads" = "yes" -o \
54014 "$enable_progress_threads" = "yes"; then
54015 memory_malloc_hooks_happy="no"
54021 if test "$memory_malloc_hooks_happy" = "yes"; then
54022 # check for malloc.h
54023 if test "${ac_cv_header_malloc_h+set}" = set; then
54024 { echo "$as_me:$LINENO: checking for malloc.h" >&5
54025 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
54026 if test "${ac_cv_header_malloc_h+set}" = set; then
54027 echo $ECHO_N "(cached) $ECHO_C" >&6
54029 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
54030 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
54031 else
54032 # Is the header compilable?
54033 { echo "$as_me:$LINENO: checking malloc.h usability" >&5
54034 echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6; }
54035 cat >conftest.$ac_ext <<_ACEOF
54036 /* confdefs.h. */
54037 _ACEOF
54038 cat confdefs.h >>conftest.$ac_ext
54039 cat >>conftest.$ac_ext <<_ACEOF
54040 /* end confdefs.h. */
54041 $ac_includes_default
54042 #include <malloc.h>
54043 _ACEOF
54044 rm -f conftest.$ac_objext
54045 if { (ac_try="$ac_compile"
54046 case "(($ac_try" in
54047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54048 *) ac_try_echo=$ac_try;;
54049 esac
54050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54051 (eval "$ac_compile") 2>conftest.er1
54052 ac_status=$?
54053 grep -v '^ *+' conftest.er1 >conftest.err
54054 rm -f conftest.er1
54055 cat conftest.err >&5
54056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54057 (exit $ac_status); } && {
54058 test -z "$ac_c_werror_flag" ||
54059 test ! -s conftest.err
54060 } && test -s conftest.$ac_objext; then
54061 ac_header_compiler=yes
54062 else
54063 echo "$as_me: failed program was:" >&5
54064 sed 's/^/| /' conftest.$ac_ext >&5
54066 ac_header_compiler=no
54069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54071 echo "${ECHO_T}$ac_header_compiler" >&6; }
54073 # Is the header present?
54074 { echo "$as_me:$LINENO: checking malloc.h presence" >&5
54075 echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6; }
54076 cat >conftest.$ac_ext <<_ACEOF
54077 /* confdefs.h. */
54078 _ACEOF
54079 cat confdefs.h >>conftest.$ac_ext
54080 cat >>conftest.$ac_ext <<_ACEOF
54081 /* end confdefs.h. */
54082 #include <malloc.h>
54083 _ACEOF
54084 if { (ac_try="$ac_cpp conftest.$ac_ext"
54085 case "(($ac_try" in
54086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54087 *) ac_try_echo=$ac_try;;
54088 esac
54089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54091 ac_status=$?
54092 grep -v '^ *+' conftest.er1 >conftest.err
54093 rm -f conftest.er1
54094 cat conftest.err >&5
54095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54096 (exit $ac_status); } >/dev/null && {
54097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
54098 test ! -s conftest.err
54099 }; then
54100 ac_header_preproc=yes
54101 else
54102 echo "$as_me: failed program was:" >&5
54103 sed 's/^/| /' conftest.$ac_ext >&5
54105 ac_header_preproc=no
54108 rm -f conftest.err conftest.$ac_ext
54109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54110 echo "${ECHO_T}$ac_header_preproc" >&6; }
54112 # So? What about this header?
54113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54114 yes:no: )
54115 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
54116 echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54117 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
54118 echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
54119 ac_header_preproc=yes
54121 no:yes:* )
54122 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
54123 echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
54124 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
54125 echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
54126 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
54127 echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
54128 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
54129 echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
54130 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
54131 echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
54132 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
54133 echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
54134 ( cat <<\_ASBOX
54135 ## ------------------------------------------------------ ##
54136 ## Report this to http://www.open-mpi.org/community/help/ ##
54137 ## ------------------------------------------------------ ##
54138 _ASBOX
54139 ) | sed "s/^/$as_me: WARNING: /" >&2
54141 esac
54142 { echo "$as_me:$LINENO: checking for malloc.h" >&5
54143 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
54144 if test "${ac_cv_header_malloc_h+set}" = set; then
54145 echo $ECHO_N "(cached) $ECHO_C" >&6
54146 else
54147 ac_cv_header_malloc_h=$ac_header_preproc
54149 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
54150 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
54153 if test $ac_cv_header_malloc_h = yes; then
54154 memory_malloc_hooks_happy="yes"
54155 else
54156 memory_malloc_hooks_happy="no"
54163 if test "$memory_malloc_hooks_happy" = "yes"; then
54164 # check for init hook symbol
54165 { echo "$as_me:$LINENO: checking whether __malloc_initialize_hook is declared" >&5
54166 echo $ECHO_N "checking whether __malloc_initialize_hook is declared... $ECHO_C" >&6; }
54167 if test "${ac_cv_have_decl___malloc_initialize_hook+set}" = set; then
54168 echo $ECHO_N "(cached) $ECHO_C" >&6
54169 else
54170 cat >conftest.$ac_ext <<_ACEOF
54171 /* confdefs.h. */
54172 _ACEOF
54173 cat confdefs.h >>conftest.$ac_ext
54174 cat >>conftest.$ac_ext <<_ACEOF
54175 /* end confdefs.h. */
54176 $ac_includes_default
54177 #include <malloc.h>
54180 main ()
54182 #ifndef __malloc_initialize_hook
54183 (void) __malloc_initialize_hook;
54184 #endif
54187 return 0;
54189 _ACEOF
54190 rm -f conftest.$ac_objext
54191 if { (ac_try="$ac_compile"
54192 case "(($ac_try" in
54193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54194 *) ac_try_echo=$ac_try;;
54195 esac
54196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54197 (eval "$ac_compile") 2>conftest.er1
54198 ac_status=$?
54199 grep -v '^ *+' conftest.er1 >conftest.err
54200 rm -f conftest.er1
54201 cat conftest.err >&5
54202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54203 (exit $ac_status); } && {
54204 test -z "$ac_c_werror_flag" ||
54205 test ! -s conftest.err
54206 } && test -s conftest.$ac_objext; then
54207 ac_cv_have_decl___malloc_initialize_hook=yes
54208 else
54209 echo "$as_me: failed program was:" >&5
54210 sed 's/^/| /' conftest.$ac_ext >&5
54212 ac_cv_have_decl___malloc_initialize_hook=no
54215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54217 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___malloc_initialize_hook" >&5
54218 echo "${ECHO_T}$ac_cv_have_decl___malloc_initialize_hook" >&6; }
54219 if test $ac_cv_have_decl___malloc_initialize_hook = yes; then
54220 memory_malloc_hooks_happy="yes"
54221 else
54222 memory_malloc_hooks_happy="no"
54228 if test "$memory_malloc_hooks_happy" = "yes"; then
54229 # check for the chunk size function
54230 { echo "$as_me:$LINENO: checking for malloc_usable_size" >&5
54231 echo $ECHO_N "checking for malloc_usable_size... $ECHO_C" >&6; }
54232 if test "${ac_cv_func_malloc_usable_size+set}" = set; then
54233 echo $ECHO_N "(cached) $ECHO_C" >&6
54234 else
54235 cat >conftest.$ac_ext <<_ACEOF
54236 /* confdefs.h. */
54237 _ACEOF
54238 cat confdefs.h >>conftest.$ac_ext
54239 cat >>conftest.$ac_ext <<_ACEOF
54240 /* end confdefs.h. */
54241 /* Define malloc_usable_size to an innocuous variant, in case <limits.h> declares malloc_usable_size.
54242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54243 #define malloc_usable_size innocuous_malloc_usable_size
54245 /* System header to define __stub macros and hopefully few prototypes,
54246 which can conflict with char malloc_usable_size (); below.
54247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54248 <limits.h> exists even on freestanding compilers. */
54250 #ifdef __STDC__
54251 # include <limits.h>
54252 #else
54253 # include <assert.h>
54254 #endif
54256 #undef malloc_usable_size
54258 /* Override any GCC internal prototype to avoid an error.
54259 Use char because int might match the return type of a GCC
54260 builtin and then its argument prototype would still apply. */
54261 #ifdef __cplusplus
54262 extern "C"
54263 #endif
54264 char malloc_usable_size ();
54265 /* The GNU C library defines this for functions which it implements
54266 to always fail with ENOSYS. Some functions are actually named
54267 something starting with __ and the normal name is an alias. */
54268 #if defined __stub_malloc_usable_size || defined __stub___malloc_usable_size
54269 choke me
54270 #endif
54273 main ()
54275 return malloc_usable_size ();
54277 return 0;
54279 _ACEOF
54280 rm -f conftest.$ac_objext conftest$ac_exeext
54281 if { (ac_try="$ac_link"
54282 case "(($ac_try" in
54283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54284 *) ac_try_echo=$ac_try;;
54285 esac
54286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54287 (eval "$ac_link") 2>conftest.er1
54288 ac_status=$?
54289 grep -v '^ *+' conftest.er1 >conftest.err
54290 rm -f conftest.er1
54291 cat conftest.err >&5
54292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54293 (exit $ac_status); } && {
54294 test -z "$ac_c_werror_flag" ||
54295 test ! -s conftest.err
54296 } && test -s conftest$ac_exeext &&
54297 $as_test_x conftest$ac_exeext; then
54298 ac_cv_func_malloc_usable_size=yes
54299 else
54300 echo "$as_me: failed program was:" >&5
54301 sed 's/^/| /' conftest.$ac_ext >&5
54303 ac_cv_func_malloc_usable_size=no
54306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54307 conftest$ac_exeext conftest.$ac_ext
54309 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_usable_size" >&5
54310 echo "${ECHO_T}$ac_cv_func_malloc_usable_size" >&6; }
54311 if test $ac_cv_func_malloc_usable_size = yes; then
54312 memory_malloc_hooks_happy="yes"
54313 else
54314 memory_malloc_hooks_happy="no"
54320 memory_malloc_hooks_LIBS_SAVE="$LIBS"
54321 if test "$memory_malloc_hooks_happy" = "yes"; then
54322 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
54323 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
54324 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
54325 echo $ECHO_N "(cached) $ECHO_C" >&6
54326 else
54327 ac_check_lib_save_LIBS=$LIBS
54328 LIBS="-ldl $LIBS"
54329 cat >conftest.$ac_ext <<_ACEOF
54330 /* confdefs.h. */
54331 _ACEOF
54332 cat confdefs.h >>conftest.$ac_ext
54333 cat >>conftest.$ac_ext <<_ACEOF
54334 /* end confdefs.h. */
54336 /* Override any GCC internal prototype to avoid an error.
54337 Use char because int might match the return type of a GCC
54338 builtin and then its argument prototype would still apply. */
54339 #ifdef __cplusplus
54340 extern "C"
54341 #endif
54342 char dlsym ();
54344 main ()
54346 return dlsym ();
54348 return 0;
54350 _ACEOF
54351 rm -f conftest.$ac_objext conftest$ac_exeext
54352 if { (ac_try="$ac_link"
54353 case "(($ac_try" in
54354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54355 *) ac_try_echo=$ac_try;;
54356 esac
54357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54358 (eval "$ac_link") 2>conftest.er1
54359 ac_status=$?
54360 grep -v '^ *+' conftest.er1 >conftest.err
54361 rm -f conftest.er1
54362 cat conftest.err >&5
54363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54364 (exit $ac_status); } && {
54365 test -z "$ac_c_werror_flag" ||
54366 test ! -s conftest.err
54367 } && test -s conftest$ac_exeext &&
54368 $as_test_x conftest$ac_exeext; then
54369 ac_cv_lib_dl_dlsym=yes
54370 else
54371 echo "$as_me: failed program was:" >&5
54372 sed 's/^/| /' conftest.$ac_ext >&5
54374 ac_cv_lib_dl_dlsym=no
54377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54378 conftest$ac_exeext conftest.$ac_ext
54379 LIBS=$ac_check_lib_save_LIBS
54381 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
54382 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
54383 if test $ac_cv_lib_dl_dlsym = yes; then
54384 memory_malloc_hooks_happy="yes"
54385 else
54386 memory_malloc_hooks_happy="no"
54391 LIBS="$memory_malloc_hooks_LIBS_SAVE"
54393 if test "$memory_malloc_hooks_happy" = "yes"; then
54394 memory_malloc_hooks_WRAPPER_EXTRA_LIBS="-ldl"
54395 memory_malloc_hooks_LIBS="-ldl"
54399 if test "$memory_malloc_hooks_happy" = "no" -a \
54400 "$memory_malloc_hoooks_should_use" = "1"; then
54401 { { echo "$as_me:$LINENO: error: malloc hooks memory management requested but not available. Aborting." >&5
54402 echo "$as_me: error: malloc hooks memory management requested but not available. Aborting." >&2;}
54403 { (exit 1); exit 1; }; }
54409 if test "$memory_malloc_hooks_happy" = "yes"; then
54410 memory_base_found=1
54411 should_build=1
54412 else
54413 should_build=0
54420 if test "$should_build" = "1"; then
54422 project=opal
54423 framework=memory
54424 component=malloc_hooks
54426 # See if it dropped an output file for us to pick up some
54427 # shell variables in.
54428 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
54430 # Add this subdir to the mast list of all MCA component subdirs
54431 all_components="$all_components $component"
54433 if test "$compile_mode" = "dso" ; then
54434 dso_components="$dso_components $component"
54435 else
54436 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
54437 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
54438 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
54439 static_components="$static_components $component"
54442 # Output pretty results
54443 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
54444 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
54445 { echo "$as_me:$LINENO: result: yes" >&5
54446 echo "${ECHO_T}yes" >&6; }
54448 # If there's an output file, add the values to
54449 # scope_EXTRA_flags.
54450 if test -f $infile; then
54452 # First check for the ABORT tag
54453 line="`grep ABORT= $infile | cut -d= -f2-`"
54454 if test -n "$line" -a "$line" != "no"; then
54455 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
54456 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
54457 { { echo "$as_me:$LINENO: error: cannot continue" >&5
54458 echo "$as_me: error: cannot continue" >&2;}
54459 { (exit 1); exit 1; }; }
54462 # Check for flags passed up from the component. If we're
54463 # compiling statically, then take all flags passed up from the
54464 # component.
54465 if test "$compile_mode" = "static"; then
54466 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
54467 eval "line=$line"
54468 if test -n "$line"; then
54469 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
54471 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
54472 eval "line=$line"
54473 if test -n "$line"; then
54474 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
54478 if test "$DIRECT_memory" = "$component" ; then
54479 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
54480 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
54481 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
54482 eval $str
54483 else
54484 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
54485 *** does not appear to support direct calling.
54486 *** Aborting" >&5
54487 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
54488 *** does not appear to support direct calling.
54489 *** Aborting" >&2;}
54490 { (exit 1); exit 1; }; }
54493 else
54494 # were we supposed to have found something in the
54495 # post_configure.sh, but the file didn't exist?
54496 if test "$DIRECT_memory" = "$component" ; then
54497 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
54498 *** does not appear to support direct calling.
54499 *** Aborting" >&5
54500 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
54501 *** does not appear to support direct calling.
54502 *** Aborting" >&2;}
54503 { (exit 1); exit 1; }; }
54507 # now add the flags that were set in the environment variables
54508 # framework_component_FOO (for example, the flags set by
54509 # m4_configure components)
54511 # Check for flags passed up from the component. If we're
54512 # compiling statically, then take all flags passed up from the
54513 # component.
54514 if test "$compile_mode" = "static"; then
54515 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
54516 eval "$str"
54517 if test -n "$line" ; then
54518 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
54520 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
54521 eval "$str"
54522 if test -n "$line" ; then
54523 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
54527 else
54529 { echo "$as_me:$LINENO: checking if MCA component memory:malloc_hooks can compile" >&5
54530 echo $ECHO_N "checking if MCA component memory:malloc_hooks can compile... $ECHO_C" >&6; }
54531 { echo "$as_me:$LINENO: result: no" >&5
54532 echo "${ECHO_T}no" >&6; }
54534 # If this component was requested as the default for this
54535 # type, then abort.
54536 if test "$with_memory" = "malloc_hooks" ; then
54537 { echo "$as_me:$LINENO: WARNING: MCA component \"malloc_hooks\" failed to configure properly" >&5
54538 echo "$as_me: WARNING: MCA component \"malloc_hooks\" failed to configure properly" >&2;}
54539 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
54540 echo "$as_me: WARNING: This component was selected as the default" >&2;}
54541 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
54542 echo "$as_me: error: Cannot continue" >&2;}
54543 { (exit 1); exit 1; }; }
54544 exit 1
54547 if test ! -z "$DIRECT_memory" ; then
54548 if test "$DIRECT_memory" = "malloc_hooks" ; then
54549 { echo "$as_me:$LINENO: WARNING: MCA component \"malloc_hooks\" failed to configure properly" >&5
54550 echo "$as_me: WARNING: MCA component \"malloc_hooks\" failed to configure properly" >&2;}
54551 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
54552 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
54553 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
54554 echo "$as_me: error: Cannot continue" >&2;}
54555 { (exit 1); exit 1; }; }
54556 exit 1
54560 # add component to all component list
54561 all_components="$all_components malloc_hooks"
54565 # set the AM_CONDITIONAL on how we should build
54566 if test "$compile_mode" = "dso"; then
54567 BUILD_memory_malloc_hooks_DSO=1
54568 else
54569 BUILD_memory_malloc_hooks_DSO=0
54574 if test "$BUILD_memory_malloc_hooks_DSO" = "1"; then
54575 OMPI_BUILD_memory_malloc_hooks_DSO_TRUE=
54576 OMPI_BUILD_memory_malloc_hooks_DSO_FALSE='#'
54577 else
54578 OMPI_BUILD_memory_malloc_hooks_DSO_TRUE='#'
54579 OMPI_BUILD_memory_malloc_hooks_DSO_FALSE=
54583 if test "$should_build" = "1"; then
54584 components_looking_for_succeed="$happy_value"
54588 unset compile_mode
54591 # configure components that provide their own configure script.
54592 # It would be really hard to run these for "find first that
54593 # works", so we don't :)
54594 if test "$happy_value" = "1"; then
54596 for component_path in $srcdir/opal/mca/memory/* ; do
54597 component="`basename $component_path`"
54598 if test -d $component_path -a -x $component_path/configure ; then
54599 ompi_show_subsubsubtitle "MCA component memory:$component (need to configure)"
54602 project=opal
54603 framework=memory
54604 component=$component
54605 component_path="$srcdir/$project/mca/$framework/$component"
54606 want_component=0
54608 # build if:
54609 # - the component type is direct and we are that component
54610 # - there is no ompi_ignore file
54611 # - there is an ompi_ignore, but there is an empty ompi_unignore
54612 # - there is an ompi_ignore, but username is in ompi_unignore
54613 if test -d $component_path ; then
54614 # decide if we want the component to be built or not. This
54615 # is spread out because some of the logic is a little complex
54616 # and test's syntax isn't exactly the greatest. We want to
54617 # build the component by default.
54618 want_component=1
54619 if test -f $component_path/.ompi_ignore ; then
54620 # If there is an ompi_ignore file, don't build
54621 # the component. Note that this decision can be
54622 # overriden by the unignore logic below.
54623 want_component=0
54625 if test -f $component_path/.ompi_unignore ; then
54626 # if there is an empty ompi_unignore, that is
54627 # equivalent to having your userid in the unignore file.
54628 # If userid is in the file, unignore the ignore file.
54629 if test ! -s $component_path/.ompi_unignore ; then
54630 want_component=1
54631 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
54632 want_component=1
54635 # if this component type is direct and we are not it, we don't want
54636 # to be built. Otherwise, we do want to be built.
54637 if test ! -z "$DIRECT_memory" ; then
54638 if test "$DIRECT_memory" = "$component" ; then
54639 want_component=1
54640 else
54641 want_component=0
54646 # if we were explicitly disabled, don't build :)
54647 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
54648 eval $str
54649 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
54650 want_component=0
54653 if test "$want_component" = "1"; then
54654 should_build=1
54655 else
54656 should_build=0
54661 project=opal
54662 framework=memory
54663 component=$component
54665 # Is this component going to built staic or shared? $component
54666 # might not be known until configure time, so have to use eval
54667 # tricks - can't set variable names at autogen time.
54668 str="SHARED_FRAMEWORK=\$DSO_$framework"
54669 eval $str
54670 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
54671 eval $str
54673 str="STATIC_FRAMEWORK=\$STATIC_$framework"
54674 eval $str
54675 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
54676 eval $str
54678 shared_mode_override=static
54680 # Setup for either shared or static
54681 if test "$STATIC_FRAMEWORK" = "1" -o \
54682 "$STATIC_COMPONENT" = "1" -o \
54683 "$STATIC_all" = "1" ; then
54684 compile_mode="static"
54685 elif test "$shared_mode_override" = "dso" -o \
54686 "$SHARED_FRAMEWORK" = "1" -o \
54687 "$SHARED_COMPONENT" = "1" -o \
54688 "$DSO_all" = "1"; then
54689 compile_mode="dso"
54690 else
54691 compile_mode="static"
54694 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
54695 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
54696 if test "$DIRECT_memory" = "$component" ; then
54697 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
54698 echo "${ECHO_T}$compile_mode - direct" >&6; }
54699 else
54700 { echo "$as_me:$LINENO: result: $compile_mode" >&5
54701 echo "${ECHO_T}$compile_mode" >&6; }
54705 if test "$should_build" = "1" ; then
54708 # Invoke configure in a specific subdirectory.
54710 # opal/mca/memory/$component is the directory to invoke in
54711 # $ompi_subdir_args is the list of arguments to pass
54712 # should_build=1 is actions to execute upon success
54713 # should_build=2 is actions to execute upon failure
54715 subdir_dir="opal/mca/memory/$component"
54716 subdir_args="$ompi_subdir_args"
54717 subdir_success="should_build=1"
54718 subdir_failure="should_build=2"
54721 # Sanity checks
54724 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
54725 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
54726 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
54729 # Gotta check where srcdir is for VPATH builds. If srcdir is not
54730 # ., then we need to mkdir the subdir. Otherwise, we can just cd
54731 # into it.
54734 case $srcdir in
54738 { case $subdir_dir in
54739 [\\/]* | ?:[\\/]* ) total_dir=;;
54740 *) total_dir=.;;
54741 esac
54742 temp=$subdir_dir
54743 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
54744 case $dir_part in
54745 # Skip DOS drivespec
54746 ?:) total_dir=$dir_part ;;
54747 *) total_dir=$total_dir/$dir_part
54748 test -d "$total_dir" ||
54749 mkdir "$total_dir" ||
54750 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
54751 echo "$as_me: error: cannot create $subdir_dir" >&2;}
54752 { (exit 1); exit 1; }; }
54754 esac
54755 done; }
54757 if test -d ./$subdir_dir; then :;
54758 else
54759 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
54760 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
54761 { (exit 1); exit 1; }; }
54764 esac
54767 # Move into the target directory
54770 subdir_parent=`pwd`
54771 cd $subdir_dir
54774 # Make a "../" for each directory in $subdir_dir.
54777 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
54779 # Construct the --srcdir argument
54782 case $srcdir in
54784 # In place
54785 subdir_srcdir="$srcdir"
54787 [\\/]* | ?:[\\/]* )
54788 # Absolute path
54789 subdir_srcdir="$srcdir/$subdir_dir"
54792 # Relative path
54793 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
54795 esac
54798 # Construct the --cache-file argument
54801 # BWB - subdir caching is a pain since we change CFLAGS and all that.
54802 # Just disable it for now
54803 subdir_cache_file="/dev/null"
54806 # Invoke the configure script in the subdirectory
54809 export CFLAGS CPPFLAGS
54810 export CXXFLAGS CXXCPPFLAGS
54811 export FFLAGS
54812 export LDFLAGS LIBS
54813 sub_configure="$SHELL '$subdir_srcdir/configure'"
54814 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
54815 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
54816 eval "$sub_configure $subdir_args \
54817 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
54818 if test "$?" = "0"; then
54819 eval $subdir_success
54820 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
54821 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
54822 else
54823 eval $subdir_failure
54824 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
54825 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
54829 # Go back to the topdir
54832 cd $subdir_parent
54836 # Clean up
54839 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
54840 unset subdir_args subdir_dots total_dir dir_part temp
54843 if test "$should_build" = "1" ; then
54845 project=opal
54846 framework=memory
54847 component=$component
54849 # See if it dropped an output file for us to pick up some
54850 # shell variables in.
54851 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
54853 # Add this subdir to the mast list of all MCA component subdirs
54854 all_components="$all_components $component"
54856 if test "$compile_mode" = "dso" ; then
54857 dso_components="$dso_components $component"
54858 else
54859 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
54860 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
54861 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
54862 static_components="$static_components $component"
54865 # Output pretty results
54866 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
54867 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
54868 { echo "$as_me:$LINENO: result: yes" >&5
54869 echo "${ECHO_T}yes" >&6; }
54871 # If there's an output file, add the values to
54872 # scope_EXTRA_flags.
54873 if test -f $infile; then
54875 # First check for the ABORT tag
54876 line="`grep ABORT= $infile | cut -d= -f2-`"
54877 if test -n "$line" -a "$line" != "no"; then
54878 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
54879 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
54880 { { echo "$as_me:$LINENO: error: cannot continue" >&5
54881 echo "$as_me: error: cannot continue" >&2;}
54882 { (exit 1); exit 1; }; }
54885 # Check for flags passed up from the component. If we're
54886 # compiling statically, then take all flags passed up from the
54887 # component.
54888 if test "$compile_mode" = "static"; then
54889 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
54890 eval "line=$line"
54891 if test -n "$line"; then
54892 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
54894 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
54895 eval "line=$line"
54896 if test -n "$line"; then
54897 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
54901 if test "$DIRECT_memory" = "$component" ; then
54902 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
54903 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
54904 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
54905 eval $str
54906 else
54907 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
54908 *** does not appear to support direct calling.
54909 *** Aborting" >&5
54910 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
54911 *** does not appear to support direct calling.
54912 *** Aborting" >&2;}
54913 { (exit 1); exit 1; }; }
54916 else
54917 # were we supposed to have found something in the
54918 # post_configure.sh, but the file didn't exist?
54919 if test "$DIRECT_memory" = "$component" ; then
54920 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
54921 *** does not appear to support direct calling.
54922 *** Aborting" >&5
54923 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
54924 *** does not appear to support direct calling.
54925 *** Aborting" >&2;}
54926 { (exit 1); exit 1; }; }
54930 # now add the flags that were set in the environment variables
54931 # framework_component_FOO (for example, the flags set by
54932 # m4_configure components)
54934 # Check for flags passed up from the component. If we're
54935 # compiling statically, then take all flags passed up from the
54936 # component.
54937 if test "$compile_mode" = "static"; then
54938 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
54939 eval "$str"
54940 if test -n "$line" ; then
54941 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
54943 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
54944 eval "$str"
54945 if test -n "$line" ; then
54946 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
54950 else
54952 { echo "$as_me:$LINENO: checking if MCA component memory:$component can compile" >&5
54953 echo $ECHO_N "checking if MCA component memory:$component can compile... $ECHO_C" >&6; }
54954 { echo "$as_me:$LINENO: result: no" >&5
54955 echo "${ECHO_T}no" >&6; }
54957 # If this component was requested as the default for this
54958 # type, then abort.
54959 if test "$with_memory" = "$component" ; then
54960 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
54961 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
54962 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
54963 echo "$as_me: WARNING: This component was selected as the default" >&2;}
54964 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
54965 echo "$as_me: error: Cannot continue" >&2;}
54966 { (exit 1); exit 1; }; }
54967 exit 1
54970 if test ! -z "$DIRECT_memory" ; then
54971 if test "$DIRECT_memory" = "$component" ; then
54972 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
54973 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
54974 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
54975 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
54976 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
54977 echo "$as_me: error: Cannot continue" >&2;}
54978 { (exit 1); exit 1; }; }
54979 exit 1
54985 done
54990 MCA_memory_ALL_COMPONENTS="$all_components"
54991 MCA_memory_STATIC_COMPONENTS="$static_components"
54992 MCA_memory_DSO_COMPONENTS="$dso_components"
54993 MCA_memory_STATIC_LTLIBS="$static_ltlibs"
55001 MCA_memory_ALL_SUBDIRS=
55002 for item in $all_components ; do
55003 MCA_memory_ALL_SUBDIRS="$MCA_memory_ALL_SUBDIRS mca/memory/$item"
55004 done
55008 MCA_memory_STATIC_SUBDIRS=
55009 for item in $static_components ; do
55010 MCA_memory_STATIC_SUBDIRS="$MCA_memory_STATIC_SUBDIRS mca/memory/$item"
55011 done
55015 MCA_memory_DSO_SUBDIRS=
55016 for item in $dso_components ; do
55017 MCA_memory_DSO_SUBDIRS="$MCA_memory_DSO_SUBDIRS mca/memory/$item"
55018 done
55022 # add all the makefiles for the framework to the CONFIG_FILES.
55023 # Don't add common/base, since it doesn't exist
55024 ac_config_files="$ac_config_files opal/mca/memory/Makefile"
55027 # Create the final .h file that will be included in the type's
55028 # top-level glue. This lists all the static components. We don't
55029 # need to do this for "common".
55030 if test "memory" != "common"; then
55031 cat > $outfile <<EOF
55033 * \$HEADER\$
55036 `cat $outfile.extern`
55038 const mca_base_component_t *mca_memory_base_static_components[] = {
55039 `cat $outfile.struct`
55040 NULL
55043 # Only replace the header file if a) it doesn't previously
55044 # exist, or b) the contents are different. Do this to not
55045 # trigger recompilation of certain .c files just because the
55046 # timestamp changed on $outfile_real (similar to the way AC
55047 # handles AC_CONFIG_HEADER files).
55048 diff $outfile $outfile_real > /dev/null 2>&1
55049 if test "$?" != "0"; then
55050 mv $outfile $outfile_real
55051 else
55052 rm -f $outfile
55055 rm -f $outfile.struct $outfile.extern
55057 unset all_components static_components dso_components outfile outfile_real
55061 cat >>confdefs.h <<_ACEOF
55062 #define OMPI_MEMORY_HAVE_COMPONENT $memory_base_found
55063 _ACEOF
55065 # common has to go up front
55066 if test "paffinity" = "common" ; then
55067 MCA_opal_FRAMEWORKS="paffinity $MCA_opal_FRAMEWORKS"
55068 MCA_opal_FRAMEWORKS_SUBDIRS="mca/paffinity $MCA_opal_FRAMEWORKS_SUBDIRS"
55069 MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_paffinity_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
55070 MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_paffinity_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
55071 MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_paffinity_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
55072 else
55073 MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS paffinity"
55074 MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/paffinity"
55075 MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_paffinity_ALL_SUBDIRS)"
55076 MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_paffinity_DSO_SUBDIRS)"
55077 MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_paffinity_STATIC_SUBDIRS)"
55079 if test "paffinity" != "common" ; then
55080 MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/paffinity/libmca_paffinity.la"
55082 MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_paffinity_STATIC_LTLIBS)"
55084 ompi_show_subsubtitle "Configuring MCA framework paffinity"
55086 # setup for framework
55087 all_components=
55088 static_components=
55089 dso_components=
55090 static_ltlibs=
55092 # Ensure that the directory where the #include file is to live
55093 # exists. Need to do this for VPATH builds, because the directory
55094 # may not exist yet. For the "common" type, it's not really a
55095 # component, so it doesn't have a base.
55096 if test "paffinity" = "common" ; then
55097 outdir=opal/mca/common
55098 else
55099 outdir=opal/mca/paffinity/base
55101 { as_dir=$outdir
55102 case $as_dir in #(
55103 -*) as_dir=./$as_dir;;
55104 esac
55105 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55106 as_dirs=
55107 while :; do
55108 case $as_dir in #(
55109 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55110 *) as_qdir=$as_dir;;
55111 esac
55112 as_dirs="'$as_qdir' $as_dirs"
55113 as_dir=`$as_dirname -- "$as_dir" ||
55114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55115 X"$as_dir" : 'X\(//\)[^/]' \| \
55116 X"$as_dir" : 'X\(//\)$' \| \
55117 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55118 echo X"$as_dir" |
55119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55120 s//\1/
55123 /^X\(\/\/\)[^/].*/{
55124 s//\1/
55127 /^X\(\/\/\)$/{
55128 s//\1/
55131 /^X\(\/\).*/{
55132 s//\1/
55135 s/.*/./; q'`
55136 test -d "$as_dir" && break
55137 done
55138 test -z "$as_dirs" || eval "mkdir $as_dirs"
55139 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55140 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55141 { (exit 1); exit 1; }; }; }
55143 # remove any previously generated #include files
55144 outfile_real=$outdir/static-components.h
55145 outfile=$outfile_real.new
55146 rm -f $outfile $outfile.struct $outfile.extern
55147 touch $outfile.struct $outfile.extern
55149 # print some nice messages about what we're about to do...
55150 { echo "$as_me:$LINENO: checking for no configure components in framework paffinity" >&5
55151 echo $ECHO_N "checking for no configure components in framework paffinity... $ECHO_C" >&6; }
55152 { echo "$as_me:$LINENO: result: " >&5
55153 echo "${ECHO_T}" >&6; }
55154 { echo "$as_me:$LINENO: checking for m4 configure components in framework paffinity" >&5
55155 echo $ECHO_N "checking for m4 configure components in framework paffinity... $ECHO_C" >&6; }
55156 { echo "$as_me:$LINENO: result: linux, solaris, windows" >&5
55157 echo "${ECHO_T}linux, solaris, windows" >&6; }
55159 # if we only want the first successful component, set the variable
55160 # happy_value to 0 so we stop on first assignment. Otherwise, set
55161 # it to zero so that components_looking_for_succeed is always 1
55162 happy_value=1
55164 components_looking_for_succeed=1
55166 # configure components that don't have any component-specific
55167 # configuration. See comment in CONFIGURE_PROJECT about the
55168 # m4_ifval
55169 # if there isn't a component list, abort
55173 # configure components that use built-in configuration scripts
55174 # see comment in CONFIGURE_PROJECT about the m4_ifval
55175 # if there isn't a component list, abort
55178 ompi_show_subsubsubtitle "MCA component paffinity:linux (m4 configuration macro)"
55181 project=opal
55182 framework=paffinity
55183 component=linux
55184 component_path="$srcdir/$project/mca/$framework/$component"
55185 want_component=0
55187 # build if:
55188 # - the component type is direct and we are that component
55189 # - there is no ompi_ignore file
55190 # - there is an ompi_ignore, but there is an empty ompi_unignore
55191 # - there is an ompi_ignore, but username is in ompi_unignore
55192 if test -d $component_path ; then
55193 # decide if we want the component to be built or not. This
55194 # is spread out because some of the logic is a little complex
55195 # and test's syntax isn't exactly the greatest. We want to
55196 # build the component by default.
55197 want_component=1
55198 if test -f $component_path/.ompi_ignore ; then
55199 # If there is an ompi_ignore file, don't build
55200 # the component. Note that this decision can be
55201 # overriden by the unignore logic below.
55202 want_component=0
55204 if test -f $component_path/.ompi_unignore ; then
55205 # if there is an empty ompi_unignore, that is
55206 # equivalent to having your userid in the unignore file.
55207 # If userid is in the file, unignore the ignore file.
55208 if test ! -s $component_path/.ompi_unignore ; then
55209 want_component=1
55210 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
55211 want_component=1
55214 # if this component type is direct and we are not it, we don't want
55215 # to be built. Otherwise, we do want to be built.
55216 if test ! -z "$DIRECT_paffinity" ; then
55217 if test "$DIRECT_paffinity" = "$component" ; then
55218 want_component=1
55219 else
55220 want_component=0
55225 # if we were explicitly disabled, don't build :)
55226 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
55227 eval $str
55228 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
55229 want_component=0
55232 if test "$want_component" = "1"; then
55233 should_build=$components_looking_for_succeed
55234 else
55235 should_build=0
55239 # Allow the component to override the build mode if it really wants to.
55240 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
55242 project=opal
55243 framework=paffinity
55244 component=linux
55246 # Is this component going to built staic or shared? $component
55247 # might not be known until configure time, so have to use eval
55248 # tricks - can't set variable names at autogen time.
55249 str="SHARED_FRAMEWORK=\$DSO_$framework"
55250 eval $str
55251 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
55252 eval $str
55254 str="STATIC_FRAMEWORK=\$STATIC_$framework"
55255 eval $str
55256 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
55257 eval $str
55259 shared_mode_override=static
55261 # Setup for either shared or static
55262 if test "$STATIC_FRAMEWORK" = "1" -o \
55263 "$STATIC_COMPONENT" = "1" -o \
55264 "$STATIC_all" = "1" ; then
55265 compile_mode="static"
55266 elif test "$shared_mode_override" = "dso" -o \
55267 "$SHARED_FRAMEWORK" = "1" -o \
55268 "$SHARED_COMPONENT" = "1" -o \
55269 "$DSO_all" = "1"; then
55270 compile_mode="dso"
55271 else
55272 compile_mode="static"
55275 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
55276 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
55277 if test "$DIRECT_paffinity" = "$component" ; then
55278 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
55279 echo "${ECHO_T}$compile_mode - direct" >&6; }
55280 else
55281 { echo "$as_me:$LINENO: result: $compile_mode" >&5
55282 echo "${ECHO_T}$compile_mode" >&6; }
55286 # try to configure the component. pay no attention to
55287 # --enable-dist, since we'll always have makefiles.
55288 if test "$should_build" = "1"; then
55290 # check for sched_setaffinity(), which originated in Linux kernel
55291 # 2.5.8, but was back-ported in several distro's 2.4 kernels.
55292 { echo "$as_me:$LINENO: checking for sched_setaffinity" >&5
55293 echo $ECHO_N "checking for sched_setaffinity... $ECHO_C" >&6; }
55294 if test "${ac_cv_func_sched_setaffinity+set}" = set; then
55295 echo $ECHO_N "(cached) $ECHO_C" >&6
55296 else
55297 cat >conftest.$ac_ext <<_ACEOF
55298 /* confdefs.h. */
55299 _ACEOF
55300 cat confdefs.h >>conftest.$ac_ext
55301 cat >>conftest.$ac_ext <<_ACEOF
55302 /* end confdefs.h. */
55303 /* Define sched_setaffinity to an innocuous variant, in case <limits.h> declares sched_setaffinity.
55304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55305 #define sched_setaffinity innocuous_sched_setaffinity
55307 /* System header to define __stub macros and hopefully few prototypes,
55308 which can conflict with char sched_setaffinity (); below.
55309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55310 <limits.h> exists even on freestanding compilers. */
55312 #ifdef __STDC__
55313 # include <limits.h>
55314 #else
55315 # include <assert.h>
55316 #endif
55318 #undef sched_setaffinity
55320 /* Override any GCC internal prototype to avoid an error.
55321 Use char because int might match the return type of a GCC
55322 builtin and then its argument prototype would still apply. */
55323 #ifdef __cplusplus
55324 extern "C"
55325 #endif
55326 char sched_setaffinity ();
55327 /* The GNU C library defines this for functions which it implements
55328 to always fail with ENOSYS. Some functions are actually named
55329 something starting with __ and the normal name is an alias. */
55330 #if defined __stub_sched_setaffinity || defined __stub___sched_setaffinity
55331 choke me
55332 #endif
55335 main ()
55337 return sched_setaffinity ();
55339 return 0;
55341 _ACEOF
55342 rm -f conftest.$ac_objext conftest$ac_exeext
55343 if { (ac_try="$ac_link"
55344 case "(($ac_try" in
55345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55346 *) ac_try_echo=$ac_try;;
55347 esac
55348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55349 (eval "$ac_link") 2>conftest.er1
55350 ac_status=$?
55351 grep -v '^ *+' conftest.er1 >conftest.err
55352 rm -f conftest.er1
55353 cat conftest.err >&5
55354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55355 (exit $ac_status); } && {
55356 test -z "$ac_c_werror_flag" ||
55357 test ! -s conftest.err
55358 } && test -s conftest$ac_exeext &&
55359 $as_test_x conftest$ac_exeext; then
55360 ac_cv_func_sched_setaffinity=yes
55361 else
55362 echo "$as_me: failed program was:" >&5
55363 sed 's/^/| /' conftest.$ac_ext >&5
55365 ac_cv_func_sched_setaffinity=no
55368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55369 conftest$ac_exeext conftest.$ac_ext
55371 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_setaffinity" >&5
55372 echo "${ECHO_T}$ac_cv_func_sched_setaffinity" >&6; }
55373 if test $ac_cv_func_sched_setaffinity = yes; then
55374 should_build=1
55375 else
55376 should_build=0
55380 #####################################################################
55381 # See lengthy comment in paffinity_linux.h for an explanation of
55382 # these tests.
55383 #####################################################################
55387 { echo "$as_me:$LINENO: checking for cpu_set_t" >&5
55388 echo $ECHO_N "checking for cpu_set_t... $ECHO_C" >&6; }
55389 if test "${ac_cv_type_cpu_set_t+set}" = set; then
55390 echo $ECHO_N "(cached) $ECHO_C" >&6
55391 else
55392 cat >conftest.$ac_ext <<_ACEOF
55393 /* confdefs.h. */
55394 _ACEOF
55395 cat confdefs.h >>conftest.$ac_ext
55396 cat >>conftest.$ac_ext <<_ACEOF
55397 /* end confdefs.h. */
55398 #include <sched.h>
55400 typedef cpu_set_t ac__type_new_;
55402 main ()
55404 if ((ac__type_new_ *) 0)
55405 return 0;
55406 if (sizeof (ac__type_new_))
55407 return 0;
55409 return 0;
55411 _ACEOF
55412 rm -f conftest.$ac_objext
55413 if { (ac_try="$ac_compile"
55414 case "(($ac_try" in
55415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55416 *) ac_try_echo=$ac_try;;
55417 esac
55418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55419 (eval "$ac_compile") 2>conftest.er1
55420 ac_status=$?
55421 grep -v '^ *+' conftest.er1 >conftest.err
55422 rm -f conftest.er1
55423 cat conftest.err >&5
55424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55425 (exit $ac_status); } && {
55426 test -z "$ac_c_werror_flag" ||
55427 test ! -s conftest.err
55428 } && test -s conftest.$ac_objext; then
55429 ac_cv_type_cpu_set_t=yes
55430 else
55431 echo "$as_me: failed program was:" >&5
55432 sed 's/^/| /' conftest.$ac_ext >&5
55434 ac_cv_type_cpu_set_t=no
55437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55439 { echo "$as_me:$LINENO: result: $ac_cv_type_cpu_set_t" >&5
55440 echo "${ECHO_T}$ac_cv_type_cpu_set_t" >&6; }
55441 if test $ac_cv_type_cpu_set_t = yes; then
55443 cat >>confdefs.h <<_ACEOF
55444 #define HAVE_CPU_SET_T 1
55445 _ACEOF
55447 cat >>confdefs.h <<\_ACEOF
55448 #define HAVE_cpu_set_t 1
55449 _ACEOF
55451 opal_paffinity_linux_have_cpu_set_t=1
55452 else
55453 opal_paffinity_linux_have_cpu_set_t=0
55457 if test "$opal_paffinity_linux_have_cpu_set_t" = "1"; then
55459 # Check to see if CPU_ZERO is functional (see comment in
55460 # paffinity_linux.h)
55462 { echo "$as_me:$LINENO: checking whether CPU_ZERO is broken" >&5
55463 echo $ECHO_N "checking whether CPU_ZERO is broken... $ECHO_C" >&6; }
55466 cat >conftest.$ac_ext <<_ACEOF
55467 /* confdefs.h. */
55468 _ACEOF
55469 cat confdefs.h >>conftest.$ac_ext
55470 cat >>conftest.$ac_ext <<_ACEOF
55471 /* end confdefs.h. */
55472 #include <sched.h>
55474 main ()
55476 cpu_set_t foo; CPU_ZERO(&foo);
55478 return 0;
55480 _ACEOF
55481 rm -f conftest.$ac_objext
55482 if { (ac_try="$ac_compile"
55483 case "(($ac_try" in
55484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55485 *) ac_try_echo=$ac_try;;
55486 esac
55487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55488 (eval "$ac_compile") 2>conftest.er1
55489 ac_status=$?
55490 grep -v '^ *+' conftest.er1 >conftest.err
55491 rm -f conftest.er1
55492 cat conftest.err >&5
55493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55494 (exit $ac_status); } && {
55495 test -z "$ac_c_werror_flag" ||
55496 test ! -s conftest.err
55497 } && test -s conftest.$ac_objext; then
55498 cat >>confdefs.h <<\_ACEOF
55499 #define HAVE_CPU_ZERO 1
55500 _ACEOF
55502 { echo "$as_me:$LINENO: result: no" >&5
55503 echo "${ECHO_T}no" >&6; }
55504 else
55505 echo "$as_me: failed program was:" >&5
55506 sed 's/^/| /' conftest.$ac_ext >&5
55508 { echo "$as_me:$LINENO: result: yes" >&5
55509 echo "${ECHO_T}yes" >&6; }
55512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55514 # Now check whether sched_setaffinity() takes 2 or 3
55515 # arguments (see comment in paffinity_linux.h)
55517 { echo "$as_me:$LINENO: checking how many parameters sched_setaffinity() takes" >&5
55518 echo $ECHO_N "checking how many parameters sched_setaffinity() takes... $ECHO_C" >&6; }
55519 cat >conftest.$ac_ext <<_ACEOF
55520 /* confdefs.h. */
55521 _ACEOF
55522 cat confdefs.h >>conftest.$ac_ext
55523 cat >>conftest.$ac_ext <<_ACEOF
55524 /* end confdefs.h. */
55525 #include <sched.h>
55527 main ()
55529 cpu_set_t foo; sched_setaffinity(0, sizeof(foo), &foo);
55531 return 0;
55533 _ACEOF
55534 rm -f conftest.$ac_objext
55535 if { (ac_try="$ac_compile"
55536 case "(($ac_try" in
55537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55538 *) ac_try_echo=$ac_try;;
55539 esac
55540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55541 (eval "$ac_compile") 2>conftest.er1
55542 ac_status=$?
55543 grep -v '^ *+' conftest.er1 >conftest.err
55544 rm -f conftest.er1
55545 cat conftest.err >&5
55546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55547 (exit $ac_status); } && {
55548 test -z "$ac_c_werror_flag" ||
55549 test ! -s conftest.err
55550 } && test -s conftest.$ac_objext; then
55551 opal_paffinity_linux_ssnp=3
55552 else
55553 echo "$as_me: failed program was:" >&5
55554 sed 's/^/| /' conftest.$ac_ext >&5
55556 opal_paffinity_linux_ssnp=2
55559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55561 cat >>confdefs.h <<_ACEOF
55562 #define OPAL_PAFFINITY_LINUX_SCHED_SETAFF_NUM_PARAMS $opal_paffinity_linux_ssnp
55563 _ACEOF
55565 { echo "$as_me:$LINENO: result: $opal_paffinity_linux_ssnp" >&5
55566 echo "${ECHO_T}$opal_paffinity_linux_ssnp" >&6; }
55569 # Clean up (not entirely necessary; just being social)
55571 unset opal_paffinity_linux_have_cpu_set_t
55572 unset opal_paffinity_linux_ssnp
55577 if test "$should_build" = "1"; then
55579 project=opal
55580 framework=paffinity
55581 component=linux
55583 # See if it dropped an output file for us to pick up some
55584 # shell variables in.
55585 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
55587 # Add this subdir to the mast list of all MCA component subdirs
55588 all_components="$all_components $component"
55590 if test "$compile_mode" = "dso" ; then
55591 dso_components="$dso_components $component"
55592 else
55593 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
55594 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
55595 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
55596 static_components="$static_components $component"
55599 # Output pretty results
55600 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
55601 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
55602 { echo "$as_me:$LINENO: result: yes" >&5
55603 echo "${ECHO_T}yes" >&6; }
55605 # If there's an output file, add the values to
55606 # scope_EXTRA_flags.
55607 if test -f $infile; then
55609 # First check for the ABORT tag
55610 line="`grep ABORT= $infile | cut -d= -f2-`"
55611 if test -n "$line" -a "$line" != "no"; then
55612 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
55613 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
55614 { { echo "$as_me:$LINENO: error: cannot continue" >&5
55615 echo "$as_me: error: cannot continue" >&2;}
55616 { (exit 1); exit 1; }; }
55619 # Check for flags passed up from the component. If we're
55620 # compiling statically, then take all flags passed up from the
55621 # component.
55622 if test "$compile_mode" = "static"; then
55623 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
55624 eval "line=$line"
55625 if test -n "$line"; then
55626 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
55628 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
55629 eval "line=$line"
55630 if test -n "$line"; then
55631 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
55635 if test "$DIRECT_paffinity" = "$component" ; then
55636 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
55637 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
55638 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
55639 eval $str
55640 else
55641 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
55642 *** does not appear to support direct calling.
55643 *** Aborting" >&5
55644 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
55645 *** does not appear to support direct calling.
55646 *** Aborting" >&2;}
55647 { (exit 1); exit 1; }; }
55650 else
55651 # were we supposed to have found something in the
55652 # post_configure.sh, but the file didn't exist?
55653 if test "$DIRECT_paffinity" = "$component" ; then
55654 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
55655 *** does not appear to support direct calling.
55656 *** Aborting" >&5
55657 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
55658 *** does not appear to support direct calling.
55659 *** Aborting" >&2;}
55660 { (exit 1); exit 1; }; }
55664 # now add the flags that were set in the environment variables
55665 # framework_component_FOO (for example, the flags set by
55666 # m4_configure components)
55668 # Check for flags passed up from the component. If we're
55669 # compiling statically, then take all flags passed up from the
55670 # component.
55671 if test "$compile_mode" = "static"; then
55672 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
55673 eval "$str"
55674 if test -n "$line" ; then
55675 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
55677 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
55678 eval "$str"
55679 if test -n "$line" ; then
55680 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
55684 else
55686 { echo "$as_me:$LINENO: checking if MCA component paffinity:linux can compile" >&5
55687 echo $ECHO_N "checking if MCA component paffinity:linux can compile... $ECHO_C" >&6; }
55688 { echo "$as_me:$LINENO: result: no" >&5
55689 echo "${ECHO_T}no" >&6; }
55691 # If this component was requested as the default for this
55692 # type, then abort.
55693 if test "$with_paffinity" = "linux" ; then
55694 { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5
55695 echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
55696 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
55697 echo "$as_me: WARNING: This component was selected as the default" >&2;}
55698 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
55699 echo "$as_me: error: Cannot continue" >&2;}
55700 { (exit 1); exit 1; }; }
55701 exit 1
55704 if test ! -z "$DIRECT_paffinity" ; then
55705 if test "$DIRECT_paffinity" = "linux" ; then
55706 { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5
55707 echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
55708 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
55709 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
55710 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
55711 echo "$as_me: error: Cannot continue" >&2;}
55712 { (exit 1); exit 1; }; }
55713 exit 1
55717 # add component to all component list
55718 all_components="$all_components linux"
55722 # set the AM_CONDITIONAL on how we should build
55723 if test "$compile_mode" = "dso"; then
55724 BUILD_paffinity_linux_DSO=1
55725 else
55726 BUILD_paffinity_linux_DSO=0
55731 if test "$BUILD_paffinity_linux_DSO" = "1"; then
55732 OMPI_BUILD_paffinity_linux_DSO_TRUE=
55733 OMPI_BUILD_paffinity_linux_DSO_FALSE='#'
55734 else
55735 OMPI_BUILD_paffinity_linux_DSO_TRUE='#'
55736 OMPI_BUILD_paffinity_linux_DSO_FALSE=
55740 if test "$should_build" = "1"; then
55741 components_looking_for_succeed="$happy_value"
55745 unset compile_mode
55747 ompi_show_subsubsubtitle "MCA component paffinity:solaris (m4 configuration macro)"
55750 project=opal
55751 framework=paffinity
55752 component=solaris
55753 component_path="$srcdir/$project/mca/$framework/$component"
55754 want_component=0
55756 # build if:
55757 # - the component type is direct and we are that component
55758 # - there is no ompi_ignore file
55759 # - there is an ompi_ignore, but there is an empty ompi_unignore
55760 # - there is an ompi_ignore, but username is in ompi_unignore
55761 if test -d $component_path ; then
55762 # decide if we want the component to be built or not. This
55763 # is spread out because some of the logic is a little complex
55764 # and test's syntax isn't exactly the greatest. We want to
55765 # build the component by default.
55766 want_component=1
55767 if test -f $component_path/.ompi_ignore ; then
55768 # If there is an ompi_ignore file, don't build
55769 # the component. Note that this decision can be
55770 # overriden by the unignore logic below.
55771 want_component=0
55773 if test -f $component_path/.ompi_unignore ; then
55774 # if there is an empty ompi_unignore, that is
55775 # equivalent to having your userid in the unignore file.
55776 # If userid is in the file, unignore the ignore file.
55777 if test ! -s $component_path/.ompi_unignore ; then
55778 want_component=1
55779 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
55780 want_component=1
55783 # if this component type is direct and we are not it, we don't want
55784 # to be built. Otherwise, we do want to be built.
55785 if test ! -z "$DIRECT_paffinity" ; then
55786 if test "$DIRECT_paffinity" = "$component" ; then
55787 want_component=1
55788 else
55789 want_component=0
55794 # if we were explicitly disabled, don't build :)
55795 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
55796 eval $str
55797 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
55798 want_component=0
55801 if test "$want_component" = "1"; then
55802 should_build=$components_looking_for_succeed
55803 else
55804 should_build=0
55808 # Allow the component to override the build mode if it really wants to.
55809 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
55811 project=opal
55812 framework=paffinity
55813 component=solaris
55815 # Is this component going to built staic or shared? $component
55816 # might not be known until configure time, so have to use eval
55817 # tricks - can't set variable names at autogen time.
55818 str="SHARED_FRAMEWORK=\$DSO_$framework"
55819 eval $str
55820 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
55821 eval $str
55823 str="STATIC_FRAMEWORK=\$STATIC_$framework"
55824 eval $str
55825 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
55826 eval $str
55828 shared_mode_override=static
55830 # Setup for either shared or static
55831 if test "$STATIC_FRAMEWORK" = "1" -o \
55832 "$STATIC_COMPONENT" = "1" -o \
55833 "$STATIC_all" = "1" ; then
55834 compile_mode="static"
55835 elif test "$shared_mode_override" = "dso" -o \
55836 "$SHARED_FRAMEWORK" = "1" -o \
55837 "$SHARED_COMPONENT" = "1" -o \
55838 "$DSO_all" = "1"; then
55839 compile_mode="dso"
55840 else
55841 compile_mode="static"
55844 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
55845 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
55846 if test "$DIRECT_paffinity" = "$component" ; then
55847 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
55848 echo "${ECHO_T}$compile_mode - direct" >&6; }
55849 else
55850 { echo "$as_me:$LINENO: result: $compile_mode" >&5
55851 echo "${ECHO_T}$compile_mode" >&6; }
55855 # try to configure the component. pay no attention to
55856 # --enable-dist, since we'll always have makefiles.
55857 if test "$should_build" = "1"; then
55859 # check for processor_bind()
55860 { echo "$as_me:$LINENO: checking for processor_bind" >&5
55861 echo $ECHO_N "checking for processor_bind... $ECHO_C" >&6; }
55862 if test "${ac_cv_func_processor_bind+set}" = set; then
55863 echo $ECHO_N "(cached) $ECHO_C" >&6
55864 else
55865 cat >conftest.$ac_ext <<_ACEOF
55866 /* confdefs.h. */
55867 _ACEOF
55868 cat confdefs.h >>conftest.$ac_ext
55869 cat >>conftest.$ac_ext <<_ACEOF
55870 /* end confdefs.h. */
55871 /* Define processor_bind to an innocuous variant, in case <limits.h> declares processor_bind.
55872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55873 #define processor_bind innocuous_processor_bind
55875 /* System header to define __stub macros and hopefully few prototypes,
55876 which can conflict with char processor_bind (); below.
55877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55878 <limits.h> exists even on freestanding compilers. */
55880 #ifdef __STDC__
55881 # include <limits.h>
55882 #else
55883 # include <assert.h>
55884 #endif
55886 #undef processor_bind
55888 /* Override any GCC internal prototype to avoid an error.
55889 Use char because int might match the return type of a GCC
55890 builtin and then its argument prototype would still apply. */
55891 #ifdef __cplusplus
55892 extern "C"
55893 #endif
55894 char processor_bind ();
55895 /* The GNU C library defines this for functions which it implements
55896 to always fail with ENOSYS. Some functions are actually named
55897 something starting with __ and the normal name is an alias. */
55898 #if defined __stub_processor_bind || defined __stub___processor_bind
55899 choke me
55900 #endif
55903 main ()
55905 return processor_bind ();
55907 return 0;
55909 _ACEOF
55910 rm -f conftest.$ac_objext conftest$ac_exeext
55911 if { (ac_try="$ac_link"
55912 case "(($ac_try" in
55913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55914 *) ac_try_echo=$ac_try;;
55915 esac
55916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55917 (eval "$ac_link") 2>conftest.er1
55918 ac_status=$?
55919 grep -v '^ *+' conftest.er1 >conftest.err
55920 rm -f conftest.er1
55921 cat conftest.err >&5
55922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55923 (exit $ac_status); } && {
55924 test -z "$ac_c_werror_flag" ||
55925 test ! -s conftest.err
55926 } && test -s conftest$ac_exeext &&
55927 $as_test_x conftest$ac_exeext; then
55928 ac_cv_func_processor_bind=yes
55929 else
55930 echo "$as_me: failed program was:" >&5
55931 sed 's/^/| /' conftest.$ac_ext >&5
55933 ac_cv_func_processor_bind=no
55936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55937 conftest$ac_exeext conftest.$ac_ext
55939 { echo "$as_me:$LINENO: result: $ac_cv_func_processor_bind" >&5
55940 echo "${ECHO_T}$ac_cv_func_processor_bind" >&6; }
55941 if test $ac_cv_func_processor_bind = yes; then
55942 should_build=1
55943 else
55944 should_build=0
55951 if test "$should_build" = "1"; then
55953 project=opal
55954 framework=paffinity
55955 component=solaris
55957 # See if it dropped an output file for us to pick up some
55958 # shell variables in.
55959 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
55961 # Add this subdir to the mast list of all MCA component subdirs
55962 all_components="$all_components $component"
55964 if test "$compile_mode" = "dso" ; then
55965 dso_components="$dso_components $component"
55966 else
55967 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
55968 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
55969 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
55970 static_components="$static_components $component"
55973 # Output pretty results
55974 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
55975 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
55976 { echo "$as_me:$LINENO: result: yes" >&5
55977 echo "${ECHO_T}yes" >&6; }
55979 # If there's an output file, add the values to
55980 # scope_EXTRA_flags.
55981 if test -f $infile; then
55983 # First check for the ABORT tag
55984 line="`grep ABORT= $infile | cut -d= -f2-`"
55985 if test -n "$line" -a "$line" != "no"; then
55986 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
55987 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
55988 { { echo "$as_me:$LINENO: error: cannot continue" >&5
55989 echo "$as_me: error: cannot continue" >&2;}
55990 { (exit 1); exit 1; }; }
55993 # Check for flags passed up from the component. If we're
55994 # compiling statically, then take all flags passed up from the
55995 # component.
55996 if test "$compile_mode" = "static"; then
55997 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
55998 eval "line=$line"
55999 if test -n "$line"; then
56000 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
56002 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
56003 eval "line=$line"
56004 if test -n "$line"; then
56005 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
56009 if test "$DIRECT_paffinity" = "$component" ; then
56010 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
56011 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
56012 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
56013 eval $str
56014 else
56015 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
56016 *** does not appear to support direct calling.
56017 *** Aborting" >&5
56018 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
56019 *** does not appear to support direct calling.
56020 *** Aborting" >&2;}
56021 { (exit 1); exit 1; }; }
56024 else
56025 # were we supposed to have found something in the
56026 # post_configure.sh, but the file didn't exist?
56027 if test "$DIRECT_paffinity" = "$component" ; then
56028 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
56029 *** does not appear to support direct calling.
56030 *** Aborting" >&5
56031 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
56032 *** does not appear to support direct calling.
56033 *** Aborting" >&2;}
56034 { (exit 1); exit 1; }; }
56038 # now add the flags that were set in the environment variables
56039 # framework_component_FOO (for example, the flags set by
56040 # m4_configure components)
56042 # Check for flags passed up from the component. If we're
56043 # compiling statically, then take all flags passed up from the
56044 # component.
56045 if test "$compile_mode" = "static"; then
56046 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
56047 eval "$str"
56048 if test -n "$line" ; then
56049 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
56051 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
56052 eval "$str"
56053 if test -n "$line" ; then
56054 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
56058 else
56060 { echo "$as_me:$LINENO: checking if MCA component paffinity:solaris can compile" >&5
56061 echo $ECHO_N "checking if MCA component paffinity:solaris can compile... $ECHO_C" >&6; }
56062 { echo "$as_me:$LINENO: result: no" >&5
56063 echo "${ECHO_T}no" >&6; }
56065 # If this component was requested as the default for this
56066 # type, then abort.
56067 if test "$with_paffinity" = "solaris" ; then
56068 { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5
56069 echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
56070 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
56071 echo "$as_me: WARNING: This component was selected as the default" >&2;}
56072 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
56073 echo "$as_me: error: Cannot continue" >&2;}
56074 { (exit 1); exit 1; }; }
56075 exit 1
56078 if test ! -z "$DIRECT_paffinity" ; then
56079 if test "$DIRECT_paffinity" = "solaris" ; then
56080 { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5
56081 echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
56082 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
56083 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
56084 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
56085 echo "$as_me: error: Cannot continue" >&2;}
56086 { (exit 1); exit 1; }; }
56087 exit 1
56091 # add component to all component list
56092 all_components="$all_components solaris"
56096 # set the AM_CONDITIONAL on how we should build
56097 if test "$compile_mode" = "dso"; then
56098 BUILD_paffinity_solaris_DSO=1
56099 else
56100 BUILD_paffinity_solaris_DSO=0
56105 if test "$BUILD_paffinity_solaris_DSO" = "1"; then
56106 OMPI_BUILD_paffinity_solaris_DSO_TRUE=
56107 OMPI_BUILD_paffinity_solaris_DSO_FALSE='#'
56108 else
56109 OMPI_BUILD_paffinity_solaris_DSO_TRUE='#'
56110 OMPI_BUILD_paffinity_solaris_DSO_FALSE=
56114 if test "$should_build" = "1"; then
56115 components_looking_for_succeed="$happy_value"
56119 unset compile_mode
56121 ompi_show_subsubsubtitle "MCA component paffinity:windows (m4 configuration macro)"
56124 project=opal
56125 framework=paffinity
56126 component=windows
56127 component_path="$srcdir/$project/mca/$framework/$component"
56128 want_component=0
56130 # build if:
56131 # - the component type is direct and we are that component
56132 # - there is no ompi_ignore file
56133 # - there is an ompi_ignore, but there is an empty ompi_unignore
56134 # - there is an ompi_ignore, but username is in ompi_unignore
56135 if test -d $component_path ; then
56136 # decide if we want the component to be built or not. This
56137 # is spread out because some of the logic is a little complex
56138 # and test's syntax isn't exactly the greatest. We want to
56139 # build the component by default.
56140 want_component=1
56141 if test -f $component_path/.ompi_ignore ; then
56142 # If there is an ompi_ignore file, don't build
56143 # the component. Note that this decision can be
56144 # overriden by the unignore logic below.
56145 want_component=0
56147 if test -f $component_path/.ompi_unignore ; then
56148 # if there is an empty ompi_unignore, that is
56149 # equivalent to having your userid in the unignore file.
56150 # If userid is in the file, unignore the ignore file.
56151 if test ! -s $component_path/.ompi_unignore ; then
56152 want_component=1
56153 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
56154 want_component=1
56157 # if this component type is direct and we are not it, we don't want
56158 # to be built. Otherwise, we do want to be built.
56159 if test ! -z "$DIRECT_paffinity" ; then
56160 if test "$DIRECT_paffinity" = "$component" ; then
56161 want_component=1
56162 else
56163 want_component=0
56168 # if we were explicitly disabled, don't build :)
56169 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
56170 eval $str
56171 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
56172 want_component=0
56175 if test "$want_component" = "1"; then
56176 should_build=$components_looking_for_succeed
56177 else
56178 should_build=0
56182 # Allow the component to override the build mode if it really wants to.
56183 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
56185 project=opal
56186 framework=paffinity
56187 component=windows
56189 # Is this component going to built staic or shared? $component
56190 # might not be known until configure time, so have to use eval
56191 # tricks - can't set variable names at autogen time.
56192 str="SHARED_FRAMEWORK=\$DSO_$framework"
56193 eval $str
56194 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
56195 eval $str
56197 str="STATIC_FRAMEWORK=\$STATIC_$framework"
56198 eval $str
56199 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
56200 eval $str
56202 shared_mode_override=static
56204 # Setup for either shared or static
56205 if test "$STATIC_FRAMEWORK" = "1" -o \
56206 "$STATIC_COMPONENT" = "1" -o \
56207 "$STATIC_all" = "1" ; then
56208 compile_mode="static"
56209 elif test "$shared_mode_override" = "dso" -o \
56210 "$SHARED_FRAMEWORK" = "1" -o \
56211 "$SHARED_COMPONENT" = "1" -o \
56212 "$DSO_all" = "1"; then
56213 compile_mode="dso"
56214 else
56215 compile_mode="static"
56218 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
56219 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
56220 if test "$DIRECT_paffinity" = "$component" ; then
56221 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
56222 echo "${ECHO_T}$compile_mode - direct" >&6; }
56223 else
56224 { echo "$as_me:$LINENO: result: $compile_mode" >&5
56225 echo "${ECHO_T}$compile_mode" >&6; }
56229 # try to configure the component. pay no attention to
56230 # --enable-dist, since we'll always have makefiles.
56231 if test "$should_build" = "1"; then
56233 # check for GetProcessAffinityMask, which is defined only for some
56234 # flavors of Windows. We should first check that the function is defined,
56235 # and then check for it's presence in the kernel32 library.
56236 { echo "$as_me:$LINENO: checking for working GetProcessAffinityMask" >&5
56237 echo $ECHO_N "checking for working GetProcessAffinityMask... $ECHO_C" >&6; }
56238 if test "$cross_compiling" = yes; then
56239 cat >conftest.$ac_ext <<_ACEOF
56240 #include <windows.h>
56241 int main( int argc, char** argv ) {
56242 DWORD aff, mask;
56243 GetProcessAffinityMask( NULL, &aff, &mask );
56244 return 0; }
56245 _ACEOF
56246 rm -f conftest.$ac_objext
56247 if { (ac_try="$ac_compile"
56248 case "(($ac_try" in
56249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56250 *) ac_try_echo=$ac_try;;
56251 esac
56252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56253 (eval "$ac_compile") 2>conftest.er1
56254 ac_status=$?
56255 grep -v '^ *+' conftest.er1 >conftest.err
56256 rm -f conftest.er1
56257 cat conftest.err >&5
56258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56259 (exit $ac_status); } && {
56260 test -z "$ac_c_werror_flag" ||
56261 test ! -s conftest.err
56262 } && test -s conftest.$ac_objext; then
56263 { echo "$as_me:$LINENO: result: yes" >&5
56264 echo "${ECHO_T}yes" >&6; }
56265 should_build=1
56266 else
56267 echo "$as_me: failed program was:" >&5
56268 sed 's/^/| /' conftest.$ac_ext >&5
56270 { echo "$as_me:$LINENO: result: no" >&5
56271 echo "${ECHO_T}no" >&6; }
56272 should_build=0
56275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56276 else
56277 cat >conftest.$ac_ext <<_ACEOF
56278 /* confdefs.h. */
56279 _ACEOF
56280 cat confdefs.h >>conftest.$ac_ext
56281 cat >>conftest.$ac_ext <<_ACEOF
56282 /* end confdefs.h. */
56283 #include <windows.h>
56284 int main( int argc, char** argv ) {
56285 DWORD aff, mask;
56286 GetProcessAffinityMask( NULL, &aff, &mask );
56287 return 0; }
56288 _ACEOF
56289 rm -f conftest$ac_exeext
56290 if { (ac_try="$ac_link"
56291 case "(($ac_try" in
56292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56293 *) ac_try_echo=$ac_try;;
56294 esac
56295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56296 (eval "$ac_link") 2>&5
56297 ac_status=$?
56298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56300 { (case "(($ac_try" in
56301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56302 *) ac_try_echo=$ac_try;;
56303 esac
56304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56305 (eval "$ac_try") 2>&5
56306 ac_status=$?
56307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56308 (exit $ac_status); }; }; then
56309 { echo "$as_me:$LINENO: result: yes" >&5
56310 echo "${ECHO_T}yes" >&6; }
56311 should_build=1
56312 else
56313 echo "$as_me: program exited with status $ac_status" >&5
56314 echo "$as_me: failed program was:" >&5
56315 sed 's/^/| /' conftest.$ac_ext >&5
56317 ( exit $ac_status )
56318 { echo "$as_me:$LINENO: result: no" >&5
56319 echo "${ECHO_T}no" >&6; }
56320 should_build=0
56322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56330 if test "$should_build" = "1"; then
56332 project=opal
56333 framework=paffinity
56334 component=windows
56336 # See if it dropped an output file for us to pick up some
56337 # shell variables in.
56338 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
56340 # Add this subdir to the mast list of all MCA component subdirs
56341 all_components="$all_components $component"
56343 if test "$compile_mode" = "dso" ; then
56344 dso_components="$dso_components $component"
56345 else
56346 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
56347 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
56348 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
56349 static_components="$static_components $component"
56352 # Output pretty results
56353 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
56354 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
56355 { echo "$as_me:$LINENO: result: yes" >&5
56356 echo "${ECHO_T}yes" >&6; }
56358 # If there's an output file, add the values to
56359 # scope_EXTRA_flags.
56360 if test -f $infile; then
56362 # First check for the ABORT tag
56363 line="`grep ABORT= $infile | cut -d= -f2-`"
56364 if test -n "$line" -a "$line" != "no"; then
56365 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
56366 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
56367 { { echo "$as_me:$LINENO: error: cannot continue" >&5
56368 echo "$as_me: error: cannot continue" >&2;}
56369 { (exit 1); exit 1; }; }
56372 # Check for flags passed up from the component. If we're
56373 # compiling statically, then take all flags passed up from the
56374 # component.
56375 if test "$compile_mode" = "static"; then
56376 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
56377 eval "line=$line"
56378 if test -n "$line"; then
56379 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
56381 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
56382 eval "line=$line"
56383 if test -n "$line"; then
56384 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
56388 if test "$DIRECT_paffinity" = "$component" ; then
56389 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
56390 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
56391 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
56392 eval $str
56393 else
56394 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
56395 *** does not appear to support direct calling.
56396 *** Aborting" >&5
56397 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
56398 *** does not appear to support direct calling.
56399 *** Aborting" >&2;}
56400 { (exit 1); exit 1; }; }
56403 else
56404 # were we supposed to have found something in the
56405 # post_configure.sh, but the file didn't exist?
56406 if test "$DIRECT_paffinity" = "$component" ; then
56407 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
56408 *** does not appear to support direct calling.
56409 *** Aborting" >&5
56410 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
56411 *** does not appear to support direct calling.
56412 *** Aborting" >&2;}
56413 { (exit 1); exit 1; }; }
56417 # now add the flags that were set in the environment variables
56418 # framework_component_FOO (for example, the flags set by
56419 # m4_configure components)
56421 # Check for flags passed up from the component. If we're
56422 # compiling statically, then take all flags passed up from the
56423 # component.
56424 if test "$compile_mode" = "static"; then
56425 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
56426 eval "$str"
56427 if test -n "$line" ; then
56428 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
56430 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
56431 eval "$str"
56432 if test -n "$line" ; then
56433 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
56437 else
56439 { echo "$as_me:$LINENO: checking if MCA component paffinity:windows can compile" >&5
56440 echo $ECHO_N "checking if MCA component paffinity:windows can compile... $ECHO_C" >&6; }
56441 { echo "$as_me:$LINENO: result: no" >&5
56442 echo "${ECHO_T}no" >&6; }
56444 # If this component was requested as the default for this
56445 # type, then abort.
56446 if test "$with_paffinity" = "windows" ; then
56447 { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
56448 echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
56449 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
56450 echo "$as_me: WARNING: This component was selected as the default" >&2;}
56451 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
56452 echo "$as_me: error: Cannot continue" >&2;}
56453 { (exit 1); exit 1; }; }
56454 exit 1
56457 if test ! -z "$DIRECT_paffinity" ; then
56458 if test "$DIRECT_paffinity" = "windows" ; then
56459 { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
56460 echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
56461 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
56462 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
56463 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
56464 echo "$as_me: error: Cannot continue" >&2;}
56465 { (exit 1); exit 1; }; }
56466 exit 1
56470 # add component to all component list
56471 all_components="$all_components windows"
56475 # set the AM_CONDITIONAL on how we should build
56476 if test "$compile_mode" = "dso"; then
56477 BUILD_paffinity_windows_DSO=1
56478 else
56479 BUILD_paffinity_windows_DSO=0
56484 if test "$BUILD_paffinity_windows_DSO" = "1"; then
56485 OMPI_BUILD_paffinity_windows_DSO_TRUE=
56486 OMPI_BUILD_paffinity_windows_DSO_FALSE='#'
56487 else
56488 OMPI_BUILD_paffinity_windows_DSO_TRUE='#'
56489 OMPI_BUILD_paffinity_windows_DSO_FALSE=
56493 if test "$should_build" = "1"; then
56494 components_looking_for_succeed="$happy_value"
56498 unset compile_mode
56501 # configure components that provide their own configure script.
56502 # It would be really hard to run these for "find first that
56503 # works", so we don't :)
56504 if test "$happy_value" = "1"; then
56506 for component_path in $srcdir/opal/mca/paffinity/* ; do
56507 component="`basename $component_path`"
56508 if test -d $component_path -a -x $component_path/configure ; then
56509 ompi_show_subsubsubtitle "MCA component paffinity:$component (need to configure)"
56512 project=opal
56513 framework=paffinity
56514 component=$component
56515 component_path="$srcdir/$project/mca/$framework/$component"
56516 want_component=0
56518 # build if:
56519 # - the component type is direct and we are that component
56520 # - there is no ompi_ignore file
56521 # - there is an ompi_ignore, but there is an empty ompi_unignore
56522 # - there is an ompi_ignore, but username is in ompi_unignore
56523 if test -d $component_path ; then
56524 # decide if we want the component to be built or not. This
56525 # is spread out because some of the logic is a little complex
56526 # and test's syntax isn't exactly the greatest. We want to
56527 # build the component by default.
56528 want_component=1
56529 if test -f $component_path/.ompi_ignore ; then
56530 # If there is an ompi_ignore file, don't build
56531 # the component. Note that this decision can be
56532 # overriden by the unignore logic below.
56533 want_component=0
56535 if test -f $component_path/.ompi_unignore ; then
56536 # if there is an empty ompi_unignore, that is
56537 # equivalent to having your userid in the unignore file.
56538 # If userid is in the file, unignore the ignore file.
56539 if test ! -s $component_path/.ompi_unignore ; then
56540 want_component=1
56541 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
56542 want_component=1
56545 # if this component type is direct and we are not it, we don't want
56546 # to be built. Otherwise, we do want to be built.
56547 if test ! -z "$DIRECT_paffinity" ; then
56548 if test "$DIRECT_paffinity" = "$component" ; then
56549 want_component=1
56550 else
56551 want_component=0
56556 # if we were explicitly disabled, don't build :)
56557 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
56558 eval $str
56559 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
56560 want_component=0
56563 if test "$want_component" = "1"; then
56564 should_build=1
56565 else
56566 should_build=0
56571 project=opal
56572 framework=paffinity
56573 component=$component
56575 # Is this component going to built staic or shared? $component
56576 # might not be known until configure time, so have to use eval
56577 # tricks - can't set variable names at autogen time.
56578 str="SHARED_FRAMEWORK=\$DSO_$framework"
56579 eval $str
56580 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
56581 eval $str
56583 str="STATIC_FRAMEWORK=\$STATIC_$framework"
56584 eval $str
56585 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
56586 eval $str
56588 shared_mode_override=static
56590 # Setup for either shared or static
56591 if test "$STATIC_FRAMEWORK" = "1" -o \
56592 "$STATIC_COMPONENT" = "1" -o \
56593 "$STATIC_all" = "1" ; then
56594 compile_mode="static"
56595 elif test "$shared_mode_override" = "dso" -o \
56596 "$SHARED_FRAMEWORK" = "1" -o \
56597 "$SHARED_COMPONENT" = "1" -o \
56598 "$DSO_all" = "1"; then
56599 compile_mode="dso"
56600 else
56601 compile_mode="static"
56604 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
56605 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
56606 if test "$DIRECT_paffinity" = "$component" ; then
56607 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
56608 echo "${ECHO_T}$compile_mode - direct" >&6; }
56609 else
56610 { echo "$as_me:$LINENO: result: $compile_mode" >&5
56611 echo "${ECHO_T}$compile_mode" >&6; }
56615 if test "$should_build" = "1" ; then
56618 # Invoke configure in a specific subdirectory.
56620 # opal/mca/paffinity/$component is the directory to invoke in
56621 # $ompi_subdir_args is the list of arguments to pass
56622 # should_build=1 is actions to execute upon success
56623 # should_build=2 is actions to execute upon failure
56625 subdir_dir="opal/mca/paffinity/$component"
56626 subdir_args="$ompi_subdir_args"
56627 subdir_success="should_build=1"
56628 subdir_failure="should_build=2"
56631 # Sanity checks
56634 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
56635 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
56636 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
56639 # Gotta check where srcdir is for VPATH builds. If srcdir is not
56640 # ., then we need to mkdir the subdir. Otherwise, we can just cd
56641 # into it.
56644 case $srcdir in
56648 { case $subdir_dir in
56649 [\\/]* | ?:[\\/]* ) total_dir=;;
56650 *) total_dir=.;;
56651 esac
56652 temp=$subdir_dir
56653 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
56654 case $dir_part in
56655 # Skip DOS drivespec
56656 ?:) total_dir=$dir_part ;;
56657 *) total_dir=$total_dir/$dir_part
56658 test -d "$total_dir" ||
56659 mkdir "$total_dir" ||
56660 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
56661 echo "$as_me: error: cannot create $subdir_dir" >&2;}
56662 { (exit 1); exit 1; }; }
56664 esac
56665 done; }
56667 if test -d ./$subdir_dir; then :;
56668 else
56669 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
56670 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
56671 { (exit 1); exit 1; }; }
56674 esac
56677 # Move into the target directory
56680 subdir_parent=`pwd`
56681 cd $subdir_dir
56684 # Make a "../" for each directory in $subdir_dir.
56687 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
56689 # Construct the --srcdir argument
56692 case $srcdir in
56694 # In place
56695 subdir_srcdir="$srcdir"
56697 [\\/]* | ?:[\\/]* )
56698 # Absolute path
56699 subdir_srcdir="$srcdir/$subdir_dir"
56702 # Relative path
56703 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
56705 esac
56708 # Construct the --cache-file argument
56711 # BWB - subdir caching is a pain since we change CFLAGS and all that.
56712 # Just disable it for now
56713 subdir_cache_file="/dev/null"
56716 # Invoke the configure script in the subdirectory
56719 export CFLAGS CPPFLAGS
56720 export CXXFLAGS CXXCPPFLAGS
56721 export FFLAGS
56722 export LDFLAGS LIBS
56723 sub_configure="$SHELL '$subdir_srcdir/configure'"
56724 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
56725 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
56726 eval "$sub_configure $subdir_args \
56727 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
56728 if test "$?" = "0"; then
56729 eval $subdir_success
56730 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
56731 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
56732 else
56733 eval $subdir_failure
56734 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
56735 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
56739 # Go back to the topdir
56742 cd $subdir_parent
56746 # Clean up
56749 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
56750 unset subdir_args subdir_dots total_dir dir_part temp
56753 if test "$should_build" = "1" ; then
56755 project=opal
56756 framework=paffinity
56757 component=$component
56759 # See if it dropped an output file for us to pick up some
56760 # shell variables in.
56761 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
56763 # Add this subdir to the mast list of all MCA component subdirs
56764 all_components="$all_components $component"
56766 if test "$compile_mode" = "dso" ; then
56767 dso_components="$dso_components $component"
56768 else
56769 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
56770 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
56771 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
56772 static_components="$static_components $component"
56775 # Output pretty results
56776 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
56777 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
56778 { echo "$as_me:$LINENO: result: yes" >&5
56779 echo "${ECHO_T}yes" >&6; }
56781 # If there's an output file, add the values to
56782 # scope_EXTRA_flags.
56783 if test -f $infile; then
56785 # First check for the ABORT tag
56786 line="`grep ABORT= $infile | cut -d= -f2-`"
56787 if test -n "$line" -a "$line" != "no"; then
56788 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
56789 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
56790 { { echo "$as_me:$LINENO: error: cannot continue" >&5
56791 echo "$as_me: error: cannot continue" >&2;}
56792 { (exit 1); exit 1; }; }
56795 # Check for flags passed up from the component. If we're
56796 # compiling statically, then take all flags passed up from the
56797 # component.
56798 if test "$compile_mode" = "static"; then
56799 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
56800 eval "line=$line"
56801 if test -n "$line"; then
56802 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
56804 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
56805 eval "line=$line"
56806 if test -n "$line"; then
56807 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
56811 if test "$DIRECT_paffinity" = "$component" ; then
56812 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
56813 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
56814 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
56815 eval $str
56816 else
56817 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
56818 *** does not appear to support direct calling.
56819 *** Aborting" >&5
56820 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
56821 *** does not appear to support direct calling.
56822 *** Aborting" >&2;}
56823 { (exit 1); exit 1; }; }
56826 else
56827 # were we supposed to have found something in the
56828 # post_configure.sh, but the file didn't exist?
56829 if test "$DIRECT_paffinity" = "$component" ; then
56830 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
56831 *** does not appear to support direct calling.
56832 *** Aborting" >&5
56833 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
56834 *** does not appear to support direct calling.
56835 *** Aborting" >&2;}
56836 { (exit 1); exit 1; }; }
56840 # now add the flags that were set in the environment variables
56841 # framework_component_FOO (for example, the flags set by
56842 # m4_configure components)
56844 # Check for flags passed up from the component. If we're
56845 # compiling statically, then take all flags passed up from the
56846 # component.
56847 if test "$compile_mode" = "static"; then
56848 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
56849 eval "$str"
56850 if test -n "$line" ; then
56851 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
56853 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
56854 eval "$str"
56855 if test -n "$line" ; then
56856 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
56860 else
56862 { echo "$as_me:$LINENO: checking if MCA component paffinity:$component can compile" >&5
56863 echo $ECHO_N "checking if MCA component paffinity:$component can compile... $ECHO_C" >&6; }
56864 { echo "$as_me:$LINENO: result: no" >&5
56865 echo "${ECHO_T}no" >&6; }
56867 # If this component was requested as the default for this
56868 # type, then abort.
56869 if test "$with_paffinity" = "$component" ; then
56870 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
56871 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
56872 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
56873 echo "$as_me: WARNING: This component was selected as the default" >&2;}
56874 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
56875 echo "$as_me: error: Cannot continue" >&2;}
56876 { (exit 1); exit 1; }; }
56877 exit 1
56880 if test ! -z "$DIRECT_paffinity" ; then
56881 if test "$DIRECT_paffinity" = "$component" ; then
56882 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
56883 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
56884 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
56885 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
56886 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
56887 echo "$as_me: error: Cannot continue" >&2;}
56888 { (exit 1); exit 1; }; }
56889 exit 1
56895 done
56900 MCA_paffinity_ALL_COMPONENTS="$all_components"
56901 MCA_paffinity_STATIC_COMPONENTS="$static_components"
56902 MCA_paffinity_DSO_COMPONENTS="$dso_components"
56903 MCA_paffinity_STATIC_LTLIBS="$static_ltlibs"
56911 MCA_paffinity_ALL_SUBDIRS=
56912 for item in $all_components ; do
56913 MCA_paffinity_ALL_SUBDIRS="$MCA_paffinity_ALL_SUBDIRS mca/paffinity/$item"
56914 done
56918 MCA_paffinity_STATIC_SUBDIRS=
56919 for item in $static_components ; do
56920 MCA_paffinity_STATIC_SUBDIRS="$MCA_paffinity_STATIC_SUBDIRS mca/paffinity/$item"
56921 done
56925 MCA_paffinity_DSO_SUBDIRS=
56926 for item in $dso_components ; do
56927 MCA_paffinity_DSO_SUBDIRS="$MCA_paffinity_DSO_SUBDIRS mca/paffinity/$item"
56928 done
56932 # add all the makefiles for the framework to the CONFIG_FILES.
56933 # Don't add common/base, since it doesn't exist
56934 ac_config_files="$ac_config_files opal/mca/paffinity/Makefile"
56937 # Create the final .h file that will be included in the type's
56938 # top-level glue. This lists all the static components. We don't
56939 # need to do this for "common".
56940 if test "paffinity" != "common"; then
56941 cat > $outfile <<EOF
56943 * \$HEADER\$
56946 `cat $outfile.extern`
56948 const mca_base_component_t *mca_paffinity_base_static_components[] = {
56949 `cat $outfile.struct`
56950 NULL
56953 # Only replace the header file if a) it doesn't previously
56954 # exist, or b) the contents are different. Do this to not
56955 # trigger recompilation of certain .c files just because the
56956 # timestamp changed on $outfile_real (similar to the way AC
56957 # handles AC_CONFIG_HEADER files).
56958 diff $outfile $outfile_real > /dev/null 2>&1
56959 if test "$?" != "0"; then
56960 mv $outfile $outfile_real
56961 else
56962 rm -f $outfile
56965 rm -f $outfile.struct $outfile.extern
56967 unset all_components static_components dso_components outfile outfile_real
56968 # common has to go up front
56969 if test "timer" = "common" ; then
56970 MCA_opal_FRAMEWORKS="timer $MCA_opal_FRAMEWORKS"
56971 MCA_opal_FRAMEWORKS_SUBDIRS="mca/timer $MCA_opal_FRAMEWORKS_SUBDIRS"
56972 MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_timer_ALL_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
56973 MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_timer_DSO_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
56974 MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_timer_STATIC_SUBDIRS) $MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
56975 else
56976 MCA_opal_FRAMEWORKS="$MCA_opal_FRAMEWORKS timer"
56977 MCA_opal_FRAMEWORKS_SUBDIRS="$MCA_opal_FRAMEWORKS_SUBDIRS mca/timer"
56978 MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_timer_ALL_SUBDIRS)"
56979 MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_timer_DSO_SUBDIRS)"
56980 MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_timer_STATIC_SUBDIRS)"
56982 if test "timer" != "common" ; then
56983 MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS mca/timer/libmca_timer.la"
56985 MCA_opal_FRAMEWORK_LIBS="$MCA_opal_FRAMEWORK_LIBS \$(MCA_timer_STATIC_LTLIBS)"
56987 timer_base_include=
56989 # first, compile all the components
56991 ompi_show_subsubtitle "Configuring MCA framework timer"
56993 # setup for framework
56994 all_components=
56995 static_components=
56996 dso_components=
56997 static_ltlibs=
56999 # Ensure that the directory where the #include file is to live
57000 # exists. Need to do this for VPATH builds, because the directory
57001 # may not exist yet. For the "common" type, it's not really a
57002 # component, so it doesn't have a base.
57003 if test "timer" = "common" ; then
57004 outdir=opal/mca/common
57005 else
57006 outdir=opal/mca/timer/base
57008 { as_dir=$outdir
57009 case $as_dir in #(
57010 -*) as_dir=./$as_dir;;
57011 esac
57012 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
57013 as_dirs=
57014 while :; do
57015 case $as_dir in #(
57016 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
57017 *) as_qdir=$as_dir;;
57018 esac
57019 as_dirs="'$as_qdir' $as_dirs"
57020 as_dir=`$as_dirname -- "$as_dir" ||
57021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57022 X"$as_dir" : 'X\(//\)[^/]' \| \
57023 X"$as_dir" : 'X\(//\)$' \| \
57024 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57025 echo X"$as_dir" |
57026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57027 s//\1/
57030 /^X\(\/\/\)[^/].*/{
57031 s//\1/
57034 /^X\(\/\/\)$/{
57035 s//\1/
57038 /^X\(\/\).*/{
57039 s//\1/
57042 s/.*/./; q'`
57043 test -d "$as_dir" && break
57044 done
57045 test -z "$as_dirs" || eval "mkdir $as_dirs"
57046 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
57047 echo "$as_me: error: cannot create directory $as_dir" >&2;}
57048 { (exit 1); exit 1; }; }; }
57050 # remove any previously generated #include files
57051 outfile_real=$outdir/static-components.h
57052 outfile=$outfile_real.new
57053 rm -f $outfile $outfile.struct $outfile.extern
57054 touch $outfile.struct $outfile.extern
57056 # print some nice messages about what we're about to do...
57057 { echo "$as_me:$LINENO: checking for no configure components in framework timer" >&5
57058 echo $ECHO_N "checking for no configure components in framework timer... $ECHO_C" >&6; }
57059 { echo "$as_me:$LINENO: result: " >&5
57060 echo "${ECHO_T}" >&6; }
57061 { echo "$as_me:$LINENO: checking for m4 configure components in framework timer" >&5
57062 echo $ECHO_N "checking for m4 configure components in framework timer... $ECHO_C" >&6; }
57063 { echo "$as_me:$LINENO: result: aix, altix, darwin, solaris, windows, linux" >&5
57064 echo "${ECHO_T}aix, altix, darwin, solaris, windows, linux" >&6; }
57066 # if we only want the first successful component, set the variable
57067 # happy_value to 0 so we stop on first assignment. Otherwise, set
57068 # it to zero so that components_looking_for_succeed is always 1
57069 happy_value=0
57071 components_looking_for_succeed=1
57073 # configure components that don't have any component-specific
57074 # configuration. See comment in CONFIGURE_PROJECT about the
57075 # m4_ifval
57076 # if there isn't a component list, abort
57080 # configure components that use built-in configuration scripts
57081 # see comment in CONFIGURE_PROJECT about the m4_ifval
57082 # if there isn't a component list, abort
57085 ompi_show_subsubsubtitle "MCA component timer:aix (m4 configuration macro)"
57088 project=opal
57089 framework=timer
57090 component=aix
57091 component_path="$srcdir/$project/mca/$framework/$component"
57092 want_component=0
57094 # build if:
57095 # - the component type is direct and we are that component
57096 # - there is no ompi_ignore file
57097 # - there is an ompi_ignore, but there is an empty ompi_unignore
57098 # - there is an ompi_ignore, but username is in ompi_unignore
57099 if test -d $component_path ; then
57100 # decide if we want the component to be built or not. This
57101 # is spread out because some of the logic is a little complex
57102 # and test's syntax isn't exactly the greatest. We want to
57103 # build the component by default.
57104 want_component=1
57105 if test -f $component_path/.ompi_ignore ; then
57106 # If there is an ompi_ignore file, don't build
57107 # the component. Note that this decision can be
57108 # overriden by the unignore logic below.
57109 want_component=0
57111 if test -f $component_path/.ompi_unignore ; then
57112 # if there is an empty ompi_unignore, that is
57113 # equivalent to having your userid in the unignore file.
57114 # If userid is in the file, unignore the ignore file.
57115 if test ! -s $component_path/.ompi_unignore ; then
57116 want_component=1
57117 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
57118 want_component=1
57121 # if this component type is direct and we are not it, we don't want
57122 # to be built. Otherwise, we do want to be built.
57123 if test ! -z "$DIRECT_timer" ; then
57124 if test "$DIRECT_timer" = "$component" ; then
57125 want_component=1
57126 else
57127 want_component=0
57132 # if we were explicitly disabled, don't build :)
57133 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
57134 eval $str
57135 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
57136 want_component=0
57139 if test "$want_component" = "1"; then
57140 should_build=$components_looking_for_succeed
57141 else
57142 should_build=0
57146 # Allow the component to override the build mode if it really wants to.
57147 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
57149 { echo "$as_me:$LINENO: checking for MCA component timer:aix compile mode" >&5
57150 echo $ECHO_N "checking for MCA component timer:aix compile mode... $ECHO_C" >&6; }
57151 compile_mode="static"
57152 { echo "$as_me:$LINENO: result: $compile_mode" >&5
57153 echo "${ECHO_T}$compile_mode" >&6; }
57156 # try to configure the component. pay no attention to
57157 # --enable-dist, since we'll always have makefiles.
57158 if test "$should_build" = "1"; then
57161 # Check whether --with-timer was given.
57162 if test "${with_timer+set}" = set; then
57163 withval=$with_timer;
57167 if test "$with_timer" = "aix"; then
57168 timer_aix_happy="yes"
57169 timer_aix_should_use=1
57170 else
57171 timer_aix_should_use=0
57172 if test "$with_timer" = ""; then
57173 timer_aix_happy="yes"
57174 else
57175 timer_aix_happy="no"
57181 if test "$timer_aix_happy" = "yes"; then
57182 { echo "$as_me:$LINENO: checking for time_base_to_time" >&5
57183 echo $ECHO_N "checking for time_base_to_time... $ECHO_C" >&6; }
57184 if test "${ac_cv_func_time_base_to_time+set}" = set; then
57185 echo $ECHO_N "(cached) $ECHO_C" >&6
57186 else
57187 cat >conftest.$ac_ext <<_ACEOF
57188 /* confdefs.h. */
57189 _ACEOF
57190 cat confdefs.h >>conftest.$ac_ext
57191 cat >>conftest.$ac_ext <<_ACEOF
57192 /* end confdefs.h. */
57193 /* Define time_base_to_time to an innocuous variant, in case <limits.h> declares time_base_to_time.
57194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57195 #define time_base_to_time innocuous_time_base_to_time
57197 /* System header to define __stub macros and hopefully few prototypes,
57198 which can conflict with char time_base_to_time (); below.
57199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57200 <limits.h> exists even on freestanding compilers. */
57202 #ifdef __STDC__
57203 # include <limits.h>
57204 #else
57205 # include <assert.h>
57206 #endif
57208 #undef time_base_to_time
57210 /* Override any GCC internal prototype to avoid an error.
57211 Use char because int might match the return type of a GCC
57212 builtin and then its argument prototype would still apply. */
57213 #ifdef __cplusplus
57214 extern "C"
57215 #endif
57216 char time_base_to_time ();
57217 /* The GNU C library defines this for functions which it implements
57218 to always fail with ENOSYS. Some functions are actually named
57219 something starting with __ and the normal name is an alias. */
57220 #if defined __stub_time_base_to_time || defined __stub___time_base_to_time
57221 choke me
57222 #endif
57225 main ()
57227 return time_base_to_time ();
57229 return 0;
57231 _ACEOF
57232 rm -f conftest.$ac_objext conftest$ac_exeext
57233 if { (ac_try="$ac_link"
57234 case "(($ac_try" in
57235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57236 *) ac_try_echo=$ac_try;;
57237 esac
57238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57239 (eval "$ac_link") 2>conftest.er1
57240 ac_status=$?
57241 grep -v '^ *+' conftest.er1 >conftest.err
57242 rm -f conftest.er1
57243 cat conftest.err >&5
57244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57245 (exit $ac_status); } && {
57246 test -z "$ac_c_werror_flag" ||
57247 test ! -s conftest.err
57248 } && test -s conftest$ac_exeext &&
57249 $as_test_x conftest$ac_exeext; then
57250 ac_cv_func_time_base_to_time=yes
57251 else
57252 echo "$as_me: failed program was:" >&5
57253 sed 's/^/| /' conftest.$ac_ext >&5
57255 ac_cv_func_time_base_to_time=no
57258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57259 conftest$ac_exeext conftest.$ac_ext
57261 { echo "$as_me:$LINENO: result: $ac_cv_func_time_base_to_time" >&5
57262 echo "${ECHO_T}$ac_cv_func_time_base_to_time" >&6; }
57263 if test $ac_cv_func_time_base_to_time = yes; then
57264 timer_aix_happy="yes"
57265 else
57266 timer_aix_happy="no"
57272 # look to see if -lpmapi is available
57273 timer_aix_LIBS=
57274 timer_aix_LIBS_SAVE="$LIBS"
57275 if test "$timer_aix_happy" = "yes"; then
57276 { echo "$as_me:$LINENO: checking for pm_cycles in -lpmapi" >&5
57277 echo $ECHO_N "checking for pm_cycles in -lpmapi... $ECHO_C" >&6; }
57278 if test "${ac_cv_lib_pmapi_pm_cycles+set}" = set; then
57279 echo $ECHO_N "(cached) $ECHO_C" >&6
57280 else
57281 ac_check_lib_save_LIBS=$LIBS
57282 LIBS="-lpmapi $LIBS"
57283 cat >conftest.$ac_ext <<_ACEOF
57284 /* confdefs.h. */
57285 _ACEOF
57286 cat confdefs.h >>conftest.$ac_ext
57287 cat >>conftest.$ac_ext <<_ACEOF
57288 /* end confdefs.h. */
57290 /* Override any GCC internal prototype to avoid an error.
57291 Use char because int might match the return type of a GCC
57292 builtin and then its argument prototype would still apply. */
57293 #ifdef __cplusplus
57294 extern "C"
57295 #endif
57296 char pm_cycles ();
57298 main ()
57300 return pm_cycles ();
57302 return 0;
57304 _ACEOF
57305 rm -f conftest.$ac_objext conftest$ac_exeext
57306 if { (ac_try="$ac_link"
57307 case "(($ac_try" in
57308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57309 *) ac_try_echo=$ac_try;;
57310 esac
57311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57312 (eval "$ac_link") 2>conftest.er1
57313 ac_status=$?
57314 grep -v '^ *+' conftest.er1 >conftest.err
57315 rm -f conftest.er1
57316 cat conftest.err >&5
57317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57318 (exit $ac_status); } && {
57319 test -z "$ac_c_werror_flag" ||
57320 test ! -s conftest.err
57321 } && test -s conftest$ac_exeext &&
57322 $as_test_x conftest$ac_exeext; then
57323 ac_cv_lib_pmapi_pm_cycles=yes
57324 else
57325 echo "$as_me: failed program was:" >&5
57326 sed 's/^/| /' conftest.$ac_ext >&5
57328 ac_cv_lib_pmapi_pm_cycles=no
57331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57332 conftest$ac_exeext conftest.$ac_ext
57333 LIBS=$ac_check_lib_save_LIBS
57335 { echo "$as_me:$LINENO: result: $ac_cv_lib_pmapi_pm_cycles" >&5
57336 echo "${ECHO_T}$ac_cv_lib_pmapi_pm_cycles" >&6; }
57337 if test $ac_cv_lib_pmapi_pm_cycles = yes; then
57338 LIBS="$LIBS -lpmapi"
57339 timer_aix_LIBS="-lpmapi"
57340 else
57341 timer_aix_LIBS=""
57347 # get us a HAVE_PM_CYCLES #define
57348 if test "$timer_aix_happy" = "yes"; then
57350 for ac_func in pm_cycles
57352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57356 echo $ECHO_N "(cached) $ECHO_C" >&6
57357 else
57358 cat >conftest.$ac_ext <<_ACEOF
57359 /* confdefs.h. */
57360 _ACEOF
57361 cat confdefs.h >>conftest.$ac_ext
57362 cat >>conftest.$ac_ext <<_ACEOF
57363 /* end confdefs.h. */
57364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57366 #define $ac_func innocuous_$ac_func
57368 /* System header to define __stub macros and hopefully few prototypes,
57369 which can conflict with char $ac_func (); below.
57370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57371 <limits.h> exists even on freestanding compilers. */
57373 #ifdef __STDC__
57374 # include <limits.h>
57375 #else
57376 # include <assert.h>
57377 #endif
57379 #undef $ac_func
57381 /* Override any GCC internal prototype to avoid an error.
57382 Use char because int might match the return type of a GCC
57383 builtin and then its argument prototype would still apply. */
57384 #ifdef __cplusplus
57385 extern "C"
57386 #endif
57387 char $ac_func ();
57388 /* The GNU C library defines this for functions which it implements
57389 to always fail with ENOSYS. Some functions are actually named
57390 something starting with __ and the normal name is an alias. */
57391 #if defined __stub_$ac_func || defined __stub___$ac_func
57392 choke me
57393 #endif
57396 main ()
57398 return $ac_func ();
57400 return 0;
57402 _ACEOF
57403 rm -f conftest.$ac_objext conftest$ac_exeext
57404 if { (ac_try="$ac_link"
57405 case "(($ac_try" in
57406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57407 *) ac_try_echo=$ac_try;;
57408 esac
57409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57410 (eval "$ac_link") 2>conftest.er1
57411 ac_status=$?
57412 grep -v '^ *+' conftest.er1 >conftest.err
57413 rm -f conftest.er1
57414 cat conftest.err >&5
57415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57416 (exit $ac_status); } && {
57417 test -z "$ac_c_werror_flag" ||
57418 test ! -s conftest.err
57419 } && test -s conftest$ac_exeext &&
57420 $as_test_x conftest$ac_exeext; then
57421 eval "$as_ac_var=yes"
57422 else
57423 echo "$as_me: failed program was:" >&5
57424 sed 's/^/| /' conftest.$ac_ext >&5
57426 eval "$as_ac_var=no"
57429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57430 conftest$ac_exeext conftest.$ac_ext
57432 ac_res=`eval echo '${'$as_ac_var'}'`
57433 { echo "$as_me:$LINENO: result: $ac_res" >&5
57434 echo "${ECHO_T}$ac_res" >&6; }
57435 if test `eval echo '${'$as_ac_var'}'` = yes; then
57436 cat >>confdefs.h <<_ACEOF
57437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57438 _ACEOF
57441 done
57444 for ac_header in pmapi.h
57446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
57449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
57450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57451 echo $ECHO_N "(cached) $ECHO_C" >&6
57453 ac_res=`eval echo '${'$as_ac_Header'}'`
57454 { echo "$as_me:$LINENO: result: $ac_res" >&5
57455 echo "${ECHO_T}$ac_res" >&6; }
57456 else
57457 # Is the header compilable?
57458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
57459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
57460 cat >conftest.$ac_ext <<_ACEOF
57461 /* confdefs.h. */
57462 _ACEOF
57463 cat confdefs.h >>conftest.$ac_ext
57464 cat >>conftest.$ac_ext <<_ACEOF
57465 /* end confdefs.h. */
57466 $ac_includes_default
57467 #include <$ac_header>
57468 _ACEOF
57469 rm -f conftest.$ac_objext
57470 if { (ac_try="$ac_compile"
57471 case "(($ac_try" in
57472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57473 *) ac_try_echo=$ac_try;;
57474 esac
57475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57476 (eval "$ac_compile") 2>conftest.er1
57477 ac_status=$?
57478 grep -v '^ *+' conftest.er1 >conftest.err
57479 rm -f conftest.er1
57480 cat conftest.err >&5
57481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57482 (exit $ac_status); } && {
57483 test -z "$ac_c_werror_flag" ||
57484 test ! -s conftest.err
57485 } && test -s conftest.$ac_objext; then
57486 ac_header_compiler=yes
57487 else
57488 echo "$as_me: failed program was:" >&5
57489 sed 's/^/| /' conftest.$ac_ext >&5
57491 ac_header_compiler=no
57494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57496 echo "${ECHO_T}$ac_header_compiler" >&6; }
57498 # Is the header present?
57499 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
57500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
57501 cat >conftest.$ac_ext <<_ACEOF
57502 /* confdefs.h. */
57503 _ACEOF
57504 cat confdefs.h >>conftest.$ac_ext
57505 cat >>conftest.$ac_ext <<_ACEOF
57506 /* end confdefs.h. */
57507 #include <$ac_header>
57508 _ACEOF
57509 if { (ac_try="$ac_cpp conftest.$ac_ext"
57510 case "(($ac_try" in
57511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57512 *) ac_try_echo=$ac_try;;
57513 esac
57514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57516 ac_status=$?
57517 grep -v '^ *+' conftest.er1 >conftest.err
57518 rm -f conftest.er1
57519 cat conftest.err >&5
57520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57521 (exit $ac_status); } >/dev/null && {
57522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57523 test ! -s conftest.err
57524 }; then
57525 ac_header_preproc=yes
57526 else
57527 echo "$as_me: failed program was:" >&5
57528 sed 's/^/| /' conftest.$ac_ext >&5
57530 ac_header_preproc=no
57533 rm -f conftest.err conftest.$ac_ext
57534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57535 echo "${ECHO_T}$ac_header_preproc" >&6; }
57537 # So? What about this header?
57538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57539 yes:no: )
57540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57544 ac_header_preproc=yes
57546 no:yes:* )
57547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
57554 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
57555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57559 ( cat <<\_ASBOX
57560 ## ------------------------------------------------------ ##
57561 ## Report this to http://www.open-mpi.org/community/help/ ##
57562 ## ------------------------------------------------------ ##
57563 _ASBOX
57564 ) | sed "s/^/$as_me: WARNING: /" >&2
57566 esac
57567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
57568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
57569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57570 echo $ECHO_N "(cached) $ECHO_C" >&6
57571 else
57572 eval "$as_ac_Header=\$ac_header_preproc"
57574 ac_res=`eval echo '${'$as_ac_Header'}'`
57575 { echo "$as_me:$LINENO: result: $ac_res" >&5
57576 echo "${ECHO_T}$ac_res" >&6; }
57579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57580 cat >>confdefs.h <<_ACEOF
57581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57582 _ACEOF
57586 done
57590 LIBS="$timer_aix_LIBS_SAVE"
57592 if test "$timer_aix_happy" = "no" -a \
57593 "$timer_aix_should_use" = "1"; then
57594 { { echo "$as_me:$LINENO: error: AIX timer requested but not available. Aborting." >&5
57595 echo "$as_me: error: AIX timer requested but not available. Aborting." >&2;}
57596 { (exit 1); exit 1; }; }
57602 if test "$timer_aix_happy" = "yes"; then
57603 timer_aix_WRAPPER_EXTRA_LIBS="$timer_aix_LIBS"
57604 timer_base_include="aix/timer_aix.h"
57605 should_build=1
57606 else
57607 should_build=0
57614 if test "$should_build" = "1"; then
57616 project=opal
57617 framework=timer
57618 component=aix
57620 # See if it dropped an output file for us to pick up some
57621 # shell variables in.
57622 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
57624 # Add this subdir to the mast list of all MCA component subdirs
57625 all_components="$all_components $component"
57627 if test "$compile_mode" = "dso" ; then
57628 dso_components="$dso_components $component"
57629 else
57630 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
57631 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
57632 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
57633 static_components="$static_components $component"
57636 # Output pretty results
57637 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
57638 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
57639 { echo "$as_me:$LINENO: result: yes" >&5
57640 echo "${ECHO_T}yes" >&6; }
57642 # If there's an output file, add the values to
57643 # scope_EXTRA_flags.
57644 if test -f $infile; then
57646 # First check for the ABORT tag
57647 line="`grep ABORT= $infile | cut -d= -f2-`"
57648 if test -n "$line" -a "$line" != "no"; then
57649 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
57650 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
57651 { { echo "$as_me:$LINENO: error: cannot continue" >&5
57652 echo "$as_me: error: cannot continue" >&2;}
57653 { (exit 1); exit 1; }; }
57656 # Check for flags passed up from the component. If we're
57657 # compiling statically, then take all flags passed up from the
57658 # component.
57659 if test "$compile_mode" = "static"; then
57660 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
57661 eval "line=$line"
57662 if test -n "$line"; then
57663 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
57665 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
57666 eval "line=$line"
57667 if test -n "$line"; then
57668 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
57672 if test "$DIRECT_timer" = "$component" ; then
57673 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
57674 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
57675 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
57676 eval $str
57677 else
57678 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
57679 *** does not appear to support direct calling.
57680 *** Aborting" >&5
57681 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
57682 *** does not appear to support direct calling.
57683 *** Aborting" >&2;}
57684 { (exit 1); exit 1; }; }
57687 else
57688 # were we supposed to have found something in the
57689 # post_configure.sh, but the file didn't exist?
57690 if test "$DIRECT_timer" = "$component" ; then
57691 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
57692 *** does not appear to support direct calling.
57693 *** Aborting" >&5
57694 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
57695 *** does not appear to support direct calling.
57696 *** Aborting" >&2;}
57697 { (exit 1); exit 1; }; }
57701 # now add the flags that were set in the environment variables
57702 # framework_component_FOO (for example, the flags set by
57703 # m4_configure components)
57705 # Check for flags passed up from the component. If we're
57706 # compiling statically, then take all flags passed up from the
57707 # component.
57708 if test "$compile_mode" = "static"; then
57709 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
57710 eval "$str"
57711 if test -n "$line" ; then
57712 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
57714 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
57715 eval "$str"
57716 if test -n "$line" ; then
57717 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
57721 else
57723 { echo "$as_me:$LINENO: checking if MCA component timer:aix can compile" >&5
57724 echo $ECHO_N "checking if MCA component timer:aix can compile... $ECHO_C" >&6; }
57725 { echo "$as_me:$LINENO: result: no" >&5
57726 echo "${ECHO_T}no" >&6; }
57728 # If this component was requested as the default for this
57729 # type, then abort.
57730 if test "$with_timer" = "aix" ; then
57731 { echo "$as_me:$LINENO: WARNING: MCA component \"aix\" failed to configure properly" >&5
57732 echo "$as_me: WARNING: MCA component \"aix\" failed to configure properly" >&2;}
57733 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
57734 echo "$as_me: WARNING: This component was selected as the default" >&2;}
57735 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
57736 echo "$as_me: error: Cannot continue" >&2;}
57737 { (exit 1); exit 1; }; }
57738 exit 1
57741 if test ! -z "$DIRECT_timer" ; then
57742 if test "$DIRECT_timer" = "aix" ; then
57743 { echo "$as_me:$LINENO: WARNING: MCA component \"aix\" failed to configure properly" >&5
57744 echo "$as_me: WARNING: MCA component \"aix\" failed to configure properly" >&2;}
57745 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
57746 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
57747 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
57748 echo "$as_me: error: Cannot continue" >&2;}
57749 { (exit 1); exit 1; }; }
57750 exit 1
57754 # add component to all component list
57755 all_components="$all_components aix"
57759 # set the AM_CONDITIONAL on how we should build
57760 if test "$compile_mode" = "dso"; then
57761 BUILD_timer_aix_DSO=1
57762 else
57763 BUILD_timer_aix_DSO=0
57768 if test "$BUILD_timer_aix_DSO" = "1"; then
57769 OMPI_BUILD_timer_aix_DSO_TRUE=
57770 OMPI_BUILD_timer_aix_DSO_FALSE='#'
57771 else
57772 OMPI_BUILD_timer_aix_DSO_TRUE='#'
57773 OMPI_BUILD_timer_aix_DSO_FALSE=
57777 if test "$should_build" = "1"; then
57778 components_looking_for_succeed="$happy_value"
57782 unset compile_mode
57784 ompi_show_subsubsubtitle "MCA component timer:altix (m4 configuration macro)"
57787 project=opal
57788 framework=timer
57789 component=altix
57790 component_path="$srcdir/$project/mca/$framework/$component"
57791 want_component=0
57793 # build if:
57794 # - the component type is direct and we are that component
57795 # - there is no ompi_ignore file
57796 # - there is an ompi_ignore, but there is an empty ompi_unignore
57797 # - there is an ompi_ignore, but username is in ompi_unignore
57798 if test -d $component_path ; then
57799 # decide if we want the component to be built or not. This
57800 # is spread out because some of the logic is a little complex
57801 # and test's syntax isn't exactly the greatest. We want to
57802 # build the component by default.
57803 want_component=1
57804 if test -f $component_path/.ompi_ignore ; then
57805 # If there is an ompi_ignore file, don't build
57806 # the component. Note that this decision can be
57807 # overriden by the unignore logic below.
57808 want_component=0
57810 if test -f $component_path/.ompi_unignore ; then
57811 # if there is an empty ompi_unignore, that is
57812 # equivalent to having your userid in the unignore file.
57813 # If userid is in the file, unignore the ignore file.
57814 if test ! -s $component_path/.ompi_unignore ; then
57815 want_component=1
57816 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
57817 want_component=1
57820 # if this component type is direct and we are not it, we don't want
57821 # to be built. Otherwise, we do want to be built.
57822 if test ! -z "$DIRECT_timer" ; then
57823 if test "$DIRECT_timer" = "$component" ; then
57824 want_component=1
57825 else
57826 want_component=0
57831 # if we were explicitly disabled, don't build :)
57832 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
57833 eval $str
57834 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
57835 want_component=0
57838 if test "$want_component" = "1"; then
57839 should_build=$components_looking_for_succeed
57840 else
57841 should_build=0
57845 # Allow the component to override the build mode if it really wants to.
57846 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
57848 { echo "$as_me:$LINENO: checking for MCA component timer:altix compile mode" >&5
57849 echo $ECHO_N "checking for MCA component timer:altix compile mode... $ECHO_C" >&6; }
57850 compile_mode="static"
57851 { echo "$as_me:$LINENO: result: $compile_mode" >&5
57852 echo "${ECHO_T}$compile_mode" >&6; }
57855 # try to configure the component. pay no attention to
57856 # --enable-dist, since we'll always have makefiles.
57857 if test "$should_build" = "1"; then
57860 # Check whether --with-timer was given.
57861 if test "${with_timer+set}" = set; then
57862 withval=$with_timer;
57866 if test "$with_timer" = "altix"; then
57867 timer_altix_happy="yes"
57868 timer_altix_should_use=1
57869 else
57870 timer_altix_should_use=0
57871 if test "$with_timer" = ""; then
57872 timer_altix_happy="yes"
57873 else
57874 timer_altix_happy="no"
57880 if test "$timer_altix_happy" = "yes"; then
57881 if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then
57882 { echo "$as_me:$LINENO: checking for sn/mmtimer.h" >&5
57883 echo $ECHO_N "checking for sn/mmtimer.h... $ECHO_C" >&6; }
57884 if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then
57885 echo $ECHO_N "(cached) $ECHO_C" >&6
57887 { echo "$as_me:$LINENO: result: $ac_cv_header_sn_mmtimer_h" >&5
57888 echo "${ECHO_T}$ac_cv_header_sn_mmtimer_h" >&6; }
57889 else
57890 # Is the header compilable?
57891 { echo "$as_me:$LINENO: checking sn/mmtimer.h usability" >&5
57892 echo $ECHO_N "checking sn/mmtimer.h usability... $ECHO_C" >&6; }
57893 cat >conftest.$ac_ext <<_ACEOF
57894 /* confdefs.h. */
57895 _ACEOF
57896 cat confdefs.h >>conftest.$ac_ext
57897 cat >>conftest.$ac_ext <<_ACEOF
57898 /* end confdefs.h. */
57899 $ac_includes_default
57900 #include <sn/mmtimer.h>
57901 _ACEOF
57902 rm -f conftest.$ac_objext
57903 if { (ac_try="$ac_compile"
57904 case "(($ac_try" in
57905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57906 *) ac_try_echo=$ac_try;;
57907 esac
57908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57909 (eval "$ac_compile") 2>conftest.er1
57910 ac_status=$?
57911 grep -v '^ *+' conftest.er1 >conftest.err
57912 rm -f conftest.er1
57913 cat conftest.err >&5
57914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57915 (exit $ac_status); } && {
57916 test -z "$ac_c_werror_flag" ||
57917 test ! -s conftest.err
57918 } && test -s conftest.$ac_objext; then
57919 ac_header_compiler=yes
57920 else
57921 echo "$as_me: failed program was:" >&5
57922 sed 's/^/| /' conftest.$ac_ext >&5
57924 ac_header_compiler=no
57927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57929 echo "${ECHO_T}$ac_header_compiler" >&6; }
57931 # Is the header present?
57932 { echo "$as_me:$LINENO: checking sn/mmtimer.h presence" >&5
57933 echo $ECHO_N "checking sn/mmtimer.h presence... $ECHO_C" >&6; }
57934 cat >conftest.$ac_ext <<_ACEOF
57935 /* confdefs.h. */
57936 _ACEOF
57937 cat confdefs.h >>conftest.$ac_ext
57938 cat >>conftest.$ac_ext <<_ACEOF
57939 /* end confdefs.h. */
57940 #include <sn/mmtimer.h>
57941 _ACEOF
57942 if { (ac_try="$ac_cpp conftest.$ac_ext"
57943 case "(($ac_try" in
57944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57945 *) ac_try_echo=$ac_try;;
57946 esac
57947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57949 ac_status=$?
57950 grep -v '^ *+' conftest.er1 >conftest.err
57951 rm -f conftest.er1
57952 cat conftest.err >&5
57953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57954 (exit $ac_status); } >/dev/null && {
57955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57956 test ! -s conftest.err
57957 }; then
57958 ac_header_preproc=yes
57959 else
57960 echo "$as_me: failed program was:" >&5
57961 sed 's/^/| /' conftest.$ac_ext >&5
57963 ac_header_preproc=no
57966 rm -f conftest.err conftest.$ac_ext
57967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57968 echo "${ECHO_T}$ac_header_preproc" >&6; }
57970 # So? What about this header?
57971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57972 yes:no: )
57973 { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: accepted by the compiler, rejected by the preprocessor!" >&5
57974 echo "$as_me: WARNING: sn/mmtimer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57975 { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: proceeding with the compiler's result" >&5
57976 echo "$as_me: WARNING: sn/mmtimer.h: proceeding with the compiler's result" >&2;}
57977 ac_header_preproc=yes
57979 no:yes:* )
57980 { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: present but cannot be compiled" >&5
57981 echo "$as_me: WARNING: sn/mmtimer.h: present but cannot be compiled" >&2;}
57982 { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: check for missing prerequisite headers?" >&5
57983 echo "$as_me: WARNING: sn/mmtimer.h: check for missing prerequisite headers?" >&2;}
57984 { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: see the Autoconf documentation" >&5
57985 echo "$as_me: WARNING: sn/mmtimer.h: see the Autoconf documentation" >&2;}
57986 { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: section \"Present But Cannot Be Compiled\"" >&5
57987 echo "$as_me: WARNING: sn/mmtimer.h: section \"Present But Cannot Be Compiled\"" >&2;}
57988 { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: proceeding with the preprocessor's result" >&5
57989 echo "$as_me: WARNING: sn/mmtimer.h: proceeding with the preprocessor's result" >&2;}
57990 { echo "$as_me:$LINENO: WARNING: sn/mmtimer.h: in the future, the compiler will take precedence" >&5
57991 echo "$as_me: WARNING: sn/mmtimer.h: in the future, the compiler will take precedence" >&2;}
57992 ( cat <<\_ASBOX
57993 ## ------------------------------------------------------ ##
57994 ## Report this to http://www.open-mpi.org/community/help/ ##
57995 ## ------------------------------------------------------ ##
57996 _ASBOX
57997 ) | sed "s/^/$as_me: WARNING: /" >&2
57999 esac
58000 { echo "$as_me:$LINENO: checking for sn/mmtimer.h" >&5
58001 echo $ECHO_N "checking for sn/mmtimer.h... $ECHO_C" >&6; }
58002 if test "${ac_cv_header_sn_mmtimer_h+set}" = set; then
58003 echo $ECHO_N "(cached) $ECHO_C" >&6
58004 else
58005 ac_cv_header_sn_mmtimer_h=$ac_header_preproc
58007 { echo "$as_me:$LINENO: result: $ac_cv_header_sn_mmtimer_h" >&5
58008 echo "${ECHO_T}$ac_cv_header_sn_mmtimer_h" >&6; }
58011 if test $ac_cv_header_sn_mmtimer_h = yes; then
58012 timer_altix_happy="yes"
58013 else
58014 timer_altix_happy="no"
58021 if test "$timer_altix_happy" = "yes"; then
58024 for ac_header in sys/ioctl.h sys/mman.h
58026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
58029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
58030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58031 echo $ECHO_N "(cached) $ECHO_C" >&6
58033 ac_res=`eval echo '${'$as_ac_Header'}'`
58034 { echo "$as_me:$LINENO: result: $ac_res" >&5
58035 echo "${ECHO_T}$ac_res" >&6; }
58036 else
58037 # Is the header compilable?
58038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
58039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
58040 cat >conftest.$ac_ext <<_ACEOF
58041 /* confdefs.h. */
58042 _ACEOF
58043 cat confdefs.h >>conftest.$ac_ext
58044 cat >>conftest.$ac_ext <<_ACEOF
58045 /* end confdefs.h. */
58046 $ac_includes_default
58047 #include <$ac_header>
58048 _ACEOF
58049 rm -f conftest.$ac_objext
58050 if { (ac_try="$ac_compile"
58051 case "(($ac_try" in
58052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58053 *) ac_try_echo=$ac_try;;
58054 esac
58055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58056 (eval "$ac_compile") 2>conftest.er1
58057 ac_status=$?
58058 grep -v '^ *+' conftest.er1 >conftest.err
58059 rm -f conftest.er1
58060 cat conftest.err >&5
58061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58062 (exit $ac_status); } && {
58063 test -z "$ac_c_werror_flag" ||
58064 test ! -s conftest.err
58065 } && test -s conftest.$ac_objext; then
58066 ac_header_compiler=yes
58067 else
58068 echo "$as_me: failed program was:" >&5
58069 sed 's/^/| /' conftest.$ac_ext >&5
58071 ac_header_compiler=no
58074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58076 echo "${ECHO_T}$ac_header_compiler" >&6; }
58078 # Is the header present?
58079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
58080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
58081 cat >conftest.$ac_ext <<_ACEOF
58082 /* confdefs.h. */
58083 _ACEOF
58084 cat confdefs.h >>conftest.$ac_ext
58085 cat >>conftest.$ac_ext <<_ACEOF
58086 /* end confdefs.h. */
58087 #include <$ac_header>
58088 _ACEOF
58089 if { (ac_try="$ac_cpp conftest.$ac_ext"
58090 case "(($ac_try" in
58091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58092 *) ac_try_echo=$ac_try;;
58093 esac
58094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
58096 ac_status=$?
58097 grep -v '^ *+' conftest.er1 >conftest.err
58098 rm -f conftest.er1
58099 cat conftest.err >&5
58100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58101 (exit $ac_status); } >/dev/null && {
58102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
58103 test ! -s conftest.err
58104 }; then
58105 ac_header_preproc=yes
58106 else
58107 echo "$as_me: failed program was:" >&5
58108 sed 's/^/| /' conftest.$ac_ext >&5
58110 ac_header_preproc=no
58113 rm -f conftest.err conftest.$ac_ext
58114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58115 echo "${ECHO_T}$ac_header_preproc" >&6; }
58117 # So? What about this header?
58118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58119 yes:no: )
58120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58124 ac_header_preproc=yes
58126 no:yes:* )
58127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
58134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
58135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58139 ( cat <<\_ASBOX
58140 ## ------------------------------------------------------ ##
58141 ## Report this to http://www.open-mpi.org/community/help/ ##
58142 ## ------------------------------------------------------ ##
58143 _ASBOX
58144 ) | sed "s/^/$as_me: WARNING: /" >&2
58146 esac
58147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
58148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
58149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58150 echo $ECHO_N "(cached) $ECHO_C" >&6
58151 else
58152 eval "$as_ac_Header=\$ac_header_preproc"
58154 ac_res=`eval echo '${'$as_ac_Header'}'`
58155 { echo "$as_me:$LINENO: result: $ac_res" >&5
58156 echo "${ECHO_T}$ac_res" >&6; }
58159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58160 cat >>confdefs.h <<_ACEOF
58161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58162 _ACEOF
58166 done
58171 if test "$timer_altix_happy" = "yes"; then
58172 { echo "$as_me:$LINENO: checking if MM timer can be opened" >&5
58173 echo $ECHO_N "checking if MM timer can be opened... $ECHO_C" >&6; }
58174 if test "${ompi_cv_mm_timer_mmap+set}" = set; then
58175 echo $ECHO_N "(cached) $ECHO_C" >&6
58176 else
58177 cat >conftest.$ac_ext <<_ACEOF
58178 /* confdefs.h. */
58179 _ACEOF
58180 cat confdefs.h >>conftest.$ac_ext
58181 cat >>conftest.$ac_ext <<_ACEOF
58182 /* end confdefs.h. */
58184 #include <sys/types.h>
58185 #include <sys/stat.h>
58186 #include <fcntl.h>
58187 #include <sys/ioctl.h>
58188 #include <sys/mman.h>
58189 #include <sn/mmtimer.h>
58192 main ()
58195 int fd;
58196 fd = open(MMTIMER_FULLNAME, O_RDONLY);
58197 if (-1 ==fd) return 1;
58199 return 0;
58201 _ACEOF
58202 rm -f conftest.$ac_objext
58203 if { (ac_try="$ac_compile"
58204 case "(($ac_try" in
58205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58206 *) ac_try_echo=$ac_try;;
58207 esac
58208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58209 (eval "$ac_compile") 2>conftest.er1
58210 ac_status=$?
58211 grep -v '^ *+' conftest.er1 >conftest.err
58212 rm -f conftest.er1
58213 cat conftest.err >&5
58214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58215 (exit $ac_status); } && {
58216 test -z "$ac_c_werror_flag" ||
58217 test ! -s conftest.err
58218 } && test -s conftest.$ac_objext; then
58219 ompi_cv_mm_timer_mmap="yes"
58220 else
58221 echo "$as_me: failed program was:" >&5
58222 sed 's/^/| /' conftest.$ac_ext >&5
58224 ompi_cv_mm_timer_mmap="no"
58227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58229 { echo "$as_me:$LINENO: result: $ompi_cv_mm_timer_mmap" >&5
58230 echo "${ECHO_T}$ompi_cv_mm_timer_mmap" >&6; }
58231 if test "$ompi_cv_mm_timer_mmap" = "yes"; then
58232 timer_altix_happy="yes"
58233 else
58234 timer_altix_happy="no"
58240 if test "$timer_altix_happy" = "no" -a \
58241 "$timer_altix_should_use" = "1"; then
58242 { { echo "$as_me:$LINENO: error: Altix timer requested but not available. Aborting." >&5
58243 echo "$as_me: error: Altix timer requested but not available. Aborting." >&2;}
58244 { (exit 1); exit 1; }; }
58248 if test "$timer_altix_happy" = "yes"; then
58249 timer_base_include="altix/timer_altix.h"
58250 should_build=1
58251 else
58252 should_build=0
58259 if test "$should_build" = "1"; then
58261 project=opal
58262 framework=timer
58263 component=altix
58265 # See if it dropped an output file for us to pick up some
58266 # shell variables in.
58267 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
58269 # Add this subdir to the mast list of all MCA component subdirs
58270 all_components="$all_components $component"
58272 if test "$compile_mode" = "dso" ; then
58273 dso_components="$dso_components $component"
58274 else
58275 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
58276 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
58277 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
58278 static_components="$static_components $component"
58281 # Output pretty results
58282 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
58283 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
58284 { echo "$as_me:$LINENO: result: yes" >&5
58285 echo "${ECHO_T}yes" >&6; }
58287 # If there's an output file, add the values to
58288 # scope_EXTRA_flags.
58289 if test -f $infile; then
58291 # First check for the ABORT tag
58292 line="`grep ABORT= $infile | cut -d= -f2-`"
58293 if test -n "$line" -a "$line" != "no"; then
58294 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
58295 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
58296 { { echo "$as_me:$LINENO: error: cannot continue" >&5
58297 echo "$as_me: error: cannot continue" >&2;}
58298 { (exit 1); exit 1; }; }
58301 # Check for flags passed up from the component. If we're
58302 # compiling statically, then take all flags passed up from the
58303 # component.
58304 if test "$compile_mode" = "static"; then
58305 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
58306 eval "line=$line"
58307 if test -n "$line"; then
58308 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
58310 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
58311 eval "line=$line"
58312 if test -n "$line"; then
58313 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
58317 if test "$DIRECT_timer" = "$component" ; then
58318 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
58319 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
58320 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
58321 eval $str
58322 else
58323 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
58324 *** does not appear to support direct calling.
58325 *** Aborting" >&5
58326 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
58327 *** does not appear to support direct calling.
58328 *** Aborting" >&2;}
58329 { (exit 1); exit 1; }; }
58332 else
58333 # were we supposed to have found something in the
58334 # post_configure.sh, but the file didn't exist?
58335 if test "$DIRECT_timer" = "$component" ; then
58336 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
58337 *** does not appear to support direct calling.
58338 *** Aborting" >&5
58339 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
58340 *** does not appear to support direct calling.
58341 *** Aborting" >&2;}
58342 { (exit 1); exit 1; }; }
58346 # now add the flags that were set in the environment variables
58347 # framework_component_FOO (for example, the flags set by
58348 # m4_configure components)
58350 # Check for flags passed up from the component. If we're
58351 # compiling statically, then take all flags passed up from the
58352 # component.
58353 if test "$compile_mode" = "static"; then
58354 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
58355 eval "$str"
58356 if test -n "$line" ; then
58357 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
58359 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
58360 eval "$str"
58361 if test -n "$line" ; then
58362 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
58366 else
58368 { echo "$as_me:$LINENO: checking if MCA component timer:altix can compile" >&5
58369 echo $ECHO_N "checking if MCA component timer:altix can compile... $ECHO_C" >&6; }
58370 { echo "$as_me:$LINENO: result: no" >&5
58371 echo "${ECHO_T}no" >&6; }
58373 # If this component was requested as the default for this
58374 # type, then abort.
58375 if test "$with_timer" = "altix" ; then
58376 { echo "$as_me:$LINENO: WARNING: MCA component \"altix\" failed to configure properly" >&5
58377 echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;}
58378 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
58379 echo "$as_me: WARNING: This component was selected as the default" >&2;}
58380 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
58381 echo "$as_me: error: Cannot continue" >&2;}
58382 { (exit 1); exit 1; }; }
58383 exit 1
58386 if test ! -z "$DIRECT_timer" ; then
58387 if test "$DIRECT_timer" = "altix" ; then
58388 { echo "$as_me:$LINENO: WARNING: MCA component \"altix\" failed to configure properly" >&5
58389 echo "$as_me: WARNING: MCA component \"altix\" failed to configure properly" >&2;}
58390 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
58391 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
58392 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
58393 echo "$as_me: error: Cannot continue" >&2;}
58394 { (exit 1); exit 1; }; }
58395 exit 1
58399 # add component to all component list
58400 all_components="$all_components altix"
58404 # set the AM_CONDITIONAL on how we should build
58405 if test "$compile_mode" = "dso"; then
58406 BUILD_timer_altix_DSO=1
58407 else
58408 BUILD_timer_altix_DSO=0
58413 if test "$BUILD_timer_altix_DSO" = "1"; then
58414 OMPI_BUILD_timer_altix_DSO_TRUE=
58415 OMPI_BUILD_timer_altix_DSO_FALSE='#'
58416 else
58417 OMPI_BUILD_timer_altix_DSO_TRUE='#'
58418 OMPI_BUILD_timer_altix_DSO_FALSE=
58422 if test "$should_build" = "1"; then
58423 components_looking_for_succeed="$happy_value"
58427 unset compile_mode
58429 ompi_show_subsubsubtitle "MCA component timer:darwin (m4 configuration macro)"
58432 project=opal
58433 framework=timer
58434 component=darwin
58435 component_path="$srcdir/$project/mca/$framework/$component"
58436 want_component=0
58438 # build if:
58439 # - the component type is direct and we are that component
58440 # - there is no ompi_ignore file
58441 # - there is an ompi_ignore, but there is an empty ompi_unignore
58442 # - there is an ompi_ignore, but username is in ompi_unignore
58443 if test -d $component_path ; then
58444 # decide if we want the component to be built or not. This
58445 # is spread out because some of the logic is a little complex
58446 # and test's syntax isn't exactly the greatest. We want to
58447 # build the component by default.
58448 want_component=1
58449 if test -f $component_path/.ompi_ignore ; then
58450 # If there is an ompi_ignore file, don't build
58451 # the component. Note that this decision can be
58452 # overriden by the unignore logic below.
58453 want_component=0
58455 if test -f $component_path/.ompi_unignore ; then
58456 # if there is an empty ompi_unignore, that is
58457 # equivalent to having your userid in the unignore file.
58458 # If userid is in the file, unignore the ignore file.
58459 if test ! -s $component_path/.ompi_unignore ; then
58460 want_component=1
58461 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
58462 want_component=1
58465 # if this component type is direct and we are not it, we don't want
58466 # to be built. Otherwise, we do want to be built.
58467 if test ! -z "$DIRECT_timer" ; then
58468 if test "$DIRECT_timer" = "$component" ; then
58469 want_component=1
58470 else
58471 want_component=0
58476 # if we were explicitly disabled, don't build :)
58477 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
58478 eval $str
58479 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
58480 want_component=0
58483 if test "$want_component" = "1"; then
58484 should_build=$components_looking_for_succeed
58485 else
58486 should_build=0
58490 # Allow the component to override the build mode if it really wants to.
58491 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
58493 { echo "$as_me:$LINENO: checking for MCA component timer:darwin compile mode" >&5
58494 echo $ECHO_N "checking for MCA component timer:darwin compile mode... $ECHO_C" >&6; }
58495 compile_mode="static"
58496 { echo "$as_me:$LINENO: result: $compile_mode" >&5
58497 echo "${ECHO_T}$compile_mode" >&6; }
58500 # try to configure the component. pay no attention to
58501 # --enable-dist, since we'll always have makefiles.
58502 if test "$should_build" = "1"; then
58505 # Check whether --with-timer was given.
58506 if test "${with_timer+set}" = set; then
58507 withval=$with_timer;
58511 if test "$with_timer" = "darwin"; then
58512 timer_darwin_happy="yes"
58513 timer_darwin_should_use=1
58514 else
58515 timer_darwin_should_use=0
58516 if test "$with_timer" = ""; then
58517 timer_darwin_happy="yes"
58518 else
58519 timer_darwin_happy="no"
58525 if test "$timer_darwin_happy" = "yes"; then
58527 for ac_header in mach/mach_time.h
58529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
58532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
58533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58534 echo $ECHO_N "(cached) $ECHO_C" >&6
58536 ac_res=`eval echo '${'$as_ac_Header'}'`
58537 { echo "$as_me:$LINENO: result: $ac_res" >&5
58538 echo "${ECHO_T}$ac_res" >&6; }
58539 else
58540 # Is the header compilable?
58541 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
58542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
58543 cat >conftest.$ac_ext <<_ACEOF
58544 /* confdefs.h. */
58545 _ACEOF
58546 cat confdefs.h >>conftest.$ac_ext
58547 cat >>conftest.$ac_ext <<_ACEOF
58548 /* end confdefs.h. */
58549 $ac_includes_default
58550 #include <$ac_header>
58551 _ACEOF
58552 rm -f conftest.$ac_objext
58553 if { (ac_try="$ac_compile"
58554 case "(($ac_try" in
58555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58556 *) ac_try_echo=$ac_try;;
58557 esac
58558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58559 (eval "$ac_compile") 2>conftest.er1
58560 ac_status=$?
58561 grep -v '^ *+' conftest.er1 >conftest.err
58562 rm -f conftest.er1
58563 cat conftest.err >&5
58564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58565 (exit $ac_status); } && {
58566 test -z "$ac_c_werror_flag" ||
58567 test ! -s conftest.err
58568 } && test -s conftest.$ac_objext; then
58569 ac_header_compiler=yes
58570 else
58571 echo "$as_me: failed program was:" >&5
58572 sed 's/^/| /' conftest.$ac_ext >&5
58574 ac_header_compiler=no
58577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58579 echo "${ECHO_T}$ac_header_compiler" >&6; }
58581 # Is the header present?
58582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
58583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
58584 cat >conftest.$ac_ext <<_ACEOF
58585 /* confdefs.h. */
58586 _ACEOF
58587 cat confdefs.h >>conftest.$ac_ext
58588 cat >>conftest.$ac_ext <<_ACEOF
58589 /* end confdefs.h. */
58590 #include <$ac_header>
58591 _ACEOF
58592 if { (ac_try="$ac_cpp conftest.$ac_ext"
58593 case "(($ac_try" in
58594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58595 *) ac_try_echo=$ac_try;;
58596 esac
58597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
58599 ac_status=$?
58600 grep -v '^ *+' conftest.er1 >conftest.err
58601 rm -f conftest.er1
58602 cat conftest.err >&5
58603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58604 (exit $ac_status); } >/dev/null && {
58605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
58606 test ! -s conftest.err
58607 }; then
58608 ac_header_preproc=yes
58609 else
58610 echo "$as_me: failed program was:" >&5
58611 sed 's/^/| /' conftest.$ac_ext >&5
58613 ac_header_preproc=no
58616 rm -f conftest.err conftest.$ac_ext
58617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58618 echo "${ECHO_T}$ac_header_preproc" >&6; }
58620 # So? What about this header?
58621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58622 yes:no: )
58623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58627 ac_header_preproc=yes
58629 no:yes:* )
58630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
58637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
58638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58642 ( cat <<\_ASBOX
58643 ## ------------------------------------------------------ ##
58644 ## Report this to http://www.open-mpi.org/community/help/ ##
58645 ## ------------------------------------------------------ ##
58646 _ASBOX
58647 ) | sed "s/^/$as_me: WARNING: /" >&2
58649 esac
58650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
58651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
58652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58653 echo $ECHO_N "(cached) $ECHO_C" >&6
58654 else
58655 eval "$as_ac_Header=\$ac_header_preproc"
58657 ac_res=`eval echo '${'$as_ac_Header'}'`
58658 { echo "$as_me:$LINENO: result: $ac_res" >&5
58659 echo "${ECHO_T}$ac_res" >&6; }
58662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58663 cat >>confdefs.h <<_ACEOF
58664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58665 _ACEOF
58669 done
58671 { echo "$as_me:$LINENO: checking for mach_absolute_time" >&5
58672 echo $ECHO_N "checking for mach_absolute_time... $ECHO_C" >&6; }
58673 if test "${ac_cv_func_mach_absolute_time+set}" = set; then
58674 echo $ECHO_N "(cached) $ECHO_C" >&6
58675 else
58676 cat >conftest.$ac_ext <<_ACEOF
58677 /* confdefs.h. */
58678 _ACEOF
58679 cat confdefs.h >>conftest.$ac_ext
58680 cat >>conftest.$ac_ext <<_ACEOF
58681 /* end confdefs.h. */
58682 /* Define mach_absolute_time to an innocuous variant, in case <limits.h> declares mach_absolute_time.
58683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58684 #define mach_absolute_time innocuous_mach_absolute_time
58686 /* System header to define __stub macros and hopefully few prototypes,
58687 which can conflict with char mach_absolute_time (); below.
58688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58689 <limits.h> exists even on freestanding compilers. */
58691 #ifdef __STDC__
58692 # include <limits.h>
58693 #else
58694 # include <assert.h>
58695 #endif
58697 #undef mach_absolute_time
58699 /* Override any GCC internal prototype to avoid an error.
58700 Use char because int might match the return type of a GCC
58701 builtin and then its argument prototype would still apply. */
58702 #ifdef __cplusplus
58703 extern "C"
58704 #endif
58705 char mach_absolute_time ();
58706 /* The GNU C library defines this for functions which it implements
58707 to always fail with ENOSYS. Some functions are actually named
58708 something starting with __ and the normal name is an alias. */
58709 #if defined __stub_mach_absolute_time || defined __stub___mach_absolute_time
58710 choke me
58711 #endif
58714 main ()
58716 return mach_absolute_time ();
58718 return 0;
58720 _ACEOF
58721 rm -f conftest.$ac_objext conftest$ac_exeext
58722 if { (ac_try="$ac_link"
58723 case "(($ac_try" in
58724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58725 *) ac_try_echo=$ac_try;;
58726 esac
58727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58728 (eval "$ac_link") 2>conftest.er1
58729 ac_status=$?
58730 grep -v '^ *+' conftest.er1 >conftest.err
58731 rm -f conftest.er1
58732 cat conftest.err >&5
58733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58734 (exit $ac_status); } && {
58735 test -z "$ac_c_werror_flag" ||
58736 test ! -s conftest.err
58737 } && test -s conftest$ac_exeext &&
58738 $as_test_x conftest$ac_exeext; then
58739 ac_cv_func_mach_absolute_time=yes
58740 else
58741 echo "$as_me: failed program was:" >&5
58742 sed 's/^/| /' conftest.$ac_ext >&5
58744 ac_cv_func_mach_absolute_time=no
58747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58748 conftest$ac_exeext conftest.$ac_ext
58750 { echo "$as_me:$LINENO: result: $ac_cv_func_mach_absolute_time" >&5
58751 echo "${ECHO_T}$ac_cv_func_mach_absolute_time" >&6; }
58752 if test $ac_cv_func_mach_absolute_time = yes; then
58753 timer_darwin_happy="yes"
58754 else
58755 timer_darwin_happy="no"
58761 if test "$timer_darwin_happy" = "no" -a \
58762 "$timer_darwin_should_use" = "1"; then
58763 { { echo "$as_me:$LINENO: error: Darwin timer requested but not available. Aborting." >&5
58764 echo "$as_me: error: Darwin timer requested but not available. Aborting." >&2;}
58765 { (exit 1); exit 1; }; }
58769 if test "$timer_darwin_happy" = "yes"; then
58770 timer_base_include="darwin/timer_darwin.h"
58771 should_build=1
58772 else
58773 should_build=0
58780 if test "$should_build" = "1"; then
58782 project=opal
58783 framework=timer
58784 component=darwin
58786 # See if it dropped an output file for us to pick up some
58787 # shell variables in.
58788 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
58790 # Add this subdir to the mast list of all MCA component subdirs
58791 all_components="$all_components $component"
58793 if test "$compile_mode" = "dso" ; then
58794 dso_components="$dso_components $component"
58795 else
58796 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
58797 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
58798 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
58799 static_components="$static_components $component"
58802 # Output pretty results
58803 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
58804 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
58805 { echo "$as_me:$LINENO: result: yes" >&5
58806 echo "${ECHO_T}yes" >&6; }
58808 # If there's an output file, add the values to
58809 # scope_EXTRA_flags.
58810 if test -f $infile; then
58812 # First check for the ABORT tag
58813 line="`grep ABORT= $infile | cut -d= -f2-`"
58814 if test -n "$line" -a "$line" != "no"; then
58815 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
58816 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
58817 { { echo "$as_me:$LINENO: error: cannot continue" >&5
58818 echo "$as_me: error: cannot continue" >&2;}
58819 { (exit 1); exit 1; }; }
58822 # Check for flags passed up from the component. If we're
58823 # compiling statically, then take all flags passed up from the
58824 # component.
58825 if test "$compile_mode" = "static"; then
58826 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
58827 eval "line=$line"
58828 if test -n "$line"; then
58829 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
58831 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
58832 eval "line=$line"
58833 if test -n "$line"; then
58834 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
58838 if test "$DIRECT_timer" = "$component" ; then
58839 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
58840 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
58841 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
58842 eval $str
58843 else
58844 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
58845 *** does not appear to support direct calling.
58846 *** Aborting" >&5
58847 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
58848 *** does not appear to support direct calling.
58849 *** Aborting" >&2;}
58850 { (exit 1); exit 1; }; }
58853 else
58854 # were we supposed to have found something in the
58855 # post_configure.sh, but the file didn't exist?
58856 if test "$DIRECT_timer" = "$component" ; then
58857 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
58858 *** does not appear to support direct calling.
58859 *** Aborting" >&5
58860 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
58861 *** does not appear to support direct calling.
58862 *** Aborting" >&2;}
58863 { (exit 1); exit 1; }; }
58867 # now add the flags that were set in the environment variables
58868 # framework_component_FOO (for example, the flags set by
58869 # m4_configure components)
58871 # Check for flags passed up from the component. If we're
58872 # compiling statically, then take all flags passed up from the
58873 # component.
58874 if test "$compile_mode" = "static"; then
58875 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
58876 eval "$str"
58877 if test -n "$line" ; then
58878 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
58880 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
58881 eval "$str"
58882 if test -n "$line" ; then
58883 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
58887 else
58889 { echo "$as_me:$LINENO: checking if MCA component timer:darwin can compile" >&5
58890 echo $ECHO_N "checking if MCA component timer:darwin can compile... $ECHO_C" >&6; }
58891 { echo "$as_me:$LINENO: result: no" >&5
58892 echo "${ECHO_T}no" >&6; }
58894 # If this component was requested as the default for this
58895 # type, then abort.
58896 if test "$with_timer" = "darwin" ; then
58897 { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
58898 echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
58899 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
58900 echo "$as_me: WARNING: This component was selected as the default" >&2;}
58901 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
58902 echo "$as_me: error: Cannot continue" >&2;}
58903 { (exit 1); exit 1; }; }
58904 exit 1
58907 if test ! -z "$DIRECT_timer" ; then
58908 if test "$DIRECT_timer" = "darwin" ; then
58909 { echo "$as_me:$LINENO: WARNING: MCA component \"darwin\" failed to configure properly" >&5
58910 echo "$as_me: WARNING: MCA component \"darwin\" failed to configure properly" >&2;}
58911 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
58912 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
58913 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
58914 echo "$as_me: error: Cannot continue" >&2;}
58915 { (exit 1); exit 1; }; }
58916 exit 1
58920 # add component to all component list
58921 all_components="$all_components darwin"
58925 # set the AM_CONDITIONAL on how we should build
58926 if test "$compile_mode" = "dso"; then
58927 BUILD_timer_darwin_DSO=1
58928 else
58929 BUILD_timer_darwin_DSO=0
58934 if test "$BUILD_timer_darwin_DSO" = "1"; then
58935 OMPI_BUILD_timer_darwin_DSO_TRUE=
58936 OMPI_BUILD_timer_darwin_DSO_FALSE='#'
58937 else
58938 OMPI_BUILD_timer_darwin_DSO_TRUE='#'
58939 OMPI_BUILD_timer_darwin_DSO_FALSE=
58943 if test "$should_build" = "1"; then
58944 components_looking_for_succeed="$happy_value"
58948 unset compile_mode
58950 ompi_show_subsubsubtitle "MCA component timer:solaris (m4 configuration macro)"
58953 project=opal
58954 framework=timer
58955 component=solaris
58956 component_path="$srcdir/$project/mca/$framework/$component"
58957 want_component=0
58959 # build if:
58960 # - the component type is direct and we are that component
58961 # - there is no ompi_ignore file
58962 # - there is an ompi_ignore, but there is an empty ompi_unignore
58963 # - there is an ompi_ignore, but username is in ompi_unignore
58964 if test -d $component_path ; then
58965 # decide if we want the component to be built or not. This
58966 # is spread out because some of the logic is a little complex
58967 # and test's syntax isn't exactly the greatest. We want to
58968 # build the component by default.
58969 want_component=1
58970 if test -f $component_path/.ompi_ignore ; then
58971 # If there is an ompi_ignore file, don't build
58972 # the component. Note that this decision can be
58973 # overriden by the unignore logic below.
58974 want_component=0
58976 if test -f $component_path/.ompi_unignore ; then
58977 # if there is an empty ompi_unignore, that is
58978 # equivalent to having your userid in the unignore file.
58979 # If userid is in the file, unignore the ignore file.
58980 if test ! -s $component_path/.ompi_unignore ; then
58981 want_component=1
58982 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
58983 want_component=1
58986 # if this component type is direct and we are not it, we don't want
58987 # to be built. Otherwise, we do want to be built.
58988 if test ! -z "$DIRECT_timer" ; then
58989 if test "$DIRECT_timer" = "$component" ; then
58990 want_component=1
58991 else
58992 want_component=0
58997 # if we were explicitly disabled, don't build :)
58998 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
58999 eval $str
59000 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
59001 want_component=0
59004 if test "$want_component" = "1"; then
59005 should_build=$components_looking_for_succeed
59006 else
59007 should_build=0
59011 # Allow the component to override the build mode if it really wants to.
59012 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
59014 { echo "$as_me:$LINENO: checking for MCA component timer:solaris compile mode" >&5
59015 echo $ECHO_N "checking for MCA component timer:solaris compile mode... $ECHO_C" >&6; }
59016 compile_mode="static"
59017 { echo "$as_me:$LINENO: result: $compile_mode" >&5
59018 echo "${ECHO_T}$compile_mode" >&6; }
59021 # try to configure the component. pay no attention to
59022 # --enable-dist, since we'll always have makefiles.
59023 if test "$should_build" = "1"; then
59026 # Check whether --with-timer was given.
59027 if test "${with_timer+set}" = set; then
59028 withval=$with_timer;
59032 if test "$with_timer" = "solaris"; then
59033 timer_solaris_happy="yes"
59034 timer_solaris_should_use=1
59035 else
59036 timer_solaris_should_use=0
59037 if test "$with_timer" = ""; then
59038 timer_solaris_happy="yes"
59039 else
59040 timer_solaris_happy="no"
59046 if test "$timer_solaris_happy" = "yes"; then
59047 { echo "$as_me:$LINENO: checking for gethrtime" >&5
59048 echo $ECHO_N "checking for gethrtime... $ECHO_C" >&6; }
59049 if test "${ac_cv_func_gethrtime+set}" = set; then
59050 echo $ECHO_N "(cached) $ECHO_C" >&6
59051 else
59052 cat >conftest.$ac_ext <<_ACEOF
59053 /* confdefs.h. */
59054 _ACEOF
59055 cat confdefs.h >>conftest.$ac_ext
59056 cat >>conftest.$ac_ext <<_ACEOF
59057 /* end confdefs.h. */
59058 /* Define gethrtime to an innocuous variant, in case <limits.h> declares gethrtime.
59059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59060 #define gethrtime innocuous_gethrtime
59062 /* System header to define __stub macros and hopefully few prototypes,
59063 which can conflict with char gethrtime (); below.
59064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59065 <limits.h> exists even on freestanding compilers. */
59067 #ifdef __STDC__
59068 # include <limits.h>
59069 #else
59070 # include <assert.h>
59071 #endif
59073 #undef gethrtime
59075 /* Override any GCC internal prototype to avoid an error.
59076 Use char because int might match the return type of a GCC
59077 builtin and then its argument prototype would still apply. */
59078 #ifdef __cplusplus
59079 extern "C"
59080 #endif
59081 char gethrtime ();
59082 /* The GNU C library defines this for functions which it implements
59083 to always fail with ENOSYS. Some functions are actually named
59084 something starting with __ and the normal name is an alias. */
59085 #if defined __stub_gethrtime || defined __stub___gethrtime
59086 choke me
59087 #endif
59090 main ()
59092 return gethrtime ();
59094 return 0;
59096 _ACEOF
59097 rm -f conftest.$ac_objext conftest$ac_exeext
59098 if { (ac_try="$ac_link"
59099 case "(($ac_try" in
59100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59101 *) ac_try_echo=$ac_try;;
59102 esac
59103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59104 (eval "$ac_link") 2>conftest.er1
59105 ac_status=$?
59106 grep -v '^ *+' conftest.er1 >conftest.err
59107 rm -f conftest.er1
59108 cat conftest.err >&5
59109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59110 (exit $ac_status); } && {
59111 test -z "$ac_c_werror_flag" ||
59112 test ! -s conftest.err
59113 } && test -s conftest$ac_exeext &&
59114 $as_test_x conftest$ac_exeext; then
59115 ac_cv_func_gethrtime=yes
59116 else
59117 echo "$as_me: failed program was:" >&5
59118 sed 's/^/| /' conftest.$ac_ext >&5
59120 ac_cv_func_gethrtime=no
59123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59124 conftest$ac_exeext conftest.$ac_ext
59126 { echo "$as_me:$LINENO: result: $ac_cv_func_gethrtime" >&5
59127 echo "${ECHO_T}$ac_cv_func_gethrtime" >&6; }
59128 if test $ac_cv_func_gethrtime = yes; then
59129 timer_solaris_happy="yes"
59130 else
59131 timer_solaris_happy="no"
59137 if test "$timer_solaris_happy" = "no" -a \
59138 "$timer_solaris_should_use" = "1"; then
59139 { { echo "$as_me:$LINENO: error: Solaris timer requested but not available. Aborting." >&5
59140 echo "$as_me: error: Solaris timer requested but not available. Aborting." >&2;}
59141 { (exit 1); exit 1; }; }
59145 if test "$timer_solaris_happy" = "yes"; then
59146 timer_base_include="solaris/timer_solaris.h"
59147 should_build=1
59148 else
59149 should_build=0
59156 if test "$should_build" = "1"; then
59158 project=opal
59159 framework=timer
59160 component=solaris
59162 # See if it dropped an output file for us to pick up some
59163 # shell variables in.
59164 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
59166 # Add this subdir to the mast list of all MCA component subdirs
59167 all_components="$all_components $component"
59169 if test "$compile_mode" = "dso" ; then
59170 dso_components="$dso_components $component"
59171 else
59172 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
59173 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
59174 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
59175 static_components="$static_components $component"
59178 # Output pretty results
59179 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
59180 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
59181 { echo "$as_me:$LINENO: result: yes" >&5
59182 echo "${ECHO_T}yes" >&6; }
59184 # If there's an output file, add the values to
59185 # scope_EXTRA_flags.
59186 if test -f $infile; then
59188 # First check for the ABORT tag
59189 line="`grep ABORT= $infile | cut -d= -f2-`"
59190 if test -n "$line" -a "$line" != "no"; then
59191 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
59192 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
59193 { { echo "$as_me:$LINENO: error: cannot continue" >&5
59194 echo "$as_me: error: cannot continue" >&2;}
59195 { (exit 1); exit 1; }; }
59198 # Check for flags passed up from the component. If we're
59199 # compiling statically, then take all flags passed up from the
59200 # component.
59201 if test "$compile_mode" = "static"; then
59202 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
59203 eval "line=$line"
59204 if test -n "$line"; then
59205 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
59207 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
59208 eval "line=$line"
59209 if test -n "$line"; then
59210 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
59214 if test "$DIRECT_timer" = "$component" ; then
59215 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
59216 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
59217 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
59218 eval $str
59219 else
59220 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
59221 *** does not appear to support direct calling.
59222 *** Aborting" >&5
59223 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
59224 *** does not appear to support direct calling.
59225 *** Aborting" >&2;}
59226 { (exit 1); exit 1; }; }
59229 else
59230 # were we supposed to have found something in the
59231 # post_configure.sh, but the file didn't exist?
59232 if test "$DIRECT_timer" = "$component" ; then
59233 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
59234 *** does not appear to support direct calling.
59235 *** Aborting" >&5
59236 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
59237 *** does not appear to support direct calling.
59238 *** Aborting" >&2;}
59239 { (exit 1); exit 1; }; }
59243 # now add the flags that were set in the environment variables
59244 # framework_component_FOO (for example, the flags set by
59245 # m4_configure components)
59247 # Check for flags passed up from the component. If we're
59248 # compiling statically, then take all flags passed up from the
59249 # component.
59250 if test "$compile_mode" = "static"; then
59251 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
59252 eval "$str"
59253 if test -n "$line" ; then
59254 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
59256 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
59257 eval "$str"
59258 if test -n "$line" ; then
59259 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
59263 else
59265 { echo "$as_me:$LINENO: checking if MCA component timer:solaris can compile" >&5
59266 echo $ECHO_N "checking if MCA component timer:solaris can compile... $ECHO_C" >&6; }
59267 { echo "$as_me:$LINENO: result: no" >&5
59268 echo "${ECHO_T}no" >&6; }
59270 # If this component was requested as the default for this
59271 # type, then abort.
59272 if test "$with_timer" = "solaris" ; then
59273 { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5
59274 echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
59275 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
59276 echo "$as_me: WARNING: This component was selected as the default" >&2;}
59277 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
59278 echo "$as_me: error: Cannot continue" >&2;}
59279 { (exit 1); exit 1; }; }
59280 exit 1
59283 if test ! -z "$DIRECT_timer" ; then
59284 if test "$DIRECT_timer" = "solaris" ; then
59285 { echo "$as_me:$LINENO: WARNING: MCA component \"solaris\" failed to configure properly" >&5
59286 echo "$as_me: WARNING: MCA component \"solaris\" failed to configure properly" >&2;}
59287 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
59288 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
59289 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
59290 echo "$as_me: error: Cannot continue" >&2;}
59291 { (exit 1); exit 1; }; }
59292 exit 1
59296 # add component to all component list
59297 all_components="$all_components solaris"
59301 # set the AM_CONDITIONAL on how we should build
59302 if test "$compile_mode" = "dso"; then
59303 BUILD_timer_solaris_DSO=1
59304 else
59305 BUILD_timer_solaris_DSO=0
59310 if test "$BUILD_timer_solaris_DSO" = "1"; then
59311 OMPI_BUILD_timer_solaris_DSO_TRUE=
59312 OMPI_BUILD_timer_solaris_DSO_FALSE='#'
59313 else
59314 OMPI_BUILD_timer_solaris_DSO_TRUE='#'
59315 OMPI_BUILD_timer_solaris_DSO_FALSE=
59319 if test "$should_build" = "1"; then
59320 components_looking_for_succeed="$happy_value"
59324 unset compile_mode
59326 ompi_show_subsubsubtitle "MCA component timer:windows (m4 configuration macro)"
59329 project=opal
59330 framework=timer
59331 component=windows
59332 component_path="$srcdir/$project/mca/$framework/$component"
59333 want_component=0
59335 # build if:
59336 # - the component type is direct and we are that component
59337 # - there is no ompi_ignore file
59338 # - there is an ompi_ignore, but there is an empty ompi_unignore
59339 # - there is an ompi_ignore, but username is in ompi_unignore
59340 if test -d $component_path ; then
59341 # decide if we want the component to be built or not. This
59342 # is spread out because some of the logic is a little complex
59343 # and test's syntax isn't exactly the greatest. We want to
59344 # build the component by default.
59345 want_component=1
59346 if test -f $component_path/.ompi_ignore ; then
59347 # If there is an ompi_ignore file, don't build
59348 # the component. Note that this decision can be
59349 # overriden by the unignore logic below.
59350 want_component=0
59352 if test -f $component_path/.ompi_unignore ; then
59353 # if there is an empty ompi_unignore, that is
59354 # equivalent to having your userid in the unignore file.
59355 # If userid is in the file, unignore the ignore file.
59356 if test ! -s $component_path/.ompi_unignore ; then
59357 want_component=1
59358 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
59359 want_component=1
59362 # if this component type is direct and we are not it, we don't want
59363 # to be built. Otherwise, we do want to be built.
59364 if test ! -z "$DIRECT_timer" ; then
59365 if test "$DIRECT_timer" = "$component" ; then
59366 want_component=1
59367 else
59368 want_component=0
59373 # if we were explicitly disabled, don't build :)
59374 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
59375 eval $str
59376 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
59377 want_component=0
59380 if test "$want_component" = "1"; then
59381 should_build=$components_looking_for_succeed
59382 else
59383 should_build=0
59387 # Allow the component to override the build mode if it really wants to.
59388 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
59390 { echo "$as_me:$LINENO: checking for MCA component timer:windows compile mode" >&5
59391 echo $ECHO_N "checking for MCA component timer:windows compile mode... $ECHO_C" >&6; }
59392 compile_mode="static"
59393 { echo "$as_me:$LINENO: result: $compile_mode" >&5
59394 echo "${ECHO_T}$compile_mode" >&6; }
59397 # try to configure the component. pay no attention to
59398 # --enable-dist, since we'll always have makefiles.
59399 if test "$should_build" = "1"; then
59402 # Check whether --with-timer was given.
59403 if test "${with_timer+set}" = set; then
59404 withval=$with_timer;
59408 if test "$with_timer" = "windows"; then
59409 timer_windows_happy="yes"
59410 timer_windows_should_use=1
59411 else
59412 timer_windows_should_use=0
59413 if test "$with_timer" = ""; then
59414 timer_windows_happy="yes"
59415 else
59416 timer_windows_happy="no"
59422 if test "$timer_windows_happy" = "yes"; then
59423 cat >conftest.$ac_ext <<_ACEOF
59424 /* confdefs.h. */
59425 _ACEOF
59426 cat confdefs.h >>conftest.$ac_ext
59427 cat >>conftest.$ac_ext <<_ACEOF
59428 /* end confdefs.h. */
59429 #include <windows.h>
59431 main ()
59433 LARGE_INTEGER now;
59434 QueryPerformanceCounter( &now );
59436 return 0;
59438 _ACEOF
59439 rm -f conftest.$ac_objext
59440 if { (ac_try="$ac_compile"
59441 case "(($ac_try" in
59442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59443 *) ac_try_echo=$ac_try;;
59444 esac
59445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59446 (eval "$ac_compile") 2>conftest.er1
59447 ac_status=$?
59448 grep -v '^ *+' conftest.er1 >conftest.err
59449 rm -f conftest.er1
59450 cat conftest.err >&5
59451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59452 (exit $ac_status); } && {
59453 test -z "$ac_c_werror_flag" ||
59454 test ! -s conftest.err
59455 } && test -s conftest.$ac_objext; then
59456 timer_windows_happy="yes"
59457 else
59458 echo "$as_me: failed program was:" >&5
59459 sed 's/^/| /' conftest.$ac_ext >&5
59461 timer_windows_happy="no"
59464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59468 if test "$timer_windows_happy" = "no" -a \
59469 "$timer_windows_should_use" = "1"; then
59470 { { echo "$as_me:$LINENO: error: Windows timer requested but not available. Aborting." >&5
59471 echo "$as_me: error: Windows timer requested but not available. Aborting." >&2;}
59472 { (exit 1); exit 1; }; }
59476 if test "$timer_windows_happy" = "yes"; then
59477 timer_base_include="windows/timer_windows.h"
59478 should_build=1
59479 else
59480 should_build=0
59487 if test "$should_build" = "1"; then
59489 project=opal
59490 framework=timer
59491 component=windows
59493 # See if it dropped an output file for us to pick up some
59494 # shell variables in.
59495 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
59497 # Add this subdir to the mast list of all MCA component subdirs
59498 all_components="$all_components $component"
59500 if test "$compile_mode" = "dso" ; then
59501 dso_components="$dso_components $component"
59502 else
59503 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
59504 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
59505 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
59506 static_components="$static_components $component"
59509 # Output pretty results
59510 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
59511 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
59512 { echo "$as_me:$LINENO: result: yes" >&5
59513 echo "${ECHO_T}yes" >&6; }
59515 # If there's an output file, add the values to
59516 # scope_EXTRA_flags.
59517 if test -f $infile; then
59519 # First check for the ABORT tag
59520 line="`grep ABORT= $infile | cut -d= -f2-`"
59521 if test -n "$line" -a "$line" != "no"; then
59522 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
59523 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
59524 { { echo "$as_me:$LINENO: error: cannot continue" >&5
59525 echo "$as_me: error: cannot continue" >&2;}
59526 { (exit 1); exit 1; }; }
59529 # Check for flags passed up from the component. If we're
59530 # compiling statically, then take all flags passed up from the
59531 # component.
59532 if test "$compile_mode" = "static"; then
59533 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
59534 eval "line=$line"
59535 if test -n "$line"; then
59536 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
59538 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
59539 eval "line=$line"
59540 if test -n "$line"; then
59541 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
59545 if test "$DIRECT_timer" = "$component" ; then
59546 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
59547 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
59548 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
59549 eval $str
59550 else
59551 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
59552 *** does not appear to support direct calling.
59553 *** Aborting" >&5
59554 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
59555 *** does not appear to support direct calling.
59556 *** Aborting" >&2;}
59557 { (exit 1); exit 1; }; }
59560 else
59561 # were we supposed to have found something in the
59562 # post_configure.sh, but the file didn't exist?
59563 if test "$DIRECT_timer" = "$component" ; then
59564 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
59565 *** does not appear to support direct calling.
59566 *** Aborting" >&5
59567 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
59568 *** does not appear to support direct calling.
59569 *** Aborting" >&2;}
59570 { (exit 1); exit 1; }; }
59574 # now add the flags that were set in the environment variables
59575 # framework_component_FOO (for example, the flags set by
59576 # m4_configure components)
59578 # Check for flags passed up from the component. If we're
59579 # compiling statically, then take all flags passed up from the
59580 # component.
59581 if test "$compile_mode" = "static"; then
59582 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
59583 eval "$str"
59584 if test -n "$line" ; then
59585 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
59587 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
59588 eval "$str"
59589 if test -n "$line" ; then
59590 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
59594 else
59596 { echo "$as_me:$LINENO: checking if MCA component timer:windows can compile" >&5
59597 echo $ECHO_N "checking if MCA component timer:windows can compile... $ECHO_C" >&6; }
59598 { echo "$as_me:$LINENO: result: no" >&5
59599 echo "${ECHO_T}no" >&6; }
59601 # If this component was requested as the default for this
59602 # type, then abort.
59603 if test "$with_timer" = "windows" ; then
59604 { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
59605 echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
59606 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
59607 echo "$as_me: WARNING: This component was selected as the default" >&2;}
59608 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
59609 echo "$as_me: error: Cannot continue" >&2;}
59610 { (exit 1); exit 1; }; }
59611 exit 1
59614 if test ! -z "$DIRECT_timer" ; then
59615 if test "$DIRECT_timer" = "windows" ; then
59616 { echo "$as_me:$LINENO: WARNING: MCA component \"windows\" failed to configure properly" >&5
59617 echo "$as_me: WARNING: MCA component \"windows\" failed to configure properly" >&2;}
59618 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
59619 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
59620 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
59621 echo "$as_me: error: Cannot continue" >&2;}
59622 { (exit 1); exit 1; }; }
59623 exit 1
59627 # add component to all component list
59628 all_components="$all_components windows"
59632 # set the AM_CONDITIONAL on how we should build
59633 if test "$compile_mode" = "dso"; then
59634 BUILD_timer_windows_DSO=1
59635 else
59636 BUILD_timer_windows_DSO=0
59641 if test "$BUILD_timer_windows_DSO" = "1"; then
59642 OMPI_BUILD_timer_windows_DSO_TRUE=
59643 OMPI_BUILD_timer_windows_DSO_FALSE='#'
59644 else
59645 OMPI_BUILD_timer_windows_DSO_TRUE='#'
59646 OMPI_BUILD_timer_windows_DSO_FALSE=
59650 if test "$should_build" = "1"; then
59651 components_looking_for_succeed="$happy_value"
59655 unset compile_mode
59657 ompi_show_subsubsubtitle "MCA component timer:linux (m4 configuration macro)"
59660 project=opal
59661 framework=timer
59662 component=linux
59663 component_path="$srcdir/$project/mca/$framework/$component"
59664 want_component=0
59666 # build if:
59667 # - the component type is direct and we are that component
59668 # - there is no ompi_ignore file
59669 # - there is an ompi_ignore, but there is an empty ompi_unignore
59670 # - there is an ompi_ignore, but username is in ompi_unignore
59671 if test -d $component_path ; then
59672 # decide if we want the component to be built or not. This
59673 # is spread out because some of the logic is a little complex
59674 # and test's syntax isn't exactly the greatest. We want to
59675 # build the component by default.
59676 want_component=1
59677 if test -f $component_path/.ompi_ignore ; then
59678 # If there is an ompi_ignore file, don't build
59679 # the component. Note that this decision can be
59680 # overriden by the unignore logic below.
59681 want_component=0
59683 if test -f $component_path/.ompi_unignore ; then
59684 # if there is an empty ompi_unignore, that is
59685 # equivalent to having your userid in the unignore file.
59686 # If userid is in the file, unignore the ignore file.
59687 if test ! -s $component_path/.ompi_unignore ; then
59688 want_component=1
59689 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
59690 want_component=1
59693 # if this component type is direct and we are not it, we don't want
59694 # to be built. Otherwise, we do want to be built.
59695 if test ! -z "$DIRECT_timer" ; then
59696 if test "$DIRECT_timer" = "$component" ; then
59697 want_component=1
59698 else
59699 want_component=0
59704 # if we were explicitly disabled, don't build :)
59705 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
59706 eval $str
59707 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
59708 want_component=0
59711 if test "$want_component" = "1"; then
59712 should_build=$components_looking_for_succeed
59713 else
59714 should_build=0
59718 # Allow the component to override the build mode if it really wants to.
59719 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
59721 { echo "$as_me:$LINENO: checking for MCA component timer:linux compile mode" >&5
59722 echo $ECHO_N "checking for MCA component timer:linux compile mode... $ECHO_C" >&6; }
59723 compile_mode="static"
59724 { echo "$as_me:$LINENO: result: $compile_mode" >&5
59725 echo "${ECHO_T}$compile_mode" >&6; }
59728 # try to configure the component. pay no attention to
59729 # --enable-dist, since we'll always have makefiles.
59730 if test "$should_build" = "1"; then
59733 # Check whether --with-timer was given.
59734 if test "${with_timer+set}" = set; then
59735 withval=$with_timer;
59739 if test "$with_timer" = "linux"; then
59740 timer_linux_happy="yes"
59741 timer_linux_should_use=1
59742 else
59743 timer_linux_should_use=0
59744 if test "$with_timer" = ""; then
59745 timer_linux_happy="yes"
59746 else
59747 timer_linux_happy="no"
59753 if test "$timer_linux_happy" = "yes"; then
59754 if test -r "/proc/cpuinfo"; then
59755 timer_linux_happy="yes"
59756 else
59757 timer_linux_happy="no"
59763 if test "$timer_linux_happy" = "no" -a \
59764 "$timer_linux_should_use" = "1"; then
59765 { { echo "$as_me:$LINENO: error: Linux timer requested but not available. Aborting." >&5
59766 echo "$as_me: error: Linux timer requested but not available. Aborting." >&2;}
59767 { (exit 1); exit 1; }; }
59771 if test "$timer_linux_happy" = "yes"; then
59772 timer_base_include="linux/timer_linux.h"
59773 should_build=1
59774 else
59775 should_build=0
59782 if test "$should_build" = "1"; then
59784 project=opal
59785 framework=timer
59786 component=linux
59788 # See if it dropped an output file for us to pick up some
59789 # shell variables in.
59790 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
59792 # Add this subdir to the mast list of all MCA component subdirs
59793 all_components="$all_components $component"
59795 if test "$compile_mode" = "dso" ; then
59796 dso_components="$dso_components $component"
59797 else
59798 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
59799 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
59800 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
59801 static_components="$static_components $component"
59804 # Output pretty results
59805 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
59806 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
59807 { echo "$as_me:$LINENO: result: yes" >&5
59808 echo "${ECHO_T}yes" >&6; }
59810 # If there's an output file, add the values to
59811 # scope_EXTRA_flags.
59812 if test -f $infile; then
59814 # First check for the ABORT tag
59815 line="`grep ABORT= $infile | cut -d= -f2-`"
59816 if test -n "$line" -a "$line" != "no"; then
59817 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
59818 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
59819 { { echo "$as_me:$LINENO: error: cannot continue" >&5
59820 echo "$as_me: error: cannot continue" >&2;}
59821 { (exit 1); exit 1; }; }
59824 # Check for flags passed up from the component. If we're
59825 # compiling statically, then take all flags passed up from the
59826 # component.
59827 if test "$compile_mode" = "static"; then
59828 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
59829 eval "line=$line"
59830 if test -n "$line"; then
59831 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
59833 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
59834 eval "line=$line"
59835 if test -n "$line"; then
59836 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
59840 if test "$DIRECT_timer" = "$component" ; then
59841 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
59842 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
59843 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
59844 eval $str
59845 else
59846 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
59847 *** does not appear to support direct calling.
59848 *** Aborting" >&5
59849 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
59850 *** does not appear to support direct calling.
59851 *** Aborting" >&2;}
59852 { (exit 1); exit 1; }; }
59855 else
59856 # were we supposed to have found something in the
59857 # post_configure.sh, but the file didn't exist?
59858 if test "$DIRECT_timer" = "$component" ; then
59859 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
59860 *** does not appear to support direct calling.
59861 *** Aborting" >&5
59862 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
59863 *** does not appear to support direct calling.
59864 *** Aborting" >&2;}
59865 { (exit 1); exit 1; }; }
59869 # now add the flags that were set in the environment variables
59870 # framework_component_FOO (for example, the flags set by
59871 # m4_configure components)
59873 # Check for flags passed up from the component. If we're
59874 # compiling statically, then take all flags passed up from the
59875 # component.
59876 if test "$compile_mode" = "static"; then
59877 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
59878 eval "$str"
59879 if test -n "$line" ; then
59880 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
59882 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
59883 eval "$str"
59884 if test -n "$line" ; then
59885 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
59889 else
59891 { echo "$as_me:$LINENO: checking if MCA component timer:linux can compile" >&5
59892 echo $ECHO_N "checking if MCA component timer:linux can compile... $ECHO_C" >&6; }
59893 { echo "$as_me:$LINENO: result: no" >&5
59894 echo "${ECHO_T}no" >&6; }
59896 # If this component was requested as the default for this
59897 # type, then abort.
59898 if test "$with_timer" = "linux" ; then
59899 { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5
59900 echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
59901 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
59902 echo "$as_me: WARNING: This component was selected as the default" >&2;}
59903 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
59904 echo "$as_me: error: Cannot continue" >&2;}
59905 { (exit 1); exit 1; }; }
59906 exit 1
59909 if test ! -z "$DIRECT_timer" ; then
59910 if test "$DIRECT_timer" = "linux" ; then
59911 { echo "$as_me:$LINENO: WARNING: MCA component \"linux\" failed to configure properly" >&5
59912 echo "$as_me: WARNING: MCA component \"linux\" failed to configure properly" >&2;}
59913 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
59914 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
59915 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
59916 echo "$as_me: error: Cannot continue" >&2;}
59917 { (exit 1); exit 1; }; }
59918 exit 1
59922 # add component to all component list
59923 all_components="$all_components linux"
59927 # set the AM_CONDITIONAL on how we should build
59928 if test "$compile_mode" = "dso"; then
59929 BUILD_timer_linux_DSO=1
59930 else
59931 BUILD_timer_linux_DSO=0
59936 if test "$BUILD_timer_linux_DSO" = "1"; then
59937 OMPI_BUILD_timer_linux_DSO_TRUE=
59938 OMPI_BUILD_timer_linux_DSO_FALSE='#'
59939 else
59940 OMPI_BUILD_timer_linux_DSO_TRUE='#'
59941 OMPI_BUILD_timer_linux_DSO_FALSE=
59945 if test "$should_build" = "1"; then
59946 components_looking_for_succeed="$happy_value"
59950 unset compile_mode
59953 # configure components that provide their own configure script.
59954 # It would be really hard to run these for "find first that
59955 # works", so we don't :)
59956 if test "$happy_value" = "1"; then
59958 for component_path in $srcdir/opal/mca/timer/* ; do
59959 component="`basename $component_path`"
59960 if test -d $component_path -a -x $component_path/configure ; then
59961 ompi_show_subsubsubtitle "MCA component timer:$component (need to configure)"
59964 project=opal
59965 framework=timer
59966 component=$component
59967 component_path="$srcdir/$project/mca/$framework/$component"
59968 want_component=0
59970 # build if:
59971 # - the component type is direct and we are that component
59972 # - there is no ompi_ignore file
59973 # - there is an ompi_ignore, but there is an empty ompi_unignore
59974 # - there is an ompi_ignore, but username is in ompi_unignore
59975 if test -d $component_path ; then
59976 # decide if we want the component to be built or not. This
59977 # is spread out because some of the logic is a little complex
59978 # and test's syntax isn't exactly the greatest. We want to
59979 # build the component by default.
59980 want_component=1
59981 if test -f $component_path/.ompi_ignore ; then
59982 # If there is an ompi_ignore file, don't build
59983 # the component. Note that this decision can be
59984 # overriden by the unignore logic below.
59985 want_component=0
59987 if test -f $component_path/.ompi_unignore ; then
59988 # if there is an empty ompi_unignore, that is
59989 # equivalent to having your userid in the unignore file.
59990 # If userid is in the file, unignore the ignore file.
59991 if test ! -s $component_path/.ompi_unignore ; then
59992 want_component=1
59993 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
59994 want_component=1
59997 # if this component type is direct and we are not it, we don't want
59998 # to be built. Otherwise, we do want to be built.
59999 if test ! -z "$DIRECT_timer" ; then
60000 if test "$DIRECT_timer" = "$component" ; then
60001 want_component=1
60002 else
60003 want_component=0
60008 # if we were explicitly disabled, don't build :)
60009 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
60010 eval $str
60011 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
60012 want_component=0
60015 if test "$want_component" = "1"; then
60016 should_build=1
60017 else
60018 should_build=0
60023 project=opal
60024 framework=timer
60025 component=$component
60027 # Is this component going to built staic or shared? $component
60028 # might not be known until configure time, so have to use eval
60029 # tricks - can't set variable names at autogen time.
60030 str="SHARED_FRAMEWORK=\$DSO_$framework"
60031 eval $str
60032 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
60033 eval $str
60035 str="STATIC_FRAMEWORK=\$STATIC_$framework"
60036 eval $str
60037 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
60038 eval $str
60040 shared_mode_override=static
60042 # Setup for either shared or static
60043 if test "$STATIC_FRAMEWORK" = "1" -o \
60044 "$STATIC_COMPONENT" = "1" -o \
60045 "$STATIC_all" = "1" ; then
60046 compile_mode="static"
60047 elif test "$shared_mode_override" = "dso" -o \
60048 "$SHARED_FRAMEWORK" = "1" -o \
60049 "$SHARED_COMPONENT" = "1" -o \
60050 "$DSO_all" = "1"; then
60051 compile_mode="dso"
60052 else
60053 compile_mode="static"
60056 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
60057 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
60058 if test "$DIRECT_timer" = "$component" ; then
60059 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
60060 echo "${ECHO_T}$compile_mode - direct" >&6; }
60061 else
60062 { echo "$as_me:$LINENO: result: $compile_mode" >&5
60063 echo "${ECHO_T}$compile_mode" >&6; }
60067 if test "$should_build" = "1" ; then
60070 # Invoke configure in a specific subdirectory.
60072 # opal/mca/timer/$component is the directory to invoke in
60073 # $ompi_subdir_args is the list of arguments to pass
60074 # should_build=1 is actions to execute upon success
60075 # should_build=2 is actions to execute upon failure
60077 subdir_dir="opal/mca/timer/$component"
60078 subdir_args="$ompi_subdir_args"
60079 subdir_success="should_build=1"
60080 subdir_failure="should_build=2"
60083 # Sanity checks
60086 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
60087 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
60088 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
60091 # Gotta check where srcdir is for VPATH builds. If srcdir is not
60092 # ., then we need to mkdir the subdir. Otherwise, we can just cd
60093 # into it.
60096 case $srcdir in
60100 { case $subdir_dir in
60101 [\\/]* | ?:[\\/]* ) total_dir=;;
60102 *) total_dir=.;;
60103 esac
60104 temp=$subdir_dir
60105 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
60106 case $dir_part in
60107 # Skip DOS drivespec
60108 ?:) total_dir=$dir_part ;;
60109 *) total_dir=$total_dir/$dir_part
60110 test -d "$total_dir" ||
60111 mkdir "$total_dir" ||
60112 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
60113 echo "$as_me: error: cannot create $subdir_dir" >&2;}
60114 { (exit 1); exit 1; }; }
60116 esac
60117 done; }
60119 if test -d ./$subdir_dir; then :;
60120 else
60121 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
60122 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
60123 { (exit 1); exit 1; }; }
60126 esac
60129 # Move into the target directory
60132 subdir_parent=`pwd`
60133 cd $subdir_dir
60136 # Make a "../" for each directory in $subdir_dir.
60139 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
60141 # Construct the --srcdir argument
60144 case $srcdir in
60146 # In place
60147 subdir_srcdir="$srcdir"
60149 [\\/]* | ?:[\\/]* )
60150 # Absolute path
60151 subdir_srcdir="$srcdir/$subdir_dir"
60154 # Relative path
60155 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
60157 esac
60160 # Construct the --cache-file argument
60163 # BWB - subdir caching is a pain since we change CFLAGS and all that.
60164 # Just disable it for now
60165 subdir_cache_file="/dev/null"
60168 # Invoke the configure script in the subdirectory
60171 export CFLAGS CPPFLAGS
60172 export CXXFLAGS CXXCPPFLAGS
60173 export FFLAGS
60174 export LDFLAGS LIBS
60175 sub_configure="$SHELL '$subdir_srcdir/configure'"
60176 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
60177 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
60178 eval "$sub_configure $subdir_args \
60179 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
60180 if test "$?" = "0"; then
60181 eval $subdir_success
60182 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
60183 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
60184 else
60185 eval $subdir_failure
60186 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
60187 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
60191 # Go back to the topdir
60194 cd $subdir_parent
60198 # Clean up
60201 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
60202 unset subdir_args subdir_dots total_dir dir_part temp
60205 if test "$should_build" = "1" ; then
60207 project=opal
60208 framework=timer
60209 component=$component
60211 # See if it dropped an output file for us to pick up some
60212 # shell variables in.
60213 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
60215 # Add this subdir to the mast list of all MCA component subdirs
60216 all_components="$all_components $component"
60218 if test "$compile_mode" = "dso" ; then
60219 dso_components="$dso_components $component"
60220 else
60221 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
60222 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
60223 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
60224 static_components="$static_components $component"
60227 # Output pretty results
60228 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
60229 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
60230 { echo "$as_me:$LINENO: result: yes" >&5
60231 echo "${ECHO_T}yes" >&6; }
60233 # If there's an output file, add the values to
60234 # scope_EXTRA_flags.
60235 if test -f $infile; then
60237 # First check for the ABORT tag
60238 line="`grep ABORT= $infile | cut -d= -f2-`"
60239 if test -n "$line" -a "$line" != "no"; then
60240 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
60241 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
60242 { { echo "$as_me:$LINENO: error: cannot continue" >&5
60243 echo "$as_me: error: cannot continue" >&2;}
60244 { (exit 1); exit 1; }; }
60247 # Check for flags passed up from the component. If we're
60248 # compiling statically, then take all flags passed up from the
60249 # component.
60250 if test "$compile_mode" = "static"; then
60251 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
60252 eval "line=$line"
60253 if test -n "$line"; then
60254 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
60256 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
60257 eval "line=$line"
60258 if test -n "$line"; then
60259 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
60263 if test "$DIRECT_timer" = "$component" ; then
60264 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
60265 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
60266 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
60267 eval $str
60268 else
60269 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
60270 *** does not appear to support direct calling.
60271 *** Aborting" >&5
60272 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
60273 *** does not appear to support direct calling.
60274 *** Aborting" >&2;}
60275 { (exit 1); exit 1; }; }
60278 else
60279 # were we supposed to have found something in the
60280 # post_configure.sh, but the file didn't exist?
60281 if test "$DIRECT_timer" = "$component" ; then
60282 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
60283 *** does not appear to support direct calling.
60284 *** Aborting" >&5
60285 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
60286 *** does not appear to support direct calling.
60287 *** Aborting" >&2;}
60288 { (exit 1); exit 1; }; }
60292 # now add the flags that were set in the environment variables
60293 # framework_component_FOO (for example, the flags set by
60294 # m4_configure components)
60296 # Check for flags passed up from the component. If we're
60297 # compiling statically, then take all flags passed up from the
60298 # component.
60299 if test "$compile_mode" = "static"; then
60300 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
60301 eval "$str"
60302 if test -n "$line" ; then
60303 opal_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $line"
60305 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
60306 eval "$str"
60307 if test -n "$line" ; then
60308 opal_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $line"
60312 else
60314 { echo "$as_me:$LINENO: checking if MCA component timer:$component can compile" >&5
60315 echo $ECHO_N "checking if MCA component timer:$component can compile... $ECHO_C" >&6; }
60316 { echo "$as_me:$LINENO: result: no" >&5
60317 echo "${ECHO_T}no" >&6; }
60319 # If this component was requested as the default for this
60320 # type, then abort.
60321 if test "$with_timer" = "$component" ; then
60322 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
60323 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
60324 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
60325 echo "$as_me: WARNING: This component was selected as the default" >&2;}
60326 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
60327 echo "$as_me: error: Cannot continue" >&2;}
60328 { (exit 1); exit 1; }; }
60329 exit 1
60332 if test ! -z "$DIRECT_timer" ; then
60333 if test "$DIRECT_timer" = "$component" ; then
60334 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
60335 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
60336 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
60337 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
60338 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
60339 echo "$as_me: error: Cannot continue" >&2;}
60340 { (exit 1); exit 1; }; }
60341 exit 1
60347 done
60352 MCA_timer_ALL_COMPONENTS="$all_components"
60353 MCA_timer_STATIC_COMPONENTS="$static_components"
60354 MCA_timer_DSO_COMPONENTS="$dso_components"
60355 MCA_timer_STATIC_LTLIBS="$static_ltlibs"
60363 MCA_timer_ALL_SUBDIRS=
60364 for item in $all_components ; do
60365 MCA_timer_ALL_SUBDIRS="$MCA_timer_ALL_SUBDIRS mca/timer/$item"
60366 done
60370 MCA_timer_STATIC_SUBDIRS=
60371 for item in $static_components ; do
60372 MCA_timer_STATIC_SUBDIRS="$MCA_timer_STATIC_SUBDIRS mca/timer/$item"
60373 done
60377 MCA_timer_DSO_SUBDIRS=
60378 for item in $dso_components ; do
60379 MCA_timer_DSO_SUBDIRS="$MCA_timer_DSO_SUBDIRS mca/timer/$item"
60380 done
60384 # add all the makefiles for the framework to the CONFIG_FILES.
60385 # Don't add common/base, since it doesn't exist
60386 ac_config_files="$ac_config_files opal/mca/timer/Makefile"
60389 # Create the final .h file that will be included in the type's
60390 # top-level glue. This lists all the static components. We don't
60391 # need to do this for "common".
60392 if test "timer" != "common"; then
60393 cat > $outfile <<EOF
60395 * \$HEADER\$
60398 `cat $outfile.extern`
60400 const mca_base_component_t *mca_timer_base_static_components[] = {
60401 `cat $outfile.struct`
60402 NULL
60405 # Only replace the header file if a) it doesn't previously
60406 # exist, or b) the contents are different. Do this to not
60407 # trigger recompilation of certain .c files just because the
60408 # timestamp changed on $outfile_real (similar to the way AC
60409 # handles AC_CONFIG_HEADER files).
60410 diff $outfile $outfile_real > /dev/null 2>&1
60411 if test "$?" != "0"; then
60412 mv $outfile $outfile_real
60413 else
60414 rm -f $outfile
60417 rm -f $outfile.struct $outfile.extern
60419 unset all_components static_components dso_components outfile outfile_real
60422 # someone should have set this...
60423 if test "$timer_base_include" = "" ; then
60424 timer_base_include="base/timer_base_null.h"
60427 ac_config_links="$ac_config_links opal/mca/timer/base/base_impl.h:opal/mca/timer/$timer_base_include"
60437 MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS orte"
60439 # can't use a variable rename here because these need to be evaled
60440 # at auto* time.
60442 ompi_show_subtitle "Configuring MCA for orte"
60444 { echo "$as_me:$LINENO: checking for frameworks for orte" >&5
60445 echo $ECHO_N "checking for frameworks for orte... $ECHO_C" >&6; }
60446 { echo "$as_me:$LINENO: result: errmgr, gpr, iof, ns, oob, pls, ras, rds, rmaps, rmgr, rml, schema, sds, soh" >&5
60447 echo "${ECHO_T}errmgr, gpr, iof, ns, oob, pls, ras, rds, rmaps, rmgr, rml, schema, sds, soh" >&6; }
60449 # iterate through the list of frameworks. There is something
60450 # funky with m4 foreach if the list is defined, but empty. It
60451 # will call the 3rd argument once with an empty value for the
60452 # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK
60453 # with an empty second argument. Grrr....
60454 # if there isn't a project list, abort
60456 # Also setup two variables for Makefiles:
60457 # MCA_project_FRAMEWORKS - list of frameworks in that project
60458 # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing
60459 # to more libraries) that must be included
60460 # in the project's main library
60463 MCA_orte_FRAMEWORKS=
60464 MCA_orte_FRAMEWORKS_SUBDIRS=
60465 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS=
60466 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS=
60467 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS=
60468 MCA_orte_FRAMEWORK_LIBS=
60470 # common has to go up front
60471 if test "errmgr" = "common" ; then
60472 MCA_orte_FRAMEWORKS="errmgr $MCA_orte_FRAMEWORKS"
60473 MCA_orte_FRAMEWORKS_SUBDIRS="mca/errmgr $MCA_orte_FRAMEWORKS_SUBDIRS"
60474 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_errmgr_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
60475 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_errmgr_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
60476 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_errmgr_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
60477 else
60478 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS errmgr"
60479 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/errmgr"
60480 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_errmgr_ALL_SUBDIRS)"
60481 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_errmgr_DSO_SUBDIRS)"
60482 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_errmgr_STATIC_SUBDIRS)"
60484 if test "errmgr" != "common" ; then
60485 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/errmgr/libmca_errmgr.la"
60487 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_errmgr_STATIC_LTLIBS)"
60489 ompi_show_subsubtitle "Configuring MCA framework errmgr"
60491 # setup for framework
60492 all_components=
60493 static_components=
60494 dso_components=
60495 static_ltlibs=
60497 # Ensure that the directory where the #include file is to live
60498 # exists. Need to do this for VPATH builds, because the directory
60499 # may not exist yet. For the "common" type, it's not really a
60500 # component, so it doesn't have a base.
60501 if test "errmgr" = "common" ; then
60502 outdir=orte/mca/common
60503 else
60504 outdir=orte/mca/errmgr/base
60506 { as_dir=$outdir
60507 case $as_dir in #(
60508 -*) as_dir=./$as_dir;;
60509 esac
60510 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
60511 as_dirs=
60512 while :; do
60513 case $as_dir in #(
60514 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
60515 *) as_qdir=$as_dir;;
60516 esac
60517 as_dirs="'$as_qdir' $as_dirs"
60518 as_dir=`$as_dirname -- "$as_dir" ||
60519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60520 X"$as_dir" : 'X\(//\)[^/]' \| \
60521 X"$as_dir" : 'X\(//\)$' \| \
60522 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
60523 echo X"$as_dir" |
60524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
60525 s//\1/
60528 /^X\(\/\/\)[^/].*/{
60529 s//\1/
60532 /^X\(\/\/\)$/{
60533 s//\1/
60536 /^X\(\/\).*/{
60537 s//\1/
60540 s/.*/./; q'`
60541 test -d "$as_dir" && break
60542 done
60543 test -z "$as_dirs" || eval "mkdir $as_dirs"
60544 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
60545 echo "$as_me: error: cannot create directory $as_dir" >&2;}
60546 { (exit 1); exit 1; }; }; }
60548 # remove any previously generated #include files
60549 outfile_real=$outdir/static-components.h
60550 outfile=$outfile_real.new
60551 rm -f $outfile $outfile.struct $outfile.extern
60552 touch $outfile.struct $outfile.extern
60554 # print some nice messages about what we're about to do...
60555 { echo "$as_me:$LINENO: checking for no configure components in framework errmgr" >&5
60556 echo $ECHO_N "checking for no configure components in framework errmgr... $ECHO_C" >&6; }
60557 { echo "$as_me:$LINENO: result: " >&5
60558 echo "${ECHO_T}" >&6; }
60559 { echo "$as_me:$LINENO: checking for m4 configure components in framework errmgr" >&5
60560 echo $ECHO_N "checking for m4 configure components in framework errmgr... $ECHO_C" >&6; }
60561 { echo "$as_me:$LINENO: result: " >&5
60562 echo "${ECHO_T}" >&6; }
60564 # if we only want the first successful component, set the variable
60565 # happy_value to 0 so we stop on first assignment. Otherwise, set
60566 # it to zero so that components_looking_for_succeed is always 1
60567 happy_value=1
60569 components_looking_for_succeed=1
60571 # configure components that don't have any component-specific
60572 # configuration. See comment in CONFIGURE_PROJECT about the
60573 # m4_ifval
60574 # if there isn't a component list, abort
60578 # configure components that use built-in configuration scripts
60579 # see comment in CONFIGURE_PROJECT about the m4_ifval
60580 # if there isn't a component list, abort
60584 # configure components that provide their own configure script.
60585 # It would be really hard to run these for "find first that
60586 # works", so we don't :)
60587 if test "$happy_value" = "1"; then
60589 for component_path in $srcdir/orte/mca/errmgr/* ; do
60590 component="`basename $component_path`"
60591 if test -d $component_path -a -x $component_path/configure ; then
60592 ompi_show_subsubsubtitle "MCA component errmgr:$component (need to configure)"
60595 project=orte
60596 framework=errmgr
60597 component=$component
60598 component_path="$srcdir/$project/mca/$framework/$component"
60599 want_component=0
60601 # build if:
60602 # - the component type is direct and we are that component
60603 # - there is no ompi_ignore file
60604 # - there is an ompi_ignore, but there is an empty ompi_unignore
60605 # - there is an ompi_ignore, but username is in ompi_unignore
60606 if test -d $component_path ; then
60607 # decide if we want the component to be built or not. This
60608 # is spread out because some of the logic is a little complex
60609 # and test's syntax isn't exactly the greatest. We want to
60610 # build the component by default.
60611 want_component=1
60612 if test -f $component_path/.ompi_ignore ; then
60613 # If there is an ompi_ignore file, don't build
60614 # the component. Note that this decision can be
60615 # overriden by the unignore logic below.
60616 want_component=0
60618 if test -f $component_path/.ompi_unignore ; then
60619 # if there is an empty ompi_unignore, that is
60620 # equivalent to having your userid in the unignore file.
60621 # If userid is in the file, unignore the ignore file.
60622 if test ! -s $component_path/.ompi_unignore ; then
60623 want_component=1
60624 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
60625 want_component=1
60628 # if this component type is direct and we are not it, we don't want
60629 # to be built. Otherwise, we do want to be built.
60630 if test ! -z "$DIRECT_errmgr" ; then
60631 if test "$DIRECT_errmgr" = "$component" ; then
60632 want_component=1
60633 else
60634 want_component=0
60639 # if we were explicitly disabled, don't build :)
60640 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
60641 eval $str
60642 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
60643 want_component=0
60646 if test "$want_component" = "1"; then
60647 should_build=1
60648 else
60649 should_build=0
60654 project=orte
60655 framework=errmgr
60656 component=$component
60658 # Is this component going to built staic or shared? $component
60659 # might not be known until configure time, so have to use eval
60660 # tricks - can't set variable names at autogen time.
60661 str="SHARED_FRAMEWORK=\$DSO_$framework"
60662 eval $str
60663 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
60664 eval $str
60666 str="STATIC_FRAMEWORK=\$STATIC_$framework"
60667 eval $str
60668 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
60669 eval $str
60671 shared_mode_override=static
60673 # Setup for either shared or static
60674 if test "$STATIC_FRAMEWORK" = "1" -o \
60675 "$STATIC_COMPONENT" = "1" -o \
60676 "$STATIC_all" = "1" ; then
60677 compile_mode="static"
60678 elif test "$shared_mode_override" = "dso" -o \
60679 "$SHARED_FRAMEWORK" = "1" -o \
60680 "$SHARED_COMPONENT" = "1" -o \
60681 "$DSO_all" = "1"; then
60682 compile_mode="dso"
60683 else
60684 compile_mode="static"
60687 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
60688 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
60689 if test "$DIRECT_errmgr" = "$component" ; then
60690 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
60691 echo "${ECHO_T}$compile_mode - direct" >&6; }
60692 else
60693 { echo "$as_me:$LINENO: result: $compile_mode" >&5
60694 echo "${ECHO_T}$compile_mode" >&6; }
60698 if test "$should_build" = "1" ; then
60701 # Invoke configure in a specific subdirectory.
60703 # orte/mca/errmgr/$component is the directory to invoke in
60704 # $ompi_subdir_args is the list of arguments to pass
60705 # should_build=1 is actions to execute upon success
60706 # should_build=2 is actions to execute upon failure
60708 subdir_dir="orte/mca/errmgr/$component"
60709 subdir_args="$ompi_subdir_args"
60710 subdir_success="should_build=1"
60711 subdir_failure="should_build=2"
60714 # Sanity checks
60717 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
60718 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
60719 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
60722 # Gotta check where srcdir is for VPATH builds. If srcdir is not
60723 # ., then we need to mkdir the subdir. Otherwise, we can just cd
60724 # into it.
60727 case $srcdir in
60731 { case $subdir_dir in
60732 [\\/]* | ?:[\\/]* ) total_dir=;;
60733 *) total_dir=.;;
60734 esac
60735 temp=$subdir_dir
60736 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
60737 case $dir_part in
60738 # Skip DOS drivespec
60739 ?:) total_dir=$dir_part ;;
60740 *) total_dir=$total_dir/$dir_part
60741 test -d "$total_dir" ||
60742 mkdir "$total_dir" ||
60743 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
60744 echo "$as_me: error: cannot create $subdir_dir" >&2;}
60745 { (exit 1); exit 1; }; }
60747 esac
60748 done; }
60750 if test -d ./$subdir_dir; then :;
60751 else
60752 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
60753 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
60754 { (exit 1); exit 1; }; }
60757 esac
60760 # Move into the target directory
60763 subdir_parent=`pwd`
60764 cd $subdir_dir
60767 # Make a "../" for each directory in $subdir_dir.
60770 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
60772 # Construct the --srcdir argument
60775 case $srcdir in
60777 # In place
60778 subdir_srcdir="$srcdir"
60780 [\\/]* | ?:[\\/]* )
60781 # Absolute path
60782 subdir_srcdir="$srcdir/$subdir_dir"
60785 # Relative path
60786 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
60788 esac
60791 # Construct the --cache-file argument
60794 # BWB - subdir caching is a pain since we change CFLAGS and all that.
60795 # Just disable it for now
60796 subdir_cache_file="/dev/null"
60799 # Invoke the configure script in the subdirectory
60802 export CFLAGS CPPFLAGS
60803 export CXXFLAGS CXXCPPFLAGS
60804 export FFLAGS
60805 export LDFLAGS LIBS
60806 sub_configure="$SHELL '$subdir_srcdir/configure'"
60807 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
60808 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
60809 eval "$sub_configure $subdir_args \
60810 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
60811 if test "$?" = "0"; then
60812 eval $subdir_success
60813 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
60814 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
60815 else
60816 eval $subdir_failure
60817 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
60818 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
60822 # Go back to the topdir
60825 cd $subdir_parent
60829 # Clean up
60832 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
60833 unset subdir_args subdir_dots total_dir dir_part temp
60836 if test "$should_build" = "1" ; then
60838 project=orte
60839 framework=errmgr
60840 component=$component
60842 # See if it dropped an output file for us to pick up some
60843 # shell variables in.
60844 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
60846 # Add this subdir to the mast list of all MCA component subdirs
60847 all_components="$all_components $component"
60849 if test "$compile_mode" = "dso" ; then
60850 dso_components="$dso_components $component"
60851 else
60852 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
60853 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
60854 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
60855 static_components="$static_components $component"
60858 # Output pretty results
60859 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
60860 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
60861 { echo "$as_me:$LINENO: result: yes" >&5
60862 echo "${ECHO_T}yes" >&6; }
60864 # If there's an output file, add the values to
60865 # scope_EXTRA_flags.
60866 if test -f $infile; then
60868 # First check for the ABORT tag
60869 line="`grep ABORT= $infile | cut -d= -f2-`"
60870 if test -n "$line" -a "$line" != "no"; then
60871 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
60872 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
60873 { { echo "$as_me:$LINENO: error: cannot continue" >&5
60874 echo "$as_me: error: cannot continue" >&2;}
60875 { (exit 1); exit 1; }; }
60878 # Check for flags passed up from the component. If we're
60879 # compiling statically, then take all flags passed up from the
60880 # component.
60881 if test "$compile_mode" = "static"; then
60882 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
60883 eval "line=$line"
60884 if test -n "$line"; then
60885 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
60887 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
60888 eval "line=$line"
60889 if test -n "$line"; then
60890 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
60894 if test "$DIRECT_errmgr" = "$component" ; then
60895 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
60896 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
60897 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
60898 eval $str
60899 else
60900 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
60901 *** does not appear to support direct calling.
60902 *** Aborting" >&5
60903 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
60904 *** does not appear to support direct calling.
60905 *** Aborting" >&2;}
60906 { (exit 1); exit 1; }; }
60909 else
60910 # were we supposed to have found something in the
60911 # post_configure.sh, but the file didn't exist?
60912 if test "$DIRECT_errmgr" = "$component" ; then
60913 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
60914 *** does not appear to support direct calling.
60915 *** Aborting" >&5
60916 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
60917 *** does not appear to support direct calling.
60918 *** Aborting" >&2;}
60919 { (exit 1); exit 1; }; }
60923 # now add the flags that were set in the environment variables
60924 # framework_component_FOO (for example, the flags set by
60925 # m4_configure components)
60927 # Check for flags passed up from the component. If we're
60928 # compiling statically, then take all flags passed up from the
60929 # component.
60930 if test "$compile_mode" = "static"; then
60931 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
60932 eval "$str"
60933 if test -n "$line" ; then
60934 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
60936 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
60937 eval "$str"
60938 if test -n "$line" ; then
60939 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
60943 else
60945 { echo "$as_me:$LINENO: checking if MCA component errmgr:$component can compile" >&5
60946 echo $ECHO_N "checking if MCA component errmgr:$component can compile... $ECHO_C" >&6; }
60947 { echo "$as_me:$LINENO: result: no" >&5
60948 echo "${ECHO_T}no" >&6; }
60950 # If this component was requested as the default for this
60951 # type, then abort.
60952 if test "$with_errmgr" = "$component" ; then
60953 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
60954 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
60955 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
60956 echo "$as_me: WARNING: This component was selected as the default" >&2;}
60957 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
60958 echo "$as_me: error: Cannot continue" >&2;}
60959 { (exit 1); exit 1; }; }
60960 exit 1
60963 if test ! -z "$DIRECT_errmgr" ; then
60964 if test "$DIRECT_errmgr" = "$component" ; then
60965 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
60966 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
60967 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
60968 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
60969 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
60970 echo "$as_me: error: Cannot continue" >&2;}
60971 { (exit 1); exit 1; }; }
60972 exit 1
60978 done
60983 MCA_errmgr_ALL_COMPONENTS="$all_components"
60984 MCA_errmgr_STATIC_COMPONENTS="$static_components"
60985 MCA_errmgr_DSO_COMPONENTS="$dso_components"
60986 MCA_errmgr_STATIC_LTLIBS="$static_ltlibs"
60994 MCA_errmgr_ALL_SUBDIRS=
60995 for item in $all_components ; do
60996 MCA_errmgr_ALL_SUBDIRS="$MCA_errmgr_ALL_SUBDIRS mca/errmgr/$item"
60997 done
61001 MCA_errmgr_STATIC_SUBDIRS=
61002 for item in $static_components ; do
61003 MCA_errmgr_STATIC_SUBDIRS="$MCA_errmgr_STATIC_SUBDIRS mca/errmgr/$item"
61004 done
61008 MCA_errmgr_DSO_SUBDIRS=
61009 for item in $dso_components ; do
61010 MCA_errmgr_DSO_SUBDIRS="$MCA_errmgr_DSO_SUBDIRS mca/errmgr/$item"
61011 done
61015 # add all the makefiles for the framework to the CONFIG_FILES.
61016 # Don't add common/base, since it doesn't exist
61017 ac_config_files="$ac_config_files orte/mca/errmgr/Makefile"
61020 # Create the final .h file that will be included in the type's
61021 # top-level glue. This lists all the static components. We don't
61022 # need to do this for "common".
61023 if test "errmgr" != "common"; then
61024 cat > $outfile <<EOF
61026 * \$HEADER\$
61029 `cat $outfile.extern`
61031 const mca_base_component_t *mca_errmgr_base_static_components[] = {
61032 `cat $outfile.struct`
61033 NULL
61036 # Only replace the header file if a) it doesn't previously
61037 # exist, or b) the contents are different. Do this to not
61038 # trigger recompilation of certain .c files just because the
61039 # timestamp changed on $outfile_real (similar to the way AC
61040 # handles AC_CONFIG_HEADER files).
61041 diff $outfile $outfile_real > /dev/null 2>&1
61042 if test "$?" != "0"; then
61043 mv $outfile $outfile_real
61044 else
61045 rm -f $outfile
61048 rm -f $outfile.struct $outfile.extern
61050 unset all_components static_components dso_components outfile outfile_real
61051 # common has to go up front
61052 if test "gpr" = "common" ; then
61053 MCA_orte_FRAMEWORKS="gpr $MCA_orte_FRAMEWORKS"
61054 MCA_orte_FRAMEWORKS_SUBDIRS="mca/gpr $MCA_orte_FRAMEWORKS_SUBDIRS"
61055 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_gpr_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
61056 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_gpr_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
61057 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_gpr_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
61058 else
61059 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS gpr"
61060 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/gpr"
61061 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_gpr_ALL_SUBDIRS)"
61062 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_gpr_DSO_SUBDIRS)"
61063 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_gpr_STATIC_SUBDIRS)"
61065 if test "gpr" != "common" ; then
61066 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/gpr/libmca_gpr.la"
61068 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_gpr_STATIC_LTLIBS)"
61070 ompi_show_subsubtitle "Configuring MCA framework gpr"
61072 # setup for framework
61073 all_components=
61074 static_components=
61075 dso_components=
61076 static_ltlibs=
61078 # Ensure that the directory where the #include file is to live
61079 # exists. Need to do this for VPATH builds, because the directory
61080 # may not exist yet. For the "common" type, it's not really a
61081 # component, so it doesn't have a base.
61082 if test "gpr" = "common" ; then
61083 outdir=orte/mca/common
61084 else
61085 outdir=orte/mca/gpr/base
61087 { as_dir=$outdir
61088 case $as_dir in #(
61089 -*) as_dir=./$as_dir;;
61090 esac
61091 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
61092 as_dirs=
61093 while :; do
61094 case $as_dir in #(
61095 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
61096 *) as_qdir=$as_dir;;
61097 esac
61098 as_dirs="'$as_qdir' $as_dirs"
61099 as_dir=`$as_dirname -- "$as_dir" ||
61100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61101 X"$as_dir" : 'X\(//\)[^/]' \| \
61102 X"$as_dir" : 'X\(//\)$' \| \
61103 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
61104 echo X"$as_dir" |
61105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
61106 s//\1/
61109 /^X\(\/\/\)[^/].*/{
61110 s//\1/
61113 /^X\(\/\/\)$/{
61114 s//\1/
61117 /^X\(\/\).*/{
61118 s//\1/
61121 s/.*/./; q'`
61122 test -d "$as_dir" && break
61123 done
61124 test -z "$as_dirs" || eval "mkdir $as_dirs"
61125 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
61126 echo "$as_me: error: cannot create directory $as_dir" >&2;}
61127 { (exit 1); exit 1; }; }; }
61129 # remove any previously generated #include files
61130 outfile_real=$outdir/static-components.h
61131 outfile=$outfile_real.new
61132 rm -f $outfile $outfile.struct $outfile.extern
61133 touch $outfile.struct $outfile.extern
61135 # print some nice messages about what we're about to do...
61136 { echo "$as_me:$LINENO: checking for no configure components in framework gpr" >&5
61137 echo $ECHO_N "checking for no configure components in framework gpr... $ECHO_C" >&6; }
61138 { echo "$as_me:$LINENO: result: null, proxy, replica" >&5
61139 echo "${ECHO_T}null, proxy, replica" >&6; }
61140 { echo "$as_me:$LINENO: checking for m4 configure components in framework gpr" >&5
61141 echo $ECHO_N "checking for m4 configure components in framework gpr... $ECHO_C" >&6; }
61142 { echo "$as_me:$LINENO: result: " >&5
61143 echo "${ECHO_T}" >&6; }
61145 # if we only want the first successful component, set the variable
61146 # happy_value to 0 so we stop on first assignment. Otherwise, set
61147 # it to zero so that components_looking_for_succeed is always 1
61148 happy_value=1
61150 components_looking_for_succeed=1
61152 # configure components that don't have any component-specific
61153 # configuration. See comment in CONFIGURE_PROJECT about the
61154 # m4_ifval
61155 # if there isn't a component list, abort
61158 ompi_show_subsubsubtitle "MCA component gpr:null (no configuration)"
61161 project=orte
61162 framework=gpr
61163 component=null
61164 component_path="$srcdir/$project/mca/$framework/$component"
61165 want_component=0
61167 # build if:
61168 # - the component type is direct and we are that component
61169 # - there is no ompi_ignore file
61170 # - there is an ompi_ignore, but there is an empty ompi_unignore
61171 # - there is an ompi_ignore, but username is in ompi_unignore
61172 if test -d $component_path ; then
61173 # decide if we want the component to be built or not. This
61174 # is spread out because some of the logic is a little complex
61175 # and test's syntax isn't exactly the greatest. We want to
61176 # build the component by default.
61177 want_component=1
61178 if test -f $component_path/.ompi_ignore ; then
61179 # If there is an ompi_ignore file, don't build
61180 # the component. Note that this decision can be
61181 # overriden by the unignore logic below.
61182 want_component=0
61184 if test -f $component_path/.ompi_unignore ; then
61185 # if there is an empty ompi_unignore, that is
61186 # equivalent to having your userid in the unignore file.
61187 # If userid is in the file, unignore the ignore file.
61188 if test ! -s $component_path/.ompi_unignore ; then
61189 want_component=1
61190 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
61191 want_component=1
61194 # if this component type is direct and we are not it, we don't want
61195 # to be built. Otherwise, we do want to be built.
61196 if test ! -z "$DIRECT_gpr" ; then
61197 if test "$DIRECT_gpr" = "$component" ; then
61198 want_component=1
61199 else
61200 want_component=0
61205 # if we were explicitly disabled, don't build :)
61206 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
61207 eval $str
61208 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
61209 want_component=0
61212 if test "$want_component" = "1"; then
61213 should_build=$components_looking_for_succeed
61214 else
61215 should_build=0
61220 project=orte
61221 framework=gpr
61222 component=null
61224 # Is this component going to built staic or shared? $component
61225 # might not be known until configure time, so have to use eval
61226 # tricks - can't set variable names at autogen time.
61227 str="SHARED_FRAMEWORK=\$DSO_$framework"
61228 eval $str
61229 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
61230 eval $str
61232 str="STATIC_FRAMEWORK=\$STATIC_$framework"
61233 eval $str
61234 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
61235 eval $str
61237 shared_mode_override=static
61239 # Setup for either shared or static
61240 if test "$STATIC_FRAMEWORK" = "1" -o \
61241 "$STATIC_COMPONENT" = "1" -o \
61242 "$STATIC_all" = "1" ; then
61243 compile_mode="static"
61244 elif test "$shared_mode_override" = "dso" -o \
61245 "$SHARED_FRAMEWORK" = "1" -o \
61246 "$SHARED_COMPONENT" = "1" -o \
61247 "$DSO_all" = "1"; then
61248 compile_mode="dso"
61249 else
61250 compile_mode="static"
61253 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
61254 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
61255 if test "$DIRECT_gpr" = "$component" ; then
61256 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
61257 echo "${ECHO_T}$compile_mode - direct" >&6; }
61258 else
61259 { echo "$as_me:$LINENO: result: $compile_mode" >&5
61260 echo "${ECHO_T}$compile_mode" >&6; }
61264 if test "$should_build" = "1" ; then
61266 project=orte
61267 framework=gpr
61268 component=null
61270 # See if it dropped an output file for us to pick up some
61271 # shell variables in.
61272 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
61274 # Add this subdir to the mast list of all MCA component subdirs
61275 all_components="$all_components $component"
61277 if test "$compile_mode" = "dso" ; then
61278 dso_components="$dso_components $component"
61279 else
61280 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
61281 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
61282 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
61283 static_components="$static_components $component"
61286 # Output pretty results
61287 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
61288 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
61289 { echo "$as_me:$LINENO: result: yes" >&5
61290 echo "${ECHO_T}yes" >&6; }
61292 # If there's an output file, add the values to
61293 # scope_EXTRA_flags.
61294 if test -f $infile; then
61296 # First check for the ABORT tag
61297 line="`grep ABORT= $infile | cut -d= -f2-`"
61298 if test -n "$line" -a "$line" != "no"; then
61299 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
61300 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
61301 { { echo "$as_me:$LINENO: error: cannot continue" >&5
61302 echo "$as_me: error: cannot continue" >&2;}
61303 { (exit 1); exit 1; }; }
61306 # Check for flags passed up from the component. If we're
61307 # compiling statically, then take all flags passed up from the
61308 # component.
61309 if test "$compile_mode" = "static"; then
61310 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
61311 eval "line=$line"
61312 if test -n "$line"; then
61313 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
61315 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
61316 eval "line=$line"
61317 if test -n "$line"; then
61318 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
61322 if test "$DIRECT_gpr" = "$component" ; then
61323 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
61324 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
61325 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
61326 eval $str
61327 else
61328 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
61329 *** does not appear to support direct calling.
61330 *** Aborting" >&5
61331 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
61332 *** does not appear to support direct calling.
61333 *** Aborting" >&2;}
61334 { (exit 1); exit 1; }; }
61337 else
61338 # were we supposed to have found something in the
61339 # post_configure.sh, but the file didn't exist?
61340 if test "$DIRECT_gpr" = "$component" ; then
61341 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
61342 *** does not appear to support direct calling.
61343 *** Aborting" >&5
61344 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
61345 *** does not appear to support direct calling.
61346 *** Aborting" >&2;}
61347 { (exit 1); exit 1; }; }
61351 # now add the flags that were set in the environment variables
61352 # framework_component_FOO (for example, the flags set by
61353 # m4_configure components)
61355 # Check for flags passed up from the component. If we're
61356 # compiling statically, then take all flags passed up from the
61357 # component.
61358 if test "$compile_mode" = "static"; then
61359 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
61360 eval "$str"
61361 if test -n "$line" ; then
61362 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
61364 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
61365 eval "$str"
61366 if test -n "$line" ; then
61367 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
61371 else
61373 { echo "$as_me:$LINENO: checking if MCA component gpr:null can compile" >&5
61374 echo $ECHO_N "checking if MCA component gpr:null can compile... $ECHO_C" >&6; }
61375 { echo "$as_me:$LINENO: result: no" >&5
61376 echo "${ECHO_T}no" >&6; }
61378 # If this component was requested as the default for this
61379 # type, then abort.
61380 if test "$with_gpr" = "null" ; then
61381 { echo "$as_me:$LINENO: WARNING: MCA component \"null\" failed to configure properly" >&5
61382 echo "$as_me: WARNING: MCA component \"null\" failed to configure properly" >&2;}
61383 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
61384 echo "$as_me: WARNING: This component was selected as the default" >&2;}
61385 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
61386 echo "$as_me: error: Cannot continue" >&2;}
61387 { (exit 1); exit 1; }; }
61388 exit 1
61391 if test ! -z "$DIRECT_gpr" ; then
61392 if test "$DIRECT_gpr" = "null" ; then
61393 { echo "$as_me:$LINENO: WARNING: MCA component \"null\" failed to configure properly" >&5
61394 echo "$as_me: WARNING: MCA component \"null\" failed to configure properly" >&2;}
61395 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
61396 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
61397 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
61398 echo "$as_me: error: Cannot continue" >&2;}
61399 { (exit 1); exit 1; }; }
61400 exit 1
61404 # add component to all component list
61405 all_components="$all_components null"
61408 # set the AM_CONDITIONAL on how we should build
61409 if test "$compile_mode" = "dso" ; then
61410 BUILD_gpr_null_DSO=1
61411 else
61412 BUILD_gpr_null_DSO=0
61416 if test "$BUILD_gpr_null_DSO" = "1"; then
61417 OMPI_BUILD_gpr_null_DSO_TRUE=
61418 OMPI_BUILD_gpr_null_DSO_FALSE='#'
61419 else
61420 OMPI_BUILD_gpr_null_DSO_TRUE='#'
61421 OMPI_BUILD_gpr_null_DSO_FALSE=
61425 unset compile_mode
61427 ompi_show_subsubsubtitle "MCA component gpr:proxy (no configuration)"
61430 project=orte
61431 framework=gpr
61432 component=proxy
61433 component_path="$srcdir/$project/mca/$framework/$component"
61434 want_component=0
61436 # build if:
61437 # - the component type is direct and we are that component
61438 # - there is no ompi_ignore file
61439 # - there is an ompi_ignore, but there is an empty ompi_unignore
61440 # - there is an ompi_ignore, but username is in ompi_unignore
61441 if test -d $component_path ; then
61442 # decide if we want the component to be built or not. This
61443 # is spread out because some of the logic is a little complex
61444 # and test's syntax isn't exactly the greatest. We want to
61445 # build the component by default.
61446 want_component=1
61447 if test -f $component_path/.ompi_ignore ; then
61448 # If there is an ompi_ignore file, don't build
61449 # the component. Note that this decision can be
61450 # overriden by the unignore logic below.
61451 want_component=0
61453 if test -f $component_path/.ompi_unignore ; then
61454 # if there is an empty ompi_unignore, that is
61455 # equivalent to having your userid in the unignore file.
61456 # If userid is in the file, unignore the ignore file.
61457 if test ! -s $component_path/.ompi_unignore ; then
61458 want_component=1
61459 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
61460 want_component=1
61463 # if this component type is direct and we are not it, we don't want
61464 # to be built. Otherwise, we do want to be built.
61465 if test ! -z "$DIRECT_gpr" ; then
61466 if test "$DIRECT_gpr" = "$component" ; then
61467 want_component=1
61468 else
61469 want_component=0
61474 # if we were explicitly disabled, don't build :)
61475 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
61476 eval $str
61477 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
61478 want_component=0
61481 if test "$want_component" = "1"; then
61482 should_build=$components_looking_for_succeed
61483 else
61484 should_build=0
61489 project=orte
61490 framework=gpr
61491 component=proxy
61493 # Is this component going to built staic or shared? $component
61494 # might not be known until configure time, so have to use eval
61495 # tricks - can't set variable names at autogen time.
61496 str="SHARED_FRAMEWORK=\$DSO_$framework"
61497 eval $str
61498 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
61499 eval $str
61501 str="STATIC_FRAMEWORK=\$STATIC_$framework"
61502 eval $str
61503 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
61504 eval $str
61506 shared_mode_override=static
61508 # Setup for either shared or static
61509 if test "$STATIC_FRAMEWORK" = "1" -o \
61510 "$STATIC_COMPONENT" = "1" -o \
61511 "$STATIC_all" = "1" ; then
61512 compile_mode="static"
61513 elif test "$shared_mode_override" = "dso" -o \
61514 "$SHARED_FRAMEWORK" = "1" -o \
61515 "$SHARED_COMPONENT" = "1" -o \
61516 "$DSO_all" = "1"; then
61517 compile_mode="dso"
61518 else
61519 compile_mode="static"
61522 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
61523 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
61524 if test "$DIRECT_gpr" = "$component" ; then
61525 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
61526 echo "${ECHO_T}$compile_mode - direct" >&6; }
61527 else
61528 { echo "$as_me:$LINENO: result: $compile_mode" >&5
61529 echo "${ECHO_T}$compile_mode" >&6; }
61533 if test "$should_build" = "1" ; then
61535 project=orte
61536 framework=gpr
61537 component=proxy
61539 # See if it dropped an output file for us to pick up some
61540 # shell variables in.
61541 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
61543 # Add this subdir to the mast list of all MCA component subdirs
61544 all_components="$all_components $component"
61546 if test "$compile_mode" = "dso" ; then
61547 dso_components="$dso_components $component"
61548 else
61549 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
61550 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
61551 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
61552 static_components="$static_components $component"
61555 # Output pretty results
61556 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
61557 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
61558 { echo "$as_me:$LINENO: result: yes" >&5
61559 echo "${ECHO_T}yes" >&6; }
61561 # If there's an output file, add the values to
61562 # scope_EXTRA_flags.
61563 if test -f $infile; then
61565 # First check for the ABORT tag
61566 line="`grep ABORT= $infile | cut -d= -f2-`"
61567 if test -n "$line" -a "$line" != "no"; then
61568 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
61569 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
61570 { { echo "$as_me:$LINENO: error: cannot continue" >&5
61571 echo "$as_me: error: cannot continue" >&2;}
61572 { (exit 1); exit 1; }; }
61575 # Check for flags passed up from the component. If we're
61576 # compiling statically, then take all flags passed up from the
61577 # component.
61578 if test "$compile_mode" = "static"; then
61579 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
61580 eval "line=$line"
61581 if test -n "$line"; then
61582 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
61584 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
61585 eval "line=$line"
61586 if test -n "$line"; then
61587 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
61591 if test "$DIRECT_gpr" = "$component" ; then
61592 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
61593 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
61594 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
61595 eval $str
61596 else
61597 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
61598 *** does not appear to support direct calling.
61599 *** Aborting" >&5
61600 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
61601 *** does not appear to support direct calling.
61602 *** Aborting" >&2;}
61603 { (exit 1); exit 1; }; }
61606 else
61607 # were we supposed to have found something in the
61608 # post_configure.sh, but the file didn't exist?
61609 if test "$DIRECT_gpr" = "$component" ; then
61610 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
61611 *** does not appear to support direct calling.
61612 *** Aborting" >&5
61613 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
61614 *** does not appear to support direct calling.
61615 *** Aborting" >&2;}
61616 { (exit 1); exit 1; }; }
61620 # now add the flags that were set in the environment variables
61621 # framework_component_FOO (for example, the flags set by
61622 # m4_configure components)
61624 # Check for flags passed up from the component. If we're
61625 # compiling statically, then take all flags passed up from the
61626 # component.
61627 if test "$compile_mode" = "static"; then
61628 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
61629 eval "$str"
61630 if test -n "$line" ; then
61631 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
61633 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
61634 eval "$str"
61635 if test -n "$line" ; then
61636 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
61640 else
61642 { echo "$as_me:$LINENO: checking if MCA component gpr:proxy can compile" >&5
61643 echo $ECHO_N "checking if MCA component gpr:proxy can compile... $ECHO_C" >&6; }
61644 { echo "$as_me:$LINENO: result: no" >&5
61645 echo "${ECHO_T}no" >&6; }
61647 # If this component was requested as the default for this
61648 # type, then abort.
61649 if test "$with_gpr" = "proxy" ; then
61650 { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
61651 echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
61652 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
61653 echo "$as_me: WARNING: This component was selected as the default" >&2;}
61654 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
61655 echo "$as_me: error: Cannot continue" >&2;}
61656 { (exit 1); exit 1; }; }
61657 exit 1
61660 if test ! -z "$DIRECT_gpr" ; then
61661 if test "$DIRECT_gpr" = "proxy" ; then
61662 { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
61663 echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
61664 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
61665 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
61666 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
61667 echo "$as_me: error: Cannot continue" >&2;}
61668 { (exit 1); exit 1; }; }
61669 exit 1
61673 # add component to all component list
61674 all_components="$all_components proxy"
61677 # set the AM_CONDITIONAL on how we should build
61678 if test "$compile_mode" = "dso" ; then
61679 BUILD_gpr_proxy_DSO=1
61680 else
61681 BUILD_gpr_proxy_DSO=0
61685 if test "$BUILD_gpr_proxy_DSO" = "1"; then
61686 OMPI_BUILD_gpr_proxy_DSO_TRUE=
61687 OMPI_BUILD_gpr_proxy_DSO_FALSE='#'
61688 else
61689 OMPI_BUILD_gpr_proxy_DSO_TRUE='#'
61690 OMPI_BUILD_gpr_proxy_DSO_FALSE=
61694 unset compile_mode
61696 ompi_show_subsubsubtitle "MCA component gpr:replica (no configuration)"
61699 project=orte
61700 framework=gpr
61701 component=replica
61702 component_path="$srcdir/$project/mca/$framework/$component"
61703 want_component=0
61705 # build if:
61706 # - the component type is direct and we are that component
61707 # - there is no ompi_ignore file
61708 # - there is an ompi_ignore, but there is an empty ompi_unignore
61709 # - there is an ompi_ignore, but username is in ompi_unignore
61710 if test -d $component_path ; then
61711 # decide if we want the component to be built or not. This
61712 # is spread out because some of the logic is a little complex
61713 # and test's syntax isn't exactly the greatest. We want to
61714 # build the component by default.
61715 want_component=1
61716 if test -f $component_path/.ompi_ignore ; then
61717 # If there is an ompi_ignore file, don't build
61718 # the component. Note that this decision can be
61719 # overriden by the unignore logic below.
61720 want_component=0
61722 if test -f $component_path/.ompi_unignore ; then
61723 # if there is an empty ompi_unignore, that is
61724 # equivalent to having your userid in the unignore file.
61725 # If userid is in the file, unignore the ignore file.
61726 if test ! -s $component_path/.ompi_unignore ; then
61727 want_component=1
61728 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
61729 want_component=1
61732 # if this component type is direct and we are not it, we don't want
61733 # to be built. Otherwise, we do want to be built.
61734 if test ! -z "$DIRECT_gpr" ; then
61735 if test "$DIRECT_gpr" = "$component" ; then
61736 want_component=1
61737 else
61738 want_component=0
61743 # if we were explicitly disabled, don't build :)
61744 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
61745 eval $str
61746 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
61747 want_component=0
61750 if test "$want_component" = "1"; then
61751 should_build=$components_looking_for_succeed
61752 else
61753 should_build=0
61758 project=orte
61759 framework=gpr
61760 component=replica
61762 # Is this component going to built staic or shared? $component
61763 # might not be known until configure time, so have to use eval
61764 # tricks - can't set variable names at autogen time.
61765 str="SHARED_FRAMEWORK=\$DSO_$framework"
61766 eval $str
61767 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
61768 eval $str
61770 str="STATIC_FRAMEWORK=\$STATIC_$framework"
61771 eval $str
61772 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
61773 eval $str
61775 shared_mode_override=static
61777 # Setup for either shared or static
61778 if test "$STATIC_FRAMEWORK" = "1" -o \
61779 "$STATIC_COMPONENT" = "1" -o \
61780 "$STATIC_all" = "1" ; then
61781 compile_mode="static"
61782 elif test "$shared_mode_override" = "dso" -o \
61783 "$SHARED_FRAMEWORK" = "1" -o \
61784 "$SHARED_COMPONENT" = "1" -o \
61785 "$DSO_all" = "1"; then
61786 compile_mode="dso"
61787 else
61788 compile_mode="static"
61791 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
61792 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
61793 if test "$DIRECT_gpr" = "$component" ; then
61794 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
61795 echo "${ECHO_T}$compile_mode - direct" >&6; }
61796 else
61797 { echo "$as_me:$LINENO: result: $compile_mode" >&5
61798 echo "${ECHO_T}$compile_mode" >&6; }
61802 if test "$should_build" = "1" ; then
61804 project=orte
61805 framework=gpr
61806 component=replica
61808 # See if it dropped an output file for us to pick up some
61809 # shell variables in.
61810 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
61812 # Add this subdir to the mast list of all MCA component subdirs
61813 all_components="$all_components $component"
61815 if test "$compile_mode" = "dso" ; then
61816 dso_components="$dso_components $component"
61817 else
61818 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
61819 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
61820 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
61821 static_components="$static_components $component"
61824 # Output pretty results
61825 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
61826 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
61827 { echo "$as_me:$LINENO: result: yes" >&5
61828 echo "${ECHO_T}yes" >&6; }
61830 # If there's an output file, add the values to
61831 # scope_EXTRA_flags.
61832 if test -f $infile; then
61834 # First check for the ABORT tag
61835 line="`grep ABORT= $infile | cut -d= -f2-`"
61836 if test -n "$line" -a "$line" != "no"; then
61837 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
61838 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
61839 { { echo "$as_me:$LINENO: error: cannot continue" >&5
61840 echo "$as_me: error: cannot continue" >&2;}
61841 { (exit 1); exit 1; }; }
61844 # Check for flags passed up from the component. If we're
61845 # compiling statically, then take all flags passed up from the
61846 # component.
61847 if test "$compile_mode" = "static"; then
61848 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
61849 eval "line=$line"
61850 if test -n "$line"; then
61851 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
61853 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
61854 eval "line=$line"
61855 if test -n "$line"; then
61856 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
61860 if test "$DIRECT_gpr" = "$component" ; then
61861 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
61862 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
61863 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
61864 eval $str
61865 else
61866 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
61867 *** does not appear to support direct calling.
61868 *** Aborting" >&5
61869 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
61870 *** does not appear to support direct calling.
61871 *** Aborting" >&2;}
61872 { (exit 1); exit 1; }; }
61875 else
61876 # were we supposed to have found something in the
61877 # post_configure.sh, but the file didn't exist?
61878 if test "$DIRECT_gpr" = "$component" ; then
61879 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
61880 *** does not appear to support direct calling.
61881 *** Aborting" >&5
61882 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
61883 *** does not appear to support direct calling.
61884 *** Aborting" >&2;}
61885 { (exit 1); exit 1; }; }
61889 # now add the flags that were set in the environment variables
61890 # framework_component_FOO (for example, the flags set by
61891 # m4_configure components)
61893 # Check for flags passed up from the component. If we're
61894 # compiling statically, then take all flags passed up from the
61895 # component.
61896 if test "$compile_mode" = "static"; then
61897 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
61898 eval "$str"
61899 if test -n "$line" ; then
61900 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
61902 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
61903 eval "$str"
61904 if test -n "$line" ; then
61905 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
61909 else
61911 { echo "$as_me:$LINENO: checking if MCA component gpr:replica can compile" >&5
61912 echo $ECHO_N "checking if MCA component gpr:replica can compile... $ECHO_C" >&6; }
61913 { echo "$as_me:$LINENO: result: no" >&5
61914 echo "${ECHO_T}no" >&6; }
61916 # If this component was requested as the default for this
61917 # type, then abort.
61918 if test "$with_gpr" = "replica" ; then
61919 { echo "$as_me:$LINENO: WARNING: MCA component \"replica\" failed to configure properly" >&5
61920 echo "$as_me: WARNING: MCA component \"replica\" failed to configure properly" >&2;}
61921 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
61922 echo "$as_me: WARNING: This component was selected as the default" >&2;}
61923 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
61924 echo "$as_me: error: Cannot continue" >&2;}
61925 { (exit 1); exit 1; }; }
61926 exit 1
61929 if test ! -z "$DIRECT_gpr" ; then
61930 if test "$DIRECT_gpr" = "replica" ; then
61931 { echo "$as_me:$LINENO: WARNING: MCA component \"replica\" failed to configure properly" >&5
61932 echo "$as_me: WARNING: MCA component \"replica\" failed to configure properly" >&2;}
61933 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
61934 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
61935 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
61936 echo "$as_me: error: Cannot continue" >&2;}
61937 { (exit 1); exit 1; }; }
61938 exit 1
61942 # add component to all component list
61943 all_components="$all_components replica"
61946 # set the AM_CONDITIONAL on how we should build
61947 if test "$compile_mode" = "dso" ; then
61948 BUILD_gpr_replica_DSO=1
61949 else
61950 BUILD_gpr_replica_DSO=0
61954 if test "$BUILD_gpr_replica_DSO" = "1"; then
61955 OMPI_BUILD_gpr_replica_DSO_TRUE=
61956 OMPI_BUILD_gpr_replica_DSO_FALSE='#'
61957 else
61958 OMPI_BUILD_gpr_replica_DSO_TRUE='#'
61959 OMPI_BUILD_gpr_replica_DSO_FALSE=
61963 unset compile_mode
61966 # configure components that use built-in configuration scripts
61967 # see comment in CONFIGURE_PROJECT about the m4_ifval
61968 # if there isn't a component list, abort
61972 # configure components that provide their own configure script.
61973 # It would be really hard to run these for "find first that
61974 # works", so we don't :)
61975 if test "$happy_value" = "1"; then
61977 for component_path in $srcdir/orte/mca/gpr/* ; do
61978 component="`basename $component_path`"
61979 if test -d $component_path -a -x $component_path/configure ; then
61980 ompi_show_subsubsubtitle "MCA component gpr:$component (need to configure)"
61983 project=orte
61984 framework=gpr
61985 component=$component
61986 component_path="$srcdir/$project/mca/$framework/$component"
61987 want_component=0
61989 # build if:
61990 # - the component type is direct and we are that component
61991 # - there is no ompi_ignore file
61992 # - there is an ompi_ignore, but there is an empty ompi_unignore
61993 # - there is an ompi_ignore, but username is in ompi_unignore
61994 if test -d $component_path ; then
61995 # decide if we want the component to be built or not. This
61996 # is spread out because some of the logic is a little complex
61997 # and test's syntax isn't exactly the greatest. We want to
61998 # build the component by default.
61999 want_component=1
62000 if test -f $component_path/.ompi_ignore ; then
62001 # If there is an ompi_ignore file, don't build
62002 # the component. Note that this decision can be
62003 # overriden by the unignore logic below.
62004 want_component=0
62006 if test -f $component_path/.ompi_unignore ; then
62007 # if there is an empty ompi_unignore, that is
62008 # equivalent to having your userid in the unignore file.
62009 # If userid is in the file, unignore the ignore file.
62010 if test ! -s $component_path/.ompi_unignore ; then
62011 want_component=1
62012 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
62013 want_component=1
62016 # if this component type is direct and we are not it, we don't want
62017 # to be built. Otherwise, we do want to be built.
62018 if test ! -z "$DIRECT_gpr" ; then
62019 if test "$DIRECT_gpr" = "$component" ; then
62020 want_component=1
62021 else
62022 want_component=0
62027 # if we were explicitly disabled, don't build :)
62028 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
62029 eval $str
62030 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
62031 want_component=0
62034 if test "$want_component" = "1"; then
62035 should_build=1
62036 else
62037 should_build=0
62042 project=orte
62043 framework=gpr
62044 component=$component
62046 # Is this component going to built staic or shared? $component
62047 # might not be known until configure time, so have to use eval
62048 # tricks - can't set variable names at autogen time.
62049 str="SHARED_FRAMEWORK=\$DSO_$framework"
62050 eval $str
62051 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
62052 eval $str
62054 str="STATIC_FRAMEWORK=\$STATIC_$framework"
62055 eval $str
62056 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
62057 eval $str
62059 shared_mode_override=static
62061 # Setup for either shared or static
62062 if test "$STATIC_FRAMEWORK" = "1" -o \
62063 "$STATIC_COMPONENT" = "1" -o \
62064 "$STATIC_all" = "1" ; then
62065 compile_mode="static"
62066 elif test "$shared_mode_override" = "dso" -o \
62067 "$SHARED_FRAMEWORK" = "1" -o \
62068 "$SHARED_COMPONENT" = "1" -o \
62069 "$DSO_all" = "1"; then
62070 compile_mode="dso"
62071 else
62072 compile_mode="static"
62075 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
62076 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
62077 if test "$DIRECT_gpr" = "$component" ; then
62078 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
62079 echo "${ECHO_T}$compile_mode - direct" >&6; }
62080 else
62081 { echo "$as_me:$LINENO: result: $compile_mode" >&5
62082 echo "${ECHO_T}$compile_mode" >&6; }
62086 if test "$should_build" = "1" ; then
62089 # Invoke configure in a specific subdirectory.
62091 # orte/mca/gpr/$component is the directory to invoke in
62092 # $ompi_subdir_args is the list of arguments to pass
62093 # should_build=1 is actions to execute upon success
62094 # should_build=2 is actions to execute upon failure
62096 subdir_dir="orte/mca/gpr/$component"
62097 subdir_args="$ompi_subdir_args"
62098 subdir_success="should_build=1"
62099 subdir_failure="should_build=2"
62102 # Sanity checks
62105 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
62106 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
62107 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
62110 # Gotta check where srcdir is for VPATH builds. If srcdir is not
62111 # ., then we need to mkdir the subdir. Otherwise, we can just cd
62112 # into it.
62115 case $srcdir in
62119 { case $subdir_dir in
62120 [\\/]* | ?:[\\/]* ) total_dir=;;
62121 *) total_dir=.;;
62122 esac
62123 temp=$subdir_dir
62124 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
62125 case $dir_part in
62126 # Skip DOS drivespec
62127 ?:) total_dir=$dir_part ;;
62128 *) total_dir=$total_dir/$dir_part
62129 test -d "$total_dir" ||
62130 mkdir "$total_dir" ||
62131 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
62132 echo "$as_me: error: cannot create $subdir_dir" >&2;}
62133 { (exit 1); exit 1; }; }
62135 esac
62136 done; }
62138 if test -d ./$subdir_dir; then :;
62139 else
62140 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
62141 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
62142 { (exit 1); exit 1; }; }
62145 esac
62148 # Move into the target directory
62151 subdir_parent=`pwd`
62152 cd $subdir_dir
62155 # Make a "../" for each directory in $subdir_dir.
62158 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
62160 # Construct the --srcdir argument
62163 case $srcdir in
62165 # In place
62166 subdir_srcdir="$srcdir"
62168 [\\/]* | ?:[\\/]* )
62169 # Absolute path
62170 subdir_srcdir="$srcdir/$subdir_dir"
62173 # Relative path
62174 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
62176 esac
62179 # Construct the --cache-file argument
62182 # BWB - subdir caching is a pain since we change CFLAGS and all that.
62183 # Just disable it for now
62184 subdir_cache_file="/dev/null"
62187 # Invoke the configure script in the subdirectory
62190 export CFLAGS CPPFLAGS
62191 export CXXFLAGS CXXCPPFLAGS
62192 export FFLAGS
62193 export LDFLAGS LIBS
62194 sub_configure="$SHELL '$subdir_srcdir/configure'"
62195 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
62196 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
62197 eval "$sub_configure $subdir_args \
62198 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
62199 if test "$?" = "0"; then
62200 eval $subdir_success
62201 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
62202 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
62203 else
62204 eval $subdir_failure
62205 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
62206 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
62210 # Go back to the topdir
62213 cd $subdir_parent
62217 # Clean up
62220 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
62221 unset subdir_args subdir_dots total_dir dir_part temp
62224 if test "$should_build" = "1" ; then
62226 project=orte
62227 framework=gpr
62228 component=$component
62230 # See if it dropped an output file for us to pick up some
62231 # shell variables in.
62232 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
62234 # Add this subdir to the mast list of all MCA component subdirs
62235 all_components="$all_components $component"
62237 if test "$compile_mode" = "dso" ; then
62238 dso_components="$dso_components $component"
62239 else
62240 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
62241 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
62242 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
62243 static_components="$static_components $component"
62246 # Output pretty results
62247 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
62248 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
62249 { echo "$as_me:$LINENO: result: yes" >&5
62250 echo "${ECHO_T}yes" >&6; }
62252 # If there's an output file, add the values to
62253 # scope_EXTRA_flags.
62254 if test -f $infile; then
62256 # First check for the ABORT tag
62257 line="`grep ABORT= $infile | cut -d= -f2-`"
62258 if test -n "$line" -a "$line" != "no"; then
62259 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
62260 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
62261 { { echo "$as_me:$LINENO: error: cannot continue" >&5
62262 echo "$as_me: error: cannot continue" >&2;}
62263 { (exit 1); exit 1; }; }
62266 # Check for flags passed up from the component. If we're
62267 # compiling statically, then take all flags passed up from the
62268 # component.
62269 if test "$compile_mode" = "static"; then
62270 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
62271 eval "line=$line"
62272 if test -n "$line"; then
62273 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
62275 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
62276 eval "line=$line"
62277 if test -n "$line"; then
62278 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
62282 if test "$DIRECT_gpr" = "$component" ; then
62283 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
62284 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
62285 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
62286 eval $str
62287 else
62288 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
62289 *** does not appear to support direct calling.
62290 *** Aborting" >&5
62291 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
62292 *** does not appear to support direct calling.
62293 *** Aborting" >&2;}
62294 { (exit 1); exit 1; }; }
62297 else
62298 # were we supposed to have found something in the
62299 # post_configure.sh, but the file didn't exist?
62300 if test "$DIRECT_gpr" = "$component" ; then
62301 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
62302 *** does not appear to support direct calling.
62303 *** Aborting" >&5
62304 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
62305 *** does not appear to support direct calling.
62306 *** Aborting" >&2;}
62307 { (exit 1); exit 1; }; }
62311 # now add the flags that were set in the environment variables
62312 # framework_component_FOO (for example, the flags set by
62313 # m4_configure components)
62315 # Check for flags passed up from the component. If we're
62316 # compiling statically, then take all flags passed up from the
62317 # component.
62318 if test "$compile_mode" = "static"; then
62319 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
62320 eval "$str"
62321 if test -n "$line" ; then
62322 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
62324 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
62325 eval "$str"
62326 if test -n "$line" ; then
62327 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
62331 else
62333 { echo "$as_me:$LINENO: checking if MCA component gpr:$component can compile" >&5
62334 echo $ECHO_N "checking if MCA component gpr:$component can compile... $ECHO_C" >&6; }
62335 { echo "$as_me:$LINENO: result: no" >&5
62336 echo "${ECHO_T}no" >&6; }
62338 # If this component was requested as the default for this
62339 # type, then abort.
62340 if test "$with_gpr" = "$component" ; then
62341 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
62342 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
62343 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
62344 echo "$as_me: WARNING: This component was selected as the default" >&2;}
62345 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
62346 echo "$as_me: error: Cannot continue" >&2;}
62347 { (exit 1); exit 1; }; }
62348 exit 1
62351 if test ! -z "$DIRECT_gpr" ; then
62352 if test "$DIRECT_gpr" = "$component" ; then
62353 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
62354 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
62355 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
62356 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
62357 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
62358 echo "$as_me: error: Cannot continue" >&2;}
62359 { (exit 1); exit 1; }; }
62360 exit 1
62366 done
62371 MCA_gpr_ALL_COMPONENTS="$all_components"
62372 MCA_gpr_STATIC_COMPONENTS="$static_components"
62373 MCA_gpr_DSO_COMPONENTS="$dso_components"
62374 MCA_gpr_STATIC_LTLIBS="$static_ltlibs"
62382 MCA_gpr_ALL_SUBDIRS=
62383 for item in $all_components ; do
62384 MCA_gpr_ALL_SUBDIRS="$MCA_gpr_ALL_SUBDIRS mca/gpr/$item"
62385 done
62389 MCA_gpr_STATIC_SUBDIRS=
62390 for item in $static_components ; do
62391 MCA_gpr_STATIC_SUBDIRS="$MCA_gpr_STATIC_SUBDIRS mca/gpr/$item"
62392 done
62396 MCA_gpr_DSO_SUBDIRS=
62397 for item in $dso_components ; do
62398 MCA_gpr_DSO_SUBDIRS="$MCA_gpr_DSO_SUBDIRS mca/gpr/$item"
62399 done
62403 # add all the makefiles for the framework to the CONFIG_FILES.
62404 # Don't add common/base, since it doesn't exist
62405 ac_config_files="$ac_config_files orte/mca/gpr/Makefile"
62408 # Create the final .h file that will be included in the type's
62409 # top-level glue. This lists all the static components. We don't
62410 # need to do this for "common".
62411 if test "gpr" != "common"; then
62412 cat > $outfile <<EOF
62414 * \$HEADER\$
62417 `cat $outfile.extern`
62419 const mca_base_component_t *mca_gpr_base_static_components[] = {
62420 `cat $outfile.struct`
62421 NULL
62424 # Only replace the header file if a) it doesn't previously
62425 # exist, or b) the contents are different. Do this to not
62426 # trigger recompilation of certain .c files just because the
62427 # timestamp changed on $outfile_real (similar to the way AC
62428 # handles AC_CONFIG_HEADER files).
62429 diff $outfile $outfile_real > /dev/null 2>&1
62430 if test "$?" != "0"; then
62431 mv $outfile $outfile_real
62432 else
62433 rm -f $outfile
62436 rm -f $outfile.struct $outfile.extern
62438 unset all_components static_components dso_components outfile outfile_real
62439 # common has to go up front
62440 if test "iof" = "common" ; then
62441 MCA_orte_FRAMEWORKS="iof $MCA_orte_FRAMEWORKS"
62442 MCA_orte_FRAMEWORKS_SUBDIRS="mca/iof $MCA_orte_FRAMEWORKS_SUBDIRS"
62443 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_iof_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
62444 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_iof_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
62445 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_iof_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
62446 else
62447 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS iof"
62448 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/iof"
62449 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_iof_ALL_SUBDIRS)"
62450 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_iof_DSO_SUBDIRS)"
62451 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_iof_STATIC_SUBDIRS)"
62453 if test "iof" != "common" ; then
62454 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/iof/libmca_iof.la"
62456 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_iof_STATIC_LTLIBS)"
62458 ompi_show_subsubtitle "Configuring MCA framework iof"
62460 # setup for framework
62461 all_components=
62462 static_components=
62463 dso_components=
62464 static_ltlibs=
62466 # Ensure that the directory where the #include file is to live
62467 # exists. Need to do this for VPATH builds, because the directory
62468 # may not exist yet. For the "common" type, it's not really a
62469 # component, so it doesn't have a base.
62470 if test "iof" = "common" ; then
62471 outdir=orte/mca/common
62472 else
62473 outdir=orte/mca/iof/base
62475 { as_dir=$outdir
62476 case $as_dir in #(
62477 -*) as_dir=./$as_dir;;
62478 esac
62479 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
62480 as_dirs=
62481 while :; do
62482 case $as_dir in #(
62483 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
62484 *) as_qdir=$as_dir;;
62485 esac
62486 as_dirs="'$as_qdir' $as_dirs"
62487 as_dir=`$as_dirname -- "$as_dir" ||
62488 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62489 X"$as_dir" : 'X\(//\)[^/]' \| \
62490 X"$as_dir" : 'X\(//\)$' \| \
62491 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
62492 echo X"$as_dir" |
62493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62494 s//\1/
62497 /^X\(\/\/\)[^/].*/{
62498 s//\1/
62501 /^X\(\/\/\)$/{
62502 s//\1/
62505 /^X\(\/\).*/{
62506 s//\1/
62509 s/.*/./; q'`
62510 test -d "$as_dir" && break
62511 done
62512 test -z "$as_dirs" || eval "mkdir $as_dirs"
62513 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
62514 echo "$as_me: error: cannot create directory $as_dir" >&2;}
62515 { (exit 1); exit 1; }; }; }
62517 # remove any previously generated #include files
62518 outfile_real=$outdir/static-components.h
62519 outfile=$outfile_real.new
62520 rm -f $outfile $outfile.struct $outfile.extern
62521 touch $outfile.struct $outfile.extern
62523 # print some nice messages about what we're about to do...
62524 { echo "$as_me:$LINENO: checking for no configure components in framework iof" >&5
62525 echo $ECHO_N "checking for no configure components in framework iof... $ECHO_C" >&6; }
62526 { echo "$as_me:$LINENO: result: proxy, svc" >&5
62527 echo "${ECHO_T}proxy, svc" >&6; }
62528 { echo "$as_me:$LINENO: checking for m4 configure components in framework iof" >&5
62529 echo $ECHO_N "checking for m4 configure components in framework iof... $ECHO_C" >&6; }
62530 { echo "$as_me:$LINENO: result: " >&5
62531 echo "${ECHO_T}" >&6; }
62533 # if we only want the first successful component, set the variable
62534 # happy_value to 0 so we stop on first assignment. Otherwise, set
62535 # it to zero so that components_looking_for_succeed is always 1
62536 happy_value=1
62538 components_looking_for_succeed=1
62540 # configure components that don't have any component-specific
62541 # configuration. See comment in CONFIGURE_PROJECT about the
62542 # m4_ifval
62543 # if there isn't a component list, abort
62546 ompi_show_subsubsubtitle "MCA component iof:proxy (no configuration)"
62549 project=orte
62550 framework=iof
62551 component=proxy
62552 component_path="$srcdir/$project/mca/$framework/$component"
62553 want_component=0
62555 # build if:
62556 # - the component type is direct and we are that component
62557 # - there is no ompi_ignore file
62558 # - there is an ompi_ignore, but there is an empty ompi_unignore
62559 # - there is an ompi_ignore, but username is in ompi_unignore
62560 if test -d $component_path ; then
62561 # decide if we want the component to be built or not. This
62562 # is spread out because some of the logic is a little complex
62563 # and test's syntax isn't exactly the greatest. We want to
62564 # build the component by default.
62565 want_component=1
62566 if test -f $component_path/.ompi_ignore ; then
62567 # If there is an ompi_ignore file, don't build
62568 # the component. Note that this decision can be
62569 # overriden by the unignore logic below.
62570 want_component=0
62572 if test -f $component_path/.ompi_unignore ; then
62573 # if there is an empty ompi_unignore, that is
62574 # equivalent to having your userid in the unignore file.
62575 # If userid is in the file, unignore the ignore file.
62576 if test ! -s $component_path/.ompi_unignore ; then
62577 want_component=1
62578 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
62579 want_component=1
62582 # if this component type is direct and we are not it, we don't want
62583 # to be built. Otherwise, we do want to be built.
62584 if test ! -z "$DIRECT_iof" ; then
62585 if test "$DIRECT_iof" = "$component" ; then
62586 want_component=1
62587 else
62588 want_component=0
62593 # if we were explicitly disabled, don't build :)
62594 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
62595 eval $str
62596 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
62597 want_component=0
62600 if test "$want_component" = "1"; then
62601 should_build=$components_looking_for_succeed
62602 else
62603 should_build=0
62608 project=orte
62609 framework=iof
62610 component=proxy
62612 # Is this component going to built staic or shared? $component
62613 # might not be known until configure time, so have to use eval
62614 # tricks - can't set variable names at autogen time.
62615 str="SHARED_FRAMEWORK=\$DSO_$framework"
62616 eval $str
62617 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
62618 eval $str
62620 str="STATIC_FRAMEWORK=\$STATIC_$framework"
62621 eval $str
62622 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
62623 eval $str
62625 shared_mode_override=static
62627 # Setup for either shared or static
62628 if test "$STATIC_FRAMEWORK" = "1" -o \
62629 "$STATIC_COMPONENT" = "1" -o \
62630 "$STATIC_all" = "1" ; then
62631 compile_mode="static"
62632 elif test "$shared_mode_override" = "dso" -o \
62633 "$SHARED_FRAMEWORK" = "1" -o \
62634 "$SHARED_COMPONENT" = "1" -o \
62635 "$DSO_all" = "1"; then
62636 compile_mode="dso"
62637 else
62638 compile_mode="static"
62641 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
62642 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
62643 if test "$DIRECT_iof" = "$component" ; then
62644 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
62645 echo "${ECHO_T}$compile_mode - direct" >&6; }
62646 else
62647 { echo "$as_me:$LINENO: result: $compile_mode" >&5
62648 echo "${ECHO_T}$compile_mode" >&6; }
62652 if test "$should_build" = "1" ; then
62654 project=orte
62655 framework=iof
62656 component=proxy
62658 # See if it dropped an output file for us to pick up some
62659 # shell variables in.
62660 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
62662 # Add this subdir to the mast list of all MCA component subdirs
62663 all_components="$all_components $component"
62665 if test "$compile_mode" = "dso" ; then
62666 dso_components="$dso_components $component"
62667 else
62668 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
62669 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
62670 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
62671 static_components="$static_components $component"
62674 # Output pretty results
62675 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
62676 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
62677 { echo "$as_me:$LINENO: result: yes" >&5
62678 echo "${ECHO_T}yes" >&6; }
62680 # If there's an output file, add the values to
62681 # scope_EXTRA_flags.
62682 if test -f $infile; then
62684 # First check for the ABORT tag
62685 line="`grep ABORT= $infile | cut -d= -f2-`"
62686 if test -n "$line" -a "$line" != "no"; then
62687 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
62688 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
62689 { { echo "$as_me:$LINENO: error: cannot continue" >&5
62690 echo "$as_me: error: cannot continue" >&2;}
62691 { (exit 1); exit 1; }; }
62694 # Check for flags passed up from the component. If we're
62695 # compiling statically, then take all flags passed up from the
62696 # component.
62697 if test "$compile_mode" = "static"; then
62698 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
62699 eval "line=$line"
62700 if test -n "$line"; then
62701 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
62703 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
62704 eval "line=$line"
62705 if test -n "$line"; then
62706 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
62710 if test "$DIRECT_iof" = "$component" ; then
62711 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
62712 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
62713 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
62714 eval $str
62715 else
62716 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
62717 *** does not appear to support direct calling.
62718 *** Aborting" >&5
62719 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
62720 *** does not appear to support direct calling.
62721 *** Aborting" >&2;}
62722 { (exit 1); exit 1; }; }
62725 else
62726 # were we supposed to have found something in the
62727 # post_configure.sh, but the file didn't exist?
62728 if test "$DIRECT_iof" = "$component" ; then
62729 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
62730 *** does not appear to support direct calling.
62731 *** Aborting" >&5
62732 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
62733 *** does not appear to support direct calling.
62734 *** Aborting" >&2;}
62735 { (exit 1); exit 1; }; }
62739 # now add the flags that were set in the environment variables
62740 # framework_component_FOO (for example, the flags set by
62741 # m4_configure components)
62743 # Check for flags passed up from the component. If we're
62744 # compiling statically, then take all flags passed up from the
62745 # component.
62746 if test "$compile_mode" = "static"; then
62747 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
62748 eval "$str"
62749 if test -n "$line" ; then
62750 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
62752 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
62753 eval "$str"
62754 if test -n "$line" ; then
62755 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
62759 else
62761 { echo "$as_me:$LINENO: checking if MCA component iof:proxy can compile" >&5
62762 echo $ECHO_N "checking if MCA component iof:proxy can compile... $ECHO_C" >&6; }
62763 { echo "$as_me:$LINENO: result: no" >&5
62764 echo "${ECHO_T}no" >&6; }
62766 # If this component was requested as the default for this
62767 # type, then abort.
62768 if test "$with_iof" = "proxy" ; then
62769 { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
62770 echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
62771 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
62772 echo "$as_me: WARNING: This component was selected as the default" >&2;}
62773 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
62774 echo "$as_me: error: Cannot continue" >&2;}
62775 { (exit 1); exit 1; }; }
62776 exit 1
62779 if test ! -z "$DIRECT_iof" ; then
62780 if test "$DIRECT_iof" = "proxy" ; then
62781 { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
62782 echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
62783 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
62784 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
62785 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
62786 echo "$as_me: error: Cannot continue" >&2;}
62787 { (exit 1); exit 1; }; }
62788 exit 1
62792 # add component to all component list
62793 all_components="$all_components proxy"
62796 # set the AM_CONDITIONAL on how we should build
62797 if test "$compile_mode" = "dso" ; then
62798 BUILD_iof_proxy_DSO=1
62799 else
62800 BUILD_iof_proxy_DSO=0
62804 if test "$BUILD_iof_proxy_DSO" = "1"; then
62805 OMPI_BUILD_iof_proxy_DSO_TRUE=
62806 OMPI_BUILD_iof_proxy_DSO_FALSE='#'
62807 else
62808 OMPI_BUILD_iof_proxy_DSO_TRUE='#'
62809 OMPI_BUILD_iof_proxy_DSO_FALSE=
62813 unset compile_mode
62815 ompi_show_subsubsubtitle "MCA component iof:svc (no configuration)"
62818 project=orte
62819 framework=iof
62820 component=svc
62821 component_path="$srcdir/$project/mca/$framework/$component"
62822 want_component=0
62824 # build if:
62825 # - the component type is direct and we are that component
62826 # - there is no ompi_ignore file
62827 # - there is an ompi_ignore, but there is an empty ompi_unignore
62828 # - there is an ompi_ignore, but username is in ompi_unignore
62829 if test -d $component_path ; then
62830 # decide if we want the component to be built or not. This
62831 # is spread out because some of the logic is a little complex
62832 # and test's syntax isn't exactly the greatest. We want to
62833 # build the component by default.
62834 want_component=1
62835 if test -f $component_path/.ompi_ignore ; then
62836 # If there is an ompi_ignore file, don't build
62837 # the component. Note that this decision can be
62838 # overriden by the unignore logic below.
62839 want_component=0
62841 if test -f $component_path/.ompi_unignore ; then
62842 # if there is an empty ompi_unignore, that is
62843 # equivalent to having your userid in the unignore file.
62844 # If userid is in the file, unignore the ignore file.
62845 if test ! -s $component_path/.ompi_unignore ; then
62846 want_component=1
62847 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
62848 want_component=1
62851 # if this component type is direct and we are not it, we don't want
62852 # to be built. Otherwise, we do want to be built.
62853 if test ! -z "$DIRECT_iof" ; then
62854 if test "$DIRECT_iof" = "$component" ; then
62855 want_component=1
62856 else
62857 want_component=0
62862 # if we were explicitly disabled, don't build :)
62863 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
62864 eval $str
62865 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
62866 want_component=0
62869 if test "$want_component" = "1"; then
62870 should_build=$components_looking_for_succeed
62871 else
62872 should_build=0
62877 project=orte
62878 framework=iof
62879 component=svc
62881 # Is this component going to built staic or shared? $component
62882 # might not be known until configure time, so have to use eval
62883 # tricks - can't set variable names at autogen time.
62884 str="SHARED_FRAMEWORK=\$DSO_$framework"
62885 eval $str
62886 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
62887 eval $str
62889 str="STATIC_FRAMEWORK=\$STATIC_$framework"
62890 eval $str
62891 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
62892 eval $str
62894 shared_mode_override=static
62896 # Setup for either shared or static
62897 if test "$STATIC_FRAMEWORK" = "1" -o \
62898 "$STATIC_COMPONENT" = "1" -o \
62899 "$STATIC_all" = "1" ; then
62900 compile_mode="static"
62901 elif test "$shared_mode_override" = "dso" -o \
62902 "$SHARED_FRAMEWORK" = "1" -o \
62903 "$SHARED_COMPONENT" = "1" -o \
62904 "$DSO_all" = "1"; then
62905 compile_mode="dso"
62906 else
62907 compile_mode="static"
62910 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
62911 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
62912 if test "$DIRECT_iof" = "$component" ; then
62913 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
62914 echo "${ECHO_T}$compile_mode - direct" >&6; }
62915 else
62916 { echo "$as_me:$LINENO: result: $compile_mode" >&5
62917 echo "${ECHO_T}$compile_mode" >&6; }
62921 if test "$should_build" = "1" ; then
62923 project=orte
62924 framework=iof
62925 component=svc
62927 # See if it dropped an output file for us to pick up some
62928 # shell variables in.
62929 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
62931 # Add this subdir to the mast list of all MCA component subdirs
62932 all_components="$all_components $component"
62934 if test "$compile_mode" = "dso" ; then
62935 dso_components="$dso_components $component"
62936 else
62937 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
62938 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
62939 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
62940 static_components="$static_components $component"
62943 # Output pretty results
62944 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
62945 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
62946 { echo "$as_me:$LINENO: result: yes" >&5
62947 echo "${ECHO_T}yes" >&6; }
62949 # If there's an output file, add the values to
62950 # scope_EXTRA_flags.
62951 if test -f $infile; then
62953 # First check for the ABORT tag
62954 line="`grep ABORT= $infile | cut -d= -f2-`"
62955 if test -n "$line" -a "$line" != "no"; then
62956 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
62957 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
62958 { { echo "$as_me:$LINENO: error: cannot continue" >&5
62959 echo "$as_me: error: cannot continue" >&2;}
62960 { (exit 1); exit 1; }; }
62963 # Check for flags passed up from the component. If we're
62964 # compiling statically, then take all flags passed up from the
62965 # component.
62966 if test "$compile_mode" = "static"; then
62967 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
62968 eval "line=$line"
62969 if test -n "$line"; then
62970 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
62972 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
62973 eval "line=$line"
62974 if test -n "$line"; then
62975 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
62979 if test "$DIRECT_iof" = "$component" ; then
62980 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
62981 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
62982 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
62983 eval $str
62984 else
62985 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
62986 *** does not appear to support direct calling.
62987 *** Aborting" >&5
62988 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
62989 *** does not appear to support direct calling.
62990 *** Aborting" >&2;}
62991 { (exit 1); exit 1; }; }
62994 else
62995 # were we supposed to have found something in the
62996 # post_configure.sh, but the file didn't exist?
62997 if test "$DIRECT_iof" = "$component" ; then
62998 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
62999 *** does not appear to support direct calling.
63000 *** Aborting" >&5
63001 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
63002 *** does not appear to support direct calling.
63003 *** Aborting" >&2;}
63004 { (exit 1); exit 1; }; }
63008 # now add the flags that were set in the environment variables
63009 # framework_component_FOO (for example, the flags set by
63010 # m4_configure components)
63012 # Check for flags passed up from the component. If we're
63013 # compiling statically, then take all flags passed up from the
63014 # component.
63015 if test "$compile_mode" = "static"; then
63016 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
63017 eval "$str"
63018 if test -n "$line" ; then
63019 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
63021 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
63022 eval "$str"
63023 if test -n "$line" ; then
63024 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
63028 else
63030 { echo "$as_me:$LINENO: checking if MCA component iof:svc can compile" >&5
63031 echo $ECHO_N "checking if MCA component iof:svc can compile... $ECHO_C" >&6; }
63032 { echo "$as_me:$LINENO: result: no" >&5
63033 echo "${ECHO_T}no" >&6; }
63035 # If this component was requested as the default for this
63036 # type, then abort.
63037 if test "$with_iof" = "svc" ; then
63038 { echo "$as_me:$LINENO: WARNING: MCA component \"svc\" failed to configure properly" >&5
63039 echo "$as_me: WARNING: MCA component \"svc\" failed to configure properly" >&2;}
63040 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
63041 echo "$as_me: WARNING: This component was selected as the default" >&2;}
63042 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
63043 echo "$as_me: error: Cannot continue" >&2;}
63044 { (exit 1); exit 1; }; }
63045 exit 1
63048 if test ! -z "$DIRECT_iof" ; then
63049 if test "$DIRECT_iof" = "svc" ; then
63050 { echo "$as_me:$LINENO: WARNING: MCA component \"svc\" failed to configure properly" >&5
63051 echo "$as_me: WARNING: MCA component \"svc\" failed to configure properly" >&2;}
63052 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
63053 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
63054 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
63055 echo "$as_me: error: Cannot continue" >&2;}
63056 { (exit 1); exit 1; }; }
63057 exit 1
63061 # add component to all component list
63062 all_components="$all_components svc"
63065 # set the AM_CONDITIONAL on how we should build
63066 if test "$compile_mode" = "dso" ; then
63067 BUILD_iof_svc_DSO=1
63068 else
63069 BUILD_iof_svc_DSO=0
63073 if test "$BUILD_iof_svc_DSO" = "1"; then
63074 OMPI_BUILD_iof_svc_DSO_TRUE=
63075 OMPI_BUILD_iof_svc_DSO_FALSE='#'
63076 else
63077 OMPI_BUILD_iof_svc_DSO_TRUE='#'
63078 OMPI_BUILD_iof_svc_DSO_FALSE=
63082 unset compile_mode
63085 # configure components that use built-in configuration scripts
63086 # see comment in CONFIGURE_PROJECT about the m4_ifval
63087 # if there isn't a component list, abort
63091 # configure components that provide their own configure script.
63092 # It would be really hard to run these for "find first that
63093 # works", so we don't :)
63094 if test "$happy_value" = "1"; then
63096 for component_path in $srcdir/orte/mca/iof/* ; do
63097 component="`basename $component_path`"
63098 if test -d $component_path -a -x $component_path/configure ; then
63099 ompi_show_subsubsubtitle "MCA component iof:$component (need to configure)"
63102 project=orte
63103 framework=iof
63104 component=$component
63105 component_path="$srcdir/$project/mca/$framework/$component"
63106 want_component=0
63108 # build if:
63109 # - the component type is direct and we are that component
63110 # - there is no ompi_ignore file
63111 # - there is an ompi_ignore, but there is an empty ompi_unignore
63112 # - there is an ompi_ignore, but username is in ompi_unignore
63113 if test -d $component_path ; then
63114 # decide if we want the component to be built or not. This
63115 # is spread out because some of the logic is a little complex
63116 # and test's syntax isn't exactly the greatest. We want to
63117 # build the component by default.
63118 want_component=1
63119 if test -f $component_path/.ompi_ignore ; then
63120 # If there is an ompi_ignore file, don't build
63121 # the component. Note that this decision can be
63122 # overriden by the unignore logic below.
63123 want_component=0
63125 if test -f $component_path/.ompi_unignore ; then
63126 # if there is an empty ompi_unignore, that is
63127 # equivalent to having your userid in the unignore file.
63128 # If userid is in the file, unignore the ignore file.
63129 if test ! -s $component_path/.ompi_unignore ; then
63130 want_component=1
63131 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
63132 want_component=1
63135 # if this component type is direct and we are not it, we don't want
63136 # to be built. Otherwise, we do want to be built.
63137 if test ! -z "$DIRECT_iof" ; then
63138 if test "$DIRECT_iof" = "$component" ; then
63139 want_component=1
63140 else
63141 want_component=0
63146 # if we were explicitly disabled, don't build :)
63147 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
63148 eval $str
63149 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
63150 want_component=0
63153 if test "$want_component" = "1"; then
63154 should_build=1
63155 else
63156 should_build=0
63161 project=orte
63162 framework=iof
63163 component=$component
63165 # Is this component going to built staic or shared? $component
63166 # might not be known until configure time, so have to use eval
63167 # tricks - can't set variable names at autogen time.
63168 str="SHARED_FRAMEWORK=\$DSO_$framework"
63169 eval $str
63170 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
63171 eval $str
63173 str="STATIC_FRAMEWORK=\$STATIC_$framework"
63174 eval $str
63175 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
63176 eval $str
63178 shared_mode_override=static
63180 # Setup for either shared or static
63181 if test "$STATIC_FRAMEWORK" = "1" -o \
63182 "$STATIC_COMPONENT" = "1" -o \
63183 "$STATIC_all" = "1" ; then
63184 compile_mode="static"
63185 elif test "$shared_mode_override" = "dso" -o \
63186 "$SHARED_FRAMEWORK" = "1" -o \
63187 "$SHARED_COMPONENT" = "1" -o \
63188 "$DSO_all" = "1"; then
63189 compile_mode="dso"
63190 else
63191 compile_mode="static"
63194 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
63195 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
63196 if test "$DIRECT_iof" = "$component" ; then
63197 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
63198 echo "${ECHO_T}$compile_mode - direct" >&6; }
63199 else
63200 { echo "$as_me:$LINENO: result: $compile_mode" >&5
63201 echo "${ECHO_T}$compile_mode" >&6; }
63205 if test "$should_build" = "1" ; then
63208 # Invoke configure in a specific subdirectory.
63210 # orte/mca/iof/$component is the directory to invoke in
63211 # $ompi_subdir_args is the list of arguments to pass
63212 # should_build=1 is actions to execute upon success
63213 # should_build=2 is actions to execute upon failure
63215 subdir_dir="orte/mca/iof/$component"
63216 subdir_args="$ompi_subdir_args"
63217 subdir_success="should_build=1"
63218 subdir_failure="should_build=2"
63221 # Sanity checks
63224 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
63225 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
63226 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
63229 # Gotta check where srcdir is for VPATH builds. If srcdir is not
63230 # ., then we need to mkdir the subdir. Otherwise, we can just cd
63231 # into it.
63234 case $srcdir in
63238 { case $subdir_dir in
63239 [\\/]* | ?:[\\/]* ) total_dir=;;
63240 *) total_dir=.;;
63241 esac
63242 temp=$subdir_dir
63243 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
63244 case $dir_part in
63245 # Skip DOS drivespec
63246 ?:) total_dir=$dir_part ;;
63247 *) total_dir=$total_dir/$dir_part
63248 test -d "$total_dir" ||
63249 mkdir "$total_dir" ||
63250 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
63251 echo "$as_me: error: cannot create $subdir_dir" >&2;}
63252 { (exit 1); exit 1; }; }
63254 esac
63255 done; }
63257 if test -d ./$subdir_dir; then :;
63258 else
63259 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
63260 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
63261 { (exit 1); exit 1; }; }
63264 esac
63267 # Move into the target directory
63270 subdir_parent=`pwd`
63271 cd $subdir_dir
63274 # Make a "../" for each directory in $subdir_dir.
63277 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
63279 # Construct the --srcdir argument
63282 case $srcdir in
63284 # In place
63285 subdir_srcdir="$srcdir"
63287 [\\/]* | ?:[\\/]* )
63288 # Absolute path
63289 subdir_srcdir="$srcdir/$subdir_dir"
63292 # Relative path
63293 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
63295 esac
63298 # Construct the --cache-file argument
63301 # BWB - subdir caching is a pain since we change CFLAGS and all that.
63302 # Just disable it for now
63303 subdir_cache_file="/dev/null"
63306 # Invoke the configure script in the subdirectory
63309 export CFLAGS CPPFLAGS
63310 export CXXFLAGS CXXCPPFLAGS
63311 export FFLAGS
63312 export LDFLAGS LIBS
63313 sub_configure="$SHELL '$subdir_srcdir/configure'"
63314 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
63315 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
63316 eval "$sub_configure $subdir_args \
63317 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
63318 if test "$?" = "0"; then
63319 eval $subdir_success
63320 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
63321 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
63322 else
63323 eval $subdir_failure
63324 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
63325 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
63329 # Go back to the topdir
63332 cd $subdir_parent
63336 # Clean up
63339 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
63340 unset subdir_args subdir_dots total_dir dir_part temp
63343 if test "$should_build" = "1" ; then
63345 project=orte
63346 framework=iof
63347 component=$component
63349 # See if it dropped an output file for us to pick up some
63350 # shell variables in.
63351 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
63353 # Add this subdir to the mast list of all MCA component subdirs
63354 all_components="$all_components $component"
63356 if test "$compile_mode" = "dso" ; then
63357 dso_components="$dso_components $component"
63358 else
63359 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
63360 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
63361 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
63362 static_components="$static_components $component"
63365 # Output pretty results
63366 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
63367 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
63368 { echo "$as_me:$LINENO: result: yes" >&5
63369 echo "${ECHO_T}yes" >&6; }
63371 # If there's an output file, add the values to
63372 # scope_EXTRA_flags.
63373 if test -f $infile; then
63375 # First check for the ABORT tag
63376 line="`grep ABORT= $infile | cut -d= -f2-`"
63377 if test -n "$line" -a "$line" != "no"; then
63378 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
63379 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
63380 { { echo "$as_me:$LINENO: error: cannot continue" >&5
63381 echo "$as_me: error: cannot continue" >&2;}
63382 { (exit 1); exit 1; }; }
63385 # Check for flags passed up from the component. If we're
63386 # compiling statically, then take all flags passed up from the
63387 # component.
63388 if test "$compile_mode" = "static"; then
63389 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
63390 eval "line=$line"
63391 if test -n "$line"; then
63392 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
63394 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
63395 eval "line=$line"
63396 if test -n "$line"; then
63397 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
63401 if test "$DIRECT_iof" = "$component" ; then
63402 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
63403 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
63404 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
63405 eval $str
63406 else
63407 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
63408 *** does not appear to support direct calling.
63409 *** Aborting" >&5
63410 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
63411 *** does not appear to support direct calling.
63412 *** Aborting" >&2;}
63413 { (exit 1); exit 1; }; }
63416 else
63417 # were we supposed to have found something in the
63418 # post_configure.sh, but the file didn't exist?
63419 if test "$DIRECT_iof" = "$component" ; then
63420 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
63421 *** does not appear to support direct calling.
63422 *** Aborting" >&5
63423 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
63424 *** does not appear to support direct calling.
63425 *** Aborting" >&2;}
63426 { (exit 1); exit 1; }; }
63430 # now add the flags that were set in the environment variables
63431 # framework_component_FOO (for example, the flags set by
63432 # m4_configure components)
63434 # Check for flags passed up from the component. If we're
63435 # compiling statically, then take all flags passed up from the
63436 # component.
63437 if test "$compile_mode" = "static"; then
63438 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
63439 eval "$str"
63440 if test -n "$line" ; then
63441 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
63443 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
63444 eval "$str"
63445 if test -n "$line" ; then
63446 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
63450 else
63452 { echo "$as_me:$LINENO: checking if MCA component iof:$component can compile" >&5
63453 echo $ECHO_N "checking if MCA component iof:$component can compile... $ECHO_C" >&6; }
63454 { echo "$as_me:$LINENO: result: no" >&5
63455 echo "${ECHO_T}no" >&6; }
63457 # If this component was requested as the default for this
63458 # type, then abort.
63459 if test "$with_iof" = "$component" ; then
63460 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
63461 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
63462 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
63463 echo "$as_me: WARNING: This component was selected as the default" >&2;}
63464 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
63465 echo "$as_me: error: Cannot continue" >&2;}
63466 { (exit 1); exit 1; }; }
63467 exit 1
63470 if test ! -z "$DIRECT_iof" ; then
63471 if test "$DIRECT_iof" = "$component" ; then
63472 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
63473 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
63474 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
63475 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
63476 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
63477 echo "$as_me: error: Cannot continue" >&2;}
63478 { (exit 1); exit 1; }; }
63479 exit 1
63485 done
63490 MCA_iof_ALL_COMPONENTS="$all_components"
63491 MCA_iof_STATIC_COMPONENTS="$static_components"
63492 MCA_iof_DSO_COMPONENTS="$dso_components"
63493 MCA_iof_STATIC_LTLIBS="$static_ltlibs"
63501 MCA_iof_ALL_SUBDIRS=
63502 for item in $all_components ; do
63503 MCA_iof_ALL_SUBDIRS="$MCA_iof_ALL_SUBDIRS mca/iof/$item"
63504 done
63508 MCA_iof_STATIC_SUBDIRS=
63509 for item in $static_components ; do
63510 MCA_iof_STATIC_SUBDIRS="$MCA_iof_STATIC_SUBDIRS mca/iof/$item"
63511 done
63515 MCA_iof_DSO_SUBDIRS=
63516 for item in $dso_components ; do
63517 MCA_iof_DSO_SUBDIRS="$MCA_iof_DSO_SUBDIRS mca/iof/$item"
63518 done
63522 # add all the makefiles for the framework to the CONFIG_FILES.
63523 # Don't add common/base, since it doesn't exist
63524 ac_config_files="$ac_config_files orte/mca/iof/Makefile"
63527 # Create the final .h file that will be included in the type's
63528 # top-level glue. This lists all the static components. We don't
63529 # need to do this for "common".
63530 if test "iof" != "common"; then
63531 cat > $outfile <<EOF
63533 * \$HEADER\$
63536 `cat $outfile.extern`
63538 const mca_base_component_t *mca_iof_base_static_components[] = {
63539 `cat $outfile.struct`
63540 NULL
63543 # Only replace the header file if a) it doesn't previously
63544 # exist, or b) the contents are different. Do this to not
63545 # trigger recompilation of certain .c files just because the
63546 # timestamp changed on $outfile_real (similar to the way AC
63547 # handles AC_CONFIG_HEADER files).
63548 diff $outfile $outfile_real > /dev/null 2>&1
63549 if test "$?" != "0"; then
63550 mv $outfile $outfile_real
63551 else
63552 rm -f $outfile
63555 rm -f $outfile.struct $outfile.extern
63557 unset all_components static_components dso_components outfile outfile_real
63558 # common has to go up front
63559 if test "ns" = "common" ; then
63560 MCA_orte_FRAMEWORKS="ns $MCA_orte_FRAMEWORKS"
63561 MCA_orte_FRAMEWORKS_SUBDIRS="mca/ns $MCA_orte_FRAMEWORKS_SUBDIRS"
63562 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_ns_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
63563 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_ns_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
63564 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_ns_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
63565 else
63566 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS ns"
63567 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/ns"
63568 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ns_ALL_SUBDIRS)"
63569 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ns_DSO_SUBDIRS)"
63570 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ns_STATIC_SUBDIRS)"
63572 if test "ns" != "common" ; then
63573 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/ns/libmca_ns.la"
63575 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_ns_STATIC_LTLIBS)"
63577 ompi_show_subsubtitle "Configuring MCA framework ns"
63579 # setup for framework
63580 all_components=
63581 static_components=
63582 dso_components=
63583 static_ltlibs=
63585 # Ensure that the directory where the #include file is to live
63586 # exists. Need to do this for VPATH builds, because the directory
63587 # may not exist yet. For the "common" type, it's not really a
63588 # component, so it doesn't have a base.
63589 if test "ns" = "common" ; then
63590 outdir=orte/mca/common
63591 else
63592 outdir=orte/mca/ns/base
63594 { as_dir=$outdir
63595 case $as_dir in #(
63596 -*) as_dir=./$as_dir;;
63597 esac
63598 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
63599 as_dirs=
63600 while :; do
63601 case $as_dir in #(
63602 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
63603 *) as_qdir=$as_dir;;
63604 esac
63605 as_dirs="'$as_qdir' $as_dirs"
63606 as_dir=`$as_dirname -- "$as_dir" ||
63607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63608 X"$as_dir" : 'X\(//\)[^/]' \| \
63609 X"$as_dir" : 'X\(//\)$' \| \
63610 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
63611 echo X"$as_dir" |
63612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
63613 s//\1/
63616 /^X\(\/\/\)[^/].*/{
63617 s//\1/
63620 /^X\(\/\/\)$/{
63621 s//\1/
63624 /^X\(\/\).*/{
63625 s//\1/
63628 s/.*/./; q'`
63629 test -d "$as_dir" && break
63630 done
63631 test -z "$as_dirs" || eval "mkdir $as_dirs"
63632 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
63633 echo "$as_me: error: cannot create directory $as_dir" >&2;}
63634 { (exit 1); exit 1; }; }; }
63636 # remove any previously generated #include files
63637 outfile_real=$outdir/static-components.h
63638 outfile=$outfile_real.new
63639 rm -f $outfile $outfile.struct $outfile.extern
63640 touch $outfile.struct $outfile.extern
63642 # print some nice messages about what we're about to do...
63643 { echo "$as_me:$LINENO: checking for no configure components in framework ns" >&5
63644 echo $ECHO_N "checking for no configure components in framework ns... $ECHO_C" >&6; }
63645 { echo "$as_me:$LINENO: result: proxy, replica" >&5
63646 echo "${ECHO_T}proxy, replica" >&6; }
63647 { echo "$as_me:$LINENO: checking for m4 configure components in framework ns" >&5
63648 echo $ECHO_N "checking for m4 configure components in framework ns... $ECHO_C" >&6; }
63649 { echo "$as_me:$LINENO: result: " >&5
63650 echo "${ECHO_T}" >&6; }
63652 # if we only want the first successful component, set the variable
63653 # happy_value to 0 so we stop on first assignment. Otherwise, set
63654 # it to zero so that components_looking_for_succeed is always 1
63655 happy_value=1
63657 components_looking_for_succeed=1
63659 # configure components that don't have any component-specific
63660 # configuration. See comment in CONFIGURE_PROJECT about the
63661 # m4_ifval
63662 # if there isn't a component list, abort
63665 ompi_show_subsubsubtitle "MCA component ns:proxy (no configuration)"
63668 project=orte
63669 framework=ns
63670 component=proxy
63671 component_path="$srcdir/$project/mca/$framework/$component"
63672 want_component=0
63674 # build if:
63675 # - the component type is direct and we are that component
63676 # - there is no ompi_ignore file
63677 # - there is an ompi_ignore, but there is an empty ompi_unignore
63678 # - there is an ompi_ignore, but username is in ompi_unignore
63679 if test -d $component_path ; then
63680 # decide if we want the component to be built or not. This
63681 # is spread out because some of the logic is a little complex
63682 # and test's syntax isn't exactly the greatest. We want to
63683 # build the component by default.
63684 want_component=1
63685 if test -f $component_path/.ompi_ignore ; then
63686 # If there is an ompi_ignore file, don't build
63687 # the component. Note that this decision can be
63688 # overriden by the unignore logic below.
63689 want_component=0
63691 if test -f $component_path/.ompi_unignore ; then
63692 # if there is an empty ompi_unignore, that is
63693 # equivalent to having your userid in the unignore file.
63694 # If userid is in the file, unignore the ignore file.
63695 if test ! -s $component_path/.ompi_unignore ; then
63696 want_component=1
63697 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
63698 want_component=1
63701 # if this component type is direct and we are not it, we don't want
63702 # to be built. Otherwise, we do want to be built.
63703 if test ! -z "$DIRECT_ns" ; then
63704 if test "$DIRECT_ns" = "$component" ; then
63705 want_component=1
63706 else
63707 want_component=0
63712 # if we were explicitly disabled, don't build :)
63713 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
63714 eval $str
63715 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
63716 want_component=0
63719 if test "$want_component" = "1"; then
63720 should_build=$components_looking_for_succeed
63721 else
63722 should_build=0
63727 project=orte
63728 framework=ns
63729 component=proxy
63731 # Is this component going to built staic or shared? $component
63732 # might not be known until configure time, so have to use eval
63733 # tricks - can't set variable names at autogen time.
63734 str="SHARED_FRAMEWORK=\$DSO_$framework"
63735 eval $str
63736 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
63737 eval $str
63739 str="STATIC_FRAMEWORK=\$STATIC_$framework"
63740 eval $str
63741 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
63742 eval $str
63744 shared_mode_override=static
63746 # Setup for either shared or static
63747 if test "$STATIC_FRAMEWORK" = "1" -o \
63748 "$STATIC_COMPONENT" = "1" -o \
63749 "$STATIC_all" = "1" ; then
63750 compile_mode="static"
63751 elif test "$shared_mode_override" = "dso" -o \
63752 "$SHARED_FRAMEWORK" = "1" -o \
63753 "$SHARED_COMPONENT" = "1" -o \
63754 "$DSO_all" = "1"; then
63755 compile_mode="dso"
63756 else
63757 compile_mode="static"
63760 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
63761 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
63762 if test "$DIRECT_ns" = "$component" ; then
63763 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
63764 echo "${ECHO_T}$compile_mode - direct" >&6; }
63765 else
63766 { echo "$as_me:$LINENO: result: $compile_mode" >&5
63767 echo "${ECHO_T}$compile_mode" >&6; }
63771 if test "$should_build" = "1" ; then
63773 project=orte
63774 framework=ns
63775 component=proxy
63777 # See if it dropped an output file for us to pick up some
63778 # shell variables in.
63779 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
63781 # Add this subdir to the mast list of all MCA component subdirs
63782 all_components="$all_components $component"
63784 if test "$compile_mode" = "dso" ; then
63785 dso_components="$dso_components $component"
63786 else
63787 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
63788 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
63789 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
63790 static_components="$static_components $component"
63793 # Output pretty results
63794 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
63795 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
63796 { echo "$as_me:$LINENO: result: yes" >&5
63797 echo "${ECHO_T}yes" >&6; }
63799 # If there's an output file, add the values to
63800 # scope_EXTRA_flags.
63801 if test -f $infile; then
63803 # First check for the ABORT tag
63804 line="`grep ABORT= $infile | cut -d= -f2-`"
63805 if test -n "$line" -a "$line" != "no"; then
63806 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
63807 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
63808 { { echo "$as_me:$LINENO: error: cannot continue" >&5
63809 echo "$as_me: error: cannot continue" >&2;}
63810 { (exit 1); exit 1; }; }
63813 # Check for flags passed up from the component. If we're
63814 # compiling statically, then take all flags passed up from the
63815 # component.
63816 if test "$compile_mode" = "static"; then
63817 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
63818 eval "line=$line"
63819 if test -n "$line"; then
63820 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
63822 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
63823 eval "line=$line"
63824 if test -n "$line"; then
63825 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
63829 if test "$DIRECT_ns" = "$component" ; then
63830 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
63831 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
63832 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
63833 eval $str
63834 else
63835 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
63836 *** does not appear to support direct calling.
63837 *** Aborting" >&5
63838 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
63839 *** does not appear to support direct calling.
63840 *** Aborting" >&2;}
63841 { (exit 1); exit 1; }; }
63844 else
63845 # were we supposed to have found something in the
63846 # post_configure.sh, but the file didn't exist?
63847 if test "$DIRECT_ns" = "$component" ; then
63848 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
63849 *** does not appear to support direct calling.
63850 *** Aborting" >&5
63851 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
63852 *** does not appear to support direct calling.
63853 *** Aborting" >&2;}
63854 { (exit 1); exit 1; }; }
63858 # now add the flags that were set in the environment variables
63859 # framework_component_FOO (for example, the flags set by
63860 # m4_configure components)
63862 # Check for flags passed up from the component. If we're
63863 # compiling statically, then take all flags passed up from the
63864 # component.
63865 if test "$compile_mode" = "static"; then
63866 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
63867 eval "$str"
63868 if test -n "$line" ; then
63869 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
63871 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
63872 eval "$str"
63873 if test -n "$line" ; then
63874 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
63878 else
63880 { echo "$as_me:$LINENO: checking if MCA component ns:proxy can compile" >&5
63881 echo $ECHO_N "checking if MCA component ns:proxy can compile... $ECHO_C" >&6; }
63882 { echo "$as_me:$LINENO: result: no" >&5
63883 echo "${ECHO_T}no" >&6; }
63885 # If this component was requested as the default for this
63886 # type, then abort.
63887 if test "$with_ns" = "proxy" ; then
63888 { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
63889 echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
63890 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
63891 echo "$as_me: WARNING: This component was selected as the default" >&2;}
63892 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
63893 echo "$as_me: error: Cannot continue" >&2;}
63894 { (exit 1); exit 1; }; }
63895 exit 1
63898 if test ! -z "$DIRECT_ns" ; then
63899 if test "$DIRECT_ns" = "proxy" ; then
63900 { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
63901 echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
63902 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
63903 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
63904 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
63905 echo "$as_me: error: Cannot continue" >&2;}
63906 { (exit 1); exit 1; }; }
63907 exit 1
63911 # add component to all component list
63912 all_components="$all_components proxy"
63915 # set the AM_CONDITIONAL on how we should build
63916 if test "$compile_mode" = "dso" ; then
63917 BUILD_ns_proxy_DSO=1
63918 else
63919 BUILD_ns_proxy_DSO=0
63923 if test "$BUILD_ns_proxy_DSO" = "1"; then
63924 OMPI_BUILD_ns_proxy_DSO_TRUE=
63925 OMPI_BUILD_ns_proxy_DSO_FALSE='#'
63926 else
63927 OMPI_BUILD_ns_proxy_DSO_TRUE='#'
63928 OMPI_BUILD_ns_proxy_DSO_FALSE=
63932 unset compile_mode
63934 ompi_show_subsubsubtitle "MCA component ns:replica (no configuration)"
63937 project=orte
63938 framework=ns
63939 component=replica
63940 component_path="$srcdir/$project/mca/$framework/$component"
63941 want_component=0
63943 # build if:
63944 # - the component type is direct and we are that component
63945 # - there is no ompi_ignore file
63946 # - there is an ompi_ignore, but there is an empty ompi_unignore
63947 # - there is an ompi_ignore, but username is in ompi_unignore
63948 if test -d $component_path ; then
63949 # decide if we want the component to be built or not. This
63950 # is spread out because some of the logic is a little complex
63951 # and test's syntax isn't exactly the greatest. We want to
63952 # build the component by default.
63953 want_component=1
63954 if test -f $component_path/.ompi_ignore ; then
63955 # If there is an ompi_ignore file, don't build
63956 # the component. Note that this decision can be
63957 # overriden by the unignore logic below.
63958 want_component=0
63960 if test -f $component_path/.ompi_unignore ; then
63961 # if there is an empty ompi_unignore, that is
63962 # equivalent to having your userid in the unignore file.
63963 # If userid is in the file, unignore the ignore file.
63964 if test ! -s $component_path/.ompi_unignore ; then
63965 want_component=1
63966 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
63967 want_component=1
63970 # if this component type is direct and we are not it, we don't want
63971 # to be built. Otherwise, we do want to be built.
63972 if test ! -z "$DIRECT_ns" ; then
63973 if test "$DIRECT_ns" = "$component" ; then
63974 want_component=1
63975 else
63976 want_component=0
63981 # if we were explicitly disabled, don't build :)
63982 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
63983 eval $str
63984 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
63985 want_component=0
63988 if test "$want_component" = "1"; then
63989 should_build=$components_looking_for_succeed
63990 else
63991 should_build=0
63996 project=orte
63997 framework=ns
63998 component=replica
64000 # Is this component going to built staic or shared? $component
64001 # might not be known until configure time, so have to use eval
64002 # tricks - can't set variable names at autogen time.
64003 str="SHARED_FRAMEWORK=\$DSO_$framework"
64004 eval $str
64005 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
64006 eval $str
64008 str="STATIC_FRAMEWORK=\$STATIC_$framework"
64009 eval $str
64010 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
64011 eval $str
64013 shared_mode_override=static
64015 # Setup for either shared or static
64016 if test "$STATIC_FRAMEWORK" = "1" -o \
64017 "$STATIC_COMPONENT" = "1" -o \
64018 "$STATIC_all" = "1" ; then
64019 compile_mode="static"
64020 elif test "$shared_mode_override" = "dso" -o \
64021 "$SHARED_FRAMEWORK" = "1" -o \
64022 "$SHARED_COMPONENT" = "1" -o \
64023 "$DSO_all" = "1"; then
64024 compile_mode="dso"
64025 else
64026 compile_mode="static"
64029 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
64030 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
64031 if test "$DIRECT_ns" = "$component" ; then
64032 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
64033 echo "${ECHO_T}$compile_mode - direct" >&6; }
64034 else
64035 { echo "$as_me:$LINENO: result: $compile_mode" >&5
64036 echo "${ECHO_T}$compile_mode" >&6; }
64040 if test "$should_build" = "1" ; then
64042 project=orte
64043 framework=ns
64044 component=replica
64046 # See if it dropped an output file for us to pick up some
64047 # shell variables in.
64048 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
64050 # Add this subdir to the mast list of all MCA component subdirs
64051 all_components="$all_components $component"
64053 if test "$compile_mode" = "dso" ; then
64054 dso_components="$dso_components $component"
64055 else
64056 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
64057 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
64058 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
64059 static_components="$static_components $component"
64062 # Output pretty results
64063 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
64064 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
64065 { echo "$as_me:$LINENO: result: yes" >&5
64066 echo "${ECHO_T}yes" >&6; }
64068 # If there's an output file, add the values to
64069 # scope_EXTRA_flags.
64070 if test -f $infile; then
64072 # First check for the ABORT tag
64073 line="`grep ABORT= $infile | cut -d= -f2-`"
64074 if test -n "$line" -a "$line" != "no"; then
64075 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
64076 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
64077 { { echo "$as_me:$LINENO: error: cannot continue" >&5
64078 echo "$as_me: error: cannot continue" >&2;}
64079 { (exit 1); exit 1; }; }
64082 # Check for flags passed up from the component. If we're
64083 # compiling statically, then take all flags passed up from the
64084 # component.
64085 if test "$compile_mode" = "static"; then
64086 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
64087 eval "line=$line"
64088 if test -n "$line"; then
64089 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
64091 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
64092 eval "line=$line"
64093 if test -n "$line"; then
64094 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
64098 if test "$DIRECT_ns" = "$component" ; then
64099 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
64100 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
64101 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
64102 eval $str
64103 else
64104 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
64105 *** does not appear to support direct calling.
64106 *** Aborting" >&5
64107 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
64108 *** does not appear to support direct calling.
64109 *** Aborting" >&2;}
64110 { (exit 1); exit 1; }; }
64113 else
64114 # were we supposed to have found something in the
64115 # post_configure.sh, but the file didn't exist?
64116 if test "$DIRECT_ns" = "$component" ; then
64117 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
64118 *** does not appear to support direct calling.
64119 *** Aborting" >&5
64120 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
64121 *** does not appear to support direct calling.
64122 *** Aborting" >&2;}
64123 { (exit 1); exit 1; }; }
64127 # now add the flags that were set in the environment variables
64128 # framework_component_FOO (for example, the flags set by
64129 # m4_configure components)
64131 # Check for flags passed up from the component. If we're
64132 # compiling statically, then take all flags passed up from the
64133 # component.
64134 if test "$compile_mode" = "static"; then
64135 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
64136 eval "$str"
64137 if test -n "$line" ; then
64138 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
64140 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
64141 eval "$str"
64142 if test -n "$line" ; then
64143 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
64147 else
64149 { echo "$as_me:$LINENO: checking if MCA component ns:replica can compile" >&5
64150 echo $ECHO_N "checking if MCA component ns:replica can compile... $ECHO_C" >&6; }
64151 { echo "$as_me:$LINENO: result: no" >&5
64152 echo "${ECHO_T}no" >&6; }
64154 # If this component was requested as the default for this
64155 # type, then abort.
64156 if test "$with_ns" = "replica" ; then
64157 { echo "$as_me:$LINENO: WARNING: MCA component \"replica\" failed to configure properly" >&5
64158 echo "$as_me: WARNING: MCA component \"replica\" failed to configure properly" >&2;}
64159 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
64160 echo "$as_me: WARNING: This component was selected as the default" >&2;}
64161 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
64162 echo "$as_me: error: Cannot continue" >&2;}
64163 { (exit 1); exit 1; }; }
64164 exit 1
64167 if test ! -z "$DIRECT_ns" ; then
64168 if test "$DIRECT_ns" = "replica" ; then
64169 { echo "$as_me:$LINENO: WARNING: MCA component \"replica\" failed to configure properly" >&5
64170 echo "$as_me: WARNING: MCA component \"replica\" failed to configure properly" >&2;}
64171 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
64172 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
64173 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
64174 echo "$as_me: error: Cannot continue" >&2;}
64175 { (exit 1); exit 1; }; }
64176 exit 1
64180 # add component to all component list
64181 all_components="$all_components replica"
64184 # set the AM_CONDITIONAL on how we should build
64185 if test "$compile_mode" = "dso" ; then
64186 BUILD_ns_replica_DSO=1
64187 else
64188 BUILD_ns_replica_DSO=0
64192 if test "$BUILD_ns_replica_DSO" = "1"; then
64193 OMPI_BUILD_ns_replica_DSO_TRUE=
64194 OMPI_BUILD_ns_replica_DSO_FALSE='#'
64195 else
64196 OMPI_BUILD_ns_replica_DSO_TRUE='#'
64197 OMPI_BUILD_ns_replica_DSO_FALSE=
64201 unset compile_mode
64204 # configure components that use built-in configuration scripts
64205 # see comment in CONFIGURE_PROJECT about the m4_ifval
64206 # if there isn't a component list, abort
64210 # configure components that provide their own configure script.
64211 # It would be really hard to run these for "find first that
64212 # works", so we don't :)
64213 if test "$happy_value" = "1"; then
64215 for component_path in $srcdir/orte/mca/ns/* ; do
64216 component="`basename $component_path`"
64217 if test -d $component_path -a -x $component_path/configure ; then
64218 ompi_show_subsubsubtitle "MCA component ns:$component (need to configure)"
64221 project=orte
64222 framework=ns
64223 component=$component
64224 component_path="$srcdir/$project/mca/$framework/$component"
64225 want_component=0
64227 # build if:
64228 # - the component type is direct and we are that component
64229 # - there is no ompi_ignore file
64230 # - there is an ompi_ignore, but there is an empty ompi_unignore
64231 # - there is an ompi_ignore, but username is in ompi_unignore
64232 if test -d $component_path ; then
64233 # decide if we want the component to be built or not. This
64234 # is spread out because some of the logic is a little complex
64235 # and test's syntax isn't exactly the greatest. We want to
64236 # build the component by default.
64237 want_component=1
64238 if test -f $component_path/.ompi_ignore ; then
64239 # If there is an ompi_ignore file, don't build
64240 # the component. Note that this decision can be
64241 # overriden by the unignore logic below.
64242 want_component=0
64244 if test -f $component_path/.ompi_unignore ; then
64245 # if there is an empty ompi_unignore, that is
64246 # equivalent to having your userid in the unignore file.
64247 # If userid is in the file, unignore the ignore file.
64248 if test ! -s $component_path/.ompi_unignore ; then
64249 want_component=1
64250 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
64251 want_component=1
64254 # if this component type is direct and we are not it, we don't want
64255 # to be built. Otherwise, we do want to be built.
64256 if test ! -z "$DIRECT_ns" ; then
64257 if test "$DIRECT_ns" = "$component" ; then
64258 want_component=1
64259 else
64260 want_component=0
64265 # if we were explicitly disabled, don't build :)
64266 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
64267 eval $str
64268 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
64269 want_component=0
64272 if test "$want_component" = "1"; then
64273 should_build=1
64274 else
64275 should_build=0
64280 project=orte
64281 framework=ns
64282 component=$component
64284 # Is this component going to built staic or shared? $component
64285 # might not be known until configure time, so have to use eval
64286 # tricks - can't set variable names at autogen time.
64287 str="SHARED_FRAMEWORK=\$DSO_$framework"
64288 eval $str
64289 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
64290 eval $str
64292 str="STATIC_FRAMEWORK=\$STATIC_$framework"
64293 eval $str
64294 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
64295 eval $str
64297 shared_mode_override=static
64299 # Setup for either shared or static
64300 if test "$STATIC_FRAMEWORK" = "1" -o \
64301 "$STATIC_COMPONENT" = "1" -o \
64302 "$STATIC_all" = "1" ; then
64303 compile_mode="static"
64304 elif test "$shared_mode_override" = "dso" -o \
64305 "$SHARED_FRAMEWORK" = "1" -o \
64306 "$SHARED_COMPONENT" = "1" -o \
64307 "$DSO_all" = "1"; then
64308 compile_mode="dso"
64309 else
64310 compile_mode="static"
64313 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
64314 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
64315 if test "$DIRECT_ns" = "$component" ; then
64316 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
64317 echo "${ECHO_T}$compile_mode - direct" >&6; }
64318 else
64319 { echo "$as_me:$LINENO: result: $compile_mode" >&5
64320 echo "${ECHO_T}$compile_mode" >&6; }
64324 if test "$should_build" = "1" ; then
64327 # Invoke configure in a specific subdirectory.
64329 # orte/mca/ns/$component is the directory to invoke in
64330 # $ompi_subdir_args is the list of arguments to pass
64331 # should_build=1 is actions to execute upon success
64332 # should_build=2 is actions to execute upon failure
64334 subdir_dir="orte/mca/ns/$component"
64335 subdir_args="$ompi_subdir_args"
64336 subdir_success="should_build=1"
64337 subdir_failure="should_build=2"
64340 # Sanity checks
64343 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
64344 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
64345 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
64348 # Gotta check where srcdir is for VPATH builds. If srcdir is not
64349 # ., then we need to mkdir the subdir. Otherwise, we can just cd
64350 # into it.
64353 case $srcdir in
64357 { case $subdir_dir in
64358 [\\/]* | ?:[\\/]* ) total_dir=;;
64359 *) total_dir=.;;
64360 esac
64361 temp=$subdir_dir
64362 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
64363 case $dir_part in
64364 # Skip DOS drivespec
64365 ?:) total_dir=$dir_part ;;
64366 *) total_dir=$total_dir/$dir_part
64367 test -d "$total_dir" ||
64368 mkdir "$total_dir" ||
64369 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
64370 echo "$as_me: error: cannot create $subdir_dir" >&2;}
64371 { (exit 1); exit 1; }; }
64373 esac
64374 done; }
64376 if test -d ./$subdir_dir; then :;
64377 else
64378 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
64379 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
64380 { (exit 1); exit 1; }; }
64383 esac
64386 # Move into the target directory
64389 subdir_parent=`pwd`
64390 cd $subdir_dir
64393 # Make a "../" for each directory in $subdir_dir.
64396 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
64398 # Construct the --srcdir argument
64401 case $srcdir in
64403 # In place
64404 subdir_srcdir="$srcdir"
64406 [\\/]* | ?:[\\/]* )
64407 # Absolute path
64408 subdir_srcdir="$srcdir/$subdir_dir"
64411 # Relative path
64412 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
64414 esac
64417 # Construct the --cache-file argument
64420 # BWB - subdir caching is a pain since we change CFLAGS and all that.
64421 # Just disable it for now
64422 subdir_cache_file="/dev/null"
64425 # Invoke the configure script in the subdirectory
64428 export CFLAGS CPPFLAGS
64429 export CXXFLAGS CXXCPPFLAGS
64430 export FFLAGS
64431 export LDFLAGS LIBS
64432 sub_configure="$SHELL '$subdir_srcdir/configure'"
64433 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
64434 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
64435 eval "$sub_configure $subdir_args \
64436 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
64437 if test "$?" = "0"; then
64438 eval $subdir_success
64439 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
64440 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
64441 else
64442 eval $subdir_failure
64443 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
64444 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
64448 # Go back to the topdir
64451 cd $subdir_parent
64455 # Clean up
64458 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
64459 unset subdir_args subdir_dots total_dir dir_part temp
64462 if test "$should_build" = "1" ; then
64464 project=orte
64465 framework=ns
64466 component=$component
64468 # See if it dropped an output file for us to pick up some
64469 # shell variables in.
64470 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
64472 # Add this subdir to the mast list of all MCA component subdirs
64473 all_components="$all_components $component"
64475 if test "$compile_mode" = "dso" ; then
64476 dso_components="$dso_components $component"
64477 else
64478 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
64479 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
64480 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
64481 static_components="$static_components $component"
64484 # Output pretty results
64485 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
64486 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
64487 { echo "$as_me:$LINENO: result: yes" >&5
64488 echo "${ECHO_T}yes" >&6; }
64490 # If there's an output file, add the values to
64491 # scope_EXTRA_flags.
64492 if test -f $infile; then
64494 # First check for the ABORT tag
64495 line="`grep ABORT= $infile | cut -d= -f2-`"
64496 if test -n "$line" -a "$line" != "no"; then
64497 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
64498 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
64499 { { echo "$as_me:$LINENO: error: cannot continue" >&5
64500 echo "$as_me: error: cannot continue" >&2;}
64501 { (exit 1); exit 1; }; }
64504 # Check for flags passed up from the component. If we're
64505 # compiling statically, then take all flags passed up from the
64506 # component.
64507 if test "$compile_mode" = "static"; then
64508 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
64509 eval "line=$line"
64510 if test -n "$line"; then
64511 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
64513 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
64514 eval "line=$line"
64515 if test -n "$line"; then
64516 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
64520 if test "$DIRECT_ns" = "$component" ; then
64521 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
64522 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
64523 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
64524 eval $str
64525 else
64526 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
64527 *** does not appear to support direct calling.
64528 *** Aborting" >&5
64529 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
64530 *** does not appear to support direct calling.
64531 *** Aborting" >&2;}
64532 { (exit 1); exit 1; }; }
64535 else
64536 # were we supposed to have found something in the
64537 # post_configure.sh, but the file didn't exist?
64538 if test "$DIRECT_ns" = "$component" ; then
64539 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
64540 *** does not appear to support direct calling.
64541 *** Aborting" >&5
64542 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
64543 *** does not appear to support direct calling.
64544 *** Aborting" >&2;}
64545 { (exit 1); exit 1; }; }
64549 # now add the flags that were set in the environment variables
64550 # framework_component_FOO (for example, the flags set by
64551 # m4_configure components)
64553 # Check for flags passed up from the component. If we're
64554 # compiling statically, then take all flags passed up from the
64555 # component.
64556 if test "$compile_mode" = "static"; then
64557 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
64558 eval "$str"
64559 if test -n "$line" ; then
64560 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
64562 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
64563 eval "$str"
64564 if test -n "$line" ; then
64565 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
64569 else
64571 { echo "$as_me:$LINENO: checking if MCA component ns:$component can compile" >&5
64572 echo $ECHO_N "checking if MCA component ns:$component can compile... $ECHO_C" >&6; }
64573 { echo "$as_me:$LINENO: result: no" >&5
64574 echo "${ECHO_T}no" >&6; }
64576 # If this component was requested as the default for this
64577 # type, then abort.
64578 if test "$with_ns" = "$component" ; then
64579 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
64580 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
64581 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
64582 echo "$as_me: WARNING: This component was selected as the default" >&2;}
64583 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
64584 echo "$as_me: error: Cannot continue" >&2;}
64585 { (exit 1); exit 1; }; }
64586 exit 1
64589 if test ! -z "$DIRECT_ns" ; then
64590 if test "$DIRECT_ns" = "$component" ; then
64591 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
64592 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
64593 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
64594 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
64595 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
64596 echo "$as_me: error: Cannot continue" >&2;}
64597 { (exit 1); exit 1; }; }
64598 exit 1
64604 done
64609 MCA_ns_ALL_COMPONENTS="$all_components"
64610 MCA_ns_STATIC_COMPONENTS="$static_components"
64611 MCA_ns_DSO_COMPONENTS="$dso_components"
64612 MCA_ns_STATIC_LTLIBS="$static_ltlibs"
64620 MCA_ns_ALL_SUBDIRS=
64621 for item in $all_components ; do
64622 MCA_ns_ALL_SUBDIRS="$MCA_ns_ALL_SUBDIRS mca/ns/$item"
64623 done
64627 MCA_ns_STATIC_SUBDIRS=
64628 for item in $static_components ; do
64629 MCA_ns_STATIC_SUBDIRS="$MCA_ns_STATIC_SUBDIRS mca/ns/$item"
64630 done
64634 MCA_ns_DSO_SUBDIRS=
64635 for item in $dso_components ; do
64636 MCA_ns_DSO_SUBDIRS="$MCA_ns_DSO_SUBDIRS mca/ns/$item"
64637 done
64641 # add all the makefiles for the framework to the CONFIG_FILES.
64642 # Don't add common/base, since it doesn't exist
64643 ac_config_files="$ac_config_files orte/mca/ns/Makefile"
64646 # Create the final .h file that will be included in the type's
64647 # top-level glue. This lists all the static components. We don't
64648 # need to do this for "common".
64649 if test "ns" != "common"; then
64650 cat > $outfile <<EOF
64652 * \$HEADER\$
64655 `cat $outfile.extern`
64657 const mca_base_component_t *mca_ns_base_static_components[] = {
64658 `cat $outfile.struct`
64659 NULL
64662 # Only replace the header file if a) it doesn't previously
64663 # exist, or b) the contents are different. Do this to not
64664 # trigger recompilation of certain .c files just because the
64665 # timestamp changed on $outfile_real (similar to the way AC
64666 # handles AC_CONFIG_HEADER files).
64667 diff $outfile $outfile_real > /dev/null 2>&1
64668 if test "$?" != "0"; then
64669 mv $outfile $outfile_real
64670 else
64671 rm -f $outfile
64674 rm -f $outfile.struct $outfile.extern
64676 unset all_components static_components dso_components outfile outfile_real
64677 # common has to go up front
64678 if test "oob" = "common" ; then
64679 MCA_orte_FRAMEWORKS="oob $MCA_orte_FRAMEWORKS"
64680 MCA_orte_FRAMEWORKS_SUBDIRS="mca/oob $MCA_orte_FRAMEWORKS_SUBDIRS"
64681 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_oob_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
64682 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_oob_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
64683 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_oob_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
64684 else
64685 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS oob"
64686 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/oob"
64687 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_oob_ALL_SUBDIRS)"
64688 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_oob_DSO_SUBDIRS)"
64689 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_oob_STATIC_SUBDIRS)"
64691 if test "oob" != "common" ; then
64692 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/oob/libmca_oob.la"
64694 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_oob_STATIC_LTLIBS)"
64696 ompi_show_subsubtitle "Configuring MCA framework oob"
64698 # setup for framework
64699 all_components=
64700 static_components=
64701 dso_components=
64702 static_ltlibs=
64704 # Ensure that the directory where the #include file is to live
64705 # exists. Need to do this for VPATH builds, because the directory
64706 # may not exist yet. For the "common" type, it's not really a
64707 # component, so it doesn't have a base.
64708 if test "oob" = "common" ; then
64709 outdir=orte/mca/common
64710 else
64711 outdir=orte/mca/oob/base
64713 { as_dir=$outdir
64714 case $as_dir in #(
64715 -*) as_dir=./$as_dir;;
64716 esac
64717 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
64718 as_dirs=
64719 while :; do
64720 case $as_dir in #(
64721 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
64722 *) as_qdir=$as_dir;;
64723 esac
64724 as_dirs="'$as_qdir' $as_dirs"
64725 as_dir=`$as_dirname -- "$as_dir" ||
64726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64727 X"$as_dir" : 'X\(//\)[^/]' \| \
64728 X"$as_dir" : 'X\(//\)$' \| \
64729 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
64730 echo X"$as_dir" |
64731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
64732 s//\1/
64735 /^X\(\/\/\)[^/].*/{
64736 s//\1/
64739 /^X\(\/\/\)$/{
64740 s//\1/
64743 /^X\(\/\).*/{
64744 s//\1/
64747 s/.*/./; q'`
64748 test -d "$as_dir" && break
64749 done
64750 test -z "$as_dirs" || eval "mkdir $as_dirs"
64751 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
64752 echo "$as_me: error: cannot create directory $as_dir" >&2;}
64753 { (exit 1); exit 1; }; }; }
64755 # remove any previously generated #include files
64756 outfile_real=$outdir/static-components.h
64757 outfile=$outfile_real.new
64758 rm -f $outfile $outfile.struct $outfile.extern
64759 touch $outfile.struct $outfile.extern
64761 # print some nice messages about what we're about to do...
64762 { echo "$as_me:$LINENO: checking for no configure components in framework oob" >&5
64763 echo $ECHO_N "checking for no configure components in framework oob... $ECHO_C" >&6; }
64764 { echo "$as_me:$LINENO: result: " >&5
64765 echo "${ECHO_T}" >&6; }
64766 { echo "$as_me:$LINENO: checking for m4 configure components in framework oob" >&5
64767 echo $ECHO_N "checking for m4 configure components in framework oob... $ECHO_C" >&6; }
64768 { echo "$as_me:$LINENO: result: tcp" >&5
64769 echo "${ECHO_T}tcp" >&6; }
64771 # if we only want the first successful component, set the variable
64772 # happy_value to 0 so we stop on first assignment. Otherwise, set
64773 # it to zero so that components_looking_for_succeed is always 1
64774 happy_value=1
64776 components_looking_for_succeed=1
64778 # configure components that don't have any component-specific
64779 # configuration. See comment in CONFIGURE_PROJECT about the
64780 # m4_ifval
64781 # if there isn't a component list, abort
64785 # configure components that use built-in configuration scripts
64786 # see comment in CONFIGURE_PROJECT about the m4_ifval
64787 # if there isn't a component list, abort
64790 ompi_show_subsubsubtitle "MCA component oob:tcp (m4 configuration macro)"
64793 project=orte
64794 framework=oob
64795 component=tcp
64796 component_path="$srcdir/$project/mca/$framework/$component"
64797 want_component=0
64799 # build if:
64800 # - the component type is direct and we are that component
64801 # - there is no ompi_ignore file
64802 # - there is an ompi_ignore, but there is an empty ompi_unignore
64803 # - there is an ompi_ignore, but username is in ompi_unignore
64804 if test -d $component_path ; then
64805 # decide if we want the component to be built or not. This
64806 # is spread out because some of the logic is a little complex
64807 # and test's syntax isn't exactly the greatest. We want to
64808 # build the component by default.
64809 want_component=1
64810 if test -f $component_path/.ompi_ignore ; then
64811 # If there is an ompi_ignore file, don't build
64812 # the component. Note that this decision can be
64813 # overriden by the unignore logic below.
64814 want_component=0
64816 if test -f $component_path/.ompi_unignore ; then
64817 # if there is an empty ompi_unignore, that is
64818 # equivalent to having your userid in the unignore file.
64819 # If userid is in the file, unignore the ignore file.
64820 if test ! -s $component_path/.ompi_unignore ; then
64821 want_component=1
64822 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
64823 want_component=1
64826 # if this component type is direct and we are not it, we don't want
64827 # to be built. Otherwise, we do want to be built.
64828 if test ! -z "$DIRECT_oob" ; then
64829 if test "$DIRECT_oob" = "$component" ; then
64830 want_component=1
64831 else
64832 want_component=0
64837 # if we were explicitly disabled, don't build :)
64838 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
64839 eval $str
64840 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
64841 want_component=0
64844 if test "$want_component" = "1"; then
64845 should_build=$components_looking_for_succeed
64846 else
64847 should_build=0
64851 # Allow the component to override the build mode if it really wants to.
64852 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
64854 project=orte
64855 framework=oob
64856 component=tcp
64858 # Is this component going to built staic or shared? $component
64859 # might not be known until configure time, so have to use eval
64860 # tricks - can't set variable names at autogen time.
64861 str="SHARED_FRAMEWORK=\$DSO_$framework"
64862 eval $str
64863 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
64864 eval $str
64866 str="STATIC_FRAMEWORK=\$STATIC_$framework"
64867 eval $str
64868 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
64869 eval $str
64871 shared_mode_override=static
64873 # Setup for either shared or static
64874 if test "$STATIC_FRAMEWORK" = "1" -o \
64875 "$STATIC_COMPONENT" = "1" -o \
64876 "$STATIC_all" = "1" ; then
64877 compile_mode="static"
64878 elif test "$shared_mode_override" = "dso" -o \
64879 "$SHARED_FRAMEWORK" = "1" -o \
64880 "$SHARED_COMPONENT" = "1" -o \
64881 "$DSO_all" = "1"; then
64882 compile_mode="dso"
64883 else
64884 compile_mode="static"
64887 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
64888 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
64889 if test "$DIRECT_oob" = "$component" ; then
64890 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
64891 echo "${ECHO_T}$compile_mode - direct" >&6; }
64892 else
64893 { echo "$as_me:$LINENO: result: $compile_mode" >&5
64894 echo "${ECHO_T}$compile_mode" >&6; }
64898 # try to configure the component. pay no attention to
64899 # --enable-dist, since we'll always have makefiles.
64900 if test "$should_build" = "1"; then
64902 # check for sockaddr_in (a good sign we have TCP)
64903 { echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5
64904 echo $ECHO_N "checking for struct sockaddr_in... $ECHO_C" >&6; }
64905 if test "${ac_cv_type_struct_sockaddr_in+set}" = set; then
64906 echo $ECHO_N "(cached) $ECHO_C" >&6
64907 else
64908 cat >conftest.$ac_ext <<_ACEOF
64909 /* confdefs.h. */
64910 _ACEOF
64911 cat confdefs.h >>conftest.$ac_ext
64912 cat >>conftest.$ac_ext <<_ACEOF
64913 /* end confdefs.h. */
64914 $ac_includes_default
64915 #ifdef HAVE_NETINET_IN_H
64916 #include <netinet/in.h>
64917 #endif
64919 typedef struct sockaddr_in ac__type_new_;
64921 main ()
64923 if ((ac__type_new_ *) 0)
64924 return 0;
64925 if (sizeof (ac__type_new_))
64926 return 0;
64928 return 0;
64930 _ACEOF
64931 rm -f conftest.$ac_objext
64932 if { (ac_try="$ac_compile"
64933 case "(($ac_try" in
64934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64935 *) ac_try_echo=$ac_try;;
64936 esac
64937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64938 (eval "$ac_compile") 2>conftest.er1
64939 ac_status=$?
64940 grep -v '^ *+' conftest.er1 >conftest.err
64941 rm -f conftest.er1
64942 cat conftest.err >&5
64943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64944 (exit $ac_status); } && {
64945 test -z "$ac_c_werror_flag" ||
64946 test ! -s conftest.err
64947 } && test -s conftest.$ac_objext; then
64948 ac_cv_type_struct_sockaddr_in=yes
64949 else
64950 echo "$as_me: failed program was:" >&5
64951 sed 's/^/| /' conftest.$ac_ext >&5
64953 ac_cv_type_struct_sockaddr_in=no
64956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64958 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5
64959 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in" >&6; }
64960 if test $ac_cv_type_struct_sockaddr_in = yes; then
64962 cat >>confdefs.h <<_ACEOF
64963 #define HAVE_STRUCT_SOCKADDR_IN 1
64964 _ACEOF
64966 should_build=1
64967 else
64968 should_build=0
64975 if test "$should_build" = "1"; then
64977 project=orte
64978 framework=oob
64979 component=tcp
64981 # See if it dropped an output file for us to pick up some
64982 # shell variables in.
64983 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
64985 # Add this subdir to the mast list of all MCA component subdirs
64986 all_components="$all_components $component"
64988 if test "$compile_mode" = "dso" ; then
64989 dso_components="$dso_components $component"
64990 else
64991 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
64992 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
64993 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
64994 static_components="$static_components $component"
64997 # Output pretty results
64998 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
64999 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
65000 { echo "$as_me:$LINENO: result: yes" >&5
65001 echo "${ECHO_T}yes" >&6; }
65003 # If there's an output file, add the values to
65004 # scope_EXTRA_flags.
65005 if test -f $infile; then
65007 # First check for the ABORT tag
65008 line="`grep ABORT= $infile | cut -d= -f2-`"
65009 if test -n "$line" -a "$line" != "no"; then
65010 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
65011 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
65012 { { echo "$as_me:$LINENO: error: cannot continue" >&5
65013 echo "$as_me: error: cannot continue" >&2;}
65014 { (exit 1); exit 1; }; }
65017 # Check for flags passed up from the component. If we're
65018 # compiling statically, then take all flags passed up from the
65019 # component.
65020 if test "$compile_mode" = "static"; then
65021 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
65022 eval "line=$line"
65023 if test -n "$line"; then
65024 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
65026 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
65027 eval "line=$line"
65028 if test -n "$line"; then
65029 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
65033 if test "$DIRECT_oob" = "$component" ; then
65034 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
65035 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
65036 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
65037 eval $str
65038 else
65039 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
65040 *** does not appear to support direct calling.
65041 *** Aborting" >&5
65042 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
65043 *** does not appear to support direct calling.
65044 *** Aborting" >&2;}
65045 { (exit 1); exit 1; }; }
65048 else
65049 # were we supposed to have found something in the
65050 # post_configure.sh, but the file didn't exist?
65051 if test "$DIRECT_oob" = "$component" ; then
65052 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
65053 *** does not appear to support direct calling.
65054 *** Aborting" >&5
65055 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
65056 *** does not appear to support direct calling.
65057 *** Aborting" >&2;}
65058 { (exit 1); exit 1; }; }
65062 # now add the flags that were set in the environment variables
65063 # framework_component_FOO (for example, the flags set by
65064 # m4_configure components)
65066 # Check for flags passed up from the component. If we're
65067 # compiling statically, then take all flags passed up from the
65068 # component.
65069 if test "$compile_mode" = "static"; then
65070 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
65071 eval "$str"
65072 if test -n "$line" ; then
65073 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
65075 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
65076 eval "$str"
65077 if test -n "$line" ; then
65078 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
65082 else
65084 { echo "$as_me:$LINENO: checking if MCA component oob:tcp can compile" >&5
65085 echo $ECHO_N "checking if MCA component oob:tcp can compile... $ECHO_C" >&6; }
65086 { echo "$as_me:$LINENO: result: no" >&5
65087 echo "${ECHO_T}no" >&6; }
65089 # If this component was requested as the default for this
65090 # type, then abort.
65091 if test "$with_oob" = "tcp" ; then
65092 { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5
65093 echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
65094 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
65095 echo "$as_me: WARNING: This component was selected as the default" >&2;}
65096 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
65097 echo "$as_me: error: Cannot continue" >&2;}
65098 { (exit 1); exit 1; }; }
65099 exit 1
65102 if test ! -z "$DIRECT_oob" ; then
65103 if test "$DIRECT_oob" = "tcp" ; then
65104 { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5
65105 echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
65106 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
65107 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
65108 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
65109 echo "$as_me: error: Cannot continue" >&2;}
65110 { (exit 1); exit 1; }; }
65111 exit 1
65115 # add component to all component list
65116 all_components="$all_components tcp"
65120 # set the AM_CONDITIONAL on how we should build
65121 if test "$compile_mode" = "dso"; then
65122 BUILD_oob_tcp_DSO=1
65123 else
65124 BUILD_oob_tcp_DSO=0
65129 if test "$BUILD_oob_tcp_DSO" = "1"; then
65130 OMPI_BUILD_oob_tcp_DSO_TRUE=
65131 OMPI_BUILD_oob_tcp_DSO_FALSE='#'
65132 else
65133 OMPI_BUILD_oob_tcp_DSO_TRUE='#'
65134 OMPI_BUILD_oob_tcp_DSO_FALSE=
65138 if test "$should_build" = "1"; then
65139 components_looking_for_succeed="$happy_value"
65143 unset compile_mode
65146 # configure components that provide their own configure script.
65147 # It would be really hard to run these for "find first that
65148 # works", so we don't :)
65149 if test "$happy_value" = "1"; then
65151 for component_path in $srcdir/orte/mca/oob/* ; do
65152 component="`basename $component_path`"
65153 if test -d $component_path -a -x $component_path/configure ; then
65154 ompi_show_subsubsubtitle "MCA component oob:$component (need to configure)"
65157 project=orte
65158 framework=oob
65159 component=$component
65160 component_path="$srcdir/$project/mca/$framework/$component"
65161 want_component=0
65163 # build if:
65164 # - the component type is direct and we are that component
65165 # - there is no ompi_ignore file
65166 # - there is an ompi_ignore, but there is an empty ompi_unignore
65167 # - there is an ompi_ignore, but username is in ompi_unignore
65168 if test -d $component_path ; then
65169 # decide if we want the component to be built or not. This
65170 # is spread out because some of the logic is a little complex
65171 # and test's syntax isn't exactly the greatest. We want to
65172 # build the component by default.
65173 want_component=1
65174 if test -f $component_path/.ompi_ignore ; then
65175 # If there is an ompi_ignore file, don't build
65176 # the component. Note that this decision can be
65177 # overriden by the unignore logic below.
65178 want_component=0
65180 if test -f $component_path/.ompi_unignore ; then
65181 # if there is an empty ompi_unignore, that is
65182 # equivalent to having your userid in the unignore file.
65183 # If userid is in the file, unignore the ignore file.
65184 if test ! -s $component_path/.ompi_unignore ; then
65185 want_component=1
65186 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
65187 want_component=1
65190 # if this component type is direct and we are not it, we don't want
65191 # to be built. Otherwise, we do want to be built.
65192 if test ! -z "$DIRECT_oob" ; then
65193 if test "$DIRECT_oob" = "$component" ; then
65194 want_component=1
65195 else
65196 want_component=0
65201 # if we were explicitly disabled, don't build :)
65202 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
65203 eval $str
65204 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
65205 want_component=0
65208 if test "$want_component" = "1"; then
65209 should_build=1
65210 else
65211 should_build=0
65216 project=orte
65217 framework=oob
65218 component=$component
65220 # Is this component going to built staic or shared? $component
65221 # might not be known until configure time, so have to use eval
65222 # tricks - can't set variable names at autogen time.
65223 str="SHARED_FRAMEWORK=\$DSO_$framework"
65224 eval $str
65225 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
65226 eval $str
65228 str="STATIC_FRAMEWORK=\$STATIC_$framework"
65229 eval $str
65230 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
65231 eval $str
65233 shared_mode_override=static
65235 # Setup for either shared or static
65236 if test "$STATIC_FRAMEWORK" = "1" -o \
65237 "$STATIC_COMPONENT" = "1" -o \
65238 "$STATIC_all" = "1" ; then
65239 compile_mode="static"
65240 elif test "$shared_mode_override" = "dso" -o \
65241 "$SHARED_FRAMEWORK" = "1" -o \
65242 "$SHARED_COMPONENT" = "1" -o \
65243 "$DSO_all" = "1"; then
65244 compile_mode="dso"
65245 else
65246 compile_mode="static"
65249 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
65250 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
65251 if test "$DIRECT_oob" = "$component" ; then
65252 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
65253 echo "${ECHO_T}$compile_mode - direct" >&6; }
65254 else
65255 { echo "$as_me:$LINENO: result: $compile_mode" >&5
65256 echo "${ECHO_T}$compile_mode" >&6; }
65260 if test "$should_build" = "1" ; then
65263 # Invoke configure in a specific subdirectory.
65265 # orte/mca/oob/$component is the directory to invoke in
65266 # $ompi_subdir_args is the list of arguments to pass
65267 # should_build=1 is actions to execute upon success
65268 # should_build=2 is actions to execute upon failure
65270 subdir_dir="orte/mca/oob/$component"
65271 subdir_args="$ompi_subdir_args"
65272 subdir_success="should_build=1"
65273 subdir_failure="should_build=2"
65276 # Sanity checks
65279 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
65280 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
65281 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
65284 # Gotta check where srcdir is for VPATH builds. If srcdir is not
65285 # ., then we need to mkdir the subdir. Otherwise, we can just cd
65286 # into it.
65289 case $srcdir in
65293 { case $subdir_dir in
65294 [\\/]* | ?:[\\/]* ) total_dir=;;
65295 *) total_dir=.;;
65296 esac
65297 temp=$subdir_dir
65298 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
65299 case $dir_part in
65300 # Skip DOS drivespec
65301 ?:) total_dir=$dir_part ;;
65302 *) total_dir=$total_dir/$dir_part
65303 test -d "$total_dir" ||
65304 mkdir "$total_dir" ||
65305 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
65306 echo "$as_me: error: cannot create $subdir_dir" >&2;}
65307 { (exit 1); exit 1; }; }
65309 esac
65310 done; }
65312 if test -d ./$subdir_dir; then :;
65313 else
65314 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
65315 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
65316 { (exit 1); exit 1; }; }
65319 esac
65322 # Move into the target directory
65325 subdir_parent=`pwd`
65326 cd $subdir_dir
65329 # Make a "../" for each directory in $subdir_dir.
65332 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
65334 # Construct the --srcdir argument
65337 case $srcdir in
65339 # In place
65340 subdir_srcdir="$srcdir"
65342 [\\/]* | ?:[\\/]* )
65343 # Absolute path
65344 subdir_srcdir="$srcdir/$subdir_dir"
65347 # Relative path
65348 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
65350 esac
65353 # Construct the --cache-file argument
65356 # BWB - subdir caching is a pain since we change CFLAGS and all that.
65357 # Just disable it for now
65358 subdir_cache_file="/dev/null"
65361 # Invoke the configure script in the subdirectory
65364 export CFLAGS CPPFLAGS
65365 export CXXFLAGS CXXCPPFLAGS
65366 export FFLAGS
65367 export LDFLAGS LIBS
65368 sub_configure="$SHELL '$subdir_srcdir/configure'"
65369 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
65370 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
65371 eval "$sub_configure $subdir_args \
65372 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
65373 if test "$?" = "0"; then
65374 eval $subdir_success
65375 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
65376 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
65377 else
65378 eval $subdir_failure
65379 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
65380 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
65384 # Go back to the topdir
65387 cd $subdir_parent
65391 # Clean up
65394 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
65395 unset subdir_args subdir_dots total_dir dir_part temp
65398 if test "$should_build" = "1" ; then
65400 project=orte
65401 framework=oob
65402 component=$component
65404 # See if it dropped an output file for us to pick up some
65405 # shell variables in.
65406 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
65408 # Add this subdir to the mast list of all MCA component subdirs
65409 all_components="$all_components $component"
65411 if test "$compile_mode" = "dso" ; then
65412 dso_components="$dso_components $component"
65413 else
65414 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
65415 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
65416 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
65417 static_components="$static_components $component"
65420 # Output pretty results
65421 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
65422 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
65423 { echo "$as_me:$LINENO: result: yes" >&5
65424 echo "${ECHO_T}yes" >&6; }
65426 # If there's an output file, add the values to
65427 # scope_EXTRA_flags.
65428 if test -f $infile; then
65430 # First check for the ABORT tag
65431 line="`grep ABORT= $infile | cut -d= -f2-`"
65432 if test -n "$line" -a "$line" != "no"; then
65433 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
65434 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
65435 { { echo "$as_me:$LINENO: error: cannot continue" >&5
65436 echo "$as_me: error: cannot continue" >&2;}
65437 { (exit 1); exit 1; }; }
65440 # Check for flags passed up from the component. If we're
65441 # compiling statically, then take all flags passed up from the
65442 # component.
65443 if test "$compile_mode" = "static"; then
65444 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
65445 eval "line=$line"
65446 if test -n "$line"; then
65447 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
65449 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
65450 eval "line=$line"
65451 if test -n "$line"; then
65452 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
65456 if test "$DIRECT_oob" = "$component" ; then
65457 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
65458 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
65459 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
65460 eval $str
65461 else
65462 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
65463 *** does not appear to support direct calling.
65464 *** Aborting" >&5
65465 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
65466 *** does not appear to support direct calling.
65467 *** Aborting" >&2;}
65468 { (exit 1); exit 1; }; }
65471 else
65472 # were we supposed to have found something in the
65473 # post_configure.sh, but the file didn't exist?
65474 if test "$DIRECT_oob" = "$component" ; then
65475 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
65476 *** does not appear to support direct calling.
65477 *** Aborting" >&5
65478 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
65479 *** does not appear to support direct calling.
65480 *** Aborting" >&2;}
65481 { (exit 1); exit 1; }; }
65485 # now add the flags that were set in the environment variables
65486 # framework_component_FOO (for example, the flags set by
65487 # m4_configure components)
65489 # Check for flags passed up from the component. If we're
65490 # compiling statically, then take all flags passed up from the
65491 # component.
65492 if test "$compile_mode" = "static"; then
65493 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
65494 eval "$str"
65495 if test -n "$line" ; then
65496 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
65498 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
65499 eval "$str"
65500 if test -n "$line" ; then
65501 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
65505 else
65507 { echo "$as_me:$LINENO: checking if MCA component oob:$component can compile" >&5
65508 echo $ECHO_N "checking if MCA component oob:$component can compile... $ECHO_C" >&6; }
65509 { echo "$as_me:$LINENO: result: no" >&5
65510 echo "${ECHO_T}no" >&6; }
65512 # If this component was requested as the default for this
65513 # type, then abort.
65514 if test "$with_oob" = "$component" ; then
65515 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
65516 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
65517 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
65518 echo "$as_me: WARNING: This component was selected as the default" >&2;}
65519 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
65520 echo "$as_me: error: Cannot continue" >&2;}
65521 { (exit 1); exit 1; }; }
65522 exit 1
65525 if test ! -z "$DIRECT_oob" ; then
65526 if test "$DIRECT_oob" = "$component" ; then
65527 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
65528 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
65529 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
65530 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
65531 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
65532 echo "$as_me: error: Cannot continue" >&2;}
65533 { (exit 1); exit 1; }; }
65534 exit 1
65540 done
65545 MCA_oob_ALL_COMPONENTS="$all_components"
65546 MCA_oob_STATIC_COMPONENTS="$static_components"
65547 MCA_oob_DSO_COMPONENTS="$dso_components"
65548 MCA_oob_STATIC_LTLIBS="$static_ltlibs"
65556 MCA_oob_ALL_SUBDIRS=
65557 for item in $all_components ; do
65558 MCA_oob_ALL_SUBDIRS="$MCA_oob_ALL_SUBDIRS mca/oob/$item"
65559 done
65563 MCA_oob_STATIC_SUBDIRS=
65564 for item in $static_components ; do
65565 MCA_oob_STATIC_SUBDIRS="$MCA_oob_STATIC_SUBDIRS mca/oob/$item"
65566 done
65570 MCA_oob_DSO_SUBDIRS=
65571 for item in $dso_components ; do
65572 MCA_oob_DSO_SUBDIRS="$MCA_oob_DSO_SUBDIRS mca/oob/$item"
65573 done
65577 # add all the makefiles for the framework to the CONFIG_FILES.
65578 # Don't add common/base, since it doesn't exist
65579 ac_config_files="$ac_config_files orte/mca/oob/Makefile"
65582 # Create the final .h file that will be included in the type's
65583 # top-level glue. This lists all the static components. We don't
65584 # need to do this for "common".
65585 if test "oob" != "common"; then
65586 cat > $outfile <<EOF
65588 * \$HEADER\$
65591 `cat $outfile.extern`
65593 const mca_base_component_t *mca_oob_base_static_components[] = {
65594 `cat $outfile.struct`
65595 NULL
65598 # Only replace the header file if a) it doesn't previously
65599 # exist, or b) the contents are different. Do this to not
65600 # trigger recompilation of certain .c files just because the
65601 # timestamp changed on $outfile_real (similar to the way AC
65602 # handles AC_CONFIG_HEADER files).
65603 diff $outfile $outfile_real > /dev/null 2>&1
65604 if test "$?" != "0"; then
65605 mv $outfile $outfile_real
65606 else
65607 rm -f $outfile
65610 rm -f $outfile.struct $outfile.extern
65612 unset all_components static_components dso_components outfile outfile_real
65613 # common has to go up front
65614 if test "pls" = "common" ; then
65615 MCA_orte_FRAMEWORKS="pls $MCA_orte_FRAMEWORKS"
65616 MCA_orte_FRAMEWORKS_SUBDIRS="mca/pls $MCA_orte_FRAMEWORKS_SUBDIRS"
65617 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pls_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
65618 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pls_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
65619 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pls_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
65620 else
65621 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS pls"
65622 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/pls"
65623 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pls_ALL_SUBDIRS)"
65624 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pls_DSO_SUBDIRS)"
65625 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pls_STATIC_SUBDIRS)"
65627 if test "pls" != "common" ; then
65628 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/pls/libmca_pls.la"
65630 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_pls_STATIC_LTLIBS)"
65632 ompi_show_subsubtitle "Configuring MCA framework pls"
65634 # setup for framework
65635 all_components=
65636 static_components=
65637 dso_components=
65638 static_ltlibs=
65640 # Ensure that the directory where the #include file is to live
65641 # exists. Need to do this for VPATH builds, because the directory
65642 # may not exist yet. For the "common" type, it's not really a
65643 # component, so it doesn't have a base.
65644 if test "pls" = "common" ; then
65645 outdir=orte/mca/common
65646 else
65647 outdir=orte/mca/pls/base
65649 { as_dir=$outdir
65650 case $as_dir in #(
65651 -*) as_dir=./$as_dir;;
65652 esac
65653 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
65654 as_dirs=
65655 while :; do
65656 case $as_dir in #(
65657 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
65658 *) as_qdir=$as_dir;;
65659 esac
65660 as_dirs="'$as_qdir' $as_dirs"
65661 as_dir=`$as_dirname -- "$as_dir" ||
65662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65663 X"$as_dir" : 'X\(//\)[^/]' \| \
65664 X"$as_dir" : 'X\(//\)$' \| \
65665 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
65666 echo X"$as_dir" |
65667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
65668 s//\1/
65671 /^X\(\/\/\)[^/].*/{
65672 s//\1/
65675 /^X\(\/\/\)$/{
65676 s//\1/
65679 /^X\(\/\).*/{
65680 s//\1/
65683 s/.*/./; q'`
65684 test -d "$as_dir" && break
65685 done
65686 test -z "$as_dirs" || eval "mkdir $as_dirs"
65687 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
65688 echo "$as_me: error: cannot create directory $as_dir" >&2;}
65689 { (exit 1); exit 1; }; }; }
65691 # remove any previously generated #include files
65692 outfile_real=$outdir/static-components.h
65693 outfile=$outfile_real.new
65694 rm -f $outfile $outfile.struct $outfile.extern
65695 touch $outfile.struct $outfile.extern
65697 # print some nice messages about what we're about to do...
65698 { echo "$as_me:$LINENO: checking for no configure components in framework pls" >&5
65699 echo $ECHO_N "checking for no configure components in framework pls... $ECHO_C" >&6; }
65700 { echo "$as_me:$LINENO: result: " >&5
65701 echo "${ECHO_T}" >&6; }
65702 { echo "$as_me:$LINENO: checking for m4 configure components in framework pls" >&5
65703 echo $ECHO_N "checking for m4 configure components in framework pls... $ECHO_C" >&6; }
65704 { echo "$as_me:$LINENO: result: bproc, bproc_orted, fork, poe, rsh, slurm, tm, xgrid" >&5
65705 echo "${ECHO_T}bproc, bproc_orted, fork, poe, rsh, slurm, tm, xgrid" >&6; }
65707 # if we only want the first successful component, set the variable
65708 # happy_value to 0 so we stop on first assignment. Otherwise, set
65709 # it to zero so that components_looking_for_succeed is always 1
65710 happy_value=1
65712 components_looking_for_succeed=1
65714 # configure components that don't have any component-specific
65715 # configuration. See comment in CONFIGURE_PROJECT about the
65716 # m4_ifval
65717 # if there isn't a component list, abort
65721 # configure components that use built-in configuration scripts
65722 # see comment in CONFIGURE_PROJECT about the m4_ifval
65723 # if there isn't a component list, abort
65726 ompi_show_subsubsubtitle "MCA component pls:bproc (m4 configuration macro)"
65729 project=orte
65730 framework=pls
65731 component=bproc
65732 component_path="$srcdir/$project/mca/$framework/$component"
65733 want_component=0
65735 # build if:
65736 # - the component type is direct and we are that component
65737 # - there is no ompi_ignore file
65738 # - there is an ompi_ignore, but there is an empty ompi_unignore
65739 # - there is an ompi_ignore, but username is in ompi_unignore
65740 if test -d $component_path ; then
65741 # decide if we want the component to be built or not. This
65742 # is spread out because some of the logic is a little complex
65743 # and test's syntax isn't exactly the greatest. We want to
65744 # build the component by default.
65745 want_component=1
65746 if test -f $component_path/.ompi_ignore ; then
65747 # If there is an ompi_ignore file, don't build
65748 # the component. Note that this decision can be
65749 # overriden by the unignore logic below.
65750 want_component=0
65752 if test -f $component_path/.ompi_unignore ; then
65753 # if there is an empty ompi_unignore, that is
65754 # equivalent to having your userid in the unignore file.
65755 # If userid is in the file, unignore the ignore file.
65756 if test ! -s $component_path/.ompi_unignore ; then
65757 want_component=1
65758 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
65759 want_component=1
65762 # if this component type is direct and we are not it, we don't want
65763 # to be built. Otherwise, we do want to be built.
65764 if test ! -z "$DIRECT_pls" ; then
65765 if test "$DIRECT_pls" = "$component" ; then
65766 want_component=1
65767 else
65768 want_component=0
65773 # if we were explicitly disabled, don't build :)
65774 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
65775 eval $str
65776 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
65777 want_component=0
65780 if test "$want_component" = "1"; then
65781 should_build=$components_looking_for_succeed
65782 else
65783 should_build=0
65787 # Allow the component to override the build mode if it really wants to.
65788 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
65790 project=orte
65791 framework=pls
65792 component=bproc
65794 # Is this component going to built staic or shared? $component
65795 # might not be known until configure time, so have to use eval
65796 # tricks - can't set variable names at autogen time.
65797 str="SHARED_FRAMEWORK=\$DSO_$framework"
65798 eval $str
65799 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
65800 eval $str
65802 str="STATIC_FRAMEWORK=\$STATIC_$framework"
65803 eval $str
65804 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
65805 eval $str
65807 shared_mode_override=static
65809 # Setup for either shared or static
65810 if test "$STATIC_FRAMEWORK" = "1" -o \
65811 "$STATIC_COMPONENT" = "1" -o \
65812 "$STATIC_all" = "1" ; then
65813 compile_mode="static"
65814 elif test "$shared_mode_override" = "dso" -o \
65815 "$SHARED_FRAMEWORK" = "1" -o \
65816 "$SHARED_COMPONENT" = "1" -o \
65817 "$DSO_all" = "1"; then
65818 compile_mode="dso"
65819 else
65820 compile_mode="static"
65823 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
65824 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
65825 if test "$DIRECT_pls" = "$component" ; then
65826 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
65827 echo "${ECHO_T}$compile_mode - direct" >&6; }
65828 else
65829 { echo "$as_me:$LINENO: result: $compile_mode" >&5
65830 echo "${ECHO_T}$compile_mode" >&6; }
65834 # try to configure the component. pay no attention to
65835 # --enable-dist, since we'll always have makefiles.
65836 if test "$should_build" = "1"; then
65840 # Check whether --with-bproc was given.
65841 if test "${with_bproc+set}" = set; then
65842 withval=$with_bproc;
65846 if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
65847 pls_bproc_good=0
65848 else
65850 ompi_check_bproc_save_CPPFLAGS="$CPPFLAGS"
65851 ompi_check_bproc_save_LDFLAGS="$LDFLAGS"
65852 ompi_check_bproc_save_LIBS="$LIBS"
65854 if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
65855 CPPFLAGS="$CPPFLAGS -I$with_bproc/include"
65856 LDFLAGS="$LDFLAGS -L$with_bproc/lib"
65860 for ac_header in sys/bproc.h
65862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
65863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
65865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
65866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65867 echo $ECHO_N "(cached) $ECHO_C" >&6
65869 ac_res=`eval echo '${'$as_ac_Header'}'`
65870 { echo "$as_me:$LINENO: result: $ac_res" >&5
65871 echo "${ECHO_T}$ac_res" >&6; }
65872 else
65873 # Is the header compilable?
65874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
65875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
65876 cat >conftest.$ac_ext <<_ACEOF
65877 /* confdefs.h. */
65878 _ACEOF
65879 cat confdefs.h >>conftest.$ac_ext
65880 cat >>conftest.$ac_ext <<_ACEOF
65881 /* end confdefs.h. */
65882 $ac_includes_default
65883 #include <$ac_header>
65884 _ACEOF
65885 rm -f conftest.$ac_objext
65886 if { (ac_try="$ac_compile"
65887 case "(($ac_try" in
65888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65889 *) ac_try_echo=$ac_try;;
65890 esac
65891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65892 (eval "$ac_compile") 2>conftest.er1
65893 ac_status=$?
65894 grep -v '^ *+' conftest.er1 >conftest.err
65895 rm -f conftest.er1
65896 cat conftest.err >&5
65897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65898 (exit $ac_status); } && {
65899 test -z "$ac_c_werror_flag" ||
65900 test ! -s conftest.err
65901 } && test -s conftest.$ac_objext; then
65902 ac_header_compiler=yes
65903 else
65904 echo "$as_me: failed program was:" >&5
65905 sed 's/^/| /' conftest.$ac_ext >&5
65907 ac_header_compiler=no
65910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
65912 echo "${ECHO_T}$ac_header_compiler" >&6; }
65914 # Is the header present?
65915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
65916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
65917 cat >conftest.$ac_ext <<_ACEOF
65918 /* confdefs.h. */
65919 _ACEOF
65920 cat confdefs.h >>conftest.$ac_ext
65921 cat >>conftest.$ac_ext <<_ACEOF
65922 /* end confdefs.h. */
65923 #include <$ac_header>
65924 _ACEOF
65925 if { (ac_try="$ac_cpp conftest.$ac_ext"
65926 case "(($ac_try" in
65927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65928 *) ac_try_echo=$ac_try;;
65929 esac
65930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
65932 ac_status=$?
65933 grep -v '^ *+' conftest.er1 >conftest.err
65934 rm -f conftest.er1
65935 cat conftest.err >&5
65936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65937 (exit $ac_status); } >/dev/null && {
65938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
65939 test ! -s conftest.err
65940 }; then
65941 ac_header_preproc=yes
65942 else
65943 echo "$as_me: failed program was:" >&5
65944 sed 's/^/| /' conftest.$ac_ext >&5
65946 ac_header_preproc=no
65949 rm -f conftest.err conftest.$ac_ext
65950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
65951 echo "${ECHO_T}$ac_header_preproc" >&6; }
65953 # So? What about this header?
65954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
65955 yes:no: )
65956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
65957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
65958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
65959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
65960 ac_header_preproc=yes
65962 no:yes:* )
65963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
65964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
65965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
65966 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
65967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
65968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
65969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
65970 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
65971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
65972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
65973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
65974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
65975 ( cat <<\_ASBOX
65976 ## ------------------------------------------------------ ##
65977 ## Report this to http://www.open-mpi.org/community/help/ ##
65978 ## ------------------------------------------------------ ##
65979 _ASBOX
65980 ) | sed "s/^/$as_me: WARNING: /" >&2
65982 esac
65983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
65984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
65985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65986 echo $ECHO_N "(cached) $ECHO_C" >&6
65987 else
65988 eval "$as_ac_Header=\$ac_header_preproc"
65990 ac_res=`eval echo '${'$as_ac_Header'}'`
65991 { echo "$as_me:$LINENO: result: $ac_res" >&5
65992 echo "${ECHO_T}$ac_res" >&6; }
65995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
65996 cat >>confdefs.h <<_ACEOF
65997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
65998 _ACEOF
65999 { echo "$as_me:$LINENO: checking for bproc_numnodes in -lbproc" >&5
66000 echo $ECHO_N "checking for bproc_numnodes in -lbproc... $ECHO_C" >&6; }
66001 if test "${ac_cv_lib_bproc_bproc_numnodes+set}" = set; then
66002 echo $ECHO_N "(cached) $ECHO_C" >&6
66003 else
66004 ac_check_lib_save_LIBS=$LIBS
66005 LIBS="-lbproc $LIBS"
66006 cat >conftest.$ac_ext <<_ACEOF
66007 /* confdefs.h. */
66008 _ACEOF
66009 cat confdefs.h >>conftest.$ac_ext
66010 cat >>conftest.$ac_ext <<_ACEOF
66011 /* end confdefs.h. */
66013 /* Override any GCC internal prototype to avoid an error.
66014 Use char because int might match the return type of a GCC
66015 builtin and then its argument prototype would still apply. */
66016 #ifdef __cplusplus
66017 extern "C"
66018 #endif
66019 char bproc_numnodes ();
66021 main ()
66023 return bproc_numnodes ();
66025 return 0;
66027 _ACEOF
66028 rm -f conftest.$ac_objext conftest$ac_exeext
66029 if { (ac_try="$ac_link"
66030 case "(($ac_try" in
66031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66032 *) ac_try_echo=$ac_try;;
66033 esac
66034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66035 (eval "$ac_link") 2>conftest.er1
66036 ac_status=$?
66037 grep -v '^ *+' conftest.er1 >conftest.err
66038 rm -f conftest.er1
66039 cat conftest.err >&5
66040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66041 (exit $ac_status); } && {
66042 test -z "$ac_c_werror_flag" ||
66043 test ! -s conftest.err
66044 } && test -s conftest$ac_exeext &&
66045 $as_test_x conftest$ac_exeext; then
66046 ac_cv_lib_bproc_bproc_numnodes=yes
66047 else
66048 echo "$as_me: failed program was:" >&5
66049 sed 's/^/| /' conftest.$ac_ext >&5
66051 ac_cv_lib_bproc_bproc_numnodes=no
66054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66055 conftest$ac_exeext conftest.$ac_ext
66056 LIBS=$ac_check_lib_save_LIBS
66058 { echo "$as_me:$LINENO: result: $ac_cv_lib_bproc_bproc_numnodes" >&5
66059 echo "${ECHO_T}$ac_cv_lib_bproc_bproc_numnodes" >&6; }
66060 if test $ac_cv_lib_bproc_bproc_numnodes = yes; then
66061 ompi_check_bproc_happy="yes"
66062 else
66063 ompi_check_bproc_happy="no"
66066 else
66067 ompi_check_bproc_happy="no"
66070 done
66073 # Check for Scyld bproc or an old version of LANL Bproc (pre 3.2.0)
66074 if test "$ompi_check_bproc_happy" = "yes"; then
66076 for ac_header in sys/bproc_common.h
66078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
66080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
66081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66082 echo $ECHO_N "(cached) $ECHO_C" >&6
66083 else
66084 cat >conftest.$ac_ext <<_ACEOF
66085 /* confdefs.h. */
66086 _ACEOF
66087 cat confdefs.h >>conftest.$ac_ext
66088 cat >>conftest.$ac_ext <<_ACEOF
66089 /* end confdefs.h. */
66090 #include <stdint.h>
66091 #include <sys/socket.h>
66093 #include <$ac_header>
66094 _ACEOF
66095 rm -f conftest.$ac_objext
66096 if { (ac_try="$ac_compile"
66097 case "(($ac_try" in
66098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66099 *) ac_try_echo=$ac_try;;
66100 esac
66101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66102 (eval "$ac_compile") 2>conftest.er1
66103 ac_status=$?
66104 grep -v '^ *+' conftest.er1 >conftest.err
66105 rm -f conftest.er1
66106 cat conftest.err >&5
66107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66108 (exit $ac_status); } && {
66109 test -z "$ac_c_werror_flag" ||
66110 test ! -s conftest.err
66111 } && test -s conftest.$ac_objext; then
66112 eval "$as_ac_Header=yes"
66113 else
66114 echo "$as_me: failed program was:" >&5
66115 sed 's/^/| /' conftest.$ac_ext >&5
66117 eval "$as_ac_Header=no"
66120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66122 ac_res=`eval echo '${'$as_ac_Header'}'`
66123 { echo "$as_me:$LINENO: result: $ac_res" >&5
66124 echo "${ECHO_T}$ac_res" >&6; }
66125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66126 cat >>confdefs.h <<_ACEOF
66127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66128 _ACEOF
66129 ompi_check_bproc_happy="new"
66130 else
66131 ompi_check_bproc_happy="old"
66134 done
66139 CPPFLAGS="$ompi_check_bproc_save_CPPFLAGS"
66140 LDFLAGS="$ompi_check_bproc_save_LDFLAGS"
66141 LIBS="$ompi_check_bproc_save_LIBS"
66143 if test "$ompi_check_bproc_happy" != "no"; then
66144 if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
66145 pls_bproc_CPPFLAGS="$pls_bproc_CPPFLAGS -I$with_bproc/include"
66146 pls_bproc_LDFLAGS="$pls_bproc_LDFLAGS -L$with_bproc/lib"
66149 pls_bproc_LIBS="$pls_bproc_LIBS -lbproc"
66150 if test "$ompi_check_bproc_happy" = "new"; then
66151 pls_bproc_good=2
66152 else
66153 pls_bproc_good=1
66156 else
66157 if test ! -z "$with_bproc"; then
66158 { { echo "$as_me:$LINENO: error: BProc support request but not found. Perhaps
66159 you need to specify the location of the BProc libraries." >&5
66160 echo "$as_me: error: BProc support request but not found. Perhaps
66161 you need to specify the location of the BProc libraries." >&2;}
66162 { (exit 1); exit 1; }; }
66165 pls_bproc_good=0
66172 # if check worked, set wrapper flags if so.
66173 # Evaluate succeed / fail
66174 if test "$pls_bproc_good" = "1"; then
66176 cat >>confdefs.h <<_ACEOF
66177 #define MCA_pls_bproc_scyld 1
66178 _ACEOF
66183 if test "$pls_bproc_good" != "0"; then
66184 pls_bproc_WRAPPER_EXTRA_LDFLAGS="$pls_bproc_LDFLAGS"
66185 pls_bproc_WRAPPER_EXTRA_LIBS="$pls_bproc_LIBS"
66186 should_build=1
66187 else
66188 should_build=0
66192 # set build flags to use in makefile
66200 if test "$should_build" = "1"; then
66202 project=orte
66203 framework=pls
66204 component=bproc
66206 # See if it dropped an output file for us to pick up some
66207 # shell variables in.
66208 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
66210 # Add this subdir to the mast list of all MCA component subdirs
66211 all_components="$all_components $component"
66213 if test "$compile_mode" = "dso" ; then
66214 dso_components="$dso_components $component"
66215 else
66216 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
66217 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
66218 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
66219 static_components="$static_components $component"
66222 # Output pretty results
66223 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
66224 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
66225 { echo "$as_me:$LINENO: result: yes" >&5
66226 echo "${ECHO_T}yes" >&6; }
66228 # If there's an output file, add the values to
66229 # scope_EXTRA_flags.
66230 if test -f $infile; then
66232 # First check for the ABORT tag
66233 line="`grep ABORT= $infile | cut -d= -f2-`"
66234 if test -n "$line" -a "$line" != "no"; then
66235 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
66236 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
66237 { { echo "$as_me:$LINENO: error: cannot continue" >&5
66238 echo "$as_me: error: cannot continue" >&2;}
66239 { (exit 1); exit 1; }; }
66242 # Check for flags passed up from the component. If we're
66243 # compiling statically, then take all flags passed up from the
66244 # component.
66245 if test "$compile_mode" = "static"; then
66246 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
66247 eval "line=$line"
66248 if test -n "$line"; then
66249 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
66251 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
66252 eval "line=$line"
66253 if test -n "$line"; then
66254 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
66258 if test "$DIRECT_pls" = "$component" ; then
66259 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
66260 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
66261 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
66262 eval $str
66263 else
66264 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
66265 *** does not appear to support direct calling.
66266 *** Aborting" >&5
66267 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
66268 *** does not appear to support direct calling.
66269 *** Aborting" >&2;}
66270 { (exit 1); exit 1; }; }
66273 else
66274 # were we supposed to have found something in the
66275 # post_configure.sh, but the file didn't exist?
66276 if test "$DIRECT_pls" = "$component" ; then
66277 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
66278 *** does not appear to support direct calling.
66279 *** Aborting" >&5
66280 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
66281 *** does not appear to support direct calling.
66282 *** Aborting" >&2;}
66283 { (exit 1); exit 1; }; }
66287 # now add the flags that were set in the environment variables
66288 # framework_component_FOO (for example, the flags set by
66289 # m4_configure components)
66291 # Check for flags passed up from the component. If we're
66292 # compiling statically, then take all flags passed up from the
66293 # component.
66294 if test "$compile_mode" = "static"; then
66295 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
66296 eval "$str"
66297 if test -n "$line" ; then
66298 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
66300 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
66301 eval "$str"
66302 if test -n "$line" ; then
66303 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
66307 else
66309 { echo "$as_me:$LINENO: checking if MCA component pls:bproc can compile" >&5
66310 echo $ECHO_N "checking if MCA component pls:bproc can compile... $ECHO_C" >&6; }
66311 { echo "$as_me:$LINENO: result: no" >&5
66312 echo "${ECHO_T}no" >&6; }
66314 # If this component was requested as the default for this
66315 # type, then abort.
66316 if test "$with_pls" = "bproc" ; then
66317 { echo "$as_me:$LINENO: WARNING: MCA component \"bproc\" failed to configure properly" >&5
66318 echo "$as_me: WARNING: MCA component \"bproc\" failed to configure properly" >&2;}
66319 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
66320 echo "$as_me: WARNING: This component was selected as the default" >&2;}
66321 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
66322 echo "$as_me: error: Cannot continue" >&2;}
66323 { (exit 1); exit 1; }; }
66324 exit 1
66327 if test ! -z "$DIRECT_pls" ; then
66328 if test "$DIRECT_pls" = "bproc" ; then
66329 { echo "$as_me:$LINENO: WARNING: MCA component \"bproc\" failed to configure properly" >&5
66330 echo "$as_me: WARNING: MCA component \"bproc\" failed to configure properly" >&2;}
66331 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
66332 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
66333 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
66334 echo "$as_me: error: Cannot continue" >&2;}
66335 { (exit 1); exit 1; }; }
66336 exit 1
66340 # add component to all component list
66341 all_components="$all_components bproc"
66345 # set the AM_CONDITIONAL on how we should build
66346 if test "$compile_mode" = "dso"; then
66347 BUILD_pls_bproc_DSO=1
66348 else
66349 BUILD_pls_bproc_DSO=0
66354 if test "$BUILD_pls_bproc_DSO" = "1"; then
66355 OMPI_BUILD_pls_bproc_DSO_TRUE=
66356 OMPI_BUILD_pls_bproc_DSO_FALSE='#'
66357 else
66358 OMPI_BUILD_pls_bproc_DSO_TRUE='#'
66359 OMPI_BUILD_pls_bproc_DSO_FALSE=
66363 if test "$should_build" = "1"; then
66364 components_looking_for_succeed="$happy_value"
66368 unset compile_mode
66370 ompi_show_subsubsubtitle "MCA component pls:bproc_orted (m4 configuration macro)"
66373 project=orte
66374 framework=pls
66375 component=bproc_orted
66376 component_path="$srcdir/$project/mca/$framework/$component"
66377 want_component=0
66379 # build if:
66380 # - the component type is direct and we are that component
66381 # - there is no ompi_ignore file
66382 # - there is an ompi_ignore, but there is an empty ompi_unignore
66383 # - there is an ompi_ignore, but username is in ompi_unignore
66384 if test -d $component_path ; then
66385 # decide if we want the component to be built or not. This
66386 # is spread out because some of the logic is a little complex
66387 # and test's syntax isn't exactly the greatest. We want to
66388 # build the component by default.
66389 want_component=1
66390 if test -f $component_path/.ompi_ignore ; then
66391 # If there is an ompi_ignore file, don't build
66392 # the component. Note that this decision can be
66393 # overriden by the unignore logic below.
66394 want_component=0
66396 if test -f $component_path/.ompi_unignore ; then
66397 # if there is an empty ompi_unignore, that is
66398 # equivalent to having your userid in the unignore file.
66399 # If userid is in the file, unignore the ignore file.
66400 if test ! -s $component_path/.ompi_unignore ; then
66401 want_component=1
66402 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
66403 want_component=1
66406 # if this component type is direct and we are not it, we don't want
66407 # to be built. Otherwise, we do want to be built.
66408 if test ! -z "$DIRECT_pls" ; then
66409 if test "$DIRECT_pls" = "$component" ; then
66410 want_component=1
66411 else
66412 want_component=0
66417 # if we were explicitly disabled, don't build :)
66418 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
66419 eval $str
66420 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
66421 want_component=0
66424 if test "$want_component" = "1"; then
66425 should_build=$components_looking_for_succeed
66426 else
66427 should_build=0
66431 # Allow the component to override the build mode if it really wants to.
66432 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
66434 project=orte
66435 framework=pls
66436 component=bproc_orted
66438 # Is this component going to built staic or shared? $component
66439 # might not be known until configure time, so have to use eval
66440 # tricks - can't set variable names at autogen time.
66441 str="SHARED_FRAMEWORK=\$DSO_$framework"
66442 eval $str
66443 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
66444 eval $str
66446 str="STATIC_FRAMEWORK=\$STATIC_$framework"
66447 eval $str
66448 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
66449 eval $str
66451 shared_mode_override=static
66453 # Setup for either shared or static
66454 if test "$STATIC_FRAMEWORK" = "1" -o \
66455 "$STATIC_COMPONENT" = "1" -o \
66456 "$STATIC_all" = "1" ; then
66457 compile_mode="static"
66458 elif test "$shared_mode_override" = "dso" -o \
66459 "$SHARED_FRAMEWORK" = "1" -o \
66460 "$SHARED_COMPONENT" = "1" -o \
66461 "$DSO_all" = "1"; then
66462 compile_mode="dso"
66463 else
66464 compile_mode="static"
66467 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
66468 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
66469 if test "$DIRECT_pls" = "$component" ; then
66470 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
66471 echo "${ECHO_T}$compile_mode - direct" >&6; }
66472 else
66473 { echo "$as_me:$LINENO: result: $compile_mode" >&5
66474 echo "${ECHO_T}$compile_mode" >&6; }
66478 # try to configure the component. pay no attention to
66479 # --enable-dist, since we'll always have makefiles.
66480 if test "$should_build" = "1"; then
66484 # Check whether --with-bproc was given.
66485 if test "${with_bproc+set}" = set; then
66486 withval=$with_bproc;
66490 if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
66491 pls_bproc_orted_good=0
66492 else
66494 ompi_check_bproc_save_CPPFLAGS="$CPPFLAGS"
66495 ompi_check_bproc_save_LDFLAGS="$LDFLAGS"
66496 ompi_check_bproc_save_LIBS="$LIBS"
66498 if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
66499 CPPFLAGS="$CPPFLAGS -I$with_bproc/include"
66500 LDFLAGS="$LDFLAGS -L$with_bproc/lib"
66504 for ac_header in sys/bproc.h
66506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
66509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
66510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66511 echo $ECHO_N "(cached) $ECHO_C" >&6
66513 ac_res=`eval echo '${'$as_ac_Header'}'`
66514 { echo "$as_me:$LINENO: result: $ac_res" >&5
66515 echo "${ECHO_T}$ac_res" >&6; }
66516 else
66517 # Is the header compilable?
66518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
66519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
66520 cat >conftest.$ac_ext <<_ACEOF
66521 /* confdefs.h. */
66522 _ACEOF
66523 cat confdefs.h >>conftest.$ac_ext
66524 cat >>conftest.$ac_ext <<_ACEOF
66525 /* end confdefs.h. */
66526 $ac_includes_default
66527 #include <$ac_header>
66528 _ACEOF
66529 rm -f conftest.$ac_objext
66530 if { (ac_try="$ac_compile"
66531 case "(($ac_try" in
66532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66533 *) ac_try_echo=$ac_try;;
66534 esac
66535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66536 (eval "$ac_compile") 2>conftest.er1
66537 ac_status=$?
66538 grep -v '^ *+' conftest.er1 >conftest.err
66539 rm -f conftest.er1
66540 cat conftest.err >&5
66541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66542 (exit $ac_status); } && {
66543 test -z "$ac_c_werror_flag" ||
66544 test ! -s conftest.err
66545 } && test -s conftest.$ac_objext; then
66546 ac_header_compiler=yes
66547 else
66548 echo "$as_me: failed program was:" >&5
66549 sed 's/^/| /' conftest.$ac_ext >&5
66551 ac_header_compiler=no
66554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66556 echo "${ECHO_T}$ac_header_compiler" >&6; }
66558 # Is the header present?
66559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
66560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
66561 cat >conftest.$ac_ext <<_ACEOF
66562 /* confdefs.h. */
66563 _ACEOF
66564 cat confdefs.h >>conftest.$ac_ext
66565 cat >>conftest.$ac_ext <<_ACEOF
66566 /* end confdefs.h. */
66567 #include <$ac_header>
66568 _ACEOF
66569 if { (ac_try="$ac_cpp conftest.$ac_ext"
66570 case "(($ac_try" in
66571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66572 *) ac_try_echo=$ac_try;;
66573 esac
66574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
66576 ac_status=$?
66577 grep -v '^ *+' conftest.er1 >conftest.err
66578 rm -f conftest.er1
66579 cat conftest.err >&5
66580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66581 (exit $ac_status); } >/dev/null && {
66582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
66583 test ! -s conftest.err
66584 }; then
66585 ac_header_preproc=yes
66586 else
66587 echo "$as_me: failed program was:" >&5
66588 sed 's/^/| /' conftest.$ac_ext >&5
66590 ac_header_preproc=no
66593 rm -f conftest.err conftest.$ac_ext
66594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66595 echo "${ECHO_T}$ac_header_preproc" >&6; }
66597 # So? What about this header?
66598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66599 yes:no: )
66600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66604 ac_header_preproc=yes
66606 no:yes:* )
66607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66619 ( cat <<\_ASBOX
66620 ## ------------------------------------------------------ ##
66621 ## Report this to http://www.open-mpi.org/community/help/ ##
66622 ## ------------------------------------------------------ ##
66623 _ASBOX
66624 ) | sed "s/^/$as_me: WARNING: /" >&2
66626 esac
66627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
66628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
66629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66630 echo $ECHO_N "(cached) $ECHO_C" >&6
66631 else
66632 eval "$as_ac_Header=\$ac_header_preproc"
66634 ac_res=`eval echo '${'$as_ac_Header'}'`
66635 { echo "$as_me:$LINENO: result: $ac_res" >&5
66636 echo "${ECHO_T}$ac_res" >&6; }
66639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66640 cat >>confdefs.h <<_ACEOF
66641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66642 _ACEOF
66643 { echo "$as_me:$LINENO: checking for bproc_numnodes in -lbproc" >&5
66644 echo $ECHO_N "checking for bproc_numnodes in -lbproc... $ECHO_C" >&6; }
66645 if test "${ac_cv_lib_bproc_bproc_numnodes+set}" = set; then
66646 echo $ECHO_N "(cached) $ECHO_C" >&6
66647 else
66648 ac_check_lib_save_LIBS=$LIBS
66649 LIBS="-lbproc $LIBS"
66650 cat >conftest.$ac_ext <<_ACEOF
66651 /* confdefs.h. */
66652 _ACEOF
66653 cat confdefs.h >>conftest.$ac_ext
66654 cat >>conftest.$ac_ext <<_ACEOF
66655 /* end confdefs.h. */
66657 /* Override any GCC internal prototype to avoid an error.
66658 Use char because int might match the return type of a GCC
66659 builtin and then its argument prototype would still apply. */
66660 #ifdef __cplusplus
66661 extern "C"
66662 #endif
66663 char bproc_numnodes ();
66665 main ()
66667 return bproc_numnodes ();
66669 return 0;
66671 _ACEOF
66672 rm -f conftest.$ac_objext conftest$ac_exeext
66673 if { (ac_try="$ac_link"
66674 case "(($ac_try" in
66675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66676 *) ac_try_echo=$ac_try;;
66677 esac
66678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66679 (eval "$ac_link") 2>conftest.er1
66680 ac_status=$?
66681 grep -v '^ *+' conftest.er1 >conftest.err
66682 rm -f conftest.er1
66683 cat conftest.err >&5
66684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66685 (exit $ac_status); } && {
66686 test -z "$ac_c_werror_flag" ||
66687 test ! -s conftest.err
66688 } && test -s conftest$ac_exeext &&
66689 $as_test_x conftest$ac_exeext; then
66690 ac_cv_lib_bproc_bproc_numnodes=yes
66691 else
66692 echo "$as_me: failed program was:" >&5
66693 sed 's/^/| /' conftest.$ac_ext >&5
66695 ac_cv_lib_bproc_bproc_numnodes=no
66698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66699 conftest$ac_exeext conftest.$ac_ext
66700 LIBS=$ac_check_lib_save_LIBS
66702 { echo "$as_me:$LINENO: result: $ac_cv_lib_bproc_bproc_numnodes" >&5
66703 echo "${ECHO_T}$ac_cv_lib_bproc_bproc_numnodes" >&6; }
66704 if test $ac_cv_lib_bproc_bproc_numnodes = yes; then
66705 ompi_check_bproc_happy="yes"
66706 else
66707 ompi_check_bproc_happy="no"
66710 else
66711 ompi_check_bproc_happy="no"
66714 done
66717 # Check for Scyld bproc or an old version of LANL Bproc (pre 3.2.0)
66718 if test "$ompi_check_bproc_happy" = "yes"; then
66720 for ac_header in sys/bproc_common.h
66722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
66724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
66725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66726 echo $ECHO_N "(cached) $ECHO_C" >&6
66727 else
66728 cat >conftest.$ac_ext <<_ACEOF
66729 /* confdefs.h. */
66730 _ACEOF
66731 cat confdefs.h >>conftest.$ac_ext
66732 cat >>conftest.$ac_ext <<_ACEOF
66733 /* end confdefs.h. */
66734 #include <stdint.h>
66735 #include <sys/socket.h>
66737 #include <$ac_header>
66738 _ACEOF
66739 rm -f conftest.$ac_objext
66740 if { (ac_try="$ac_compile"
66741 case "(($ac_try" in
66742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66743 *) ac_try_echo=$ac_try;;
66744 esac
66745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66746 (eval "$ac_compile") 2>conftest.er1
66747 ac_status=$?
66748 grep -v '^ *+' conftest.er1 >conftest.err
66749 rm -f conftest.er1
66750 cat conftest.err >&5
66751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66752 (exit $ac_status); } && {
66753 test -z "$ac_c_werror_flag" ||
66754 test ! -s conftest.err
66755 } && test -s conftest.$ac_objext; then
66756 eval "$as_ac_Header=yes"
66757 else
66758 echo "$as_me: failed program was:" >&5
66759 sed 's/^/| /' conftest.$ac_ext >&5
66761 eval "$as_ac_Header=no"
66764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66766 ac_res=`eval echo '${'$as_ac_Header'}'`
66767 { echo "$as_me:$LINENO: result: $ac_res" >&5
66768 echo "${ECHO_T}$ac_res" >&6; }
66769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66770 cat >>confdefs.h <<_ACEOF
66771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66772 _ACEOF
66773 ompi_check_bproc_happy="new"
66774 else
66775 ompi_check_bproc_happy="old"
66778 done
66783 CPPFLAGS="$ompi_check_bproc_save_CPPFLAGS"
66784 LDFLAGS="$ompi_check_bproc_save_LDFLAGS"
66785 LIBS="$ompi_check_bproc_save_LIBS"
66787 if test "$ompi_check_bproc_happy" != "no"; then
66788 if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
66789 pls_bproc_orted_CPPFLAGS="$pls_bproc_orted_CPPFLAGS -I$with_bproc/include"
66790 pls_bproc_orted_LDFLAGS="$pls_bproc_orted_LDFLAGS -L$with_bproc/lib"
66793 pls_bproc_orted_LIBS="$pls_bproc_orted_LIBS -lbproc"
66794 if test "$ompi_check_bproc_happy" = "new"; then
66795 pls_bproc_orted_good=1
66796 else
66797 pls_bproc_orted_good=1
66800 else
66801 if test ! -z "$with_bproc"; then
66802 { { echo "$as_me:$LINENO: error: BProc support request but not found. Perhaps
66803 you need to specify the location of the BProc libraries." >&5
66804 echo "$as_me: error: BProc support request but not found. Perhaps
66805 you need to specify the location of the BProc libraries." >&2;}
66806 { (exit 1); exit 1; }; }
66809 pls_bproc_orted_good=0
66817 # if check worked, set wrapper flags if so.
66818 # Evaluate succeed / fail
66819 if test "$pls_bproc_orted_good" = "1"; then
66820 pls_bproc_orted_WRAPPER_EXTRA_LDFLAGS="$pls_bproc_orted_LDFLAGS"
66821 pls_bproc_orted_WRAPPER_EXTRA_LIBS="$pls_bproc_orted_LIBS"
66822 should_build=1
66823 else
66824 should_build=0
66828 # set build flags to use in makefile
66836 if test "$should_build" = "1"; then
66838 project=orte
66839 framework=pls
66840 component=bproc_orted
66842 # See if it dropped an output file for us to pick up some
66843 # shell variables in.
66844 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
66846 # Add this subdir to the mast list of all MCA component subdirs
66847 all_components="$all_components $component"
66849 if test "$compile_mode" = "dso" ; then
66850 dso_components="$dso_components $component"
66851 else
66852 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
66853 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
66854 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
66855 static_components="$static_components $component"
66858 # Output pretty results
66859 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
66860 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
66861 { echo "$as_me:$LINENO: result: yes" >&5
66862 echo "${ECHO_T}yes" >&6; }
66864 # If there's an output file, add the values to
66865 # scope_EXTRA_flags.
66866 if test -f $infile; then
66868 # First check for the ABORT tag
66869 line="`grep ABORT= $infile | cut -d= -f2-`"
66870 if test -n "$line" -a "$line" != "no"; then
66871 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
66872 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
66873 { { echo "$as_me:$LINENO: error: cannot continue" >&5
66874 echo "$as_me: error: cannot continue" >&2;}
66875 { (exit 1); exit 1; }; }
66878 # Check for flags passed up from the component. If we're
66879 # compiling statically, then take all flags passed up from the
66880 # component.
66881 if test "$compile_mode" = "static"; then
66882 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
66883 eval "line=$line"
66884 if test -n "$line"; then
66885 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
66887 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
66888 eval "line=$line"
66889 if test -n "$line"; then
66890 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
66894 if test "$DIRECT_pls" = "$component" ; then
66895 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
66896 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
66897 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
66898 eval $str
66899 else
66900 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
66901 *** does not appear to support direct calling.
66902 *** Aborting" >&5
66903 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
66904 *** does not appear to support direct calling.
66905 *** Aborting" >&2;}
66906 { (exit 1); exit 1; }; }
66909 else
66910 # were we supposed to have found something in the
66911 # post_configure.sh, but the file didn't exist?
66912 if test "$DIRECT_pls" = "$component" ; then
66913 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
66914 *** does not appear to support direct calling.
66915 *** Aborting" >&5
66916 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
66917 *** does not appear to support direct calling.
66918 *** Aborting" >&2;}
66919 { (exit 1); exit 1; }; }
66923 # now add the flags that were set in the environment variables
66924 # framework_component_FOO (for example, the flags set by
66925 # m4_configure components)
66927 # Check for flags passed up from the component. If we're
66928 # compiling statically, then take all flags passed up from the
66929 # component.
66930 if test "$compile_mode" = "static"; then
66931 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
66932 eval "$str"
66933 if test -n "$line" ; then
66934 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
66936 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
66937 eval "$str"
66938 if test -n "$line" ; then
66939 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
66943 else
66945 { echo "$as_me:$LINENO: checking if MCA component pls:bproc_orted can compile" >&5
66946 echo $ECHO_N "checking if MCA component pls:bproc_orted can compile... $ECHO_C" >&6; }
66947 { echo "$as_me:$LINENO: result: no" >&5
66948 echo "${ECHO_T}no" >&6; }
66950 # If this component was requested as the default for this
66951 # type, then abort.
66952 if test "$with_pls" = "bproc_orted" ; then
66953 { echo "$as_me:$LINENO: WARNING: MCA component \"bproc_orted\" failed to configure properly" >&5
66954 echo "$as_me: WARNING: MCA component \"bproc_orted\" failed to configure properly" >&2;}
66955 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
66956 echo "$as_me: WARNING: This component was selected as the default" >&2;}
66957 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
66958 echo "$as_me: error: Cannot continue" >&2;}
66959 { (exit 1); exit 1; }; }
66960 exit 1
66963 if test ! -z "$DIRECT_pls" ; then
66964 if test "$DIRECT_pls" = "bproc_orted" ; then
66965 { echo "$as_me:$LINENO: WARNING: MCA component \"bproc_orted\" failed to configure properly" >&5
66966 echo "$as_me: WARNING: MCA component \"bproc_orted\" failed to configure properly" >&2;}
66967 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
66968 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
66969 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
66970 echo "$as_me: error: Cannot continue" >&2;}
66971 { (exit 1); exit 1; }; }
66972 exit 1
66976 # add component to all component list
66977 all_components="$all_components bproc_orted"
66981 # set the AM_CONDITIONAL on how we should build
66982 if test "$compile_mode" = "dso"; then
66983 BUILD_pls_bproc_orted_DSO=1
66984 else
66985 BUILD_pls_bproc_orted_DSO=0
66990 if test "$BUILD_pls_bproc_orted_DSO" = "1"; then
66991 OMPI_BUILD_pls_bproc_orted_DSO_TRUE=
66992 OMPI_BUILD_pls_bproc_orted_DSO_FALSE='#'
66993 else
66994 OMPI_BUILD_pls_bproc_orted_DSO_TRUE='#'
66995 OMPI_BUILD_pls_bproc_orted_DSO_FALSE=
66999 if test "$should_build" = "1"; then
67000 components_looking_for_succeed="$happy_value"
67004 unset compile_mode
67006 ompi_show_subsubsubtitle "MCA component pls:fork (m4 configuration macro)"
67009 project=orte
67010 framework=pls
67011 component=fork
67012 component_path="$srcdir/$project/mca/$framework/$component"
67013 want_component=0
67015 # build if:
67016 # - the component type is direct and we are that component
67017 # - there is no ompi_ignore file
67018 # - there is an ompi_ignore, but there is an empty ompi_unignore
67019 # - there is an ompi_ignore, but username is in ompi_unignore
67020 if test -d $component_path ; then
67021 # decide if we want the component to be built or not. This
67022 # is spread out because some of the logic is a little complex
67023 # and test's syntax isn't exactly the greatest. We want to
67024 # build the component by default.
67025 want_component=1
67026 if test -f $component_path/.ompi_ignore ; then
67027 # If there is an ompi_ignore file, don't build
67028 # the component. Note that this decision can be
67029 # overriden by the unignore logic below.
67030 want_component=0
67032 if test -f $component_path/.ompi_unignore ; then
67033 # if there is an empty ompi_unignore, that is
67034 # equivalent to having your userid in the unignore file.
67035 # If userid is in the file, unignore the ignore file.
67036 if test ! -s $component_path/.ompi_unignore ; then
67037 want_component=1
67038 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
67039 want_component=1
67042 # if this component type is direct and we are not it, we don't want
67043 # to be built. Otherwise, we do want to be built.
67044 if test ! -z "$DIRECT_pls" ; then
67045 if test "$DIRECT_pls" = "$component" ; then
67046 want_component=1
67047 else
67048 want_component=0
67053 # if we were explicitly disabled, don't build :)
67054 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
67055 eval $str
67056 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
67057 want_component=0
67060 if test "$want_component" = "1"; then
67061 should_build=$components_looking_for_succeed
67062 else
67063 should_build=0
67067 # Allow the component to override the build mode if it really wants to.
67068 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
67070 project=orte
67071 framework=pls
67072 component=fork
67074 # Is this component going to built staic or shared? $component
67075 # might not be known until configure time, so have to use eval
67076 # tricks - can't set variable names at autogen time.
67077 str="SHARED_FRAMEWORK=\$DSO_$framework"
67078 eval $str
67079 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
67080 eval $str
67082 str="STATIC_FRAMEWORK=\$STATIC_$framework"
67083 eval $str
67084 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
67085 eval $str
67087 shared_mode_override=static
67089 # Setup for either shared or static
67090 if test "$STATIC_FRAMEWORK" = "1" -o \
67091 "$STATIC_COMPONENT" = "1" -o \
67092 "$STATIC_all" = "1" ; then
67093 compile_mode="static"
67094 elif test "$shared_mode_override" = "dso" -o \
67095 "$SHARED_FRAMEWORK" = "1" -o \
67096 "$SHARED_COMPONENT" = "1" -o \
67097 "$DSO_all" = "1"; then
67098 compile_mode="dso"
67099 else
67100 compile_mode="static"
67103 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
67104 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
67105 if test "$DIRECT_pls" = "$component" ; then
67106 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
67107 echo "${ECHO_T}$compile_mode - direct" >&6; }
67108 else
67109 { echo "$as_me:$LINENO: result: $compile_mode" >&5
67110 echo "${ECHO_T}$compile_mode" >&6; }
67114 # try to configure the component. pay no attention to
67115 # --enable-dist, since we'll always have makefiles.
67116 if test "$should_build" = "1"; then
67118 { echo "$as_me:$LINENO: checking for fork" >&5
67119 echo $ECHO_N "checking for fork... $ECHO_C" >&6; }
67120 if test "${ac_cv_func_fork+set}" = set; then
67121 echo $ECHO_N "(cached) $ECHO_C" >&6
67122 else
67123 cat >conftest.$ac_ext <<_ACEOF
67124 /* confdefs.h. */
67125 _ACEOF
67126 cat confdefs.h >>conftest.$ac_ext
67127 cat >>conftest.$ac_ext <<_ACEOF
67128 /* end confdefs.h. */
67129 /* Define fork to an innocuous variant, in case <limits.h> declares fork.
67130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67131 #define fork innocuous_fork
67133 /* System header to define __stub macros and hopefully few prototypes,
67134 which can conflict with char fork (); below.
67135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67136 <limits.h> exists even on freestanding compilers. */
67138 #ifdef __STDC__
67139 # include <limits.h>
67140 #else
67141 # include <assert.h>
67142 #endif
67144 #undef fork
67146 /* Override any GCC internal prototype to avoid an error.
67147 Use char because int might match the return type of a GCC
67148 builtin and then its argument prototype would still apply. */
67149 #ifdef __cplusplus
67150 extern "C"
67151 #endif
67152 char fork ();
67153 /* The GNU C library defines this for functions which it implements
67154 to always fail with ENOSYS. Some functions are actually named
67155 something starting with __ and the normal name is an alias. */
67156 #if defined __stub_fork || defined __stub___fork
67157 choke me
67158 #endif
67161 main ()
67163 return fork ();
67165 return 0;
67167 _ACEOF
67168 rm -f conftest.$ac_objext conftest$ac_exeext
67169 if { (ac_try="$ac_link"
67170 case "(($ac_try" in
67171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67172 *) ac_try_echo=$ac_try;;
67173 esac
67174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67175 (eval "$ac_link") 2>conftest.er1
67176 ac_status=$?
67177 grep -v '^ *+' conftest.er1 >conftest.err
67178 rm -f conftest.er1
67179 cat conftest.err >&5
67180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67181 (exit $ac_status); } && {
67182 test -z "$ac_c_werror_flag" ||
67183 test ! -s conftest.err
67184 } && test -s conftest$ac_exeext &&
67185 $as_test_x conftest$ac_exeext; then
67186 ac_cv_func_fork=yes
67187 else
67188 echo "$as_me: failed program was:" >&5
67189 sed 's/^/| /' conftest.$ac_ext >&5
67191 ac_cv_func_fork=no
67194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67195 conftest$ac_exeext conftest.$ac_ext
67197 { echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
67198 echo "${ECHO_T}$ac_cv_func_fork" >&6; }
67199 if test $ac_cv_func_fork = yes; then
67200 should_build=1
67201 else
67202 should_build=0
67209 if test "$should_build" = "1"; then
67211 project=orte
67212 framework=pls
67213 component=fork
67215 # See if it dropped an output file for us to pick up some
67216 # shell variables in.
67217 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
67219 # Add this subdir to the mast list of all MCA component subdirs
67220 all_components="$all_components $component"
67222 if test "$compile_mode" = "dso" ; then
67223 dso_components="$dso_components $component"
67224 else
67225 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
67226 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
67227 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
67228 static_components="$static_components $component"
67231 # Output pretty results
67232 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
67233 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
67234 { echo "$as_me:$LINENO: result: yes" >&5
67235 echo "${ECHO_T}yes" >&6; }
67237 # If there's an output file, add the values to
67238 # scope_EXTRA_flags.
67239 if test -f $infile; then
67241 # First check for the ABORT tag
67242 line="`grep ABORT= $infile | cut -d= -f2-`"
67243 if test -n "$line" -a "$line" != "no"; then
67244 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
67245 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
67246 { { echo "$as_me:$LINENO: error: cannot continue" >&5
67247 echo "$as_me: error: cannot continue" >&2;}
67248 { (exit 1); exit 1; }; }
67251 # Check for flags passed up from the component. If we're
67252 # compiling statically, then take all flags passed up from the
67253 # component.
67254 if test "$compile_mode" = "static"; then
67255 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
67256 eval "line=$line"
67257 if test -n "$line"; then
67258 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
67260 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
67261 eval "line=$line"
67262 if test -n "$line"; then
67263 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
67267 if test "$DIRECT_pls" = "$component" ; then
67268 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
67269 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
67270 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
67271 eval $str
67272 else
67273 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
67274 *** does not appear to support direct calling.
67275 *** Aborting" >&5
67276 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
67277 *** does not appear to support direct calling.
67278 *** Aborting" >&2;}
67279 { (exit 1); exit 1; }; }
67282 else
67283 # were we supposed to have found something in the
67284 # post_configure.sh, but the file didn't exist?
67285 if test "$DIRECT_pls" = "$component" ; then
67286 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
67287 *** does not appear to support direct calling.
67288 *** Aborting" >&5
67289 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
67290 *** does not appear to support direct calling.
67291 *** Aborting" >&2;}
67292 { (exit 1); exit 1; }; }
67296 # now add the flags that were set in the environment variables
67297 # framework_component_FOO (for example, the flags set by
67298 # m4_configure components)
67300 # Check for flags passed up from the component. If we're
67301 # compiling statically, then take all flags passed up from the
67302 # component.
67303 if test "$compile_mode" = "static"; then
67304 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
67305 eval "$str"
67306 if test -n "$line" ; then
67307 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
67309 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
67310 eval "$str"
67311 if test -n "$line" ; then
67312 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
67316 else
67318 { echo "$as_me:$LINENO: checking if MCA component pls:fork can compile" >&5
67319 echo $ECHO_N "checking if MCA component pls:fork can compile... $ECHO_C" >&6; }
67320 { echo "$as_me:$LINENO: result: no" >&5
67321 echo "${ECHO_T}no" >&6; }
67323 # If this component was requested as the default for this
67324 # type, then abort.
67325 if test "$with_pls" = "fork" ; then
67326 { echo "$as_me:$LINENO: WARNING: MCA component \"fork\" failed to configure properly" >&5
67327 echo "$as_me: WARNING: MCA component \"fork\" failed to configure properly" >&2;}
67328 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
67329 echo "$as_me: WARNING: This component was selected as the default" >&2;}
67330 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
67331 echo "$as_me: error: Cannot continue" >&2;}
67332 { (exit 1); exit 1; }; }
67333 exit 1
67336 if test ! -z "$DIRECT_pls" ; then
67337 if test "$DIRECT_pls" = "fork" ; then
67338 { echo "$as_me:$LINENO: WARNING: MCA component \"fork\" failed to configure properly" >&5
67339 echo "$as_me: WARNING: MCA component \"fork\" failed to configure properly" >&2;}
67340 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
67341 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
67342 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
67343 echo "$as_me: error: Cannot continue" >&2;}
67344 { (exit 1); exit 1; }; }
67345 exit 1
67349 # add component to all component list
67350 all_components="$all_components fork"
67354 # set the AM_CONDITIONAL on how we should build
67355 if test "$compile_mode" = "dso"; then
67356 BUILD_pls_fork_DSO=1
67357 else
67358 BUILD_pls_fork_DSO=0
67363 if test "$BUILD_pls_fork_DSO" = "1"; then
67364 OMPI_BUILD_pls_fork_DSO_TRUE=
67365 OMPI_BUILD_pls_fork_DSO_FALSE='#'
67366 else
67367 OMPI_BUILD_pls_fork_DSO_TRUE='#'
67368 OMPI_BUILD_pls_fork_DSO_FALSE=
67372 if test "$should_build" = "1"; then
67373 components_looking_for_succeed="$happy_value"
67377 unset compile_mode
67379 ompi_show_subsubsubtitle "MCA component pls:poe (m4 configuration macro)"
67382 project=orte
67383 framework=pls
67384 component=poe
67385 component_path="$srcdir/$project/mca/$framework/$component"
67386 want_component=0
67388 # build if:
67389 # - the component type is direct and we are that component
67390 # - there is no ompi_ignore file
67391 # - there is an ompi_ignore, but there is an empty ompi_unignore
67392 # - there is an ompi_ignore, but username is in ompi_unignore
67393 if test -d $component_path ; then
67394 # decide if we want the component to be built or not. This
67395 # is spread out because some of the logic is a little complex
67396 # and test's syntax isn't exactly the greatest. We want to
67397 # build the component by default.
67398 want_component=1
67399 if test -f $component_path/.ompi_ignore ; then
67400 # If there is an ompi_ignore file, don't build
67401 # the component. Note that this decision can be
67402 # overriden by the unignore logic below.
67403 want_component=0
67405 if test -f $component_path/.ompi_unignore ; then
67406 # if there is an empty ompi_unignore, that is
67407 # equivalent to having your userid in the unignore file.
67408 # If userid is in the file, unignore the ignore file.
67409 if test ! -s $component_path/.ompi_unignore ; then
67410 want_component=1
67411 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
67412 want_component=1
67415 # if this component type is direct and we are not it, we don't want
67416 # to be built. Otherwise, we do want to be built.
67417 if test ! -z "$DIRECT_pls" ; then
67418 if test "$DIRECT_pls" = "$component" ; then
67419 want_component=1
67420 else
67421 want_component=0
67426 # if we were explicitly disabled, don't build :)
67427 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
67428 eval $str
67429 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
67430 want_component=0
67433 if test "$want_component" = "1"; then
67434 should_build=$components_looking_for_succeed
67435 else
67436 should_build=0
67440 # Allow the component to override the build mode if it really wants to.
67441 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
67443 project=orte
67444 framework=pls
67445 component=poe
67447 # Is this component going to built staic or shared? $component
67448 # might not be known until configure time, so have to use eval
67449 # tricks - can't set variable names at autogen time.
67450 str="SHARED_FRAMEWORK=\$DSO_$framework"
67451 eval $str
67452 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
67453 eval $str
67455 str="STATIC_FRAMEWORK=\$STATIC_$framework"
67456 eval $str
67457 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
67458 eval $str
67460 shared_mode_override=static
67462 # Setup for either shared or static
67463 if test "$STATIC_FRAMEWORK" = "1" -o \
67464 "$STATIC_COMPONENT" = "1" -o \
67465 "$STATIC_all" = "1" ; then
67466 compile_mode="static"
67467 elif test "$shared_mode_override" = "dso" -o \
67468 "$SHARED_FRAMEWORK" = "1" -o \
67469 "$SHARED_COMPONENT" = "1" -o \
67470 "$DSO_all" = "1"; then
67471 compile_mode="dso"
67472 else
67473 compile_mode="static"
67476 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
67477 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
67478 if test "$DIRECT_pls" = "$component" ; then
67479 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
67480 echo "${ECHO_T}$compile_mode - direct" >&6; }
67481 else
67482 { echo "$as_me:$LINENO: result: $compile_mode" >&5
67483 echo "${ECHO_T}$compile_mode" >&6; }
67487 # try to configure the component. pay no attention to
67488 # --enable-dist, since we'll always have makefiles.
67489 if test "$should_build" = "1"; then
67491 # POE is only supported on AIX. We only need executables (no
67492 # header files or libraries), but those can be found (or not) at
67493 # run-time. So if we're on AIX, build this component.
67494 { echo "$as_me:$LINENO: checking if on AIX" >&5
67495 echo $ECHO_N "checking if on AIX... $ECHO_C" >&6; }
67496 case $host_os in
67497 aix3* | aix4* | aix5*)
67498 happy=yes
67501 happy=no
67503 esac
67504 { echo "$as_me:$LINENO: result: $happy" >&5
67505 echo "${ECHO_T}$happy" >&6; }
67506 if test "$happy" = "yes"; then
67507 should_build=1
67508 else
67509 should_build=0
67516 if test "$should_build" = "1"; then
67518 project=orte
67519 framework=pls
67520 component=poe
67522 # See if it dropped an output file for us to pick up some
67523 # shell variables in.
67524 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
67526 # Add this subdir to the mast list of all MCA component subdirs
67527 all_components="$all_components $component"
67529 if test "$compile_mode" = "dso" ; then
67530 dso_components="$dso_components $component"
67531 else
67532 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
67533 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
67534 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
67535 static_components="$static_components $component"
67538 # Output pretty results
67539 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
67540 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
67541 { echo "$as_me:$LINENO: result: yes" >&5
67542 echo "${ECHO_T}yes" >&6; }
67544 # If there's an output file, add the values to
67545 # scope_EXTRA_flags.
67546 if test -f $infile; then
67548 # First check for the ABORT tag
67549 line="`grep ABORT= $infile | cut -d= -f2-`"
67550 if test -n "$line" -a "$line" != "no"; then
67551 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
67552 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
67553 { { echo "$as_me:$LINENO: error: cannot continue" >&5
67554 echo "$as_me: error: cannot continue" >&2;}
67555 { (exit 1); exit 1; }; }
67558 # Check for flags passed up from the component. If we're
67559 # compiling statically, then take all flags passed up from the
67560 # component.
67561 if test "$compile_mode" = "static"; then
67562 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
67563 eval "line=$line"
67564 if test -n "$line"; then
67565 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
67567 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
67568 eval "line=$line"
67569 if test -n "$line"; then
67570 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
67574 if test "$DIRECT_pls" = "$component" ; then
67575 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
67576 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
67577 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
67578 eval $str
67579 else
67580 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
67581 *** does not appear to support direct calling.
67582 *** Aborting" >&5
67583 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
67584 *** does not appear to support direct calling.
67585 *** Aborting" >&2;}
67586 { (exit 1); exit 1; }; }
67589 else
67590 # were we supposed to have found something in the
67591 # post_configure.sh, but the file didn't exist?
67592 if test "$DIRECT_pls" = "$component" ; then
67593 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
67594 *** does not appear to support direct calling.
67595 *** Aborting" >&5
67596 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
67597 *** does not appear to support direct calling.
67598 *** Aborting" >&2;}
67599 { (exit 1); exit 1; }; }
67603 # now add the flags that were set in the environment variables
67604 # framework_component_FOO (for example, the flags set by
67605 # m4_configure components)
67607 # Check for flags passed up from the component. If we're
67608 # compiling statically, then take all flags passed up from the
67609 # component.
67610 if test "$compile_mode" = "static"; then
67611 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
67612 eval "$str"
67613 if test -n "$line" ; then
67614 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
67616 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
67617 eval "$str"
67618 if test -n "$line" ; then
67619 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
67623 else
67625 { echo "$as_me:$LINENO: checking if MCA component pls:poe can compile" >&5
67626 echo $ECHO_N "checking if MCA component pls:poe can compile... $ECHO_C" >&6; }
67627 { echo "$as_me:$LINENO: result: no" >&5
67628 echo "${ECHO_T}no" >&6; }
67630 # If this component was requested as the default for this
67631 # type, then abort.
67632 if test "$with_pls" = "poe" ; then
67633 { echo "$as_me:$LINENO: WARNING: MCA component \"poe\" failed to configure properly" >&5
67634 echo "$as_me: WARNING: MCA component \"poe\" failed to configure properly" >&2;}
67635 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
67636 echo "$as_me: WARNING: This component was selected as the default" >&2;}
67637 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
67638 echo "$as_me: error: Cannot continue" >&2;}
67639 { (exit 1); exit 1; }; }
67640 exit 1
67643 if test ! -z "$DIRECT_pls" ; then
67644 if test "$DIRECT_pls" = "poe" ; then
67645 { echo "$as_me:$LINENO: WARNING: MCA component \"poe\" failed to configure properly" >&5
67646 echo "$as_me: WARNING: MCA component \"poe\" failed to configure properly" >&2;}
67647 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
67648 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
67649 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
67650 echo "$as_me: error: Cannot continue" >&2;}
67651 { (exit 1); exit 1; }; }
67652 exit 1
67656 # add component to all component list
67657 all_components="$all_components poe"
67661 # set the AM_CONDITIONAL on how we should build
67662 if test "$compile_mode" = "dso"; then
67663 BUILD_pls_poe_DSO=1
67664 else
67665 BUILD_pls_poe_DSO=0
67670 if test "$BUILD_pls_poe_DSO" = "1"; then
67671 OMPI_BUILD_pls_poe_DSO_TRUE=
67672 OMPI_BUILD_pls_poe_DSO_FALSE='#'
67673 else
67674 OMPI_BUILD_pls_poe_DSO_TRUE='#'
67675 OMPI_BUILD_pls_poe_DSO_FALSE=
67679 if test "$should_build" = "1"; then
67680 components_looking_for_succeed="$happy_value"
67684 unset compile_mode
67686 ompi_show_subsubsubtitle "MCA component pls:rsh (m4 configuration macro)"
67689 project=orte
67690 framework=pls
67691 component=rsh
67692 component_path="$srcdir/$project/mca/$framework/$component"
67693 want_component=0
67695 # build if:
67696 # - the component type is direct and we are that component
67697 # - there is no ompi_ignore file
67698 # - there is an ompi_ignore, but there is an empty ompi_unignore
67699 # - there is an ompi_ignore, but username is in ompi_unignore
67700 if test -d $component_path ; then
67701 # decide if we want the component to be built or not. This
67702 # is spread out because some of the logic is a little complex
67703 # and test's syntax isn't exactly the greatest. We want to
67704 # build the component by default.
67705 want_component=1
67706 if test -f $component_path/.ompi_ignore ; then
67707 # If there is an ompi_ignore file, don't build
67708 # the component. Note that this decision can be
67709 # overriden by the unignore logic below.
67710 want_component=0
67712 if test -f $component_path/.ompi_unignore ; then
67713 # if there is an empty ompi_unignore, that is
67714 # equivalent to having your userid in the unignore file.
67715 # If userid is in the file, unignore the ignore file.
67716 if test ! -s $component_path/.ompi_unignore ; then
67717 want_component=1
67718 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
67719 want_component=1
67722 # if this component type is direct and we are not it, we don't want
67723 # to be built. Otherwise, we do want to be built.
67724 if test ! -z "$DIRECT_pls" ; then
67725 if test "$DIRECT_pls" = "$component" ; then
67726 want_component=1
67727 else
67728 want_component=0
67733 # if we were explicitly disabled, don't build :)
67734 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
67735 eval $str
67736 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
67737 want_component=0
67740 if test "$want_component" = "1"; then
67741 should_build=$components_looking_for_succeed
67742 else
67743 should_build=0
67747 # Allow the component to override the build mode if it really wants to.
67748 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
67750 project=orte
67751 framework=pls
67752 component=rsh
67754 # Is this component going to built staic or shared? $component
67755 # might not be known until configure time, so have to use eval
67756 # tricks - can't set variable names at autogen time.
67757 str="SHARED_FRAMEWORK=\$DSO_$framework"
67758 eval $str
67759 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
67760 eval $str
67762 str="STATIC_FRAMEWORK=\$STATIC_$framework"
67763 eval $str
67764 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
67765 eval $str
67767 shared_mode_override=static
67769 # Setup for either shared or static
67770 if test "$STATIC_FRAMEWORK" = "1" -o \
67771 "$STATIC_COMPONENT" = "1" -o \
67772 "$STATIC_all" = "1" ; then
67773 compile_mode="static"
67774 elif test "$shared_mode_override" = "dso" -o \
67775 "$SHARED_FRAMEWORK" = "1" -o \
67776 "$SHARED_COMPONENT" = "1" -o \
67777 "$DSO_all" = "1"; then
67778 compile_mode="dso"
67779 else
67780 compile_mode="static"
67783 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
67784 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
67785 if test "$DIRECT_pls" = "$component" ; then
67786 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
67787 echo "${ECHO_T}$compile_mode - direct" >&6; }
67788 else
67789 { echo "$as_me:$LINENO: result: $compile_mode" >&5
67790 echo "${ECHO_T}$compile_mode" >&6; }
67794 # try to configure the component. pay no attention to
67795 # --enable-dist, since we'll always have makefiles.
67796 if test "$should_build" = "1"; then
67798 { echo "$as_me:$LINENO: checking for fork" >&5
67799 echo $ECHO_N "checking for fork... $ECHO_C" >&6; }
67800 if test "${ac_cv_func_fork+set}" = set; then
67801 echo $ECHO_N "(cached) $ECHO_C" >&6
67802 else
67803 cat >conftest.$ac_ext <<_ACEOF
67804 /* confdefs.h. */
67805 _ACEOF
67806 cat confdefs.h >>conftest.$ac_ext
67807 cat >>conftest.$ac_ext <<_ACEOF
67808 /* end confdefs.h. */
67809 /* Define fork to an innocuous variant, in case <limits.h> declares fork.
67810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67811 #define fork innocuous_fork
67813 /* System header to define __stub macros and hopefully few prototypes,
67814 which can conflict with char fork (); below.
67815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67816 <limits.h> exists even on freestanding compilers. */
67818 #ifdef __STDC__
67819 # include <limits.h>
67820 #else
67821 # include <assert.h>
67822 #endif
67824 #undef fork
67826 /* Override any GCC internal prototype to avoid an error.
67827 Use char because int might match the return type of a GCC
67828 builtin and then its argument prototype would still apply. */
67829 #ifdef __cplusplus
67830 extern "C"
67831 #endif
67832 char fork ();
67833 /* The GNU C library defines this for functions which it implements
67834 to always fail with ENOSYS. Some functions are actually named
67835 something starting with __ and the normal name is an alias. */
67836 #if defined __stub_fork || defined __stub___fork
67837 choke me
67838 #endif
67841 main ()
67843 return fork ();
67845 return 0;
67847 _ACEOF
67848 rm -f conftest.$ac_objext conftest$ac_exeext
67849 if { (ac_try="$ac_link"
67850 case "(($ac_try" in
67851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67852 *) ac_try_echo=$ac_try;;
67853 esac
67854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67855 (eval "$ac_link") 2>conftest.er1
67856 ac_status=$?
67857 grep -v '^ *+' conftest.er1 >conftest.err
67858 rm -f conftest.er1
67859 cat conftest.err >&5
67860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67861 (exit $ac_status); } && {
67862 test -z "$ac_c_werror_flag" ||
67863 test ! -s conftest.err
67864 } && test -s conftest$ac_exeext &&
67865 $as_test_x conftest$ac_exeext; then
67866 ac_cv_func_fork=yes
67867 else
67868 echo "$as_me: failed program was:" >&5
67869 sed 's/^/| /' conftest.$ac_ext >&5
67871 ac_cv_func_fork=no
67874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67875 conftest$ac_exeext conftest.$ac_ext
67877 { echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
67878 echo "${ECHO_T}$ac_cv_func_fork" >&6; }
67879 if test $ac_cv_func_fork = yes; then
67880 should_build=1
67881 else
67882 should_build=0
67889 if test "$should_build" = "1"; then
67891 project=orte
67892 framework=pls
67893 component=rsh
67895 # See if it dropped an output file for us to pick up some
67896 # shell variables in.
67897 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
67899 # Add this subdir to the mast list of all MCA component subdirs
67900 all_components="$all_components $component"
67902 if test "$compile_mode" = "dso" ; then
67903 dso_components="$dso_components $component"
67904 else
67905 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
67906 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
67907 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
67908 static_components="$static_components $component"
67911 # Output pretty results
67912 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
67913 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
67914 { echo "$as_me:$LINENO: result: yes" >&5
67915 echo "${ECHO_T}yes" >&6; }
67917 # If there's an output file, add the values to
67918 # scope_EXTRA_flags.
67919 if test -f $infile; then
67921 # First check for the ABORT tag
67922 line="`grep ABORT= $infile | cut -d= -f2-`"
67923 if test -n "$line" -a "$line" != "no"; then
67924 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
67925 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
67926 { { echo "$as_me:$LINENO: error: cannot continue" >&5
67927 echo "$as_me: error: cannot continue" >&2;}
67928 { (exit 1); exit 1; }; }
67931 # Check for flags passed up from the component. If we're
67932 # compiling statically, then take all flags passed up from the
67933 # component.
67934 if test "$compile_mode" = "static"; then
67935 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
67936 eval "line=$line"
67937 if test -n "$line"; then
67938 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
67940 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
67941 eval "line=$line"
67942 if test -n "$line"; then
67943 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
67947 if test "$DIRECT_pls" = "$component" ; then
67948 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
67949 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
67950 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
67951 eval $str
67952 else
67953 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
67954 *** does not appear to support direct calling.
67955 *** Aborting" >&5
67956 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
67957 *** does not appear to support direct calling.
67958 *** Aborting" >&2;}
67959 { (exit 1); exit 1; }; }
67962 else
67963 # were we supposed to have found something in the
67964 # post_configure.sh, but the file didn't exist?
67965 if test "$DIRECT_pls" = "$component" ; then
67966 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
67967 *** does not appear to support direct calling.
67968 *** Aborting" >&5
67969 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
67970 *** does not appear to support direct calling.
67971 *** Aborting" >&2;}
67972 { (exit 1); exit 1; }; }
67976 # now add the flags that were set in the environment variables
67977 # framework_component_FOO (for example, the flags set by
67978 # m4_configure components)
67980 # Check for flags passed up from the component. If we're
67981 # compiling statically, then take all flags passed up from the
67982 # component.
67983 if test "$compile_mode" = "static"; then
67984 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
67985 eval "$str"
67986 if test -n "$line" ; then
67987 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
67989 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
67990 eval "$str"
67991 if test -n "$line" ; then
67992 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
67996 else
67998 { echo "$as_me:$LINENO: checking if MCA component pls:rsh can compile" >&5
67999 echo $ECHO_N "checking if MCA component pls:rsh can compile... $ECHO_C" >&6; }
68000 { echo "$as_me:$LINENO: result: no" >&5
68001 echo "${ECHO_T}no" >&6; }
68003 # If this component was requested as the default for this
68004 # type, then abort.
68005 if test "$with_pls" = "rsh" ; then
68006 { echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5
68007 echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;}
68008 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
68009 echo "$as_me: WARNING: This component was selected as the default" >&2;}
68010 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
68011 echo "$as_me: error: Cannot continue" >&2;}
68012 { (exit 1); exit 1; }; }
68013 exit 1
68016 if test ! -z "$DIRECT_pls" ; then
68017 if test "$DIRECT_pls" = "rsh" ; then
68018 { echo "$as_me:$LINENO: WARNING: MCA component \"rsh\" failed to configure properly" >&5
68019 echo "$as_me: WARNING: MCA component \"rsh\" failed to configure properly" >&2;}
68020 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
68021 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
68022 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
68023 echo "$as_me: error: Cannot continue" >&2;}
68024 { (exit 1); exit 1; }; }
68025 exit 1
68029 # add component to all component list
68030 all_components="$all_components rsh"
68034 # set the AM_CONDITIONAL on how we should build
68035 if test "$compile_mode" = "dso"; then
68036 BUILD_pls_rsh_DSO=1
68037 else
68038 BUILD_pls_rsh_DSO=0
68043 if test "$BUILD_pls_rsh_DSO" = "1"; then
68044 OMPI_BUILD_pls_rsh_DSO_TRUE=
68045 OMPI_BUILD_pls_rsh_DSO_FALSE='#'
68046 else
68047 OMPI_BUILD_pls_rsh_DSO_TRUE='#'
68048 OMPI_BUILD_pls_rsh_DSO_FALSE=
68052 if test "$should_build" = "1"; then
68053 components_looking_for_succeed="$happy_value"
68057 unset compile_mode
68059 ompi_show_subsubsubtitle "MCA component pls:slurm (m4 configuration macro)"
68062 project=orte
68063 framework=pls
68064 component=slurm
68065 component_path="$srcdir/$project/mca/$framework/$component"
68066 want_component=0
68068 # build if:
68069 # - the component type is direct and we are that component
68070 # - there is no ompi_ignore file
68071 # - there is an ompi_ignore, but there is an empty ompi_unignore
68072 # - there is an ompi_ignore, but username is in ompi_unignore
68073 if test -d $component_path ; then
68074 # decide if we want the component to be built or not. This
68075 # is spread out because some of the logic is a little complex
68076 # and test's syntax isn't exactly the greatest. We want to
68077 # build the component by default.
68078 want_component=1
68079 if test -f $component_path/.ompi_ignore ; then
68080 # If there is an ompi_ignore file, don't build
68081 # the component. Note that this decision can be
68082 # overriden by the unignore logic below.
68083 want_component=0
68085 if test -f $component_path/.ompi_unignore ; then
68086 # if there is an empty ompi_unignore, that is
68087 # equivalent to having your userid in the unignore file.
68088 # If userid is in the file, unignore the ignore file.
68089 if test ! -s $component_path/.ompi_unignore ; then
68090 want_component=1
68091 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
68092 want_component=1
68095 # if this component type is direct and we are not it, we don't want
68096 # to be built. Otherwise, we do want to be built.
68097 if test ! -z "$DIRECT_pls" ; then
68098 if test "$DIRECT_pls" = "$component" ; then
68099 want_component=1
68100 else
68101 want_component=0
68106 # if we were explicitly disabled, don't build :)
68107 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
68108 eval $str
68109 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
68110 want_component=0
68113 if test "$want_component" = "1"; then
68114 should_build=$components_looking_for_succeed
68115 else
68116 should_build=0
68120 # Allow the component to override the build mode if it really wants to.
68121 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
68123 project=orte
68124 framework=pls
68125 component=slurm
68127 # Is this component going to built staic or shared? $component
68128 # might not be known until configure time, so have to use eval
68129 # tricks - can't set variable names at autogen time.
68130 str="SHARED_FRAMEWORK=\$DSO_$framework"
68131 eval $str
68132 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
68133 eval $str
68135 str="STATIC_FRAMEWORK=\$STATIC_$framework"
68136 eval $str
68137 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
68138 eval $str
68140 shared_mode_override=static
68142 # Setup for either shared or static
68143 if test "$STATIC_FRAMEWORK" = "1" -o \
68144 "$STATIC_COMPONENT" = "1" -o \
68145 "$STATIC_all" = "1" ; then
68146 compile_mode="static"
68147 elif test "$shared_mode_override" = "dso" -o \
68148 "$SHARED_FRAMEWORK" = "1" -o \
68149 "$SHARED_COMPONENT" = "1" -o \
68150 "$DSO_all" = "1"; then
68151 compile_mode="dso"
68152 else
68153 compile_mode="static"
68156 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
68157 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
68158 if test "$DIRECT_pls" = "$component" ; then
68159 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
68160 echo "${ECHO_T}$compile_mode - direct" >&6; }
68161 else
68162 { echo "$as_me:$LINENO: result: $compile_mode" >&5
68163 echo "${ECHO_T}$compile_mode" >&6; }
68167 # try to configure the component. pay no attention to
68168 # --enable-dist, since we'll always have makefiles.
68169 if test "$should_build" = "1"; then
68173 # Check whether --with-slurm was given.
68174 if test "${with_slurm+set}" = set; then
68175 withval=$with_slurm;
68179 if test "$with_slurm" = "no" ; then
68180 ompi_check_slurm_happy="no"
68181 elif test "$with_slurm" = "" ; then
68182 # unless user asked, only build slurm component on
68183 # linux systems.
68184 case $host in
68185 *-linux*|*-aix*)
68186 ompi_check_slurm_happy="yes"
68189 ompi_check_slurm_happy="no"
68191 esac
68192 else
68193 ompi_check_slurm_happy="yes"
68196 if test "$ompi_check_slurm_happy" = "yes"; then
68197 { echo "$as_me:$LINENO: checking for fork" >&5
68198 echo $ECHO_N "checking for fork... $ECHO_C" >&6; }
68199 if test "${ac_cv_func_fork+set}" = set; then
68200 echo $ECHO_N "(cached) $ECHO_C" >&6
68201 else
68202 cat >conftest.$ac_ext <<_ACEOF
68203 /* confdefs.h. */
68204 _ACEOF
68205 cat confdefs.h >>conftest.$ac_ext
68206 cat >>conftest.$ac_ext <<_ACEOF
68207 /* end confdefs.h. */
68208 /* Define fork to an innocuous variant, in case <limits.h> declares fork.
68209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68210 #define fork innocuous_fork
68212 /* System header to define __stub macros and hopefully few prototypes,
68213 which can conflict with char fork (); below.
68214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68215 <limits.h> exists even on freestanding compilers. */
68217 #ifdef __STDC__
68218 # include <limits.h>
68219 #else
68220 # include <assert.h>
68221 #endif
68223 #undef fork
68225 /* Override any GCC internal prototype to avoid an error.
68226 Use char because int might match the return type of a GCC
68227 builtin and then its argument prototype would still apply. */
68228 #ifdef __cplusplus
68229 extern "C"
68230 #endif
68231 char fork ();
68232 /* The GNU C library defines this for functions which it implements
68233 to always fail with ENOSYS. Some functions are actually named
68234 something starting with __ and the normal name is an alias. */
68235 #if defined __stub_fork || defined __stub___fork
68236 choke me
68237 #endif
68240 main ()
68242 return fork ();
68244 return 0;
68246 _ACEOF
68247 rm -f conftest.$ac_objext conftest$ac_exeext
68248 if { (ac_try="$ac_link"
68249 case "(($ac_try" in
68250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68251 *) ac_try_echo=$ac_try;;
68252 esac
68253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68254 (eval "$ac_link") 2>conftest.er1
68255 ac_status=$?
68256 grep -v '^ *+' conftest.er1 >conftest.err
68257 rm -f conftest.er1
68258 cat conftest.err >&5
68259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68260 (exit $ac_status); } && {
68261 test -z "$ac_c_werror_flag" ||
68262 test ! -s conftest.err
68263 } && test -s conftest$ac_exeext &&
68264 $as_test_x conftest$ac_exeext; then
68265 ac_cv_func_fork=yes
68266 else
68267 echo "$as_me: failed program was:" >&5
68268 sed 's/^/| /' conftest.$ac_ext >&5
68270 ac_cv_func_fork=no
68273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68274 conftest$ac_exeext conftest.$ac_ext
68276 { echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
68277 echo "${ECHO_T}$ac_cv_func_fork" >&6; }
68278 if test $ac_cv_func_fork = yes; then
68279 ompi_check_slurm_happy="yes"
68280 else
68281 ompi_check_slurm_happy="no"
68287 if test "$ompi_check_slurm_happy" = "yes"; then
68288 { echo "$as_me:$LINENO: checking for execve" >&5
68289 echo $ECHO_N "checking for execve... $ECHO_C" >&6; }
68290 if test "${ac_cv_func_execve+set}" = set; then
68291 echo $ECHO_N "(cached) $ECHO_C" >&6
68292 else
68293 cat >conftest.$ac_ext <<_ACEOF
68294 /* confdefs.h. */
68295 _ACEOF
68296 cat confdefs.h >>conftest.$ac_ext
68297 cat >>conftest.$ac_ext <<_ACEOF
68298 /* end confdefs.h. */
68299 /* Define execve to an innocuous variant, in case <limits.h> declares execve.
68300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68301 #define execve innocuous_execve
68303 /* System header to define __stub macros and hopefully few prototypes,
68304 which can conflict with char execve (); below.
68305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68306 <limits.h> exists even on freestanding compilers. */
68308 #ifdef __STDC__
68309 # include <limits.h>
68310 #else
68311 # include <assert.h>
68312 #endif
68314 #undef execve
68316 /* Override any GCC internal prototype to avoid an error.
68317 Use char because int might match the return type of a GCC
68318 builtin and then its argument prototype would still apply. */
68319 #ifdef __cplusplus
68320 extern "C"
68321 #endif
68322 char execve ();
68323 /* The GNU C library defines this for functions which it implements
68324 to always fail with ENOSYS. Some functions are actually named
68325 something starting with __ and the normal name is an alias. */
68326 #if defined __stub_execve || defined __stub___execve
68327 choke me
68328 #endif
68331 main ()
68333 return execve ();
68335 return 0;
68337 _ACEOF
68338 rm -f conftest.$ac_objext conftest$ac_exeext
68339 if { (ac_try="$ac_link"
68340 case "(($ac_try" in
68341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68342 *) ac_try_echo=$ac_try;;
68343 esac
68344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68345 (eval "$ac_link") 2>conftest.er1
68346 ac_status=$?
68347 grep -v '^ *+' conftest.er1 >conftest.err
68348 rm -f conftest.er1
68349 cat conftest.err >&5
68350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68351 (exit $ac_status); } && {
68352 test -z "$ac_c_werror_flag" ||
68353 test ! -s conftest.err
68354 } && test -s conftest$ac_exeext &&
68355 $as_test_x conftest$ac_exeext; then
68356 ac_cv_func_execve=yes
68357 else
68358 echo "$as_me: failed program was:" >&5
68359 sed 's/^/| /' conftest.$ac_ext >&5
68361 ac_cv_func_execve=no
68364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68365 conftest$ac_exeext conftest.$ac_ext
68367 { echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5
68368 echo "${ECHO_T}$ac_cv_func_execve" >&6; }
68369 if test $ac_cv_func_execve = yes; then
68370 ompi_check_slurm_happy="yes"
68371 else
68372 ompi_check_slurm_happy="no"
68378 if test "$ompi_check_slurm_happy" = "yes"; then
68379 { echo "$as_me:$LINENO: checking for setpgid" >&5
68380 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; }
68381 if test "${ac_cv_func_setpgid+set}" = set; then
68382 echo $ECHO_N "(cached) $ECHO_C" >&6
68383 else
68384 cat >conftest.$ac_ext <<_ACEOF
68385 /* confdefs.h. */
68386 _ACEOF
68387 cat confdefs.h >>conftest.$ac_ext
68388 cat >>conftest.$ac_ext <<_ACEOF
68389 /* end confdefs.h. */
68390 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
68391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68392 #define setpgid innocuous_setpgid
68394 /* System header to define __stub macros and hopefully few prototypes,
68395 which can conflict with char setpgid (); below.
68396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68397 <limits.h> exists even on freestanding compilers. */
68399 #ifdef __STDC__
68400 # include <limits.h>
68401 #else
68402 # include <assert.h>
68403 #endif
68405 #undef setpgid
68407 /* Override any GCC internal prototype to avoid an error.
68408 Use char because int might match the return type of a GCC
68409 builtin and then its argument prototype would still apply. */
68410 #ifdef __cplusplus
68411 extern "C"
68412 #endif
68413 char setpgid ();
68414 /* The GNU C library defines this for functions which it implements
68415 to always fail with ENOSYS. Some functions are actually named
68416 something starting with __ and the normal name is an alias. */
68417 #if defined __stub_setpgid || defined __stub___setpgid
68418 choke me
68419 #endif
68422 main ()
68424 return setpgid ();
68426 return 0;
68428 _ACEOF
68429 rm -f conftest.$ac_objext conftest$ac_exeext
68430 if { (ac_try="$ac_link"
68431 case "(($ac_try" in
68432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68433 *) ac_try_echo=$ac_try;;
68434 esac
68435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68436 (eval "$ac_link") 2>conftest.er1
68437 ac_status=$?
68438 grep -v '^ *+' conftest.er1 >conftest.err
68439 rm -f conftest.er1
68440 cat conftest.err >&5
68441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68442 (exit $ac_status); } && {
68443 test -z "$ac_c_werror_flag" ||
68444 test ! -s conftest.err
68445 } && test -s conftest$ac_exeext &&
68446 $as_test_x conftest$ac_exeext; then
68447 ac_cv_func_setpgid=yes
68448 else
68449 echo "$as_me: failed program was:" >&5
68450 sed 's/^/| /' conftest.$ac_ext >&5
68452 ac_cv_func_setpgid=no
68455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68456 conftest$ac_exeext conftest.$ac_ext
68458 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
68459 echo "${ECHO_T}$ac_cv_func_setpgid" >&6; }
68460 if test $ac_cv_func_setpgid = yes; then
68461 ompi_check_slurm_happy="yes"
68462 else
68463 ompi_check_slurm_happy="no"
68469 if test "$ompi_check_slurm_happy" = "yes"; then
68470 pls_slurm_good=1
68471 else
68472 pls_slurm_good=0
68477 # if check worked, set wrapper flags if so.
68478 # Evaluate succeed / fail
68479 if test "$pls_slurm_good" = "1"; then
68480 pls_slurm_WRAPPER_EXTRA_LDFLAGS="$pls_slurm_LDFLAGS"
68481 pls_slurm_WRAPPER_EXTRA_LIBS="$pls_slurm_LIBS"
68482 should_build=1
68483 else
68484 should_build=0
68488 # set build flags to use in makefile
68496 if test "$should_build" = "1"; then
68498 project=orte
68499 framework=pls
68500 component=slurm
68502 # See if it dropped an output file for us to pick up some
68503 # shell variables in.
68504 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
68506 # Add this subdir to the mast list of all MCA component subdirs
68507 all_components="$all_components $component"
68509 if test "$compile_mode" = "dso" ; then
68510 dso_components="$dso_components $component"
68511 else
68512 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
68513 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
68514 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
68515 static_components="$static_components $component"
68518 # Output pretty results
68519 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
68520 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
68521 { echo "$as_me:$LINENO: result: yes" >&5
68522 echo "${ECHO_T}yes" >&6; }
68524 # If there's an output file, add the values to
68525 # scope_EXTRA_flags.
68526 if test -f $infile; then
68528 # First check for the ABORT tag
68529 line="`grep ABORT= $infile | cut -d= -f2-`"
68530 if test -n "$line" -a "$line" != "no"; then
68531 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
68532 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
68533 { { echo "$as_me:$LINENO: error: cannot continue" >&5
68534 echo "$as_me: error: cannot continue" >&2;}
68535 { (exit 1); exit 1; }; }
68538 # Check for flags passed up from the component. If we're
68539 # compiling statically, then take all flags passed up from the
68540 # component.
68541 if test "$compile_mode" = "static"; then
68542 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
68543 eval "line=$line"
68544 if test -n "$line"; then
68545 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
68547 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
68548 eval "line=$line"
68549 if test -n "$line"; then
68550 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
68554 if test "$DIRECT_pls" = "$component" ; then
68555 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
68556 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
68557 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
68558 eval $str
68559 else
68560 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
68561 *** does not appear to support direct calling.
68562 *** Aborting" >&5
68563 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
68564 *** does not appear to support direct calling.
68565 *** Aborting" >&2;}
68566 { (exit 1); exit 1; }; }
68569 else
68570 # were we supposed to have found something in the
68571 # post_configure.sh, but the file didn't exist?
68572 if test "$DIRECT_pls" = "$component" ; then
68573 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
68574 *** does not appear to support direct calling.
68575 *** Aborting" >&5
68576 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
68577 *** does not appear to support direct calling.
68578 *** Aborting" >&2;}
68579 { (exit 1); exit 1; }; }
68583 # now add the flags that were set in the environment variables
68584 # framework_component_FOO (for example, the flags set by
68585 # m4_configure components)
68587 # Check for flags passed up from the component. If we're
68588 # compiling statically, then take all flags passed up from the
68589 # component.
68590 if test "$compile_mode" = "static"; then
68591 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
68592 eval "$str"
68593 if test -n "$line" ; then
68594 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
68596 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
68597 eval "$str"
68598 if test -n "$line" ; then
68599 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
68603 else
68605 { echo "$as_me:$LINENO: checking if MCA component pls:slurm can compile" >&5
68606 echo $ECHO_N "checking if MCA component pls:slurm can compile... $ECHO_C" >&6; }
68607 { echo "$as_me:$LINENO: result: no" >&5
68608 echo "${ECHO_T}no" >&6; }
68610 # If this component was requested as the default for this
68611 # type, then abort.
68612 if test "$with_pls" = "slurm" ; then
68613 { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
68614 echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
68615 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
68616 echo "$as_me: WARNING: This component was selected as the default" >&2;}
68617 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
68618 echo "$as_me: error: Cannot continue" >&2;}
68619 { (exit 1); exit 1; }; }
68620 exit 1
68623 if test ! -z "$DIRECT_pls" ; then
68624 if test "$DIRECT_pls" = "slurm" ; then
68625 { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
68626 echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
68627 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
68628 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
68629 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
68630 echo "$as_me: error: Cannot continue" >&2;}
68631 { (exit 1); exit 1; }; }
68632 exit 1
68636 # add component to all component list
68637 all_components="$all_components slurm"
68641 # set the AM_CONDITIONAL on how we should build
68642 if test "$compile_mode" = "dso"; then
68643 BUILD_pls_slurm_DSO=1
68644 else
68645 BUILD_pls_slurm_DSO=0
68650 if test "$BUILD_pls_slurm_DSO" = "1"; then
68651 OMPI_BUILD_pls_slurm_DSO_TRUE=
68652 OMPI_BUILD_pls_slurm_DSO_FALSE='#'
68653 else
68654 OMPI_BUILD_pls_slurm_DSO_TRUE='#'
68655 OMPI_BUILD_pls_slurm_DSO_FALSE=
68659 if test "$should_build" = "1"; then
68660 components_looking_for_succeed="$happy_value"
68664 unset compile_mode
68666 ompi_show_subsubsubtitle "MCA component pls:tm (m4 configuration macro)"
68669 project=orte
68670 framework=pls
68671 component=tm
68672 component_path="$srcdir/$project/mca/$framework/$component"
68673 want_component=0
68675 # build if:
68676 # - the component type is direct and we are that component
68677 # - there is no ompi_ignore file
68678 # - there is an ompi_ignore, but there is an empty ompi_unignore
68679 # - there is an ompi_ignore, but username is in ompi_unignore
68680 if test -d $component_path ; then
68681 # decide if we want the component to be built or not. This
68682 # is spread out because some of the logic is a little complex
68683 # and test's syntax isn't exactly the greatest. We want to
68684 # build the component by default.
68685 want_component=1
68686 if test -f $component_path/.ompi_ignore ; then
68687 # If there is an ompi_ignore file, don't build
68688 # the component. Note that this decision can be
68689 # overriden by the unignore logic below.
68690 want_component=0
68692 if test -f $component_path/.ompi_unignore ; then
68693 # if there is an empty ompi_unignore, that is
68694 # equivalent to having your userid in the unignore file.
68695 # If userid is in the file, unignore the ignore file.
68696 if test ! -s $component_path/.ompi_unignore ; then
68697 want_component=1
68698 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
68699 want_component=1
68702 # if this component type is direct and we are not it, we don't want
68703 # to be built. Otherwise, we do want to be built.
68704 if test ! -z "$DIRECT_pls" ; then
68705 if test "$DIRECT_pls" = "$component" ; then
68706 want_component=1
68707 else
68708 want_component=0
68713 # if we were explicitly disabled, don't build :)
68714 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
68715 eval $str
68716 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
68717 want_component=0
68720 if test "$want_component" = "1"; then
68721 should_build=$components_looking_for_succeed
68722 else
68723 should_build=0
68727 # Allow the component to override the build mode if it really wants to.
68728 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
68730 project=orte
68731 framework=pls
68732 component=tm
68734 # Is this component going to built staic or shared? $component
68735 # might not be known until configure time, so have to use eval
68736 # tricks - can't set variable names at autogen time.
68737 str="SHARED_FRAMEWORK=\$DSO_$framework"
68738 eval $str
68739 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
68740 eval $str
68742 str="STATIC_FRAMEWORK=\$STATIC_$framework"
68743 eval $str
68744 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
68745 eval $str
68747 shared_mode_override=static
68749 # Setup for either shared or static
68750 if test "$STATIC_FRAMEWORK" = "1" -o \
68751 "$STATIC_COMPONENT" = "1" -o \
68752 "$STATIC_all" = "1" ; then
68753 compile_mode="static"
68754 elif test "$shared_mode_override" = "dso" -o \
68755 "$SHARED_FRAMEWORK" = "1" -o \
68756 "$SHARED_COMPONENT" = "1" -o \
68757 "$DSO_all" = "1"; then
68758 compile_mode="dso"
68759 else
68760 compile_mode="static"
68763 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
68764 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
68765 if test "$DIRECT_pls" = "$component" ; then
68766 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
68767 echo "${ECHO_T}$compile_mode - direct" >&6; }
68768 else
68769 { echo "$as_me:$LINENO: result: $compile_mode" >&5
68770 echo "${ECHO_T}$compile_mode" >&6; }
68774 # try to configure the component. pay no attention to
68775 # --enable-dist, since we'll always have makefiles.
68776 if test "$should_build" = "1"; then
68780 # Check whether --with-tm was given.
68781 if test "${with_tm+set}" = set; then
68782 withval=$with_tm;
68786 if test "$with_tm" = "no"; then
68787 ompi_check_tm_hapy="no"
68788 else
68789 ompi_check_tm_happy="yes"
68790 if test ! -z "$with_tm" -a "$with_tm" != "yes"; then
68791 ompi_check_tm_dir="$with_tm"
68792 else
68793 ompi_check_tm_dir=""
68799 # Note that Torque 2.1.0 changed the name of their back-end
68800 # library to "libtorque". So we have to check for both libpbs and
68801 # libtorque. First, check for libpbs.
68803 if test "$ompi_check_tm_happy" = "yes"; then
68805 ompi_check_package_pls_tm_save_CPPFLAGS="$CPPFLAGS"
68806 ompi_check_package_pls_tm_save_LDFLAGS="$LDFLAGS"
68807 ompi_check_package_pls_tm_save_LIBS="$LIBS"
68809 ompi_check_package_pls_tm_orig_CPPFLAGS="$pls_tm_CPPFLAGS"
68810 ompi_check_package_pls_tm_orig_LDFLAGS="$pls_tm_LDFLAGS"
68811 ompi_check_package_pls_tm_orig_LIBS="$pls_tm_LIBS"
68814 # This is stolen from autoconf to peek under the covers to get the
68815 # cache variable for the library check. one should not copy this
68816 # code into other places unless you want much pain and suffering
68819 # so this sucks, but there's no way to get through the progression
68820 # of header includes without killing off the cache variable and trying
68821 # again...
68822 unset ac_cv_header_tm_h
68824 ompi_check_package_header_happy="no"
68825 if test "$ompi_check_tm_dir" = "/usr" -o "$ompi_check_tm_dir" = "/usr/local"; then
68826 # try as is...
68827 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
68828 echo "${ECHO_T}looking for header without includes" >&6; }
68829 if test "${ac_cv_header_tm_h+set}" = set; then
68830 { echo "$as_me:$LINENO: checking for tm.h" >&5
68831 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
68832 if test "${ac_cv_header_tm_h+set}" = set; then
68833 echo $ECHO_N "(cached) $ECHO_C" >&6
68835 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
68836 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
68837 else
68838 # Is the header compilable?
68839 { echo "$as_me:$LINENO: checking tm.h usability" >&5
68840 echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; }
68841 cat >conftest.$ac_ext <<_ACEOF
68842 /* confdefs.h. */
68843 _ACEOF
68844 cat confdefs.h >>conftest.$ac_ext
68845 cat >>conftest.$ac_ext <<_ACEOF
68846 /* end confdefs.h. */
68847 $ac_includes_default
68848 #include <tm.h>
68849 _ACEOF
68850 rm -f conftest.$ac_objext
68851 if { (ac_try="$ac_compile"
68852 case "(($ac_try" in
68853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68854 *) ac_try_echo=$ac_try;;
68855 esac
68856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68857 (eval "$ac_compile") 2>conftest.er1
68858 ac_status=$?
68859 grep -v '^ *+' conftest.er1 >conftest.err
68860 rm -f conftest.er1
68861 cat conftest.err >&5
68862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68863 (exit $ac_status); } && {
68864 test -z "$ac_c_werror_flag" ||
68865 test ! -s conftest.err
68866 } && test -s conftest.$ac_objext; then
68867 ac_header_compiler=yes
68868 else
68869 echo "$as_me: failed program was:" >&5
68870 sed 's/^/| /' conftest.$ac_ext >&5
68872 ac_header_compiler=no
68875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68877 echo "${ECHO_T}$ac_header_compiler" >&6; }
68879 # Is the header present?
68880 { echo "$as_me:$LINENO: checking tm.h presence" >&5
68881 echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; }
68882 cat >conftest.$ac_ext <<_ACEOF
68883 /* confdefs.h. */
68884 _ACEOF
68885 cat confdefs.h >>conftest.$ac_ext
68886 cat >>conftest.$ac_ext <<_ACEOF
68887 /* end confdefs.h. */
68888 #include <tm.h>
68889 _ACEOF
68890 if { (ac_try="$ac_cpp conftest.$ac_ext"
68891 case "(($ac_try" in
68892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68893 *) ac_try_echo=$ac_try;;
68894 esac
68895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
68897 ac_status=$?
68898 grep -v '^ *+' conftest.er1 >conftest.err
68899 rm -f conftest.er1
68900 cat conftest.err >&5
68901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68902 (exit $ac_status); } >/dev/null && {
68903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
68904 test ! -s conftest.err
68905 }; then
68906 ac_header_preproc=yes
68907 else
68908 echo "$as_me: failed program was:" >&5
68909 sed 's/^/| /' conftest.$ac_ext >&5
68911 ac_header_preproc=no
68914 rm -f conftest.err conftest.$ac_ext
68915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68916 echo "${ECHO_T}$ac_header_preproc" >&6; }
68918 # So? What about this header?
68919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68920 yes:no: )
68921 { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
68922 echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
68923 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
68924 echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
68925 ac_header_preproc=yes
68927 no:yes:* )
68928 { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
68929 echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
68930 { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5
68931 echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;}
68932 { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
68933 echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
68934 { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5
68935 echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;}
68936 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
68937 echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
68938 { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
68939 echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
68940 ( cat <<\_ASBOX
68941 ## ------------------------------------------------------ ##
68942 ## Report this to http://www.open-mpi.org/community/help/ ##
68943 ## ------------------------------------------------------ ##
68944 _ASBOX
68945 ) | sed "s/^/$as_me: WARNING: /" >&2
68947 esac
68948 { echo "$as_me:$LINENO: checking for tm.h" >&5
68949 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
68950 if test "${ac_cv_header_tm_h+set}" = set; then
68951 echo $ECHO_N "(cached) $ECHO_C" >&6
68952 else
68953 ac_cv_header_tm_h=$ac_header_preproc
68955 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
68956 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
68959 if test $ac_cv_header_tm_h = yes; then
68960 ompi_check_package_header_happy="yes"
68961 else
68962 ompi_check_package_header_happy="no"
68966 if test "$ompi_check_package_header_happy" = "no"; then
68967 # no go on the as is - reset the cache and try again
68968 unset ac_cv_header_tm_h
68974 if test "$ompi_check_package_header_happy" = "no"; then
68975 if test "$ompi_check_tm_dir" != ""; then
68976 pls_tm_CPPFLAGS="$pls_tm_CPPFLAGS -I$ompi_check_tm_dir/include"
68977 CPPFLAGS="$CPPFLAGS -I$ompi_check_tm_dir/include"
68980 if test "${ac_cv_header_tm_h+set}" = set; then
68981 { echo "$as_me:$LINENO: checking for tm.h" >&5
68982 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
68983 if test "${ac_cv_header_tm_h+set}" = set; then
68984 echo $ECHO_N "(cached) $ECHO_C" >&6
68986 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
68987 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
68988 else
68989 # Is the header compilable?
68990 { echo "$as_me:$LINENO: checking tm.h usability" >&5
68991 echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; }
68992 cat >conftest.$ac_ext <<_ACEOF
68993 /* confdefs.h. */
68994 _ACEOF
68995 cat confdefs.h >>conftest.$ac_ext
68996 cat >>conftest.$ac_ext <<_ACEOF
68997 /* end confdefs.h. */
68998 $ac_includes_default
68999 #include <tm.h>
69000 _ACEOF
69001 rm -f conftest.$ac_objext
69002 if { (ac_try="$ac_compile"
69003 case "(($ac_try" in
69004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69005 *) ac_try_echo=$ac_try;;
69006 esac
69007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69008 (eval "$ac_compile") 2>conftest.er1
69009 ac_status=$?
69010 grep -v '^ *+' conftest.er1 >conftest.err
69011 rm -f conftest.er1
69012 cat conftest.err >&5
69013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69014 (exit $ac_status); } && {
69015 test -z "$ac_c_werror_flag" ||
69016 test ! -s conftest.err
69017 } && test -s conftest.$ac_objext; then
69018 ac_header_compiler=yes
69019 else
69020 echo "$as_me: failed program was:" >&5
69021 sed 's/^/| /' conftest.$ac_ext >&5
69023 ac_header_compiler=no
69026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
69028 echo "${ECHO_T}$ac_header_compiler" >&6; }
69030 # Is the header present?
69031 { echo "$as_me:$LINENO: checking tm.h presence" >&5
69032 echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; }
69033 cat >conftest.$ac_ext <<_ACEOF
69034 /* confdefs.h. */
69035 _ACEOF
69036 cat confdefs.h >>conftest.$ac_ext
69037 cat >>conftest.$ac_ext <<_ACEOF
69038 /* end confdefs.h. */
69039 #include <tm.h>
69040 _ACEOF
69041 if { (ac_try="$ac_cpp conftest.$ac_ext"
69042 case "(($ac_try" in
69043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69044 *) ac_try_echo=$ac_try;;
69045 esac
69046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
69048 ac_status=$?
69049 grep -v '^ *+' conftest.er1 >conftest.err
69050 rm -f conftest.er1
69051 cat conftest.err >&5
69052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69053 (exit $ac_status); } >/dev/null && {
69054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
69055 test ! -s conftest.err
69056 }; then
69057 ac_header_preproc=yes
69058 else
69059 echo "$as_me: failed program was:" >&5
69060 sed 's/^/| /' conftest.$ac_ext >&5
69062 ac_header_preproc=no
69065 rm -f conftest.err conftest.$ac_ext
69066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
69067 echo "${ECHO_T}$ac_header_preproc" >&6; }
69069 # So? What about this header?
69070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
69071 yes:no: )
69072 { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
69073 echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
69074 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
69075 echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
69076 ac_header_preproc=yes
69078 no:yes:* )
69079 { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
69080 echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
69081 { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5
69082 echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;}
69083 { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
69084 echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
69085 { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5
69086 echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;}
69087 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
69088 echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
69089 { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
69090 echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
69091 ( cat <<\_ASBOX
69092 ## ------------------------------------------------------ ##
69093 ## Report this to http://www.open-mpi.org/community/help/ ##
69094 ## ------------------------------------------------------ ##
69095 _ASBOX
69096 ) | sed "s/^/$as_me: WARNING: /" >&2
69098 esac
69099 { echo "$as_me:$LINENO: checking for tm.h" >&5
69100 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
69101 if test "${ac_cv_header_tm_h+set}" = set; then
69102 echo $ECHO_N "(cached) $ECHO_C" >&6
69103 else
69104 ac_cv_header_tm_h=$ac_header_preproc
69106 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
69107 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
69110 if test $ac_cv_header_tm_h = yes; then
69112 # This is stolen from autoconf to peek under the covers to get the
69113 # cache variable for the library check. one should not copy this
69114 # code into other places unless you want much pain and suffering
69116 # see comment above
69117 unset ac_cv_lib_pbs_tm_init
69118 ompi_check_package_lib_happy="no"
69119 if test "" != ""; then
69120 # libdir was specified - search only there
69121 pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L"
69122 LDFLAGS="$LDFLAGS -L"
69123 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
69124 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
69125 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
69126 echo $ECHO_N "(cached) $ECHO_C" >&6
69127 else
69128 ac_check_lib_save_LIBS=$LIBS
69129 LIBS="-lpbs $LIBS"
69130 cat >conftest.$ac_ext <<_ACEOF
69131 /* confdefs.h. */
69132 _ACEOF
69133 cat confdefs.h >>conftest.$ac_ext
69134 cat >>conftest.$ac_ext <<_ACEOF
69135 /* end confdefs.h. */
69137 /* Override any GCC internal prototype to avoid an error.
69138 Use char because int might match the return type of a GCC
69139 builtin and then its argument prototype would still apply. */
69140 #ifdef __cplusplus
69141 extern "C"
69142 #endif
69143 char tm_init ();
69145 main ()
69147 return tm_init ();
69149 return 0;
69151 _ACEOF
69152 rm -f conftest.$ac_objext conftest$ac_exeext
69153 if { (ac_try="$ac_link"
69154 case "(($ac_try" in
69155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69156 *) ac_try_echo=$ac_try;;
69157 esac
69158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69159 (eval "$ac_link") 2>conftest.er1
69160 ac_status=$?
69161 grep -v '^ *+' conftest.er1 >conftest.err
69162 rm -f conftest.er1
69163 cat conftest.err >&5
69164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69165 (exit $ac_status); } && {
69166 test -z "$ac_c_werror_flag" ||
69167 test ! -s conftest.err
69168 } && test -s conftest$ac_exeext &&
69169 $as_test_x conftest$ac_exeext; then
69170 ac_cv_lib_pbs_tm_init=yes
69171 else
69172 echo "$as_me: failed program was:" >&5
69173 sed 's/^/| /' conftest.$ac_ext >&5
69175 ac_cv_lib_pbs_tm_init=no
69178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69179 conftest$ac_exeext conftest.$ac_ext
69180 LIBS=$ac_check_lib_save_LIBS
69182 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
69183 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
69184 if test $ac_cv_lib_pbs_tm_init = yes; then
69185 ompi_check_package_lib_happy="yes"
69186 else
69187 ompi_check_package_lib_happy="no"
69190 if test "$ompi_check_package_lib_happy" = "no"; then
69191 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
69192 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
69193 unset ac_cv_lib_pbs_tm_init
69196 else
69197 # libdir was not specified - go through search path
69198 ompi_check_package_libdir="$ompi_check_tm_dir"
69199 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
69200 # try as is...
69201 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
69202 echo "${ECHO_T}looking for library without search path" >&6; }
69203 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
69204 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
69205 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
69206 echo $ECHO_N "(cached) $ECHO_C" >&6
69207 else
69208 ac_check_lib_save_LIBS=$LIBS
69209 LIBS="-lpbs $LIBS"
69210 cat >conftest.$ac_ext <<_ACEOF
69211 /* confdefs.h. */
69212 _ACEOF
69213 cat confdefs.h >>conftest.$ac_ext
69214 cat >>conftest.$ac_ext <<_ACEOF
69215 /* end confdefs.h. */
69217 /* Override any GCC internal prototype to avoid an error.
69218 Use char because int might match the return type of a GCC
69219 builtin and then its argument prototype would still apply. */
69220 #ifdef __cplusplus
69221 extern "C"
69222 #endif
69223 char tm_init ();
69225 main ()
69227 return tm_init ();
69229 return 0;
69231 _ACEOF
69232 rm -f conftest.$ac_objext conftest$ac_exeext
69233 if { (ac_try="$ac_link"
69234 case "(($ac_try" in
69235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69236 *) ac_try_echo=$ac_try;;
69237 esac
69238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69239 (eval "$ac_link") 2>conftest.er1
69240 ac_status=$?
69241 grep -v '^ *+' conftest.er1 >conftest.err
69242 rm -f conftest.er1
69243 cat conftest.err >&5
69244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69245 (exit $ac_status); } && {
69246 test -z "$ac_c_werror_flag" ||
69247 test ! -s conftest.err
69248 } && test -s conftest$ac_exeext &&
69249 $as_test_x conftest$ac_exeext; then
69250 ac_cv_lib_pbs_tm_init=yes
69251 else
69252 echo "$as_me: failed program was:" >&5
69253 sed 's/^/| /' conftest.$ac_ext >&5
69255 ac_cv_lib_pbs_tm_init=no
69258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69259 conftest$ac_exeext conftest.$ac_ext
69260 LIBS=$ac_check_lib_save_LIBS
69262 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
69263 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
69264 if test $ac_cv_lib_pbs_tm_init = yes; then
69265 ompi_check_package_lib_happy="yes"
69266 else
69267 ompi_check_package_lib_happy="no"
69270 if test "$ompi_check_package_lib_happy" = "no"; then
69271 # no go on the as is.. see what happens later...
69272 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
69273 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
69274 unset ac_cv_lib_pbs_tm_init
69280 if test "$ompi_check_package_lib_happy" = "no"; then
69281 if test "$ompi_check_package_libdir" != ""; then
69282 pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
69283 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
69284 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
69285 echo "${ECHO_T}looking for library in lib" >&6; }
69286 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
69287 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
69288 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
69289 echo $ECHO_N "(cached) $ECHO_C" >&6
69290 else
69291 ac_check_lib_save_LIBS=$LIBS
69292 LIBS="-lpbs $LIBS"
69293 cat >conftest.$ac_ext <<_ACEOF
69294 /* confdefs.h. */
69295 _ACEOF
69296 cat confdefs.h >>conftest.$ac_ext
69297 cat >>conftest.$ac_ext <<_ACEOF
69298 /* end confdefs.h. */
69300 /* Override any GCC internal prototype to avoid an error.
69301 Use char because int might match the return type of a GCC
69302 builtin and then its argument prototype would still apply. */
69303 #ifdef __cplusplus
69304 extern "C"
69305 #endif
69306 char tm_init ();
69308 main ()
69310 return tm_init ();
69312 return 0;
69314 _ACEOF
69315 rm -f conftest.$ac_objext conftest$ac_exeext
69316 if { (ac_try="$ac_link"
69317 case "(($ac_try" in
69318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69319 *) ac_try_echo=$ac_try;;
69320 esac
69321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69322 (eval "$ac_link") 2>conftest.er1
69323 ac_status=$?
69324 grep -v '^ *+' conftest.er1 >conftest.err
69325 rm -f conftest.er1
69326 cat conftest.err >&5
69327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69328 (exit $ac_status); } && {
69329 test -z "$ac_c_werror_flag" ||
69330 test ! -s conftest.err
69331 } && test -s conftest$ac_exeext &&
69332 $as_test_x conftest$ac_exeext; then
69333 ac_cv_lib_pbs_tm_init=yes
69334 else
69335 echo "$as_me: failed program was:" >&5
69336 sed 's/^/| /' conftest.$ac_ext >&5
69338 ac_cv_lib_pbs_tm_init=no
69341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69342 conftest$ac_exeext conftest.$ac_ext
69343 LIBS=$ac_check_lib_save_LIBS
69345 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
69346 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
69347 if test $ac_cv_lib_pbs_tm_init = yes; then
69348 ompi_check_package_lib_happy="yes"
69349 else
69350 ompi_check_package_lib_happy="no"
69353 if test "$ompi_check_package_lib_happy" = "no"; then
69354 # no go on the as is.. see what happens later...
69355 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
69356 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
69357 unset ac_cv_lib_pbs_tm_init
69365 if test "$ompi_check_package_lib_happy" = "no"; then
69366 if test "$ompi_check_package_libdir" != ""; then
69367 pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
69368 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
69369 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
69370 echo "${ECHO_T}looking for library in lib64" >&6; }
69371 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
69372 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
69373 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
69374 echo $ECHO_N "(cached) $ECHO_C" >&6
69375 else
69376 ac_check_lib_save_LIBS=$LIBS
69377 LIBS="-lpbs $LIBS"
69378 cat >conftest.$ac_ext <<_ACEOF
69379 /* confdefs.h. */
69380 _ACEOF
69381 cat confdefs.h >>conftest.$ac_ext
69382 cat >>conftest.$ac_ext <<_ACEOF
69383 /* end confdefs.h. */
69385 /* Override any GCC internal prototype to avoid an error.
69386 Use char because int might match the return type of a GCC
69387 builtin and then its argument prototype would still apply. */
69388 #ifdef __cplusplus
69389 extern "C"
69390 #endif
69391 char tm_init ();
69393 main ()
69395 return tm_init ();
69397 return 0;
69399 _ACEOF
69400 rm -f conftest.$ac_objext conftest$ac_exeext
69401 if { (ac_try="$ac_link"
69402 case "(($ac_try" in
69403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69404 *) ac_try_echo=$ac_try;;
69405 esac
69406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69407 (eval "$ac_link") 2>conftest.er1
69408 ac_status=$?
69409 grep -v '^ *+' conftest.er1 >conftest.err
69410 rm -f conftest.er1
69411 cat conftest.err >&5
69412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69413 (exit $ac_status); } && {
69414 test -z "$ac_c_werror_flag" ||
69415 test ! -s conftest.err
69416 } && test -s conftest$ac_exeext &&
69417 $as_test_x conftest$ac_exeext; then
69418 ac_cv_lib_pbs_tm_init=yes
69419 else
69420 echo "$as_me: failed program was:" >&5
69421 sed 's/^/| /' conftest.$ac_ext >&5
69423 ac_cv_lib_pbs_tm_init=no
69426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69427 conftest$ac_exeext conftest.$ac_ext
69428 LIBS=$ac_check_lib_save_LIBS
69430 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
69431 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
69432 if test $ac_cv_lib_pbs_tm_init = yes; then
69433 ompi_check_package_lib_happy="yes"
69434 else
69435 ompi_check_package_lib_happy="no"
69438 if test "$ompi_check_package_lib_happy" = "no"; then
69439 # no go on the as is.. see what happens later...
69440 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
69441 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
69442 unset ac_cv_lib_pbs_tm_init
69452 if test "$ompi_check_package_lib_happy" = "yes"; then
69453 ompi_check_package_happy="yes"
69454 else
69455 ompi_check_package_happy="no"
69460 else
69461 ompi_check_package_happy="no"
69465 else
69467 # This is stolen from autoconf to peek under the covers to get the
69468 # cache variable for the library check. one should not copy this
69469 # code into other places unless you want much pain and suffering
69471 # see comment above
69472 unset ac_cv_lib_pbs_tm_init
69473 ompi_check_package_lib_happy="no"
69474 if test "" != ""; then
69475 # libdir was specified - search only there
69476 pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L"
69477 LDFLAGS="$LDFLAGS -L"
69478 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
69479 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
69480 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
69481 echo $ECHO_N "(cached) $ECHO_C" >&6
69482 else
69483 ac_check_lib_save_LIBS=$LIBS
69484 LIBS="-lpbs $LIBS"
69485 cat >conftest.$ac_ext <<_ACEOF
69486 /* confdefs.h. */
69487 _ACEOF
69488 cat confdefs.h >>conftest.$ac_ext
69489 cat >>conftest.$ac_ext <<_ACEOF
69490 /* end confdefs.h. */
69492 /* Override any GCC internal prototype to avoid an error.
69493 Use char because int might match the return type of a GCC
69494 builtin and then its argument prototype would still apply. */
69495 #ifdef __cplusplus
69496 extern "C"
69497 #endif
69498 char tm_init ();
69500 main ()
69502 return tm_init ();
69504 return 0;
69506 _ACEOF
69507 rm -f conftest.$ac_objext conftest$ac_exeext
69508 if { (ac_try="$ac_link"
69509 case "(($ac_try" in
69510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69511 *) ac_try_echo=$ac_try;;
69512 esac
69513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69514 (eval "$ac_link") 2>conftest.er1
69515 ac_status=$?
69516 grep -v '^ *+' conftest.er1 >conftest.err
69517 rm -f conftest.er1
69518 cat conftest.err >&5
69519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69520 (exit $ac_status); } && {
69521 test -z "$ac_c_werror_flag" ||
69522 test ! -s conftest.err
69523 } && test -s conftest$ac_exeext &&
69524 $as_test_x conftest$ac_exeext; then
69525 ac_cv_lib_pbs_tm_init=yes
69526 else
69527 echo "$as_me: failed program was:" >&5
69528 sed 's/^/| /' conftest.$ac_ext >&5
69530 ac_cv_lib_pbs_tm_init=no
69533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69534 conftest$ac_exeext conftest.$ac_ext
69535 LIBS=$ac_check_lib_save_LIBS
69537 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
69538 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
69539 if test $ac_cv_lib_pbs_tm_init = yes; then
69540 ompi_check_package_lib_happy="yes"
69541 else
69542 ompi_check_package_lib_happy="no"
69545 if test "$ompi_check_package_lib_happy" = "no"; then
69546 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
69547 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
69548 unset ac_cv_lib_pbs_tm_init
69551 else
69552 # libdir was not specified - go through search path
69553 ompi_check_package_libdir="$ompi_check_tm_dir"
69554 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
69555 # try as is...
69556 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
69557 echo "${ECHO_T}looking for library without search path" >&6; }
69558 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
69559 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
69560 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
69561 echo $ECHO_N "(cached) $ECHO_C" >&6
69562 else
69563 ac_check_lib_save_LIBS=$LIBS
69564 LIBS="-lpbs $LIBS"
69565 cat >conftest.$ac_ext <<_ACEOF
69566 /* confdefs.h. */
69567 _ACEOF
69568 cat confdefs.h >>conftest.$ac_ext
69569 cat >>conftest.$ac_ext <<_ACEOF
69570 /* end confdefs.h. */
69572 /* Override any GCC internal prototype to avoid an error.
69573 Use char because int might match the return type of a GCC
69574 builtin and then its argument prototype would still apply. */
69575 #ifdef __cplusplus
69576 extern "C"
69577 #endif
69578 char tm_init ();
69580 main ()
69582 return tm_init ();
69584 return 0;
69586 _ACEOF
69587 rm -f conftest.$ac_objext conftest$ac_exeext
69588 if { (ac_try="$ac_link"
69589 case "(($ac_try" in
69590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69591 *) ac_try_echo=$ac_try;;
69592 esac
69593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69594 (eval "$ac_link") 2>conftest.er1
69595 ac_status=$?
69596 grep -v '^ *+' conftest.er1 >conftest.err
69597 rm -f conftest.er1
69598 cat conftest.err >&5
69599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69600 (exit $ac_status); } && {
69601 test -z "$ac_c_werror_flag" ||
69602 test ! -s conftest.err
69603 } && test -s conftest$ac_exeext &&
69604 $as_test_x conftest$ac_exeext; then
69605 ac_cv_lib_pbs_tm_init=yes
69606 else
69607 echo "$as_me: failed program was:" >&5
69608 sed 's/^/| /' conftest.$ac_ext >&5
69610 ac_cv_lib_pbs_tm_init=no
69613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69614 conftest$ac_exeext conftest.$ac_ext
69615 LIBS=$ac_check_lib_save_LIBS
69617 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
69618 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
69619 if test $ac_cv_lib_pbs_tm_init = yes; then
69620 ompi_check_package_lib_happy="yes"
69621 else
69622 ompi_check_package_lib_happy="no"
69625 if test "$ompi_check_package_lib_happy" = "no"; then
69626 # no go on the as is.. see what happens later...
69627 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
69628 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
69629 unset ac_cv_lib_pbs_tm_init
69635 if test "$ompi_check_package_lib_happy" = "no"; then
69636 if test "$ompi_check_package_libdir" != ""; then
69637 pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
69638 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
69639 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
69640 echo "${ECHO_T}looking for library in lib" >&6; }
69641 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
69642 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
69643 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
69644 echo $ECHO_N "(cached) $ECHO_C" >&6
69645 else
69646 ac_check_lib_save_LIBS=$LIBS
69647 LIBS="-lpbs $LIBS"
69648 cat >conftest.$ac_ext <<_ACEOF
69649 /* confdefs.h. */
69650 _ACEOF
69651 cat confdefs.h >>conftest.$ac_ext
69652 cat >>conftest.$ac_ext <<_ACEOF
69653 /* end confdefs.h. */
69655 /* Override any GCC internal prototype to avoid an error.
69656 Use char because int might match the return type of a GCC
69657 builtin and then its argument prototype would still apply. */
69658 #ifdef __cplusplus
69659 extern "C"
69660 #endif
69661 char tm_init ();
69663 main ()
69665 return tm_init ();
69667 return 0;
69669 _ACEOF
69670 rm -f conftest.$ac_objext conftest$ac_exeext
69671 if { (ac_try="$ac_link"
69672 case "(($ac_try" in
69673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69674 *) ac_try_echo=$ac_try;;
69675 esac
69676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69677 (eval "$ac_link") 2>conftest.er1
69678 ac_status=$?
69679 grep -v '^ *+' conftest.er1 >conftest.err
69680 rm -f conftest.er1
69681 cat conftest.err >&5
69682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69683 (exit $ac_status); } && {
69684 test -z "$ac_c_werror_flag" ||
69685 test ! -s conftest.err
69686 } && test -s conftest$ac_exeext &&
69687 $as_test_x conftest$ac_exeext; then
69688 ac_cv_lib_pbs_tm_init=yes
69689 else
69690 echo "$as_me: failed program was:" >&5
69691 sed 's/^/| /' conftest.$ac_ext >&5
69693 ac_cv_lib_pbs_tm_init=no
69696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69697 conftest$ac_exeext conftest.$ac_ext
69698 LIBS=$ac_check_lib_save_LIBS
69700 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
69701 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
69702 if test $ac_cv_lib_pbs_tm_init = yes; then
69703 ompi_check_package_lib_happy="yes"
69704 else
69705 ompi_check_package_lib_happy="no"
69708 if test "$ompi_check_package_lib_happy" = "no"; then
69709 # no go on the as is.. see what happens later...
69710 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
69711 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
69712 unset ac_cv_lib_pbs_tm_init
69720 if test "$ompi_check_package_lib_happy" = "no"; then
69721 if test "$ompi_check_package_libdir" != ""; then
69722 pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
69723 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
69724 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
69725 echo "${ECHO_T}looking for library in lib64" >&6; }
69726 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
69727 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
69728 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
69729 echo $ECHO_N "(cached) $ECHO_C" >&6
69730 else
69731 ac_check_lib_save_LIBS=$LIBS
69732 LIBS="-lpbs $LIBS"
69733 cat >conftest.$ac_ext <<_ACEOF
69734 /* confdefs.h. */
69735 _ACEOF
69736 cat confdefs.h >>conftest.$ac_ext
69737 cat >>conftest.$ac_ext <<_ACEOF
69738 /* end confdefs.h. */
69740 /* Override any GCC internal prototype to avoid an error.
69741 Use char because int might match the return type of a GCC
69742 builtin and then its argument prototype would still apply. */
69743 #ifdef __cplusplus
69744 extern "C"
69745 #endif
69746 char tm_init ();
69748 main ()
69750 return tm_init ();
69752 return 0;
69754 _ACEOF
69755 rm -f conftest.$ac_objext conftest$ac_exeext
69756 if { (ac_try="$ac_link"
69757 case "(($ac_try" in
69758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69759 *) ac_try_echo=$ac_try;;
69760 esac
69761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69762 (eval "$ac_link") 2>conftest.er1
69763 ac_status=$?
69764 grep -v '^ *+' conftest.er1 >conftest.err
69765 rm -f conftest.er1
69766 cat conftest.err >&5
69767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69768 (exit $ac_status); } && {
69769 test -z "$ac_c_werror_flag" ||
69770 test ! -s conftest.err
69771 } && test -s conftest$ac_exeext &&
69772 $as_test_x conftest$ac_exeext; then
69773 ac_cv_lib_pbs_tm_init=yes
69774 else
69775 echo "$as_me: failed program was:" >&5
69776 sed 's/^/| /' conftest.$ac_ext >&5
69778 ac_cv_lib_pbs_tm_init=no
69781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69782 conftest$ac_exeext conftest.$ac_ext
69783 LIBS=$ac_check_lib_save_LIBS
69785 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
69786 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
69787 if test $ac_cv_lib_pbs_tm_init = yes; then
69788 ompi_check_package_lib_happy="yes"
69789 else
69790 ompi_check_package_lib_happy="no"
69793 if test "$ompi_check_package_lib_happy" = "no"; then
69794 # no go on the as is.. see what happens later...
69795 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
69796 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
69797 unset ac_cv_lib_pbs_tm_init
69807 if test "$ompi_check_package_lib_happy" = "yes"; then
69808 ompi_check_package_happy="yes"
69809 else
69810 ompi_check_package_happy="no"
69817 unset ompi_check_package_header_happy
69819 if test "$ompi_check_package_happy" = "yes"; then
69820 ompi_check_tm_happy="yes"
69821 pls_tm_LIBS="-lpbs "
69822 else
69823 pls_tm_CPPFLAGS="$ompi_check_package_pls_tm_orig_CPPFLAGS"
69824 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
69825 pls_tm_LIBS="$ompi_check_package_pls_tm_orig_LIBS"
69826 ompi_check_tm_happy="no"
69830 CPPFLAGS="$ompi_check_package_pls_tm_save_CPPFLAGS"
69831 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
69832 LIBS="$ompi_check_package_pls_tm_save_LIBS"
69837 # If that failed, check for libtorque. Admittedly, this is
69838 # sub-optimal -- the above may have failed because tm.h was not
69839 # found. If so, we'll check for it again. Life is hard.
69841 if test "$ompi_check_tm_happy" = "no"; then
69843 ompi_check_package_pls_tm_save_CPPFLAGS="$CPPFLAGS"
69844 ompi_check_package_pls_tm_save_LDFLAGS="$LDFLAGS"
69845 ompi_check_package_pls_tm_save_LIBS="$LIBS"
69847 ompi_check_package_pls_tm_orig_CPPFLAGS="$pls_tm_CPPFLAGS"
69848 ompi_check_package_pls_tm_orig_LDFLAGS="$pls_tm_LDFLAGS"
69849 ompi_check_package_pls_tm_orig_LIBS="$pls_tm_LIBS"
69852 # This is stolen from autoconf to peek under the covers to get the
69853 # cache variable for the library check. one should not copy this
69854 # code into other places unless you want much pain and suffering
69857 # so this sucks, but there's no way to get through the progression
69858 # of header includes without killing off the cache variable and trying
69859 # again...
69860 unset ac_cv_header_tm_h
69862 ompi_check_package_header_happy="no"
69863 if test "$ompi_check_tm_dir" = "/usr" -o "$ompi_check_tm_dir" = "/usr/local"; then
69864 # try as is...
69865 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
69866 echo "${ECHO_T}looking for header without includes" >&6; }
69867 if test "${ac_cv_header_tm_h+set}" = set; then
69868 { echo "$as_me:$LINENO: checking for tm.h" >&5
69869 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
69870 if test "${ac_cv_header_tm_h+set}" = set; then
69871 echo $ECHO_N "(cached) $ECHO_C" >&6
69873 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
69874 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
69875 else
69876 # Is the header compilable?
69877 { echo "$as_me:$LINENO: checking tm.h usability" >&5
69878 echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; }
69879 cat >conftest.$ac_ext <<_ACEOF
69880 /* confdefs.h. */
69881 _ACEOF
69882 cat confdefs.h >>conftest.$ac_ext
69883 cat >>conftest.$ac_ext <<_ACEOF
69884 /* end confdefs.h. */
69885 $ac_includes_default
69886 #include <tm.h>
69887 _ACEOF
69888 rm -f conftest.$ac_objext
69889 if { (ac_try="$ac_compile"
69890 case "(($ac_try" in
69891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69892 *) ac_try_echo=$ac_try;;
69893 esac
69894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69895 (eval "$ac_compile") 2>conftest.er1
69896 ac_status=$?
69897 grep -v '^ *+' conftest.er1 >conftest.err
69898 rm -f conftest.er1
69899 cat conftest.err >&5
69900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69901 (exit $ac_status); } && {
69902 test -z "$ac_c_werror_flag" ||
69903 test ! -s conftest.err
69904 } && test -s conftest.$ac_objext; then
69905 ac_header_compiler=yes
69906 else
69907 echo "$as_me: failed program was:" >&5
69908 sed 's/^/| /' conftest.$ac_ext >&5
69910 ac_header_compiler=no
69913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
69915 echo "${ECHO_T}$ac_header_compiler" >&6; }
69917 # Is the header present?
69918 { echo "$as_me:$LINENO: checking tm.h presence" >&5
69919 echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; }
69920 cat >conftest.$ac_ext <<_ACEOF
69921 /* confdefs.h. */
69922 _ACEOF
69923 cat confdefs.h >>conftest.$ac_ext
69924 cat >>conftest.$ac_ext <<_ACEOF
69925 /* end confdefs.h. */
69926 #include <tm.h>
69927 _ACEOF
69928 if { (ac_try="$ac_cpp conftest.$ac_ext"
69929 case "(($ac_try" in
69930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69931 *) ac_try_echo=$ac_try;;
69932 esac
69933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
69934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
69935 ac_status=$?
69936 grep -v '^ *+' conftest.er1 >conftest.err
69937 rm -f conftest.er1
69938 cat conftest.err >&5
69939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69940 (exit $ac_status); } >/dev/null && {
69941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
69942 test ! -s conftest.err
69943 }; then
69944 ac_header_preproc=yes
69945 else
69946 echo "$as_me: failed program was:" >&5
69947 sed 's/^/| /' conftest.$ac_ext >&5
69949 ac_header_preproc=no
69952 rm -f conftest.err conftest.$ac_ext
69953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
69954 echo "${ECHO_T}$ac_header_preproc" >&6; }
69956 # So? What about this header?
69957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
69958 yes:no: )
69959 { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
69960 echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
69961 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
69962 echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
69963 ac_header_preproc=yes
69965 no:yes:* )
69966 { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
69967 echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
69968 { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5
69969 echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;}
69970 { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
69971 echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
69972 { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5
69973 echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;}
69974 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
69975 echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
69976 { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
69977 echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
69978 ( cat <<\_ASBOX
69979 ## ------------------------------------------------------ ##
69980 ## Report this to http://www.open-mpi.org/community/help/ ##
69981 ## ------------------------------------------------------ ##
69982 _ASBOX
69983 ) | sed "s/^/$as_me: WARNING: /" >&2
69985 esac
69986 { echo "$as_me:$LINENO: checking for tm.h" >&5
69987 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
69988 if test "${ac_cv_header_tm_h+set}" = set; then
69989 echo $ECHO_N "(cached) $ECHO_C" >&6
69990 else
69991 ac_cv_header_tm_h=$ac_header_preproc
69993 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
69994 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
69997 if test $ac_cv_header_tm_h = yes; then
69998 ompi_check_package_header_happy="yes"
69999 else
70000 ompi_check_package_header_happy="no"
70004 if test "$ompi_check_package_header_happy" = "no"; then
70005 # no go on the as is - reset the cache and try again
70006 unset ac_cv_header_tm_h
70012 if test "$ompi_check_package_header_happy" = "no"; then
70013 if test "$ompi_check_tm_dir" != ""; then
70014 pls_tm_CPPFLAGS="$pls_tm_CPPFLAGS -I$ompi_check_tm_dir/include"
70015 CPPFLAGS="$CPPFLAGS -I$ompi_check_tm_dir/include"
70018 if test "${ac_cv_header_tm_h+set}" = set; then
70019 { echo "$as_me:$LINENO: checking for tm.h" >&5
70020 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
70021 if test "${ac_cv_header_tm_h+set}" = set; then
70022 echo $ECHO_N "(cached) $ECHO_C" >&6
70024 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
70025 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
70026 else
70027 # Is the header compilable?
70028 { echo "$as_me:$LINENO: checking tm.h usability" >&5
70029 echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; }
70030 cat >conftest.$ac_ext <<_ACEOF
70031 /* confdefs.h. */
70032 _ACEOF
70033 cat confdefs.h >>conftest.$ac_ext
70034 cat >>conftest.$ac_ext <<_ACEOF
70035 /* end confdefs.h. */
70036 $ac_includes_default
70037 #include <tm.h>
70038 _ACEOF
70039 rm -f conftest.$ac_objext
70040 if { (ac_try="$ac_compile"
70041 case "(($ac_try" in
70042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70043 *) ac_try_echo=$ac_try;;
70044 esac
70045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70046 (eval "$ac_compile") 2>conftest.er1
70047 ac_status=$?
70048 grep -v '^ *+' conftest.er1 >conftest.err
70049 rm -f conftest.er1
70050 cat conftest.err >&5
70051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70052 (exit $ac_status); } && {
70053 test -z "$ac_c_werror_flag" ||
70054 test ! -s conftest.err
70055 } && test -s conftest.$ac_objext; then
70056 ac_header_compiler=yes
70057 else
70058 echo "$as_me: failed program was:" >&5
70059 sed 's/^/| /' conftest.$ac_ext >&5
70061 ac_header_compiler=no
70064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70066 echo "${ECHO_T}$ac_header_compiler" >&6; }
70068 # Is the header present?
70069 { echo "$as_me:$LINENO: checking tm.h presence" >&5
70070 echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; }
70071 cat >conftest.$ac_ext <<_ACEOF
70072 /* confdefs.h. */
70073 _ACEOF
70074 cat confdefs.h >>conftest.$ac_ext
70075 cat >>conftest.$ac_ext <<_ACEOF
70076 /* end confdefs.h. */
70077 #include <tm.h>
70078 _ACEOF
70079 if { (ac_try="$ac_cpp conftest.$ac_ext"
70080 case "(($ac_try" in
70081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70082 *) ac_try_echo=$ac_try;;
70083 esac
70084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
70086 ac_status=$?
70087 grep -v '^ *+' conftest.er1 >conftest.err
70088 rm -f conftest.er1
70089 cat conftest.err >&5
70090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70091 (exit $ac_status); } >/dev/null && {
70092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
70093 test ! -s conftest.err
70094 }; then
70095 ac_header_preproc=yes
70096 else
70097 echo "$as_me: failed program was:" >&5
70098 sed 's/^/| /' conftest.$ac_ext >&5
70100 ac_header_preproc=no
70103 rm -f conftest.err conftest.$ac_ext
70104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70105 echo "${ECHO_T}$ac_header_preproc" >&6; }
70107 # So? What about this header?
70108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70109 yes:no: )
70110 { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
70111 echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
70112 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
70113 echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
70114 ac_header_preproc=yes
70116 no:yes:* )
70117 { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
70118 echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
70119 { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5
70120 echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;}
70121 { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
70122 echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
70123 { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5
70124 echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;}
70125 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
70126 echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
70127 { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
70128 echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
70129 ( cat <<\_ASBOX
70130 ## ------------------------------------------------------ ##
70131 ## Report this to http://www.open-mpi.org/community/help/ ##
70132 ## ------------------------------------------------------ ##
70133 _ASBOX
70134 ) | sed "s/^/$as_me: WARNING: /" >&2
70136 esac
70137 { echo "$as_me:$LINENO: checking for tm.h" >&5
70138 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
70139 if test "${ac_cv_header_tm_h+set}" = set; then
70140 echo $ECHO_N "(cached) $ECHO_C" >&6
70141 else
70142 ac_cv_header_tm_h=$ac_header_preproc
70144 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
70145 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
70148 if test $ac_cv_header_tm_h = yes; then
70150 # This is stolen from autoconf to peek under the covers to get the
70151 # cache variable for the library check. one should not copy this
70152 # code into other places unless you want much pain and suffering
70154 # see comment above
70155 unset ac_cv_lib_torque_tm_finalize
70156 ompi_check_package_lib_happy="no"
70157 if test "" != ""; then
70158 # libdir was specified - search only there
70159 pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L"
70160 LDFLAGS="$LDFLAGS -L"
70161 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
70162 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
70163 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
70164 echo $ECHO_N "(cached) $ECHO_C" >&6
70165 else
70166 ac_check_lib_save_LIBS=$LIBS
70167 LIBS="-ltorque $LIBS"
70168 cat >conftest.$ac_ext <<_ACEOF
70169 /* confdefs.h. */
70170 _ACEOF
70171 cat confdefs.h >>conftest.$ac_ext
70172 cat >>conftest.$ac_ext <<_ACEOF
70173 /* end confdefs.h. */
70175 /* Override any GCC internal prototype to avoid an error.
70176 Use char because int might match the return type of a GCC
70177 builtin and then its argument prototype would still apply. */
70178 #ifdef __cplusplus
70179 extern "C"
70180 #endif
70181 char tm_finalize ();
70183 main ()
70185 return tm_finalize ();
70187 return 0;
70189 _ACEOF
70190 rm -f conftest.$ac_objext conftest$ac_exeext
70191 if { (ac_try="$ac_link"
70192 case "(($ac_try" in
70193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70194 *) ac_try_echo=$ac_try;;
70195 esac
70196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70197 (eval "$ac_link") 2>conftest.er1
70198 ac_status=$?
70199 grep -v '^ *+' conftest.er1 >conftest.err
70200 rm -f conftest.er1
70201 cat conftest.err >&5
70202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70203 (exit $ac_status); } && {
70204 test -z "$ac_c_werror_flag" ||
70205 test ! -s conftest.err
70206 } && test -s conftest$ac_exeext &&
70207 $as_test_x conftest$ac_exeext; then
70208 ac_cv_lib_torque_tm_finalize=yes
70209 else
70210 echo "$as_me: failed program was:" >&5
70211 sed 's/^/| /' conftest.$ac_ext >&5
70213 ac_cv_lib_torque_tm_finalize=no
70216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70217 conftest$ac_exeext conftest.$ac_ext
70218 LIBS=$ac_check_lib_save_LIBS
70220 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
70221 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
70222 if test $ac_cv_lib_torque_tm_finalize = yes; then
70223 ompi_check_package_lib_happy="yes"
70224 else
70225 ompi_check_package_lib_happy="no"
70228 if test "$ompi_check_package_lib_happy" = "no"; then
70229 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
70230 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
70231 unset ac_cv_lib_torque_tm_finalize
70234 else
70235 # libdir was not specified - go through search path
70236 ompi_check_package_libdir="$ompi_check_tm_dir"
70237 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
70238 # try as is...
70239 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
70240 echo "${ECHO_T}looking for library without search path" >&6; }
70241 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
70242 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
70243 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
70244 echo $ECHO_N "(cached) $ECHO_C" >&6
70245 else
70246 ac_check_lib_save_LIBS=$LIBS
70247 LIBS="-ltorque $LIBS"
70248 cat >conftest.$ac_ext <<_ACEOF
70249 /* confdefs.h. */
70250 _ACEOF
70251 cat confdefs.h >>conftest.$ac_ext
70252 cat >>conftest.$ac_ext <<_ACEOF
70253 /* end confdefs.h. */
70255 /* Override any GCC internal prototype to avoid an error.
70256 Use char because int might match the return type of a GCC
70257 builtin and then its argument prototype would still apply. */
70258 #ifdef __cplusplus
70259 extern "C"
70260 #endif
70261 char tm_finalize ();
70263 main ()
70265 return tm_finalize ();
70267 return 0;
70269 _ACEOF
70270 rm -f conftest.$ac_objext conftest$ac_exeext
70271 if { (ac_try="$ac_link"
70272 case "(($ac_try" in
70273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70274 *) ac_try_echo=$ac_try;;
70275 esac
70276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70277 (eval "$ac_link") 2>conftest.er1
70278 ac_status=$?
70279 grep -v '^ *+' conftest.er1 >conftest.err
70280 rm -f conftest.er1
70281 cat conftest.err >&5
70282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70283 (exit $ac_status); } && {
70284 test -z "$ac_c_werror_flag" ||
70285 test ! -s conftest.err
70286 } && test -s conftest$ac_exeext &&
70287 $as_test_x conftest$ac_exeext; then
70288 ac_cv_lib_torque_tm_finalize=yes
70289 else
70290 echo "$as_me: failed program was:" >&5
70291 sed 's/^/| /' conftest.$ac_ext >&5
70293 ac_cv_lib_torque_tm_finalize=no
70296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70297 conftest$ac_exeext conftest.$ac_ext
70298 LIBS=$ac_check_lib_save_LIBS
70300 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
70301 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
70302 if test $ac_cv_lib_torque_tm_finalize = yes; then
70303 ompi_check_package_lib_happy="yes"
70304 else
70305 ompi_check_package_lib_happy="no"
70308 if test "$ompi_check_package_lib_happy" = "no"; then
70309 # no go on the as is.. see what happens later...
70310 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
70311 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
70312 unset ac_cv_lib_torque_tm_finalize
70318 if test "$ompi_check_package_lib_happy" = "no"; then
70319 if test "$ompi_check_package_libdir" != ""; then
70320 pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
70321 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
70322 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
70323 echo "${ECHO_T}looking for library in lib" >&6; }
70324 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
70325 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
70326 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
70327 echo $ECHO_N "(cached) $ECHO_C" >&6
70328 else
70329 ac_check_lib_save_LIBS=$LIBS
70330 LIBS="-ltorque $LIBS"
70331 cat >conftest.$ac_ext <<_ACEOF
70332 /* confdefs.h. */
70333 _ACEOF
70334 cat confdefs.h >>conftest.$ac_ext
70335 cat >>conftest.$ac_ext <<_ACEOF
70336 /* end confdefs.h. */
70338 /* Override any GCC internal prototype to avoid an error.
70339 Use char because int might match the return type of a GCC
70340 builtin and then its argument prototype would still apply. */
70341 #ifdef __cplusplus
70342 extern "C"
70343 #endif
70344 char tm_finalize ();
70346 main ()
70348 return tm_finalize ();
70350 return 0;
70352 _ACEOF
70353 rm -f conftest.$ac_objext conftest$ac_exeext
70354 if { (ac_try="$ac_link"
70355 case "(($ac_try" in
70356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70357 *) ac_try_echo=$ac_try;;
70358 esac
70359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70360 (eval "$ac_link") 2>conftest.er1
70361 ac_status=$?
70362 grep -v '^ *+' conftest.er1 >conftest.err
70363 rm -f conftest.er1
70364 cat conftest.err >&5
70365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70366 (exit $ac_status); } && {
70367 test -z "$ac_c_werror_flag" ||
70368 test ! -s conftest.err
70369 } && test -s conftest$ac_exeext &&
70370 $as_test_x conftest$ac_exeext; then
70371 ac_cv_lib_torque_tm_finalize=yes
70372 else
70373 echo "$as_me: failed program was:" >&5
70374 sed 's/^/| /' conftest.$ac_ext >&5
70376 ac_cv_lib_torque_tm_finalize=no
70379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70380 conftest$ac_exeext conftest.$ac_ext
70381 LIBS=$ac_check_lib_save_LIBS
70383 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
70384 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
70385 if test $ac_cv_lib_torque_tm_finalize = yes; then
70386 ompi_check_package_lib_happy="yes"
70387 else
70388 ompi_check_package_lib_happy="no"
70391 if test "$ompi_check_package_lib_happy" = "no"; then
70392 # no go on the as is.. see what happens later...
70393 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
70394 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
70395 unset ac_cv_lib_torque_tm_finalize
70403 if test "$ompi_check_package_lib_happy" = "no"; then
70404 if test "$ompi_check_package_libdir" != ""; then
70405 pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
70406 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
70407 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
70408 echo "${ECHO_T}looking for library in lib64" >&6; }
70409 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
70410 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
70411 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
70412 echo $ECHO_N "(cached) $ECHO_C" >&6
70413 else
70414 ac_check_lib_save_LIBS=$LIBS
70415 LIBS="-ltorque $LIBS"
70416 cat >conftest.$ac_ext <<_ACEOF
70417 /* confdefs.h. */
70418 _ACEOF
70419 cat confdefs.h >>conftest.$ac_ext
70420 cat >>conftest.$ac_ext <<_ACEOF
70421 /* end confdefs.h. */
70423 /* Override any GCC internal prototype to avoid an error.
70424 Use char because int might match the return type of a GCC
70425 builtin and then its argument prototype would still apply. */
70426 #ifdef __cplusplus
70427 extern "C"
70428 #endif
70429 char tm_finalize ();
70431 main ()
70433 return tm_finalize ();
70435 return 0;
70437 _ACEOF
70438 rm -f conftest.$ac_objext conftest$ac_exeext
70439 if { (ac_try="$ac_link"
70440 case "(($ac_try" in
70441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70442 *) ac_try_echo=$ac_try;;
70443 esac
70444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70445 (eval "$ac_link") 2>conftest.er1
70446 ac_status=$?
70447 grep -v '^ *+' conftest.er1 >conftest.err
70448 rm -f conftest.er1
70449 cat conftest.err >&5
70450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70451 (exit $ac_status); } && {
70452 test -z "$ac_c_werror_flag" ||
70453 test ! -s conftest.err
70454 } && test -s conftest$ac_exeext &&
70455 $as_test_x conftest$ac_exeext; then
70456 ac_cv_lib_torque_tm_finalize=yes
70457 else
70458 echo "$as_me: failed program was:" >&5
70459 sed 's/^/| /' conftest.$ac_ext >&5
70461 ac_cv_lib_torque_tm_finalize=no
70464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70465 conftest$ac_exeext conftest.$ac_ext
70466 LIBS=$ac_check_lib_save_LIBS
70468 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
70469 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
70470 if test $ac_cv_lib_torque_tm_finalize = yes; then
70471 ompi_check_package_lib_happy="yes"
70472 else
70473 ompi_check_package_lib_happy="no"
70476 if test "$ompi_check_package_lib_happy" = "no"; then
70477 # no go on the as is.. see what happens later...
70478 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
70479 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
70480 unset ac_cv_lib_torque_tm_finalize
70490 if test "$ompi_check_package_lib_happy" = "yes"; then
70491 ompi_check_package_happy="yes"
70492 else
70493 ompi_check_package_happy="no"
70498 else
70499 ompi_check_package_happy="no"
70503 else
70505 # This is stolen from autoconf to peek under the covers to get the
70506 # cache variable for the library check. one should not copy this
70507 # code into other places unless you want much pain and suffering
70509 # see comment above
70510 unset ac_cv_lib_torque_tm_finalize
70511 ompi_check_package_lib_happy="no"
70512 if test "" != ""; then
70513 # libdir was specified - search only there
70514 pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L"
70515 LDFLAGS="$LDFLAGS -L"
70516 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
70517 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
70518 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
70519 echo $ECHO_N "(cached) $ECHO_C" >&6
70520 else
70521 ac_check_lib_save_LIBS=$LIBS
70522 LIBS="-ltorque $LIBS"
70523 cat >conftest.$ac_ext <<_ACEOF
70524 /* confdefs.h. */
70525 _ACEOF
70526 cat confdefs.h >>conftest.$ac_ext
70527 cat >>conftest.$ac_ext <<_ACEOF
70528 /* end confdefs.h. */
70530 /* Override any GCC internal prototype to avoid an error.
70531 Use char because int might match the return type of a GCC
70532 builtin and then its argument prototype would still apply. */
70533 #ifdef __cplusplus
70534 extern "C"
70535 #endif
70536 char tm_finalize ();
70538 main ()
70540 return tm_finalize ();
70542 return 0;
70544 _ACEOF
70545 rm -f conftest.$ac_objext conftest$ac_exeext
70546 if { (ac_try="$ac_link"
70547 case "(($ac_try" in
70548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70549 *) ac_try_echo=$ac_try;;
70550 esac
70551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70552 (eval "$ac_link") 2>conftest.er1
70553 ac_status=$?
70554 grep -v '^ *+' conftest.er1 >conftest.err
70555 rm -f conftest.er1
70556 cat conftest.err >&5
70557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70558 (exit $ac_status); } && {
70559 test -z "$ac_c_werror_flag" ||
70560 test ! -s conftest.err
70561 } && test -s conftest$ac_exeext &&
70562 $as_test_x conftest$ac_exeext; then
70563 ac_cv_lib_torque_tm_finalize=yes
70564 else
70565 echo "$as_me: failed program was:" >&5
70566 sed 's/^/| /' conftest.$ac_ext >&5
70568 ac_cv_lib_torque_tm_finalize=no
70571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70572 conftest$ac_exeext conftest.$ac_ext
70573 LIBS=$ac_check_lib_save_LIBS
70575 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
70576 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
70577 if test $ac_cv_lib_torque_tm_finalize = yes; then
70578 ompi_check_package_lib_happy="yes"
70579 else
70580 ompi_check_package_lib_happy="no"
70583 if test "$ompi_check_package_lib_happy" = "no"; then
70584 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
70585 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
70586 unset ac_cv_lib_torque_tm_finalize
70589 else
70590 # libdir was not specified - go through search path
70591 ompi_check_package_libdir="$ompi_check_tm_dir"
70592 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
70593 # try as is...
70594 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
70595 echo "${ECHO_T}looking for library without search path" >&6; }
70596 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
70597 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
70598 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
70599 echo $ECHO_N "(cached) $ECHO_C" >&6
70600 else
70601 ac_check_lib_save_LIBS=$LIBS
70602 LIBS="-ltorque $LIBS"
70603 cat >conftest.$ac_ext <<_ACEOF
70604 /* confdefs.h. */
70605 _ACEOF
70606 cat confdefs.h >>conftest.$ac_ext
70607 cat >>conftest.$ac_ext <<_ACEOF
70608 /* end confdefs.h. */
70610 /* Override any GCC internal prototype to avoid an error.
70611 Use char because int might match the return type of a GCC
70612 builtin and then its argument prototype would still apply. */
70613 #ifdef __cplusplus
70614 extern "C"
70615 #endif
70616 char tm_finalize ();
70618 main ()
70620 return tm_finalize ();
70622 return 0;
70624 _ACEOF
70625 rm -f conftest.$ac_objext conftest$ac_exeext
70626 if { (ac_try="$ac_link"
70627 case "(($ac_try" in
70628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70629 *) ac_try_echo=$ac_try;;
70630 esac
70631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70632 (eval "$ac_link") 2>conftest.er1
70633 ac_status=$?
70634 grep -v '^ *+' conftest.er1 >conftest.err
70635 rm -f conftest.er1
70636 cat conftest.err >&5
70637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70638 (exit $ac_status); } && {
70639 test -z "$ac_c_werror_flag" ||
70640 test ! -s conftest.err
70641 } && test -s conftest$ac_exeext &&
70642 $as_test_x conftest$ac_exeext; then
70643 ac_cv_lib_torque_tm_finalize=yes
70644 else
70645 echo "$as_me: failed program was:" >&5
70646 sed 's/^/| /' conftest.$ac_ext >&5
70648 ac_cv_lib_torque_tm_finalize=no
70651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70652 conftest$ac_exeext conftest.$ac_ext
70653 LIBS=$ac_check_lib_save_LIBS
70655 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
70656 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
70657 if test $ac_cv_lib_torque_tm_finalize = yes; then
70658 ompi_check_package_lib_happy="yes"
70659 else
70660 ompi_check_package_lib_happy="no"
70663 if test "$ompi_check_package_lib_happy" = "no"; then
70664 # no go on the as is.. see what happens later...
70665 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
70666 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
70667 unset ac_cv_lib_torque_tm_finalize
70673 if test "$ompi_check_package_lib_happy" = "no"; then
70674 if test "$ompi_check_package_libdir" != ""; then
70675 pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
70676 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
70677 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
70678 echo "${ECHO_T}looking for library in lib" >&6; }
70679 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
70680 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
70681 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
70682 echo $ECHO_N "(cached) $ECHO_C" >&6
70683 else
70684 ac_check_lib_save_LIBS=$LIBS
70685 LIBS="-ltorque $LIBS"
70686 cat >conftest.$ac_ext <<_ACEOF
70687 /* confdefs.h. */
70688 _ACEOF
70689 cat confdefs.h >>conftest.$ac_ext
70690 cat >>conftest.$ac_ext <<_ACEOF
70691 /* end confdefs.h. */
70693 /* Override any GCC internal prototype to avoid an error.
70694 Use char because int might match the return type of a GCC
70695 builtin and then its argument prototype would still apply. */
70696 #ifdef __cplusplus
70697 extern "C"
70698 #endif
70699 char tm_finalize ();
70701 main ()
70703 return tm_finalize ();
70705 return 0;
70707 _ACEOF
70708 rm -f conftest.$ac_objext conftest$ac_exeext
70709 if { (ac_try="$ac_link"
70710 case "(($ac_try" in
70711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70712 *) ac_try_echo=$ac_try;;
70713 esac
70714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70715 (eval "$ac_link") 2>conftest.er1
70716 ac_status=$?
70717 grep -v '^ *+' conftest.er1 >conftest.err
70718 rm -f conftest.er1
70719 cat conftest.err >&5
70720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70721 (exit $ac_status); } && {
70722 test -z "$ac_c_werror_flag" ||
70723 test ! -s conftest.err
70724 } && test -s conftest$ac_exeext &&
70725 $as_test_x conftest$ac_exeext; then
70726 ac_cv_lib_torque_tm_finalize=yes
70727 else
70728 echo "$as_me: failed program was:" >&5
70729 sed 's/^/| /' conftest.$ac_ext >&5
70731 ac_cv_lib_torque_tm_finalize=no
70734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70735 conftest$ac_exeext conftest.$ac_ext
70736 LIBS=$ac_check_lib_save_LIBS
70738 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
70739 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
70740 if test $ac_cv_lib_torque_tm_finalize = yes; then
70741 ompi_check_package_lib_happy="yes"
70742 else
70743 ompi_check_package_lib_happy="no"
70746 if test "$ompi_check_package_lib_happy" = "no"; then
70747 # no go on the as is.. see what happens later...
70748 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
70749 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
70750 unset ac_cv_lib_torque_tm_finalize
70758 if test "$ompi_check_package_lib_happy" = "no"; then
70759 if test "$ompi_check_package_libdir" != ""; then
70760 pls_tm_LDFLAGS="$pls_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
70761 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
70762 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
70763 echo "${ECHO_T}looking for library in lib64" >&6; }
70764 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
70765 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
70766 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
70767 echo $ECHO_N "(cached) $ECHO_C" >&6
70768 else
70769 ac_check_lib_save_LIBS=$LIBS
70770 LIBS="-ltorque $LIBS"
70771 cat >conftest.$ac_ext <<_ACEOF
70772 /* confdefs.h. */
70773 _ACEOF
70774 cat confdefs.h >>conftest.$ac_ext
70775 cat >>conftest.$ac_ext <<_ACEOF
70776 /* end confdefs.h. */
70778 /* Override any GCC internal prototype to avoid an error.
70779 Use char because int might match the return type of a GCC
70780 builtin and then its argument prototype would still apply. */
70781 #ifdef __cplusplus
70782 extern "C"
70783 #endif
70784 char tm_finalize ();
70786 main ()
70788 return tm_finalize ();
70790 return 0;
70792 _ACEOF
70793 rm -f conftest.$ac_objext conftest$ac_exeext
70794 if { (ac_try="$ac_link"
70795 case "(($ac_try" in
70796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70797 *) ac_try_echo=$ac_try;;
70798 esac
70799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
70800 (eval "$ac_link") 2>conftest.er1
70801 ac_status=$?
70802 grep -v '^ *+' conftest.er1 >conftest.err
70803 rm -f conftest.er1
70804 cat conftest.err >&5
70805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70806 (exit $ac_status); } && {
70807 test -z "$ac_c_werror_flag" ||
70808 test ! -s conftest.err
70809 } && test -s conftest$ac_exeext &&
70810 $as_test_x conftest$ac_exeext; then
70811 ac_cv_lib_torque_tm_finalize=yes
70812 else
70813 echo "$as_me: failed program was:" >&5
70814 sed 's/^/| /' conftest.$ac_ext >&5
70816 ac_cv_lib_torque_tm_finalize=no
70819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70820 conftest$ac_exeext conftest.$ac_ext
70821 LIBS=$ac_check_lib_save_LIBS
70823 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
70824 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
70825 if test $ac_cv_lib_torque_tm_finalize = yes; then
70826 ompi_check_package_lib_happy="yes"
70827 else
70828 ompi_check_package_lib_happy="no"
70831 if test "$ompi_check_package_lib_happy" = "no"; then
70832 # no go on the as is.. see what happens later...
70833 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
70834 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
70835 unset ac_cv_lib_torque_tm_finalize
70845 if test "$ompi_check_package_lib_happy" = "yes"; then
70846 ompi_check_package_happy="yes"
70847 else
70848 ompi_check_package_happy="no"
70855 unset ompi_check_package_header_happy
70857 if test "$ompi_check_package_happy" = "yes"; then
70858 ompi_check_tm_happy="yes"
70859 pls_tm_LIBS="-ltorque "
70860 else
70861 pls_tm_CPPFLAGS="$ompi_check_package_pls_tm_orig_CPPFLAGS"
70862 pls_tm_LDFLAGS="$ompi_check_package_pls_tm_orig_LDFLAGS"
70863 pls_tm_LIBS="$ompi_check_package_pls_tm_orig_LIBS"
70864 ompi_check_tm_happy="no"
70868 CPPFLAGS="$ompi_check_package_pls_tm_save_CPPFLAGS"
70869 LDFLAGS="$ompi_check_package_pls_tm_save_LDFLAGS"
70870 LIBS="$ompi_check_package_pls_tm_save_LIBS"
70875 if test "$ompi_check_tm_happy" = "yes"; then
70876 pls_tm_good=1
70877 else
70878 if test ! -z "$with_tm" -a "$with_tm" != "no"; then
70879 { { echo "$as_me:$LINENO: error: TM support requested but not found. Aborting" >&5
70880 echo "$as_me: error: TM support requested but not found. Aborting" >&2;}
70881 { (exit 1); exit 1; }; }
70884 pls_tm_good=0
70889 # if check worked, set wrapper flags if so.
70890 # Evaluate succeed / fail
70891 if test "$pls_tm_good" = "1"; then
70892 pls_tm_WRAPPER_EXTRA_LDFLAGS="$pls_tm_LDFLAGS"
70893 pls_tm_WRAPPER_EXTRA_LIBS="$pls_tm_LIBS"
70894 should_build=1
70895 else
70896 should_build=0
70900 # set build flags to use in makefile
70908 if test "$should_build" = "1"; then
70910 project=orte
70911 framework=pls
70912 component=tm
70914 # See if it dropped an output file for us to pick up some
70915 # shell variables in.
70916 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
70918 # Add this subdir to the mast list of all MCA component subdirs
70919 all_components="$all_components $component"
70921 if test "$compile_mode" = "dso" ; then
70922 dso_components="$dso_components $component"
70923 else
70924 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
70925 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
70926 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
70927 static_components="$static_components $component"
70930 # Output pretty results
70931 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
70932 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
70933 { echo "$as_me:$LINENO: result: yes" >&5
70934 echo "${ECHO_T}yes" >&6; }
70936 # If there's an output file, add the values to
70937 # scope_EXTRA_flags.
70938 if test -f $infile; then
70940 # First check for the ABORT tag
70941 line="`grep ABORT= $infile | cut -d= -f2-`"
70942 if test -n "$line" -a "$line" != "no"; then
70943 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
70944 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
70945 { { echo "$as_me:$LINENO: error: cannot continue" >&5
70946 echo "$as_me: error: cannot continue" >&2;}
70947 { (exit 1); exit 1; }; }
70950 # Check for flags passed up from the component. If we're
70951 # compiling statically, then take all flags passed up from the
70952 # component.
70953 if test "$compile_mode" = "static"; then
70954 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
70955 eval "line=$line"
70956 if test -n "$line"; then
70957 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
70959 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
70960 eval "line=$line"
70961 if test -n "$line"; then
70962 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
70966 if test "$DIRECT_pls" = "$component" ; then
70967 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
70968 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
70969 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
70970 eval $str
70971 else
70972 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
70973 *** does not appear to support direct calling.
70974 *** Aborting" >&5
70975 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
70976 *** does not appear to support direct calling.
70977 *** Aborting" >&2;}
70978 { (exit 1); exit 1; }; }
70981 else
70982 # were we supposed to have found something in the
70983 # post_configure.sh, but the file didn't exist?
70984 if test "$DIRECT_pls" = "$component" ; then
70985 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
70986 *** does not appear to support direct calling.
70987 *** Aborting" >&5
70988 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
70989 *** does not appear to support direct calling.
70990 *** Aborting" >&2;}
70991 { (exit 1); exit 1; }; }
70995 # now add the flags that were set in the environment variables
70996 # framework_component_FOO (for example, the flags set by
70997 # m4_configure components)
70999 # Check for flags passed up from the component. If we're
71000 # compiling statically, then take all flags passed up from the
71001 # component.
71002 if test "$compile_mode" = "static"; then
71003 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
71004 eval "$str"
71005 if test -n "$line" ; then
71006 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
71008 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
71009 eval "$str"
71010 if test -n "$line" ; then
71011 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
71015 else
71017 { echo "$as_me:$LINENO: checking if MCA component pls:tm can compile" >&5
71018 echo $ECHO_N "checking if MCA component pls:tm can compile... $ECHO_C" >&6; }
71019 { echo "$as_me:$LINENO: result: no" >&5
71020 echo "${ECHO_T}no" >&6; }
71022 # If this component was requested as the default for this
71023 # type, then abort.
71024 if test "$with_pls" = "tm" ; then
71025 { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5
71026 echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
71027 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
71028 echo "$as_me: WARNING: This component was selected as the default" >&2;}
71029 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
71030 echo "$as_me: error: Cannot continue" >&2;}
71031 { (exit 1); exit 1; }; }
71032 exit 1
71035 if test ! -z "$DIRECT_pls" ; then
71036 if test "$DIRECT_pls" = "tm" ; then
71037 { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5
71038 echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
71039 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
71040 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
71041 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
71042 echo "$as_me: error: Cannot continue" >&2;}
71043 { (exit 1); exit 1; }; }
71044 exit 1
71048 # add component to all component list
71049 all_components="$all_components tm"
71053 # set the AM_CONDITIONAL on how we should build
71054 if test "$compile_mode" = "dso"; then
71055 BUILD_pls_tm_DSO=1
71056 else
71057 BUILD_pls_tm_DSO=0
71062 if test "$BUILD_pls_tm_DSO" = "1"; then
71063 OMPI_BUILD_pls_tm_DSO_TRUE=
71064 OMPI_BUILD_pls_tm_DSO_FALSE='#'
71065 else
71066 OMPI_BUILD_pls_tm_DSO_TRUE='#'
71067 OMPI_BUILD_pls_tm_DSO_FALSE=
71071 if test "$should_build" = "1"; then
71072 components_looking_for_succeed="$happy_value"
71076 unset compile_mode
71078 ompi_show_subsubsubtitle "MCA component pls:xgrid (m4 configuration macro)"
71081 project=orte
71082 framework=pls
71083 component=xgrid
71084 component_path="$srcdir/$project/mca/$framework/$component"
71085 want_component=0
71087 # build if:
71088 # - the component type is direct and we are that component
71089 # - there is no ompi_ignore file
71090 # - there is an ompi_ignore, but there is an empty ompi_unignore
71091 # - there is an ompi_ignore, but username is in ompi_unignore
71092 if test -d $component_path ; then
71093 # decide if we want the component to be built or not. This
71094 # is spread out because some of the logic is a little complex
71095 # and test's syntax isn't exactly the greatest. We want to
71096 # build the component by default.
71097 want_component=1
71098 if test -f $component_path/.ompi_ignore ; then
71099 # If there is an ompi_ignore file, don't build
71100 # the component. Note that this decision can be
71101 # overriden by the unignore logic below.
71102 want_component=0
71104 if test -f $component_path/.ompi_unignore ; then
71105 # if there is an empty ompi_unignore, that is
71106 # equivalent to having your userid in the unignore file.
71107 # If userid is in the file, unignore the ignore file.
71108 if test ! -s $component_path/.ompi_unignore ; then
71109 want_component=1
71110 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
71111 want_component=1
71114 # if this component type is direct and we are not it, we don't want
71115 # to be built. Otherwise, we do want to be built.
71116 if test ! -z "$DIRECT_pls" ; then
71117 if test "$DIRECT_pls" = "$component" ; then
71118 want_component=1
71119 else
71120 want_component=0
71125 # if we were explicitly disabled, don't build :)
71126 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
71127 eval $str
71128 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
71129 want_component=0
71132 if test "$want_component" = "1"; then
71133 should_build=$components_looking_for_succeed
71134 else
71135 should_build=0
71139 # Allow the component to override the build mode if it really wants to.
71140 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
71142 project=orte
71143 framework=pls
71144 component=xgrid
71146 # Is this component going to built staic or shared? $component
71147 # might not be known until configure time, so have to use eval
71148 # tricks - can't set variable names at autogen time.
71149 str="SHARED_FRAMEWORK=\$DSO_$framework"
71150 eval $str
71151 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
71152 eval $str
71154 str="STATIC_FRAMEWORK=\$STATIC_$framework"
71155 eval $str
71156 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
71157 eval $str
71159 shared_mode_override=static
71161 # Setup for either shared or static
71162 if test "$STATIC_FRAMEWORK" = "1" -o \
71163 "$STATIC_COMPONENT" = "1" -o \
71164 "$STATIC_all" = "1" ; then
71165 compile_mode="static"
71166 elif test "$shared_mode_override" = "dso" -o \
71167 "$SHARED_FRAMEWORK" = "1" -o \
71168 "$SHARED_COMPONENT" = "1" -o \
71169 "$DSO_all" = "1"; then
71170 compile_mode="dso"
71171 else
71172 compile_mode="static"
71175 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
71176 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
71177 if test "$DIRECT_pls" = "$component" ; then
71178 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
71179 echo "${ECHO_T}$compile_mode - direct" >&6; }
71180 else
71181 { echo "$as_me:$LINENO: result: $compile_mode" >&5
71182 echo "${ECHO_T}$compile_mode" >&6; }
71186 # try to configure the component. pay no attention to
71187 # --enable-dist, since we'll always have makefiles.
71188 if test "$should_build" = "1"; then
71194 # Check whether --with-xgrid was given.
71195 if test "${with_xgrid+set}" = set; then
71196 withval=$with_xgrid;
71200 { echo "$as_me:$LINENO: checking for XGridFoundation Framework" >&5
71201 echo $ECHO_N "checking for XGridFoundation Framework... $ECHO_C" >&6; }
71202 if test "${ompi_cv_check_xgrid_foundation+set}" = set; then
71203 echo $ECHO_N "(cached) $ECHO_C" >&6
71204 else
71205 if test "$with_xgrid" != "no"; then
71207 # ok, so in environments where this is going to work, the objc and
71208 # c compilers are the same thing. Because our ompi_prog_objc is
71209 # really lame, you can't push/pop languages into and out of
71210 # objective-C (as soon as something post Autoconf 2.59 comes out,
71211 # it will have Objective C support, and this will all be much
71212 # simpler). We modify CFLAGS because AC_TRY_LINK is going to use
71213 # the C compiler. Automake, however, is smart enough to know what
71214 # Objective C is, so in the end, we put things in OBJCFLAGS and
71215 # the right things will happen. *sigh*
71217 if test "$ac_cv_sizeof_long" = "8"; then
71218 # can't compile in 64 bit mode
71219 ompi_cv_check_xgrid_foundation="no"
71220 else
71221 ompi_check_xgrid_save_CFLAGS="$CFLAGS"
71222 CFLAGS="$CFLAGS -framework XGridFoundation"
71223 cat >conftest.$ac_ext <<_ACEOF
71224 /* confdefs.h. */
71225 _ACEOF
71226 cat confdefs.h >>conftest.$ac_ext
71227 cat >>conftest.$ac_ext <<_ACEOF
71228 /* end confdefs.h. */
71231 main ()
71235 return 0;
71237 _ACEOF
71238 rm -f conftest.$ac_objext conftest$ac_exeext
71239 if { (ac_try="$ac_link"
71240 case "(($ac_try" in
71241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71242 *) ac_try_echo=$ac_try;;
71243 esac
71244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
71245 (eval "$ac_link") 2>conftest.er1
71246 ac_status=$?
71247 grep -v '^ *+' conftest.er1 >conftest.err
71248 rm -f conftest.er1
71249 cat conftest.err >&5
71250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71251 (exit $ac_status); } && {
71252 test -z "$ac_c_werror_flag" ||
71253 test ! -s conftest.err
71254 } && test -s conftest$ac_exeext &&
71255 $as_test_x conftest$ac_exeext; then
71256 ompi_check_xgrid_happy="yes"
71257 else
71258 echo "$as_me: failed program was:" >&5
71259 sed 's/^/| /' conftest.$ac_ext >&5
71261 ompi_check_xgrid_happy="no"
71264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71265 conftest$ac_exeext conftest.$ac_ext
71266 CFLAGS="$ompi_check_xgrid_save_CFLAGS"
71267 if test "$ompi_check_xgrid_happy" = "no"; then
71268 ompi_cv_check_xgrid_foundation="no"
71269 else
71270 ompi_cv_check_xgrid_foundation="yes"
71276 else
71277 ompi_cv_check_xgrid_foundation="no"
71281 { echo "$as_me:$LINENO: result: $ompi_cv_check_xgrid_foundation" >&5
71282 echo "${ECHO_T}$ompi_cv_check_xgrid_foundation" >&6; }
71284 if test "$ompi_cv_check_xgrid_foundation" = "yes"; then
71285 pls_xgrid_OBJCFLAGS="$pls_xgrid_OBJCFLAGS -F XGridFoundation"
71286 pls_xgrid_LDFLAGS="$pls_xgrid_LDFLAGS -framework XGridFoundation"
71287 pls_xgrid_good=1
71288 else
71289 pls_xgrid_good=0
71294 # For very dumb reasons involving linking, it's near impossible
71295 # to build the XGrid components as static libraries. Disable if that's
71296 # the case.
71297 if test "$pls_xgrid_good" = "0"; then
71298 should_build=0
71299 else
71300 if test "$compile_mode" = "dso"; then
71301 # pls_xgrid_LDFLAGS will be set by OMPI_CHECK_XGRID
71302 pls_xgrid_WRAPPER_EXTRA_LDFLAGS="$pls_xgrid_LDFLAGS"
71303 should_build=1
71304 else
71305 { echo "$as_me:$LINENO: WARNING: XGrid components must be built as DSOs. Disabling" >&5
71306 echo "$as_me: WARNING: XGrid components must be built as DSOs. Disabling" >&2;}
71307 should_build=0
71313 # set build flags to use in makefile
71320 if test "$should_build" = "1"; then
71322 project=orte
71323 framework=pls
71324 component=xgrid
71326 # See if it dropped an output file for us to pick up some
71327 # shell variables in.
71328 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
71330 # Add this subdir to the mast list of all MCA component subdirs
71331 all_components="$all_components $component"
71333 if test "$compile_mode" = "dso" ; then
71334 dso_components="$dso_components $component"
71335 else
71336 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
71337 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
71338 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
71339 static_components="$static_components $component"
71342 # Output pretty results
71343 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
71344 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
71345 { echo "$as_me:$LINENO: result: yes" >&5
71346 echo "${ECHO_T}yes" >&6; }
71348 # If there's an output file, add the values to
71349 # scope_EXTRA_flags.
71350 if test -f $infile; then
71352 # First check for the ABORT tag
71353 line="`grep ABORT= $infile | cut -d= -f2-`"
71354 if test -n "$line" -a "$line" != "no"; then
71355 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
71356 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
71357 { { echo "$as_me:$LINENO: error: cannot continue" >&5
71358 echo "$as_me: error: cannot continue" >&2;}
71359 { (exit 1); exit 1; }; }
71362 # Check for flags passed up from the component. If we're
71363 # compiling statically, then take all flags passed up from the
71364 # component.
71365 if test "$compile_mode" = "static"; then
71366 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
71367 eval "line=$line"
71368 if test -n "$line"; then
71369 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
71371 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
71372 eval "line=$line"
71373 if test -n "$line"; then
71374 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
71378 if test "$DIRECT_pls" = "$component" ; then
71379 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
71380 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
71381 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
71382 eval $str
71383 else
71384 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
71385 *** does not appear to support direct calling.
71386 *** Aborting" >&5
71387 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
71388 *** does not appear to support direct calling.
71389 *** Aborting" >&2;}
71390 { (exit 1); exit 1; }; }
71393 else
71394 # were we supposed to have found something in the
71395 # post_configure.sh, but the file didn't exist?
71396 if test "$DIRECT_pls" = "$component" ; then
71397 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
71398 *** does not appear to support direct calling.
71399 *** Aborting" >&5
71400 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
71401 *** does not appear to support direct calling.
71402 *** Aborting" >&2;}
71403 { (exit 1); exit 1; }; }
71407 # now add the flags that were set in the environment variables
71408 # framework_component_FOO (for example, the flags set by
71409 # m4_configure components)
71411 # Check for flags passed up from the component. If we're
71412 # compiling statically, then take all flags passed up from the
71413 # component.
71414 if test "$compile_mode" = "static"; then
71415 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
71416 eval "$str"
71417 if test -n "$line" ; then
71418 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
71420 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
71421 eval "$str"
71422 if test -n "$line" ; then
71423 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
71427 else
71429 { echo "$as_me:$LINENO: checking if MCA component pls:xgrid can compile" >&5
71430 echo $ECHO_N "checking if MCA component pls:xgrid can compile... $ECHO_C" >&6; }
71431 { echo "$as_me:$LINENO: result: no" >&5
71432 echo "${ECHO_T}no" >&6; }
71434 # If this component was requested as the default for this
71435 # type, then abort.
71436 if test "$with_pls" = "xgrid" ; then
71437 { echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5
71438 echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;}
71439 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
71440 echo "$as_me: WARNING: This component was selected as the default" >&2;}
71441 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
71442 echo "$as_me: error: Cannot continue" >&2;}
71443 { (exit 1); exit 1; }; }
71444 exit 1
71447 if test ! -z "$DIRECT_pls" ; then
71448 if test "$DIRECT_pls" = "xgrid" ; then
71449 { echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5
71450 echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;}
71451 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
71452 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
71453 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
71454 echo "$as_me: error: Cannot continue" >&2;}
71455 { (exit 1); exit 1; }; }
71456 exit 1
71460 # add component to all component list
71461 all_components="$all_components xgrid"
71465 # set the AM_CONDITIONAL on how we should build
71466 if test "$compile_mode" = "dso"; then
71467 BUILD_pls_xgrid_DSO=1
71468 else
71469 BUILD_pls_xgrid_DSO=0
71474 if test "$BUILD_pls_xgrid_DSO" = "1"; then
71475 OMPI_BUILD_pls_xgrid_DSO_TRUE=
71476 OMPI_BUILD_pls_xgrid_DSO_FALSE='#'
71477 else
71478 OMPI_BUILD_pls_xgrid_DSO_TRUE='#'
71479 OMPI_BUILD_pls_xgrid_DSO_FALSE=
71483 if test "$should_build" = "1"; then
71484 components_looking_for_succeed="$happy_value"
71488 unset compile_mode
71491 # configure components that provide their own configure script.
71492 # It would be really hard to run these for "find first that
71493 # works", so we don't :)
71494 if test "$happy_value" = "1"; then
71496 for component_path in $srcdir/orte/mca/pls/* ; do
71497 component="`basename $component_path`"
71498 if test -d $component_path -a -x $component_path/configure ; then
71499 ompi_show_subsubsubtitle "MCA component pls:$component (need to configure)"
71502 project=orte
71503 framework=pls
71504 component=$component
71505 component_path="$srcdir/$project/mca/$framework/$component"
71506 want_component=0
71508 # build if:
71509 # - the component type is direct and we are that component
71510 # - there is no ompi_ignore file
71511 # - there is an ompi_ignore, but there is an empty ompi_unignore
71512 # - there is an ompi_ignore, but username is in ompi_unignore
71513 if test -d $component_path ; then
71514 # decide if we want the component to be built or not. This
71515 # is spread out because some of the logic is a little complex
71516 # and test's syntax isn't exactly the greatest. We want to
71517 # build the component by default.
71518 want_component=1
71519 if test -f $component_path/.ompi_ignore ; then
71520 # If there is an ompi_ignore file, don't build
71521 # the component. Note that this decision can be
71522 # overriden by the unignore logic below.
71523 want_component=0
71525 if test -f $component_path/.ompi_unignore ; then
71526 # if there is an empty ompi_unignore, that is
71527 # equivalent to having your userid in the unignore file.
71528 # If userid is in the file, unignore the ignore file.
71529 if test ! -s $component_path/.ompi_unignore ; then
71530 want_component=1
71531 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
71532 want_component=1
71535 # if this component type is direct and we are not it, we don't want
71536 # to be built. Otherwise, we do want to be built.
71537 if test ! -z "$DIRECT_pls" ; then
71538 if test "$DIRECT_pls" = "$component" ; then
71539 want_component=1
71540 else
71541 want_component=0
71546 # if we were explicitly disabled, don't build :)
71547 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
71548 eval $str
71549 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
71550 want_component=0
71553 if test "$want_component" = "1"; then
71554 should_build=1
71555 else
71556 should_build=0
71561 project=orte
71562 framework=pls
71563 component=$component
71565 # Is this component going to built staic or shared? $component
71566 # might not be known until configure time, so have to use eval
71567 # tricks - can't set variable names at autogen time.
71568 str="SHARED_FRAMEWORK=\$DSO_$framework"
71569 eval $str
71570 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
71571 eval $str
71573 str="STATIC_FRAMEWORK=\$STATIC_$framework"
71574 eval $str
71575 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
71576 eval $str
71578 shared_mode_override=static
71580 # Setup for either shared or static
71581 if test "$STATIC_FRAMEWORK" = "1" -o \
71582 "$STATIC_COMPONENT" = "1" -o \
71583 "$STATIC_all" = "1" ; then
71584 compile_mode="static"
71585 elif test "$shared_mode_override" = "dso" -o \
71586 "$SHARED_FRAMEWORK" = "1" -o \
71587 "$SHARED_COMPONENT" = "1" -o \
71588 "$DSO_all" = "1"; then
71589 compile_mode="dso"
71590 else
71591 compile_mode="static"
71594 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
71595 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
71596 if test "$DIRECT_pls" = "$component" ; then
71597 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
71598 echo "${ECHO_T}$compile_mode - direct" >&6; }
71599 else
71600 { echo "$as_me:$LINENO: result: $compile_mode" >&5
71601 echo "${ECHO_T}$compile_mode" >&6; }
71605 if test "$should_build" = "1" ; then
71608 # Invoke configure in a specific subdirectory.
71610 # orte/mca/pls/$component is the directory to invoke in
71611 # $ompi_subdir_args is the list of arguments to pass
71612 # should_build=1 is actions to execute upon success
71613 # should_build=2 is actions to execute upon failure
71615 subdir_dir="orte/mca/pls/$component"
71616 subdir_args="$ompi_subdir_args"
71617 subdir_success="should_build=1"
71618 subdir_failure="should_build=2"
71621 # Sanity checks
71624 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
71625 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
71626 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
71629 # Gotta check where srcdir is for VPATH builds. If srcdir is not
71630 # ., then we need to mkdir the subdir. Otherwise, we can just cd
71631 # into it.
71634 case $srcdir in
71638 { case $subdir_dir in
71639 [\\/]* | ?:[\\/]* ) total_dir=;;
71640 *) total_dir=.;;
71641 esac
71642 temp=$subdir_dir
71643 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
71644 case $dir_part in
71645 # Skip DOS drivespec
71646 ?:) total_dir=$dir_part ;;
71647 *) total_dir=$total_dir/$dir_part
71648 test -d "$total_dir" ||
71649 mkdir "$total_dir" ||
71650 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
71651 echo "$as_me: error: cannot create $subdir_dir" >&2;}
71652 { (exit 1); exit 1; }; }
71654 esac
71655 done; }
71657 if test -d ./$subdir_dir; then :;
71658 else
71659 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
71660 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
71661 { (exit 1); exit 1; }; }
71664 esac
71667 # Move into the target directory
71670 subdir_parent=`pwd`
71671 cd $subdir_dir
71674 # Make a "../" for each directory in $subdir_dir.
71677 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
71679 # Construct the --srcdir argument
71682 case $srcdir in
71684 # In place
71685 subdir_srcdir="$srcdir"
71687 [\\/]* | ?:[\\/]* )
71688 # Absolute path
71689 subdir_srcdir="$srcdir/$subdir_dir"
71692 # Relative path
71693 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
71695 esac
71698 # Construct the --cache-file argument
71701 # BWB - subdir caching is a pain since we change CFLAGS and all that.
71702 # Just disable it for now
71703 subdir_cache_file="/dev/null"
71706 # Invoke the configure script in the subdirectory
71709 export CFLAGS CPPFLAGS
71710 export CXXFLAGS CXXCPPFLAGS
71711 export FFLAGS
71712 export LDFLAGS LIBS
71713 sub_configure="$SHELL '$subdir_srcdir/configure'"
71714 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
71715 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
71716 eval "$sub_configure $subdir_args \
71717 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
71718 if test "$?" = "0"; then
71719 eval $subdir_success
71720 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
71721 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
71722 else
71723 eval $subdir_failure
71724 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
71725 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
71729 # Go back to the topdir
71732 cd $subdir_parent
71736 # Clean up
71739 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
71740 unset subdir_args subdir_dots total_dir dir_part temp
71743 if test "$should_build" = "1" ; then
71745 project=orte
71746 framework=pls
71747 component=$component
71749 # See if it dropped an output file for us to pick up some
71750 # shell variables in.
71751 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
71753 # Add this subdir to the mast list of all MCA component subdirs
71754 all_components="$all_components $component"
71756 if test "$compile_mode" = "dso" ; then
71757 dso_components="$dso_components $component"
71758 else
71759 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
71760 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
71761 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
71762 static_components="$static_components $component"
71765 # Output pretty results
71766 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
71767 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
71768 { echo "$as_me:$LINENO: result: yes" >&5
71769 echo "${ECHO_T}yes" >&6; }
71771 # If there's an output file, add the values to
71772 # scope_EXTRA_flags.
71773 if test -f $infile; then
71775 # First check for the ABORT tag
71776 line="`grep ABORT= $infile | cut -d= -f2-`"
71777 if test -n "$line" -a "$line" != "no"; then
71778 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
71779 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
71780 { { echo "$as_me:$LINENO: error: cannot continue" >&5
71781 echo "$as_me: error: cannot continue" >&2;}
71782 { (exit 1); exit 1; }; }
71785 # Check for flags passed up from the component. If we're
71786 # compiling statically, then take all flags passed up from the
71787 # component.
71788 if test "$compile_mode" = "static"; then
71789 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
71790 eval "line=$line"
71791 if test -n "$line"; then
71792 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
71794 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
71795 eval "line=$line"
71796 if test -n "$line"; then
71797 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
71801 if test "$DIRECT_pls" = "$component" ; then
71802 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
71803 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
71804 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
71805 eval $str
71806 else
71807 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
71808 *** does not appear to support direct calling.
71809 *** Aborting" >&5
71810 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
71811 *** does not appear to support direct calling.
71812 *** Aborting" >&2;}
71813 { (exit 1); exit 1; }; }
71816 else
71817 # were we supposed to have found something in the
71818 # post_configure.sh, but the file didn't exist?
71819 if test "$DIRECT_pls" = "$component" ; then
71820 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
71821 *** does not appear to support direct calling.
71822 *** Aborting" >&5
71823 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
71824 *** does not appear to support direct calling.
71825 *** Aborting" >&2;}
71826 { (exit 1); exit 1; }; }
71830 # now add the flags that were set in the environment variables
71831 # framework_component_FOO (for example, the flags set by
71832 # m4_configure components)
71834 # Check for flags passed up from the component. If we're
71835 # compiling statically, then take all flags passed up from the
71836 # component.
71837 if test "$compile_mode" = "static"; then
71838 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
71839 eval "$str"
71840 if test -n "$line" ; then
71841 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
71843 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
71844 eval "$str"
71845 if test -n "$line" ; then
71846 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
71850 else
71852 { echo "$as_me:$LINENO: checking if MCA component pls:$component can compile" >&5
71853 echo $ECHO_N "checking if MCA component pls:$component can compile... $ECHO_C" >&6; }
71854 { echo "$as_me:$LINENO: result: no" >&5
71855 echo "${ECHO_T}no" >&6; }
71857 # If this component was requested as the default for this
71858 # type, then abort.
71859 if test "$with_pls" = "$component" ; then
71860 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
71861 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
71862 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
71863 echo "$as_me: WARNING: This component was selected as the default" >&2;}
71864 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
71865 echo "$as_me: error: Cannot continue" >&2;}
71866 { (exit 1); exit 1; }; }
71867 exit 1
71870 if test ! -z "$DIRECT_pls" ; then
71871 if test "$DIRECT_pls" = "$component" ; then
71872 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
71873 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
71874 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
71875 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
71876 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
71877 echo "$as_me: error: Cannot continue" >&2;}
71878 { (exit 1); exit 1; }; }
71879 exit 1
71885 done
71890 MCA_pls_ALL_COMPONENTS="$all_components"
71891 MCA_pls_STATIC_COMPONENTS="$static_components"
71892 MCA_pls_DSO_COMPONENTS="$dso_components"
71893 MCA_pls_STATIC_LTLIBS="$static_ltlibs"
71901 MCA_pls_ALL_SUBDIRS=
71902 for item in $all_components ; do
71903 MCA_pls_ALL_SUBDIRS="$MCA_pls_ALL_SUBDIRS mca/pls/$item"
71904 done
71908 MCA_pls_STATIC_SUBDIRS=
71909 for item in $static_components ; do
71910 MCA_pls_STATIC_SUBDIRS="$MCA_pls_STATIC_SUBDIRS mca/pls/$item"
71911 done
71915 MCA_pls_DSO_SUBDIRS=
71916 for item in $dso_components ; do
71917 MCA_pls_DSO_SUBDIRS="$MCA_pls_DSO_SUBDIRS mca/pls/$item"
71918 done
71922 # add all the makefiles for the framework to the CONFIG_FILES.
71923 # Don't add common/base, since it doesn't exist
71924 ac_config_files="$ac_config_files orte/mca/pls/Makefile"
71927 # Create the final .h file that will be included in the type's
71928 # top-level glue. This lists all the static components. We don't
71929 # need to do this for "common".
71930 if test "pls" != "common"; then
71931 cat > $outfile <<EOF
71933 * \$HEADER\$
71936 `cat $outfile.extern`
71938 const mca_base_component_t *mca_pls_base_static_components[] = {
71939 `cat $outfile.struct`
71940 NULL
71943 # Only replace the header file if a) it doesn't previously
71944 # exist, or b) the contents are different. Do this to not
71945 # trigger recompilation of certain .c files just because the
71946 # timestamp changed on $outfile_real (similar to the way AC
71947 # handles AC_CONFIG_HEADER files).
71948 diff $outfile $outfile_real > /dev/null 2>&1
71949 if test "$?" != "0"; then
71950 mv $outfile $outfile_real
71951 else
71952 rm -f $outfile
71955 rm -f $outfile.struct $outfile.extern
71957 unset all_components static_components dso_components outfile outfile_real
71958 # common has to go up front
71959 if test "ras" = "common" ; then
71960 MCA_orte_FRAMEWORKS="ras $MCA_orte_FRAMEWORKS"
71961 MCA_orte_FRAMEWORKS_SUBDIRS="mca/ras $MCA_orte_FRAMEWORKS_SUBDIRS"
71962 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_ras_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
71963 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_ras_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
71964 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_ras_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
71965 else
71966 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS ras"
71967 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/ras"
71968 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_ras_ALL_SUBDIRS)"
71969 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_ras_DSO_SUBDIRS)"
71970 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_ras_STATIC_SUBDIRS)"
71972 if test "ras" != "common" ; then
71973 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/ras/libmca_ras.la"
71975 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_ras_STATIC_LTLIBS)"
71977 ompi_show_subsubtitle "Configuring MCA framework ras"
71979 # setup for framework
71980 all_components=
71981 static_components=
71982 dso_components=
71983 static_ltlibs=
71985 # Ensure that the directory where the #include file is to live
71986 # exists. Need to do this for VPATH builds, because the directory
71987 # may not exist yet. For the "common" type, it's not really a
71988 # component, so it doesn't have a base.
71989 if test "ras" = "common" ; then
71990 outdir=orte/mca/common
71991 else
71992 outdir=orte/mca/ras/base
71994 { as_dir=$outdir
71995 case $as_dir in #(
71996 -*) as_dir=./$as_dir;;
71997 esac
71998 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
71999 as_dirs=
72000 while :; do
72001 case $as_dir in #(
72002 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
72003 *) as_qdir=$as_dir;;
72004 esac
72005 as_dirs="'$as_qdir' $as_dirs"
72006 as_dir=`$as_dirname -- "$as_dir" ||
72007 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
72008 X"$as_dir" : 'X\(//\)[^/]' \| \
72009 X"$as_dir" : 'X\(//\)$' \| \
72010 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
72011 echo X"$as_dir" |
72012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
72013 s//\1/
72016 /^X\(\/\/\)[^/].*/{
72017 s//\1/
72020 /^X\(\/\/\)$/{
72021 s//\1/
72024 /^X\(\/\).*/{
72025 s//\1/
72028 s/.*/./; q'`
72029 test -d "$as_dir" && break
72030 done
72031 test -z "$as_dirs" || eval "mkdir $as_dirs"
72032 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
72033 echo "$as_me: error: cannot create directory $as_dir" >&2;}
72034 { (exit 1); exit 1; }; }; }
72036 # remove any previously generated #include files
72037 outfile_real=$outdir/static-components.h
72038 outfile=$outfile_real.new
72039 rm -f $outfile $outfile.struct $outfile.extern
72040 touch $outfile.struct $outfile.extern
72042 # print some nice messages about what we're about to do...
72043 { echo "$as_me:$LINENO: checking for no configure components in framework ras" >&5
72044 echo $ECHO_N "checking for no configure components in framework ras... $ECHO_C" >&6; }
72045 { echo "$as_me:$LINENO: result: dash_host, hostfile, localhost" >&5
72046 echo "${ECHO_T}dash_host, hostfile, localhost" >&6; }
72047 { echo "$as_me:$LINENO: checking for m4 configure components in framework ras" >&5
72048 echo $ECHO_N "checking for m4 configure components in framework ras... $ECHO_C" >&6; }
72049 { echo "$as_me:$LINENO: result: bjs, loadleveler, lsf_bproc, poe, slurm, tm, xgrid" >&5
72050 echo "${ECHO_T}bjs, loadleveler, lsf_bproc, poe, slurm, tm, xgrid" >&6; }
72052 # if we only want the first successful component, set the variable
72053 # happy_value to 0 so we stop on first assignment. Otherwise, set
72054 # it to zero so that components_looking_for_succeed is always 1
72055 happy_value=1
72057 components_looking_for_succeed=1
72059 # configure components that don't have any component-specific
72060 # configuration. See comment in CONFIGURE_PROJECT about the
72061 # m4_ifval
72062 # if there isn't a component list, abort
72065 ompi_show_subsubsubtitle "MCA component ras:dash_host (no configuration)"
72068 project=orte
72069 framework=ras
72070 component=dash_host
72071 component_path="$srcdir/$project/mca/$framework/$component"
72072 want_component=0
72074 # build if:
72075 # - the component type is direct and we are that component
72076 # - there is no ompi_ignore file
72077 # - there is an ompi_ignore, but there is an empty ompi_unignore
72078 # - there is an ompi_ignore, but username is in ompi_unignore
72079 if test -d $component_path ; then
72080 # decide if we want the component to be built or not. This
72081 # is spread out because some of the logic is a little complex
72082 # and test's syntax isn't exactly the greatest. We want to
72083 # build the component by default.
72084 want_component=1
72085 if test -f $component_path/.ompi_ignore ; then
72086 # If there is an ompi_ignore file, don't build
72087 # the component. Note that this decision can be
72088 # overriden by the unignore logic below.
72089 want_component=0
72091 if test -f $component_path/.ompi_unignore ; then
72092 # if there is an empty ompi_unignore, that is
72093 # equivalent to having your userid in the unignore file.
72094 # If userid is in the file, unignore the ignore file.
72095 if test ! -s $component_path/.ompi_unignore ; then
72096 want_component=1
72097 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
72098 want_component=1
72101 # if this component type is direct and we are not it, we don't want
72102 # to be built. Otherwise, we do want to be built.
72103 if test ! -z "$DIRECT_ras" ; then
72104 if test "$DIRECT_ras" = "$component" ; then
72105 want_component=1
72106 else
72107 want_component=0
72112 # if we were explicitly disabled, don't build :)
72113 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
72114 eval $str
72115 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
72116 want_component=0
72119 if test "$want_component" = "1"; then
72120 should_build=$components_looking_for_succeed
72121 else
72122 should_build=0
72127 project=orte
72128 framework=ras
72129 component=dash_host
72131 # Is this component going to built staic or shared? $component
72132 # might not be known until configure time, so have to use eval
72133 # tricks - can't set variable names at autogen time.
72134 str="SHARED_FRAMEWORK=\$DSO_$framework"
72135 eval $str
72136 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
72137 eval $str
72139 str="STATIC_FRAMEWORK=\$STATIC_$framework"
72140 eval $str
72141 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
72142 eval $str
72144 shared_mode_override=static
72146 # Setup for either shared or static
72147 if test "$STATIC_FRAMEWORK" = "1" -o \
72148 "$STATIC_COMPONENT" = "1" -o \
72149 "$STATIC_all" = "1" ; then
72150 compile_mode="static"
72151 elif test "$shared_mode_override" = "dso" -o \
72152 "$SHARED_FRAMEWORK" = "1" -o \
72153 "$SHARED_COMPONENT" = "1" -o \
72154 "$DSO_all" = "1"; then
72155 compile_mode="dso"
72156 else
72157 compile_mode="static"
72160 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
72161 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
72162 if test "$DIRECT_ras" = "$component" ; then
72163 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
72164 echo "${ECHO_T}$compile_mode - direct" >&6; }
72165 else
72166 { echo "$as_me:$LINENO: result: $compile_mode" >&5
72167 echo "${ECHO_T}$compile_mode" >&6; }
72171 if test "$should_build" = "1" ; then
72173 project=orte
72174 framework=ras
72175 component=dash_host
72177 # See if it dropped an output file for us to pick up some
72178 # shell variables in.
72179 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
72181 # Add this subdir to the mast list of all MCA component subdirs
72182 all_components="$all_components $component"
72184 if test "$compile_mode" = "dso" ; then
72185 dso_components="$dso_components $component"
72186 else
72187 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
72188 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
72189 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
72190 static_components="$static_components $component"
72193 # Output pretty results
72194 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
72195 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
72196 { echo "$as_me:$LINENO: result: yes" >&5
72197 echo "${ECHO_T}yes" >&6; }
72199 # If there's an output file, add the values to
72200 # scope_EXTRA_flags.
72201 if test -f $infile; then
72203 # First check for the ABORT tag
72204 line="`grep ABORT= $infile | cut -d= -f2-`"
72205 if test -n "$line" -a "$line" != "no"; then
72206 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
72207 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
72208 { { echo "$as_me:$LINENO: error: cannot continue" >&5
72209 echo "$as_me: error: cannot continue" >&2;}
72210 { (exit 1); exit 1; }; }
72213 # Check for flags passed up from the component. If we're
72214 # compiling statically, then take all flags passed up from the
72215 # component.
72216 if test "$compile_mode" = "static"; then
72217 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
72218 eval "line=$line"
72219 if test -n "$line"; then
72220 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
72222 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
72223 eval "line=$line"
72224 if test -n "$line"; then
72225 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
72229 if test "$DIRECT_ras" = "$component" ; then
72230 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
72231 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
72232 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
72233 eval $str
72234 else
72235 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
72236 *** does not appear to support direct calling.
72237 *** Aborting" >&5
72238 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
72239 *** does not appear to support direct calling.
72240 *** Aborting" >&2;}
72241 { (exit 1); exit 1; }; }
72244 else
72245 # were we supposed to have found something in the
72246 # post_configure.sh, but the file didn't exist?
72247 if test "$DIRECT_ras" = "$component" ; then
72248 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
72249 *** does not appear to support direct calling.
72250 *** Aborting" >&5
72251 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
72252 *** does not appear to support direct calling.
72253 *** Aborting" >&2;}
72254 { (exit 1); exit 1; }; }
72258 # now add the flags that were set in the environment variables
72259 # framework_component_FOO (for example, the flags set by
72260 # m4_configure components)
72262 # Check for flags passed up from the component. If we're
72263 # compiling statically, then take all flags passed up from the
72264 # component.
72265 if test "$compile_mode" = "static"; then
72266 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
72267 eval "$str"
72268 if test -n "$line" ; then
72269 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
72271 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
72272 eval "$str"
72273 if test -n "$line" ; then
72274 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
72278 else
72280 { echo "$as_me:$LINENO: checking if MCA component ras:dash_host can compile" >&5
72281 echo $ECHO_N "checking if MCA component ras:dash_host can compile... $ECHO_C" >&6; }
72282 { echo "$as_me:$LINENO: result: no" >&5
72283 echo "${ECHO_T}no" >&6; }
72285 # If this component was requested as the default for this
72286 # type, then abort.
72287 if test "$with_ras" = "dash_host" ; then
72288 { echo "$as_me:$LINENO: WARNING: MCA component \"dash_host\" failed to configure properly" >&5
72289 echo "$as_me: WARNING: MCA component \"dash_host\" failed to configure properly" >&2;}
72290 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
72291 echo "$as_me: WARNING: This component was selected as the default" >&2;}
72292 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
72293 echo "$as_me: error: Cannot continue" >&2;}
72294 { (exit 1); exit 1; }; }
72295 exit 1
72298 if test ! -z "$DIRECT_ras" ; then
72299 if test "$DIRECT_ras" = "dash_host" ; then
72300 { echo "$as_me:$LINENO: WARNING: MCA component \"dash_host\" failed to configure properly" >&5
72301 echo "$as_me: WARNING: MCA component \"dash_host\" failed to configure properly" >&2;}
72302 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
72303 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
72304 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
72305 echo "$as_me: error: Cannot continue" >&2;}
72306 { (exit 1); exit 1; }; }
72307 exit 1
72311 # add component to all component list
72312 all_components="$all_components dash_host"
72315 # set the AM_CONDITIONAL on how we should build
72316 if test "$compile_mode" = "dso" ; then
72317 BUILD_ras_dash_host_DSO=1
72318 else
72319 BUILD_ras_dash_host_DSO=0
72323 if test "$BUILD_ras_dash_host_DSO" = "1"; then
72324 OMPI_BUILD_ras_dash_host_DSO_TRUE=
72325 OMPI_BUILD_ras_dash_host_DSO_FALSE='#'
72326 else
72327 OMPI_BUILD_ras_dash_host_DSO_TRUE='#'
72328 OMPI_BUILD_ras_dash_host_DSO_FALSE=
72332 unset compile_mode
72334 ompi_show_subsubsubtitle "MCA component ras:hostfile (no configuration)"
72337 project=orte
72338 framework=ras
72339 component=hostfile
72340 component_path="$srcdir/$project/mca/$framework/$component"
72341 want_component=0
72343 # build if:
72344 # - the component type is direct and we are that component
72345 # - there is no ompi_ignore file
72346 # - there is an ompi_ignore, but there is an empty ompi_unignore
72347 # - there is an ompi_ignore, but username is in ompi_unignore
72348 if test -d $component_path ; then
72349 # decide if we want the component to be built or not. This
72350 # is spread out because some of the logic is a little complex
72351 # and test's syntax isn't exactly the greatest. We want to
72352 # build the component by default.
72353 want_component=1
72354 if test -f $component_path/.ompi_ignore ; then
72355 # If there is an ompi_ignore file, don't build
72356 # the component. Note that this decision can be
72357 # overriden by the unignore logic below.
72358 want_component=0
72360 if test -f $component_path/.ompi_unignore ; then
72361 # if there is an empty ompi_unignore, that is
72362 # equivalent to having your userid in the unignore file.
72363 # If userid is in the file, unignore the ignore file.
72364 if test ! -s $component_path/.ompi_unignore ; then
72365 want_component=1
72366 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
72367 want_component=1
72370 # if this component type is direct and we are not it, we don't want
72371 # to be built. Otherwise, we do want to be built.
72372 if test ! -z "$DIRECT_ras" ; then
72373 if test "$DIRECT_ras" = "$component" ; then
72374 want_component=1
72375 else
72376 want_component=0
72381 # if we were explicitly disabled, don't build :)
72382 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
72383 eval $str
72384 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
72385 want_component=0
72388 if test "$want_component" = "1"; then
72389 should_build=$components_looking_for_succeed
72390 else
72391 should_build=0
72396 project=orte
72397 framework=ras
72398 component=hostfile
72400 # Is this component going to built staic or shared? $component
72401 # might not be known until configure time, so have to use eval
72402 # tricks - can't set variable names at autogen time.
72403 str="SHARED_FRAMEWORK=\$DSO_$framework"
72404 eval $str
72405 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
72406 eval $str
72408 str="STATIC_FRAMEWORK=\$STATIC_$framework"
72409 eval $str
72410 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
72411 eval $str
72413 shared_mode_override=static
72415 # Setup for either shared or static
72416 if test "$STATIC_FRAMEWORK" = "1" -o \
72417 "$STATIC_COMPONENT" = "1" -o \
72418 "$STATIC_all" = "1" ; then
72419 compile_mode="static"
72420 elif test "$shared_mode_override" = "dso" -o \
72421 "$SHARED_FRAMEWORK" = "1" -o \
72422 "$SHARED_COMPONENT" = "1" -o \
72423 "$DSO_all" = "1"; then
72424 compile_mode="dso"
72425 else
72426 compile_mode="static"
72429 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
72430 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
72431 if test "$DIRECT_ras" = "$component" ; then
72432 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
72433 echo "${ECHO_T}$compile_mode - direct" >&6; }
72434 else
72435 { echo "$as_me:$LINENO: result: $compile_mode" >&5
72436 echo "${ECHO_T}$compile_mode" >&6; }
72440 if test "$should_build" = "1" ; then
72442 project=orte
72443 framework=ras
72444 component=hostfile
72446 # See if it dropped an output file for us to pick up some
72447 # shell variables in.
72448 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
72450 # Add this subdir to the mast list of all MCA component subdirs
72451 all_components="$all_components $component"
72453 if test "$compile_mode" = "dso" ; then
72454 dso_components="$dso_components $component"
72455 else
72456 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
72457 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
72458 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
72459 static_components="$static_components $component"
72462 # Output pretty results
72463 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
72464 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
72465 { echo "$as_me:$LINENO: result: yes" >&5
72466 echo "${ECHO_T}yes" >&6; }
72468 # If there's an output file, add the values to
72469 # scope_EXTRA_flags.
72470 if test -f $infile; then
72472 # First check for the ABORT tag
72473 line="`grep ABORT= $infile | cut -d= -f2-`"
72474 if test -n "$line" -a "$line" != "no"; then
72475 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
72476 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
72477 { { echo "$as_me:$LINENO: error: cannot continue" >&5
72478 echo "$as_me: error: cannot continue" >&2;}
72479 { (exit 1); exit 1; }; }
72482 # Check for flags passed up from the component. If we're
72483 # compiling statically, then take all flags passed up from the
72484 # component.
72485 if test "$compile_mode" = "static"; then
72486 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
72487 eval "line=$line"
72488 if test -n "$line"; then
72489 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
72491 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
72492 eval "line=$line"
72493 if test -n "$line"; then
72494 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
72498 if test "$DIRECT_ras" = "$component" ; then
72499 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
72500 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
72501 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
72502 eval $str
72503 else
72504 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
72505 *** does not appear to support direct calling.
72506 *** Aborting" >&5
72507 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
72508 *** does not appear to support direct calling.
72509 *** Aborting" >&2;}
72510 { (exit 1); exit 1; }; }
72513 else
72514 # were we supposed to have found something in the
72515 # post_configure.sh, but the file didn't exist?
72516 if test "$DIRECT_ras" = "$component" ; then
72517 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
72518 *** does not appear to support direct calling.
72519 *** Aborting" >&5
72520 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
72521 *** does not appear to support direct calling.
72522 *** Aborting" >&2;}
72523 { (exit 1); exit 1; }; }
72527 # now add the flags that were set in the environment variables
72528 # framework_component_FOO (for example, the flags set by
72529 # m4_configure components)
72531 # Check for flags passed up from the component. If we're
72532 # compiling statically, then take all flags passed up from the
72533 # component.
72534 if test "$compile_mode" = "static"; then
72535 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
72536 eval "$str"
72537 if test -n "$line" ; then
72538 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
72540 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
72541 eval "$str"
72542 if test -n "$line" ; then
72543 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
72547 else
72549 { echo "$as_me:$LINENO: checking if MCA component ras:hostfile can compile" >&5
72550 echo $ECHO_N "checking if MCA component ras:hostfile can compile... $ECHO_C" >&6; }
72551 { echo "$as_me:$LINENO: result: no" >&5
72552 echo "${ECHO_T}no" >&6; }
72554 # If this component was requested as the default for this
72555 # type, then abort.
72556 if test "$with_ras" = "hostfile" ; then
72557 { echo "$as_me:$LINENO: WARNING: MCA component \"hostfile\" failed to configure properly" >&5
72558 echo "$as_me: WARNING: MCA component \"hostfile\" failed to configure properly" >&2;}
72559 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
72560 echo "$as_me: WARNING: This component was selected as the default" >&2;}
72561 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
72562 echo "$as_me: error: Cannot continue" >&2;}
72563 { (exit 1); exit 1; }; }
72564 exit 1
72567 if test ! -z "$DIRECT_ras" ; then
72568 if test "$DIRECT_ras" = "hostfile" ; then
72569 { echo "$as_me:$LINENO: WARNING: MCA component \"hostfile\" failed to configure properly" >&5
72570 echo "$as_me: WARNING: MCA component \"hostfile\" failed to configure properly" >&2;}
72571 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
72572 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
72573 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
72574 echo "$as_me: error: Cannot continue" >&2;}
72575 { (exit 1); exit 1; }; }
72576 exit 1
72580 # add component to all component list
72581 all_components="$all_components hostfile"
72584 # set the AM_CONDITIONAL on how we should build
72585 if test "$compile_mode" = "dso" ; then
72586 BUILD_ras_hostfile_DSO=1
72587 else
72588 BUILD_ras_hostfile_DSO=0
72592 if test "$BUILD_ras_hostfile_DSO" = "1"; then
72593 OMPI_BUILD_ras_hostfile_DSO_TRUE=
72594 OMPI_BUILD_ras_hostfile_DSO_FALSE='#'
72595 else
72596 OMPI_BUILD_ras_hostfile_DSO_TRUE='#'
72597 OMPI_BUILD_ras_hostfile_DSO_FALSE=
72601 unset compile_mode
72603 ompi_show_subsubsubtitle "MCA component ras:localhost (no configuration)"
72606 project=orte
72607 framework=ras
72608 component=localhost
72609 component_path="$srcdir/$project/mca/$framework/$component"
72610 want_component=0
72612 # build if:
72613 # - the component type is direct and we are that component
72614 # - there is no ompi_ignore file
72615 # - there is an ompi_ignore, but there is an empty ompi_unignore
72616 # - there is an ompi_ignore, but username is in ompi_unignore
72617 if test -d $component_path ; then
72618 # decide if we want the component to be built or not. This
72619 # is spread out because some of the logic is a little complex
72620 # and test's syntax isn't exactly the greatest. We want to
72621 # build the component by default.
72622 want_component=1
72623 if test -f $component_path/.ompi_ignore ; then
72624 # If there is an ompi_ignore file, don't build
72625 # the component. Note that this decision can be
72626 # overriden by the unignore logic below.
72627 want_component=0
72629 if test -f $component_path/.ompi_unignore ; then
72630 # if there is an empty ompi_unignore, that is
72631 # equivalent to having your userid in the unignore file.
72632 # If userid is in the file, unignore the ignore file.
72633 if test ! -s $component_path/.ompi_unignore ; then
72634 want_component=1
72635 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
72636 want_component=1
72639 # if this component type is direct and we are not it, we don't want
72640 # to be built. Otherwise, we do want to be built.
72641 if test ! -z "$DIRECT_ras" ; then
72642 if test "$DIRECT_ras" = "$component" ; then
72643 want_component=1
72644 else
72645 want_component=0
72650 # if we were explicitly disabled, don't build :)
72651 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
72652 eval $str
72653 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
72654 want_component=0
72657 if test "$want_component" = "1"; then
72658 should_build=$components_looking_for_succeed
72659 else
72660 should_build=0
72665 project=orte
72666 framework=ras
72667 component=localhost
72669 # Is this component going to built staic or shared? $component
72670 # might not be known until configure time, so have to use eval
72671 # tricks - can't set variable names at autogen time.
72672 str="SHARED_FRAMEWORK=\$DSO_$framework"
72673 eval $str
72674 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
72675 eval $str
72677 str="STATIC_FRAMEWORK=\$STATIC_$framework"
72678 eval $str
72679 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
72680 eval $str
72682 shared_mode_override=static
72684 # Setup for either shared or static
72685 if test "$STATIC_FRAMEWORK" = "1" -o \
72686 "$STATIC_COMPONENT" = "1" -o \
72687 "$STATIC_all" = "1" ; then
72688 compile_mode="static"
72689 elif test "$shared_mode_override" = "dso" -o \
72690 "$SHARED_FRAMEWORK" = "1" -o \
72691 "$SHARED_COMPONENT" = "1" -o \
72692 "$DSO_all" = "1"; then
72693 compile_mode="dso"
72694 else
72695 compile_mode="static"
72698 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
72699 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
72700 if test "$DIRECT_ras" = "$component" ; then
72701 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
72702 echo "${ECHO_T}$compile_mode - direct" >&6; }
72703 else
72704 { echo "$as_me:$LINENO: result: $compile_mode" >&5
72705 echo "${ECHO_T}$compile_mode" >&6; }
72709 if test "$should_build" = "1" ; then
72711 project=orte
72712 framework=ras
72713 component=localhost
72715 # See if it dropped an output file for us to pick up some
72716 # shell variables in.
72717 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
72719 # Add this subdir to the mast list of all MCA component subdirs
72720 all_components="$all_components $component"
72722 if test "$compile_mode" = "dso" ; then
72723 dso_components="$dso_components $component"
72724 else
72725 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
72726 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
72727 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
72728 static_components="$static_components $component"
72731 # Output pretty results
72732 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
72733 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
72734 { echo "$as_me:$LINENO: result: yes" >&5
72735 echo "${ECHO_T}yes" >&6; }
72737 # If there's an output file, add the values to
72738 # scope_EXTRA_flags.
72739 if test -f $infile; then
72741 # First check for the ABORT tag
72742 line="`grep ABORT= $infile | cut -d= -f2-`"
72743 if test -n "$line" -a "$line" != "no"; then
72744 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
72745 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
72746 { { echo "$as_me:$LINENO: error: cannot continue" >&5
72747 echo "$as_me: error: cannot continue" >&2;}
72748 { (exit 1); exit 1; }; }
72751 # Check for flags passed up from the component. If we're
72752 # compiling statically, then take all flags passed up from the
72753 # component.
72754 if test "$compile_mode" = "static"; then
72755 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
72756 eval "line=$line"
72757 if test -n "$line"; then
72758 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
72760 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
72761 eval "line=$line"
72762 if test -n "$line"; then
72763 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
72767 if test "$DIRECT_ras" = "$component" ; then
72768 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
72769 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
72770 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
72771 eval $str
72772 else
72773 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
72774 *** does not appear to support direct calling.
72775 *** Aborting" >&5
72776 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
72777 *** does not appear to support direct calling.
72778 *** Aborting" >&2;}
72779 { (exit 1); exit 1; }; }
72782 else
72783 # were we supposed to have found something in the
72784 # post_configure.sh, but the file didn't exist?
72785 if test "$DIRECT_ras" = "$component" ; then
72786 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
72787 *** does not appear to support direct calling.
72788 *** Aborting" >&5
72789 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
72790 *** does not appear to support direct calling.
72791 *** Aborting" >&2;}
72792 { (exit 1); exit 1; }; }
72796 # now add the flags that were set in the environment variables
72797 # framework_component_FOO (for example, the flags set by
72798 # m4_configure components)
72800 # Check for flags passed up from the component. If we're
72801 # compiling statically, then take all flags passed up from the
72802 # component.
72803 if test "$compile_mode" = "static"; then
72804 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
72805 eval "$str"
72806 if test -n "$line" ; then
72807 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
72809 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
72810 eval "$str"
72811 if test -n "$line" ; then
72812 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
72816 else
72818 { echo "$as_me:$LINENO: checking if MCA component ras:localhost can compile" >&5
72819 echo $ECHO_N "checking if MCA component ras:localhost can compile... $ECHO_C" >&6; }
72820 { echo "$as_me:$LINENO: result: no" >&5
72821 echo "${ECHO_T}no" >&6; }
72823 # If this component was requested as the default for this
72824 # type, then abort.
72825 if test "$with_ras" = "localhost" ; then
72826 { echo "$as_me:$LINENO: WARNING: MCA component \"localhost\" failed to configure properly" >&5
72827 echo "$as_me: WARNING: MCA component \"localhost\" failed to configure properly" >&2;}
72828 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
72829 echo "$as_me: WARNING: This component was selected as the default" >&2;}
72830 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
72831 echo "$as_me: error: Cannot continue" >&2;}
72832 { (exit 1); exit 1; }; }
72833 exit 1
72836 if test ! -z "$DIRECT_ras" ; then
72837 if test "$DIRECT_ras" = "localhost" ; then
72838 { echo "$as_me:$LINENO: WARNING: MCA component \"localhost\" failed to configure properly" >&5
72839 echo "$as_me: WARNING: MCA component \"localhost\" failed to configure properly" >&2;}
72840 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
72841 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
72842 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
72843 echo "$as_me: error: Cannot continue" >&2;}
72844 { (exit 1); exit 1; }; }
72845 exit 1
72849 # add component to all component list
72850 all_components="$all_components localhost"
72853 # set the AM_CONDITIONAL on how we should build
72854 if test "$compile_mode" = "dso" ; then
72855 BUILD_ras_localhost_DSO=1
72856 else
72857 BUILD_ras_localhost_DSO=0
72861 if test "$BUILD_ras_localhost_DSO" = "1"; then
72862 OMPI_BUILD_ras_localhost_DSO_TRUE=
72863 OMPI_BUILD_ras_localhost_DSO_FALSE='#'
72864 else
72865 OMPI_BUILD_ras_localhost_DSO_TRUE='#'
72866 OMPI_BUILD_ras_localhost_DSO_FALSE=
72870 unset compile_mode
72873 # configure components that use built-in configuration scripts
72874 # see comment in CONFIGURE_PROJECT about the m4_ifval
72875 # if there isn't a component list, abort
72878 ompi_show_subsubsubtitle "MCA component ras:bjs (m4 configuration macro)"
72881 project=orte
72882 framework=ras
72883 component=bjs
72884 component_path="$srcdir/$project/mca/$framework/$component"
72885 want_component=0
72887 # build if:
72888 # - the component type is direct and we are that component
72889 # - there is no ompi_ignore file
72890 # - there is an ompi_ignore, but there is an empty ompi_unignore
72891 # - there is an ompi_ignore, but username is in ompi_unignore
72892 if test -d $component_path ; then
72893 # decide if we want the component to be built or not. This
72894 # is spread out because some of the logic is a little complex
72895 # and test's syntax isn't exactly the greatest. We want to
72896 # build the component by default.
72897 want_component=1
72898 if test -f $component_path/.ompi_ignore ; then
72899 # If there is an ompi_ignore file, don't build
72900 # the component. Note that this decision can be
72901 # overriden by the unignore logic below.
72902 want_component=0
72904 if test -f $component_path/.ompi_unignore ; then
72905 # if there is an empty ompi_unignore, that is
72906 # equivalent to having your userid in the unignore file.
72907 # If userid is in the file, unignore the ignore file.
72908 if test ! -s $component_path/.ompi_unignore ; then
72909 want_component=1
72910 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
72911 want_component=1
72914 # if this component type is direct and we are not it, we don't want
72915 # to be built. Otherwise, we do want to be built.
72916 if test ! -z "$DIRECT_ras" ; then
72917 if test "$DIRECT_ras" = "$component" ; then
72918 want_component=1
72919 else
72920 want_component=0
72925 # if we were explicitly disabled, don't build :)
72926 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
72927 eval $str
72928 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
72929 want_component=0
72932 if test "$want_component" = "1"; then
72933 should_build=$components_looking_for_succeed
72934 else
72935 should_build=0
72939 # Allow the component to override the build mode if it really wants to.
72940 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
72942 project=orte
72943 framework=ras
72944 component=bjs
72946 # Is this component going to built staic or shared? $component
72947 # might not be known until configure time, so have to use eval
72948 # tricks - can't set variable names at autogen time.
72949 str="SHARED_FRAMEWORK=\$DSO_$framework"
72950 eval $str
72951 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
72952 eval $str
72954 str="STATIC_FRAMEWORK=\$STATIC_$framework"
72955 eval $str
72956 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
72957 eval $str
72959 shared_mode_override=static
72961 # Setup for either shared or static
72962 if test "$STATIC_FRAMEWORK" = "1" -o \
72963 "$STATIC_COMPONENT" = "1" -o \
72964 "$STATIC_all" = "1" ; then
72965 compile_mode="static"
72966 elif test "$shared_mode_override" = "dso" -o \
72967 "$SHARED_FRAMEWORK" = "1" -o \
72968 "$SHARED_COMPONENT" = "1" -o \
72969 "$DSO_all" = "1"; then
72970 compile_mode="dso"
72971 else
72972 compile_mode="static"
72975 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
72976 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
72977 if test "$DIRECT_ras" = "$component" ; then
72978 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
72979 echo "${ECHO_T}$compile_mode - direct" >&6; }
72980 else
72981 { echo "$as_me:$LINENO: result: $compile_mode" >&5
72982 echo "${ECHO_T}$compile_mode" >&6; }
72986 # try to configure the component. pay no attention to
72987 # --enable-dist, since we'll always have makefiles.
72988 if test "$should_build" = "1"; then
72992 # Check whether --with-bproc was given.
72993 if test "${with_bproc+set}" = set; then
72994 withval=$with_bproc;
72998 if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
72999 ras_bjs_good=0
73000 else
73002 ompi_check_bproc_save_CPPFLAGS="$CPPFLAGS"
73003 ompi_check_bproc_save_LDFLAGS="$LDFLAGS"
73004 ompi_check_bproc_save_LIBS="$LIBS"
73006 if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
73007 CPPFLAGS="$CPPFLAGS -I$with_bproc/include"
73008 LDFLAGS="$LDFLAGS -L$with_bproc/lib"
73012 for ac_header in sys/bproc.h
73014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
73015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
73017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
73018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73019 echo $ECHO_N "(cached) $ECHO_C" >&6
73021 ac_res=`eval echo '${'$as_ac_Header'}'`
73022 { echo "$as_me:$LINENO: result: $ac_res" >&5
73023 echo "${ECHO_T}$ac_res" >&6; }
73024 else
73025 # Is the header compilable?
73026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
73027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
73028 cat >conftest.$ac_ext <<_ACEOF
73029 /* confdefs.h. */
73030 _ACEOF
73031 cat confdefs.h >>conftest.$ac_ext
73032 cat >>conftest.$ac_ext <<_ACEOF
73033 /* end confdefs.h. */
73034 $ac_includes_default
73035 #include <$ac_header>
73036 _ACEOF
73037 rm -f conftest.$ac_objext
73038 if { (ac_try="$ac_compile"
73039 case "(($ac_try" in
73040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73041 *) ac_try_echo=$ac_try;;
73042 esac
73043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
73044 (eval "$ac_compile") 2>conftest.er1
73045 ac_status=$?
73046 grep -v '^ *+' conftest.er1 >conftest.err
73047 rm -f conftest.er1
73048 cat conftest.err >&5
73049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
73050 (exit $ac_status); } && {
73051 test -z "$ac_c_werror_flag" ||
73052 test ! -s conftest.err
73053 } && test -s conftest.$ac_objext; then
73054 ac_header_compiler=yes
73055 else
73056 echo "$as_me: failed program was:" >&5
73057 sed 's/^/| /' conftest.$ac_ext >&5
73059 ac_header_compiler=no
73062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
73064 echo "${ECHO_T}$ac_header_compiler" >&6; }
73066 # Is the header present?
73067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
73068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
73069 cat >conftest.$ac_ext <<_ACEOF
73070 /* confdefs.h. */
73071 _ACEOF
73072 cat confdefs.h >>conftest.$ac_ext
73073 cat >>conftest.$ac_ext <<_ACEOF
73074 /* end confdefs.h. */
73075 #include <$ac_header>
73076 _ACEOF
73077 if { (ac_try="$ac_cpp conftest.$ac_ext"
73078 case "(($ac_try" in
73079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73080 *) ac_try_echo=$ac_try;;
73081 esac
73082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
73083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
73084 ac_status=$?
73085 grep -v '^ *+' conftest.er1 >conftest.err
73086 rm -f conftest.er1
73087 cat conftest.err >&5
73088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
73089 (exit $ac_status); } >/dev/null && {
73090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
73091 test ! -s conftest.err
73092 }; then
73093 ac_header_preproc=yes
73094 else
73095 echo "$as_me: failed program was:" >&5
73096 sed 's/^/| /' conftest.$ac_ext >&5
73098 ac_header_preproc=no
73101 rm -f conftest.err conftest.$ac_ext
73102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
73103 echo "${ECHO_T}$ac_header_preproc" >&6; }
73105 # So? What about this header?
73106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
73107 yes:no: )
73108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
73109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
73110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
73111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
73112 ac_header_preproc=yes
73114 no:yes:* )
73115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
73116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
73117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
73118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
73119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
73120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
73121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
73122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
73123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
73124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
73125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
73126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
73127 ( cat <<\_ASBOX
73128 ## ------------------------------------------------------ ##
73129 ## Report this to http://www.open-mpi.org/community/help/ ##
73130 ## ------------------------------------------------------ ##
73131 _ASBOX
73132 ) | sed "s/^/$as_me: WARNING: /" >&2
73134 esac
73135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
73136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
73137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73138 echo $ECHO_N "(cached) $ECHO_C" >&6
73139 else
73140 eval "$as_ac_Header=\$ac_header_preproc"
73142 ac_res=`eval echo '${'$as_ac_Header'}'`
73143 { echo "$as_me:$LINENO: result: $ac_res" >&5
73144 echo "${ECHO_T}$ac_res" >&6; }
73147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
73148 cat >>confdefs.h <<_ACEOF
73149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
73150 _ACEOF
73151 { echo "$as_me:$LINENO: checking for bproc_numnodes in -lbproc" >&5
73152 echo $ECHO_N "checking for bproc_numnodes in -lbproc... $ECHO_C" >&6; }
73153 if test "${ac_cv_lib_bproc_bproc_numnodes+set}" = set; then
73154 echo $ECHO_N "(cached) $ECHO_C" >&6
73155 else
73156 ac_check_lib_save_LIBS=$LIBS
73157 LIBS="-lbproc $LIBS"
73158 cat >conftest.$ac_ext <<_ACEOF
73159 /* confdefs.h. */
73160 _ACEOF
73161 cat confdefs.h >>conftest.$ac_ext
73162 cat >>conftest.$ac_ext <<_ACEOF
73163 /* end confdefs.h. */
73165 /* Override any GCC internal prototype to avoid an error.
73166 Use char because int might match the return type of a GCC
73167 builtin and then its argument prototype would still apply. */
73168 #ifdef __cplusplus
73169 extern "C"
73170 #endif
73171 char bproc_numnodes ();
73173 main ()
73175 return bproc_numnodes ();
73177 return 0;
73179 _ACEOF
73180 rm -f conftest.$ac_objext conftest$ac_exeext
73181 if { (ac_try="$ac_link"
73182 case "(($ac_try" in
73183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73184 *) ac_try_echo=$ac_try;;
73185 esac
73186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
73187 (eval "$ac_link") 2>conftest.er1
73188 ac_status=$?
73189 grep -v '^ *+' conftest.er1 >conftest.err
73190 rm -f conftest.er1
73191 cat conftest.err >&5
73192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
73193 (exit $ac_status); } && {
73194 test -z "$ac_c_werror_flag" ||
73195 test ! -s conftest.err
73196 } && test -s conftest$ac_exeext &&
73197 $as_test_x conftest$ac_exeext; then
73198 ac_cv_lib_bproc_bproc_numnodes=yes
73199 else
73200 echo "$as_me: failed program was:" >&5
73201 sed 's/^/| /' conftest.$ac_ext >&5
73203 ac_cv_lib_bproc_bproc_numnodes=no
73206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73207 conftest$ac_exeext conftest.$ac_ext
73208 LIBS=$ac_check_lib_save_LIBS
73210 { echo "$as_me:$LINENO: result: $ac_cv_lib_bproc_bproc_numnodes" >&5
73211 echo "${ECHO_T}$ac_cv_lib_bproc_bproc_numnodes" >&6; }
73212 if test $ac_cv_lib_bproc_bproc_numnodes = yes; then
73213 ompi_check_bproc_happy="yes"
73214 else
73215 ompi_check_bproc_happy="no"
73218 else
73219 ompi_check_bproc_happy="no"
73222 done
73225 # Check for Scyld bproc or an old version of LANL Bproc (pre 3.2.0)
73226 if test "$ompi_check_bproc_happy" = "yes"; then
73228 for ac_header in sys/bproc_common.h
73230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
73231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
73232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
73233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73234 echo $ECHO_N "(cached) $ECHO_C" >&6
73235 else
73236 cat >conftest.$ac_ext <<_ACEOF
73237 /* confdefs.h. */
73238 _ACEOF
73239 cat confdefs.h >>conftest.$ac_ext
73240 cat >>conftest.$ac_ext <<_ACEOF
73241 /* end confdefs.h. */
73242 #include <stdint.h>
73243 #include <sys/socket.h>
73245 #include <$ac_header>
73246 _ACEOF
73247 rm -f conftest.$ac_objext
73248 if { (ac_try="$ac_compile"
73249 case "(($ac_try" in
73250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73251 *) ac_try_echo=$ac_try;;
73252 esac
73253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
73254 (eval "$ac_compile") 2>conftest.er1
73255 ac_status=$?
73256 grep -v '^ *+' conftest.er1 >conftest.err
73257 rm -f conftest.er1
73258 cat conftest.err >&5
73259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
73260 (exit $ac_status); } && {
73261 test -z "$ac_c_werror_flag" ||
73262 test ! -s conftest.err
73263 } && test -s conftest.$ac_objext; then
73264 eval "$as_ac_Header=yes"
73265 else
73266 echo "$as_me: failed program was:" >&5
73267 sed 's/^/| /' conftest.$ac_ext >&5
73269 eval "$as_ac_Header=no"
73272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73274 ac_res=`eval echo '${'$as_ac_Header'}'`
73275 { echo "$as_me:$LINENO: result: $ac_res" >&5
73276 echo "${ECHO_T}$ac_res" >&6; }
73277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
73278 cat >>confdefs.h <<_ACEOF
73279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
73280 _ACEOF
73281 ompi_check_bproc_happy="new"
73282 else
73283 ompi_check_bproc_happy="old"
73286 done
73291 CPPFLAGS="$ompi_check_bproc_save_CPPFLAGS"
73292 LDFLAGS="$ompi_check_bproc_save_LDFLAGS"
73293 LIBS="$ompi_check_bproc_save_LIBS"
73295 if test "$ompi_check_bproc_happy" != "no"; then
73296 if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
73297 ras_bjs_CPPFLAGS="$ras_bjs_CPPFLAGS -I$with_bproc/include"
73298 ras_bjs_LDFLAGS="$ras_bjs_LDFLAGS -L$with_bproc/lib"
73301 ras_bjs_LIBS="$ras_bjs_LIBS -lbproc"
73302 if test "$ompi_check_bproc_happy" = "new"; then
73303 ras_bjs_good=1
73304 else
73305 ras_bjs_good=1
73308 else
73309 if test ! -z "$with_bproc"; then
73310 { { echo "$as_me:$LINENO: error: BProc support request but not found. Perhaps
73311 you need to specify the location of the BProc libraries." >&5
73312 echo "$as_me: error: BProc support request but not found. Perhaps
73313 you need to specify the location of the BProc libraries." >&2;}
73314 { (exit 1); exit 1; }; }
73317 ras_bjs_good=0
73325 # if check worked, set wrapper flags if so.
73326 # Evaluate succeed / fail
73327 if test "$ras_bjs_good" = "1"; then
73328 ras_bjs_WRAPPER_EXTRA_LDFLAGS="$ras_bjs_LDFLAGS"
73329 ras_bjs_WRAPPER_EXTRA_LIBS="$ras_bjs_LIBS"
73330 should_build=1
73331 else
73332 should_build=0
73336 # set build flags to use in makefile
73344 if test "$should_build" = "1"; then
73346 project=orte
73347 framework=ras
73348 component=bjs
73350 # See if it dropped an output file for us to pick up some
73351 # shell variables in.
73352 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
73354 # Add this subdir to the mast list of all MCA component subdirs
73355 all_components="$all_components $component"
73357 if test "$compile_mode" = "dso" ; then
73358 dso_components="$dso_components $component"
73359 else
73360 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
73361 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
73362 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
73363 static_components="$static_components $component"
73366 # Output pretty results
73367 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
73368 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
73369 { echo "$as_me:$LINENO: result: yes" >&5
73370 echo "${ECHO_T}yes" >&6; }
73372 # If there's an output file, add the values to
73373 # scope_EXTRA_flags.
73374 if test -f $infile; then
73376 # First check for the ABORT tag
73377 line="`grep ABORT= $infile | cut -d= -f2-`"
73378 if test -n "$line" -a "$line" != "no"; then
73379 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
73380 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
73381 { { echo "$as_me:$LINENO: error: cannot continue" >&5
73382 echo "$as_me: error: cannot continue" >&2;}
73383 { (exit 1); exit 1; }; }
73386 # Check for flags passed up from the component. If we're
73387 # compiling statically, then take all flags passed up from the
73388 # component.
73389 if test "$compile_mode" = "static"; then
73390 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
73391 eval "line=$line"
73392 if test -n "$line"; then
73393 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
73395 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
73396 eval "line=$line"
73397 if test -n "$line"; then
73398 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
73402 if test "$DIRECT_ras" = "$component" ; then
73403 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
73404 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
73405 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
73406 eval $str
73407 else
73408 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
73409 *** does not appear to support direct calling.
73410 *** Aborting" >&5
73411 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
73412 *** does not appear to support direct calling.
73413 *** Aborting" >&2;}
73414 { (exit 1); exit 1; }; }
73417 else
73418 # were we supposed to have found something in the
73419 # post_configure.sh, but the file didn't exist?
73420 if test "$DIRECT_ras" = "$component" ; then
73421 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
73422 *** does not appear to support direct calling.
73423 *** Aborting" >&5
73424 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
73425 *** does not appear to support direct calling.
73426 *** Aborting" >&2;}
73427 { (exit 1); exit 1; }; }
73431 # now add the flags that were set in the environment variables
73432 # framework_component_FOO (for example, the flags set by
73433 # m4_configure components)
73435 # Check for flags passed up from the component. If we're
73436 # compiling statically, then take all flags passed up from the
73437 # component.
73438 if test "$compile_mode" = "static"; then
73439 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
73440 eval "$str"
73441 if test -n "$line" ; then
73442 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
73444 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
73445 eval "$str"
73446 if test -n "$line" ; then
73447 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
73451 else
73453 { echo "$as_me:$LINENO: checking if MCA component ras:bjs can compile" >&5
73454 echo $ECHO_N "checking if MCA component ras:bjs can compile... $ECHO_C" >&6; }
73455 { echo "$as_me:$LINENO: result: no" >&5
73456 echo "${ECHO_T}no" >&6; }
73458 # If this component was requested as the default for this
73459 # type, then abort.
73460 if test "$with_ras" = "bjs" ; then
73461 { echo "$as_me:$LINENO: WARNING: MCA component \"bjs\" failed to configure properly" >&5
73462 echo "$as_me: WARNING: MCA component \"bjs\" failed to configure properly" >&2;}
73463 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
73464 echo "$as_me: WARNING: This component was selected as the default" >&2;}
73465 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
73466 echo "$as_me: error: Cannot continue" >&2;}
73467 { (exit 1); exit 1; }; }
73468 exit 1
73471 if test ! -z "$DIRECT_ras" ; then
73472 if test "$DIRECT_ras" = "bjs" ; then
73473 { echo "$as_me:$LINENO: WARNING: MCA component \"bjs\" failed to configure properly" >&5
73474 echo "$as_me: WARNING: MCA component \"bjs\" failed to configure properly" >&2;}
73475 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
73476 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
73477 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
73478 echo "$as_me: error: Cannot continue" >&2;}
73479 { (exit 1); exit 1; }; }
73480 exit 1
73484 # add component to all component list
73485 all_components="$all_components bjs"
73489 # set the AM_CONDITIONAL on how we should build
73490 if test "$compile_mode" = "dso"; then
73491 BUILD_ras_bjs_DSO=1
73492 else
73493 BUILD_ras_bjs_DSO=0
73498 if test "$BUILD_ras_bjs_DSO" = "1"; then
73499 OMPI_BUILD_ras_bjs_DSO_TRUE=
73500 OMPI_BUILD_ras_bjs_DSO_FALSE='#'
73501 else
73502 OMPI_BUILD_ras_bjs_DSO_TRUE='#'
73503 OMPI_BUILD_ras_bjs_DSO_FALSE=
73507 if test "$should_build" = "1"; then
73508 components_looking_for_succeed="$happy_value"
73512 unset compile_mode
73514 ompi_show_subsubsubtitle "MCA component ras:loadleveler (m4 configuration macro)"
73517 project=orte
73518 framework=ras
73519 component=loadleveler
73520 component_path="$srcdir/$project/mca/$framework/$component"
73521 want_component=0
73523 # build if:
73524 # - the component type is direct and we are that component
73525 # - there is no ompi_ignore file
73526 # - there is an ompi_ignore, but there is an empty ompi_unignore
73527 # - there is an ompi_ignore, but username is in ompi_unignore
73528 if test -d $component_path ; then
73529 # decide if we want the component to be built or not. This
73530 # is spread out because some of the logic is a little complex
73531 # and test's syntax isn't exactly the greatest. We want to
73532 # build the component by default.
73533 want_component=1
73534 if test -f $component_path/.ompi_ignore ; then
73535 # If there is an ompi_ignore file, don't build
73536 # the component. Note that this decision can be
73537 # overriden by the unignore logic below.
73538 want_component=0
73540 if test -f $component_path/.ompi_unignore ; then
73541 # if there is an empty ompi_unignore, that is
73542 # equivalent to having your userid in the unignore file.
73543 # If userid is in the file, unignore the ignore file.
73544 if test ! -s $component_path/.ompi_unignore ; then
73545 want_component=1
73546 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
73547 want_component=1
73550 # if this component type is direct and we are not it, we don't want
73551 # to be built. Otherwise, we do want to be built.
73552 if test ! -z "$DIRECT_ras" ; then
73553 if test "$DIRECT_ras" = "$component" ; then
73554 want_component=1
73555 else
73556 want_component=0
73561 # if we were explicitly disabled, don't build :)
73562 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
73563 eval $str
73564 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
73565 want_component=0
73568 if test "$want_component" = "1"; then
73569 should_build=$components_looking_for_succeed
73570 else
73571 should_build=0
73575 # Allow the component to override the build mode if it really wants to.
73576 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
73578 project=orte
73579 framework=ras
73580 component=loadleveler
73582 # Is this component going to built staic or shared? $component
73583 # might not be known until configure time, so have to use eval
73584 # tricks - can't set variable names at autogen time.
73585 str="SHARED_FRAMEWORK=\$DSO_$framework"
73586 eval $str
73587 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
73588 eval $str
73590 str="STATIC_FRAMEWORK=\$STATIC_$framework"
73591 eval $str
73592 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
73593 eval $str
73595 shared_mode_override=static
73597 # Setup for either shared or static
73598 if test "$STATIC_FRAMEWORK" = "1" -o \
73599 "$STATIC_COMPONENT" = "1" -o \
73600 "$STATIC_all" = "1" ; then
73601 compile_mode="static"
73602 elif test "$shared_mode_override" = "dso" -o \
73603 "$SHARED_FRAMEWORK" = "1" -o \
73604 "$SHARED_COMPONENT" = "1" -o \
73605 "$DSO_all" = "1"; then
73606 compile_mode="dso"
73607 else
73608 compile_mode="static"
73611 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
73612 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
73613 if test "$DIRECT_ras" = "$component" ; then
73614 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
73615 echo "${ECHO_T}$compile_mode - direct" >&6; }
73616 else
73617 { echo "$as_me:$LINENO: result: $compile_mode" >&5
73618 echo "${ECHO_T}$compile_mode" >&6; }
73622 # try to configure the component. pay no attention to
73623 # --enable-dist, since we'll always have makefiles.
73624 if test "$should_build" = "1"; then
73628 # Check whether --with-loadleveler was given.
73629 if test "${with_loadleveler+set}" = set; then
73630 withval=$with_loadleveler;
73634 if test "$with_loadleveler" = "no"; then
73635 ompi_check_loadleveler_hapy="no"
73636 else
73637 ompi_check_loadleveler_happy="yes"
73638 if test ! -z "$with_loadleveler" -a "$with_loadleveler" != "yes"; then
73639 ompi_check_loadleveler_dir="$with_loadleveler"
73640 else
73641 ompi_check_loadleveler_dir=""
73647 if test "$ompi_check_loadleveler_happy" = "yes"; then
73649 ompi_check_package_ras_loadleveler_save_CPPFLAGS="$CPPFLAGS"
73650 ompi_check_package_ras_loadleveler_save_LDFLAGS="$LDFLAGS"
73651 ompi_check_package_ras_loadleveler_save_LIBS="$LIBS"
73653 ompi_check_package_ras_loadleveler_orig_CPPFLAGS="$ras_loadleveler_CPPFLAGS"
73654 ompi_check_package_ras_loadleveler_orig_LDFLAGS="$ras_loadleveler_LDFLAGS"
73655 ompi_check_package_ras_loadleveler_orig_LIBS="$ras_loadleveler_LIBS"
73658 # This is stolen from autoconf to peek under the covers to get the
73659 # cache variable for the library check. one should not copy this
73660 # code into other places unless you want much pain and suffering
73663 # so this sucks, but there's no way to get through the progression
73664 # of header includes without killing off the cache variable and trying
73665 # again...
73666 unset ac_cv_header_llapi_h
73668 ompi_check_package_header_happy="no"
73669 if test "$ompi_check_loadleveler_dir" = "/usr" -o "$ompi_check_loadleveler_dir" = "/usr/local"; then
73670 # try as is...
73671 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
73672 echo "${ECHO_T}looking for header without includes" >&6; }
73673 if test "${ac_cv_header_llapi_h+set}" = set; then
73674 { echo "$as_me:$LINENO: checking for llapi.h" >&5
73675 echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; }
73676 if test "${ac_cv_header_llapi_h+set}" = set; then
73677 echo $ECHO_N "(cached) $ECHO_C" >&6
73679 { echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5
73680 echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; }
73681 else
73682 # Is the header compilable?
73683 { echo "$as_me:$LINENO: checking llapi.h usability" >&5
73684 echo $ECHO_N "checking llapi.h usability... $ECHO_C" >&6; }
73685 cat >conftest.$ac_ext <<_ACEOF
73686 /* confdefs.h. */
73687 _ACEOF
73688 cat confdefs.h >>conftest.$ac_ext
73689 cat >>conftest.$ac_ext <<_ACEOF
73690 /* end confdefs.h. */
73691 $ac_includes_default
73692 #include <llapi.h>
73693 _ACEOF
73694 rm -f conftest.$ac_objext
73695 if { (ac_try="$ac_compile"
73696 case "(($ac_try" in
73697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73698 *) ac_try_echo=$ac_try;;
73699 esac
73700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
73701 (eval "$ac_compile") 2>conftest.er1
73702 ac_status=$?
73703 grep -v '^ *+' conftest.er1 >conftest.err
73704 rm -f conftest.er1
73705 cat conftest.err >&5
73706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
73707 (exit $ac_status); } && {
73708 test -z "$ac_c_werror_flag" ||
73709 test ! -s conftest.err
73710 } && test -s conftest.$ac_objext; then
73711 ac_header_compiler=yes
73712 else
73713 echo "$as_me: failed program was:" >&5
73714 sed 's/^/| /' conftest.$ac_ext >&5
73716 ac_header_compiler=no
73719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
73721 echo "${ECHO_T}$ac_header_compiler" >&6; }
73723 # Is the header present?
73724 { echo "$as_me:$LINENO: checking llapi.h presence" >&5
73725 echo $ECHO_N "checking llapi.h presence... $ECHO_C" >&6; }
73726 cat >conftest.$ac_ext <<_ACEOF
73727 /* confdefs.h. */
73728 _ACEOF
73729 cat confdefs.h >>conftest.$ac_ext
73730 cat >>conftest.$ac_ext <<_ACEOF
73731 /* end confdefs.h. */
73732 #include <llapi.h>
73733 _ACEOF
73734 if { (ac_try="$ac_cpp conftest.$ac_ext"
73735 case "(($ac_try" in
73736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73737 *) ac_try_echo=$ac_try;;
73738 esac
73739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
73740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
73741 ac_status=$?
73742 grep -v '^ *+' conftest.er1 >conftest.err
73743 rm -f conftest.er1
73744 cat conftest.err >&5
73745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
73746 (exit $ac_status); } >/dev/null && {
73747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
73748 test ! -s conftest.err
73749 }; then
73750 ac_header_preproc=yes
73751 else
73752 echo "$as_me: failed program was:" >&5
73753 sed 's/^/| /' conftest.$ac_ext >&5
73755 ac_header_preproc=no
73758 rm -f conftest.err conftest.$ac_ext
73759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
73760 echo "${ECHO_T}$ac_header_preproc" >&6; }
73762 # So? What about this header?
73763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
73764 yes:no: )
73765 { echo "$as_me:$LINENO: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
73766 echo "$as_me: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
73767 { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the compiler's result" >&5
73768 echo "$as_me: WARNING: llapi.h: proceeding with the compiler's result" >&2;}
73769 ac_header_preproc=yes
73771 no:yes:* )
73772 { echo "$as_me:$LINENO: WARNING: llapi.h: present but cannot be compiled" >&5
73773 echo "$as_me: WARNING: llapi.h: present but cannot be compiled" >&2;}
73774 { echo "$as_me:$LINENO: WARNING: llapi.h: check for missing prerequisite headers?" >&5
73775 echo "$as_me: WARNING: llapi.h: check for missing prerequisite headers?" >&2;}
73776 { echo "$as_me:$LINENO: WARNING: llapi.h: see the Autoconf documentation" >&5
73777 echo "$as_me: WARNING: llapi.h: see the Autoconf documentation" >&2;}
73778 { echo "$as_me:$LINENO: WARNING: llapi.h: section \"Present But Cannot Be Compiled\"" >&5
73779 echo "$as_me: WARNING: llapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
73780 { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the preprocessor's result" >&5
73781 echo "$as_me: WARNING: llapi.h: proceeding with the preprocessor's result" >&2;}
73782 { echo "$as_me:$LINENO: WARNING: llapi.h: in the future, the compiler will take precedence" >&5
73783 echo "$as_me: WARNING: llapi.h: in the future, the compiler will take precedence" >&2;}
73784 ( cat <<\_ASBOX
73785 ## ------------------------------------------------------ ##
73786 ## Report this to http://www.open-mpi.org/community/help/ ##
73787 ## ------------------------------------------------------ ##
73788 _ASBOX
73789 ) | sed "s/^/$as_me: WARNING: /" >&2
73791 esac
73792 { echo "$as_me:$LINENO: checking for llapi.h" >&5
73793 echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; }
73794 if test "${ac_cv_header_llapi_h+set}" = set; then
73795 echo $ECHO_N "(cached) $ECHO_C" >&6
73796 else
73797 ac_cv_header_llapi_h=$ac_header_preproc
73799 { echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5
73800 echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; }
73803 if test $ac_cv_header_llapi_h = yes; then
73804 ompi_check_package_header_happy="yes"
73805 else
73806 ompi_check_package_header_happy="no"
73810 if test "$ompi_check_package_header_happy" = "no"; then
73811 # no go on the as is - reset the cache and try again
73812 unset ac_cv_header_llapi_h
73818 if test "$ompi_check_package_header_happy" = "no"; then
73819 if test "$ompi_check_loadleveler_dir" != ""; then
73820 ras_loadleveler_CPPFLAGS="$ras_loadleveler_CPPFLAGS -I$ompi_check_loadleveler_dir/include"
73821 CPPFLAGS="$CPPFLAGS -I$ompi_check_loadleveler_dir/include"
73824 if test "${ac_cv_header_llapi_h+set}" = set; then
73825 { echo "$as_me:$LINENO: checking for llapi.h" >&5
73826 echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; }
73827 if test "${ac_cv_header_llapi_h+set}" = set; then
73828 echo $ECHO_N "(cached) $ECHO_C" >&6
73830 { echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5
73831 echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; }
73832 else
73833 # Is the header compilable?
73834 { echo "$as_me:$LINENO: checking llapi.h usability" >&5
73835 echo $ECHO_N "checking llapi.h usability... $ECHO_C" >&6; }
73836 cat >conftest.$ac_ext <<_ACEOF
73837 /* confdefs.h. */
73838 _ACEOF
73839 cat confdefs.h >>conftest.$ac_ext
73840 cat >>conftest.$ac_ext <<_ACEOF
73841 /* end confdefs.h. */
73842 $ac_includes_default
73843 #include <llapi.h>
73844 _ACEOF
73845 rm -f conftest.$ac_objext
73846 if { (ac_try="$ac_compile"
73847 case "(($ac_try" in
73848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73849 *) ac_try_echo=$ac_try;;
73850 esac
73851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
73852 (eval "$ac_compile") 2>conftest.er1
73853 ac_status=$?
73854 grep -v '^ *+' conftest.er1 >conftest.err
73855 rm -f conftest.er1
73856 cat conftest.err >&5
73857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
73858 (exit $ac_status); } && {
73859 test -z "$ac_c_werror_flag" ||
73860 test ! -s conftest.err
73861 } && test -s conftest.$ac_objext; then
73862 ac_header_compiler=yes
73863 else
73864 echo "$as_me: failed program was:" >&5
73865 sed 's/^/| /' conftest.$ac_ext >&5
73867 ac_header_compiler=no
73870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
73872 echo "${ECHO_T}$ac_header_compiler" >&6; }
73874 # Is the header present?
73875 { echo "$as_me:$LINENO: checking llapi.h presence" >&5
73876 echo $ECHO_N "checking llapi.h presence... $ECHO_C" >&6; }
73877 cat >conftest.$ac_ext <<_ACEOF
73878 /* confdefs.h. */
73879 _ACEOF
73880 cat confdefs.h >>conftest.$ac_ext
73881 cat >>conftest.$ac_ext <<_ACEOF
73882 /* end confdefs.h. */
73883 #include <llapi.h>
73884 _ACEOF
73885 if { (ac_try="$ac_cpp conftest.$ac_ext"
73886 case "(($ac_try" in
73887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73888 *) ac_try_echo=$ac_try;;
73889 esac
73890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
73891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
73892 ac_status=$?
73893 grep -v '^ *+' conftest.er1 >conftest.err
73894 rm -f conftest.er1
73895 cat conftest.err >&5
73896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
73897 (exit $ac_status); } >/dev/null && {
73898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
73899 test ! -s conftest.err
73900 }; then
73901 ac_header_preproc=yes
73902 else
73903 echo "$as_me: failed program was:" >&5
73904 sed 's/^/| /' conftest.$ac_ext >&5
73906 ac_header_preproc=no
73909 rm -f conftest.err conftest.$ac_ext
73910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
73911 echo "${ECHO_T}$ac_header_preproc" >&6; }
73913 # So? What about this header?
73914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
73915 yes:no: )
73916 { echo "$as_me:$LINENO: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
73917 echo "$as_me: WARNING: llapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
73918 { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the compiler's result" >&5
73919 echo "$as_me: WARNING: llapi.h: proceeding with the compiler's result" >&2;}
73920 ac_header_preproc=yes
73922 no:yes:* )
73923 { echo "$as_me:$LINENO: WARNING: llapi.h: present but cannot be compiled" >&5
73924 echo "$as_me: WARNING: llapi.h: present but cannot be compiled" >&2;}
73925 { echo "$as_me:$LINENO: WARNING: llapi.h: check for missing prerequisite headers?" >&5
73926 echo "$as_me: WARNING: llapi.h: check for missing prerequisite headers?" >&2;}
73927 { echo "$as_me:$LINENO: WARNING: llapi.h: see the Autoconf documentation" >&5
73928 echo "$as_me: WARNING: llapi.h: see the Autoconf documentation" >&2;}
73929 { echo "$as_me:$LINENO: WARNING: llapi.h: section \"Present But Cannot Be Compiled\"" >&5
73930 echo "$as_me: WARNING: llapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
73931 { echo "$as_me:$LINENO: WARNING: llapi.h: proceeding with the preprocessor's result" >&5
73932 echo "$as_me: WARNING: llapi.h: proceeding with the preprocessor's result" >&2;}
73933 { echo "$as_me:$LINENO: WARNING: llapi.h: in the future, the compiler will take precedence" >&5
73934 echo "$as_me: WARNING: llapi.h: in the future, the compiler will take precedence" >&2;}
73935 ( cat <<\_ASBOX
73936 ## ------------------------------------------------------ ##
73937 ## Report this to http://www.open-mpi.org/community/help/ ##
73938 ## ------------------------------------------------------ ##
73939 _ASBOX
73940 ) | sed "s/^/$as_me: WARNING: /" >&2
73942 esac
73943 { echo "$as_me:$LINENO: checking for llapi.h" >&5
73944 echo $ECHO_N "checking for llapi.h... $ECHO_C" >&6; }
73945 if test "${ac_cv_header_llapi_h+set}" = set; then
73946 echo $ECHO_N "(cached) $ECHO_C" >&6
73947 else
73948 ac_cv_header_llapi_h=$ac_header_preproc
73950 { echo "$as_me:$LINENO: result: $ac_cv_header_llapi_h" >&5
73951 echo "${ECHO_T}$ac_cv_header_llapi_h" >&6; }
73954 if test $ac_cv_header_llapi_h = yes; then
73956 # This is stolen from autoconf to peek under the covers to get the
73957 # cache variable for the library check. one should not copy this
73958 # code into other places unless you want much pain and suffering
73960 # see comment above
73961 unset ac_cv_lib_llapi_ll_query
73962 ompi_check_package_lib_happy="no"
73963 if test "" != ""; then
73964 # libdir was specified - search only there
73965 ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L"
73966 LDFLAGS="$LDFLAGS -L"
73967 { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
73968 echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
73969 if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
73970 echo $ECHO_N "(cached) $ECHO_C" >&6
73971 else
73972 ac_check_lib_save_LIBS=$LIBS
73973 LIBS="-lllapi $LIBS"
73974 cat >conftest.$ac_ext <<_ACEOF
73975 /* confdefs.h. */
73976 _ACEOF
73977 cat confdefs.h >>conftest.$ac_ext
73978 cat >>conftest.$ac_ext <<_ACEOF
73979 /* end confdefs.h. */
73981 /* Override any GCC internal prototype to avoid an error.
73982 Use char because int might match the return type of a GCC
73983 builtin and then its argument prototype would still apply. */
73984 #ifdef __cplusplus
73985 extern "C"
73986 #endif
73987 char ll_query ();
73989 main ()
73991 return ll_query ();
73993 return 0;
73995 _ACEOF
73996 rm -f conftest.$ac_objext conftest$ac_exeext
73997 if { (ac_try="$ac_link"
73998 case "(($ac_try" in
73999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74000 *) ac_try_echo=$ac_try;;
74001 esac
74002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
74003 (eval "$ac_link") 2>conftest.er1
74004 ac_status=$?
74005 grep -v '^ *+' conftest.er1 >conftest.err
74006 rm -f conftest.er1
74007 cat conftest.err >&5
74008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
74009 (exit $ac_status); } && {
74010 test -z "$ac_c_werror_flag" ||
74011 test ! -s conftest.err
74012 } && test -s conftest$ac_exeext &&
74013 $as_test_x conftest$ac_exeext; then
74014 ac_cv_lib_llapi_ll_query=yes
74015 else
74016 echo "$as_me: failed program was:" >&5
74017 sed 's/^/| /' conftest.$ac_ext >&5
74019 ac_cv_lib_llapi_ll_query=no
74022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
74023 conftest$ac_exeext conftest.$ac_ext
74024 LIBS=$ac_check_lib_save_LIBS
74026 { echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
74027 echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
74028 if test $ac_cv_lib_llapi_ll_query = yes; then
74029 ompi_check_package_lib_happy="yes"
74030 else
74031 ompi_check_package_lib_happy="no"
74034 if test "$ompi_check_package_lib_happy" = "no"; then
74035 LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS"
74036 ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
74037 unset ac_cv_lib_llapi_ll_query
74040 else
74041 # libdir was not specified - go through search path
74042 ompi_check_package_libdir="$ompi_check_loadleveler_dir"
74043 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
74044 # try as is...
74045 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
74046 echo "${ECHO_T}looking for library without search path" >&6; }
74047 { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
74048 echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
74049 if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
74050 echo $ECHO_N "(cached) $ECHO_C" >&6
74051 else
74052 ac_check_lib_save_LIBS=$LIBS
74053 LIBS="-lllapi $LIBS"
74054 cat >conftest.$ac_ext <<_ACEOF
74055 /* confdefs.h. */
74056 _ACEOF
74057 cat confdefs.h >>conftest.$ac_ext
74058 cat >>conftest.$ac_ext <<_ACEOF
74059 /* end confdefs.h. */
74061 /* Override any GCC internal prototype to avoid an error.
74062 Use char because int might match the return type of a GCC
74063 builtin and then its argument prototype would still apply. */
74064 #ifdef __cplusplus
74065 extern "C"
74066 #endif
74067 char ll_query ();
74069 main ()
74071 return ll_query ();
74073 return 0;
74075 _ACEOF
74076 rm -f conftest.$ac_objext conftest$ac_exeext
74077 if { (ac_try="$ac_link"
74078 case "(($ac_try" in
74079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74080 *) ac_try_echo=$ac_try;;
74081 esac
74082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
74083 (eval "$ac_link") 2>conftest.er1
74084 ac_status=$?
74085 grep -v '^ *+' conftest.er1 >conftest.err
74086 rm -f conftest.er1
74087 cat conftest.err >&5
74088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
74089 (exit $ac_status); } && {
74090 test -z "$ac_c_werror_flag" ||
74091 test ! -s conftest.err
74092 } && test -s conftest$ac_exeext &&
74093 $as_test_x conftest$ac_exeext; then
74094 ac_cv_lib_llapi_ll_query=yes
74095 else
74096 echo "$as_me: failed program was:" >&5
74097 sed 's/^/| /' conftest.$ac_ext >&5
74099 ac_cv_lib_llapi_ll_query=no
74102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
74103 conftest$ac_exeext conftest.$ac_ext
74104 LIBS=$ac_check_lib_save_LIBS
74106 { echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
74107 echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
74108 if test $ac_cv_lib_llapi_ll_query = yes; then
74109 ompi_check_package_lib_happy="yes"
74110 else
74111 ompi_check_package_lib_happy="no"
74114 if test "$ompi_check_package_lib_happy" = "no"; then
74115 # no go on the as is.. see what happens later...
74116 LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS"
74117 ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
74118 unset ac_cv_lib_llapi_ll_query
74124 if test "$ompi_check_package_lib_happy" = "no"; then
74125 if test "$ompi_check_package_libdir" != ""; then
74126 ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L$ompi_check_package_libdir/lib"
74127 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
74128 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
74129 echo "${ECHO_T}looking for library in lib" >&6; }
74130 { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
74131 echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
74132 if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
74133 echo $ECHO_N "(cached) $ECHO_C" >&6
74134 else
74135 ac_check_lib_save_LIBS=$LIBS
74136 LIBS="-lllapi $LIBS"
74137 cat >conftest.$ac_ext <<_ACEOF
74138 /* confdefs.h. */
74139 _ACEOF
74140 cat confdefs.h >>conftest.$ac_ext
74141 cat >>conftest.$ac_ext <<_ACEOF
74142 /* end confdefs.h. */
74144 /* Override any GCC internal prototype to avoid an error.
74145 Use char because int might match the return type of a GCC
74146 builtin and then its argument prototype would still apply. */
74147 #ifdef __cplusplus
74148 extern "C"
74149 #endif
74150 char ll_query ();
74152 main ()
74154 return ll_query ();
74156 return 0;
74158 _ACEOF
74159 rm -f conftest.$ac_objext conftest$ac_exeext
74160 if { (ac_try="$ac_link"
74161 case "(($ac_try" in
74162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74163 *) ac_try_echo=$ac_try;;
74164 esac
74165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
74166 (eval "$ac_link") 2>conftest.er1
74167 ac_status=$?
74168 grep -v '^ *+' conftest.er1 >conftest.err
74169 rm -f conftest.er1
74170 cat conftest.err >&5
74171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
74172 (exit $ac_status); } && {
74173 test -z "$ac_c_werror_flag" ||
74174 test ! -s conftest.err
74175 } && test -s conftest$ac_exeext &&
74176 $as_test_x conftest$ac_exeext; then
74177 ac_cv_lib_llapi_ll_query=yes
74178 else
74179 echo "$as_me: failed program was:" >&5
74180 sed 's/^/| /' conftest.$ac_ext >&5
74182 ac_cv_lib_llapi_ll_query=no
74185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
74186 conftest$ac_exeext conftest.$ac_ext
74187 LIBS=$ac_check_lib_save_LIBS
74189 { echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
74190 echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
74191 if test $ac_cv_lib_llapi_ll_query = yes; then
74192 ompi_check_package_lib_happy="yes"
74193 else
74194 ompi_check_package_lib_happy="no"
74197 if test "$ompi_check_package_lib_happy" = "no"; then
74198 # no go on the as is.. see what happens later...
74199 LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS"
74200 ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
74201 unset ac_cv_lib_llapi_ll_query
74209 if test "$ompi_check_package_lib_happy" = "no"; then
74210 if test "$ompi_check_package_libdir" != ""; then
74211 ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L$ompi_check_package_libdir/lib64"
74212 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
74213 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
74214 echo "${ECHO_T}looking for library in lib64" >&6; }
74215 { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
74216 echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
74217 if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
74218 echo $ECHO_N "(cached) $ECHO_C" >&6
74219 else
74220 ac_check_lib_save_LIBS=$LIBS
74221 LIBS="-lllapi $LIBS"
74222 cat >conftest.$ac_ext <<_ACEOF
74223 /* confdefs.h. */
74224 _ACEOF
74225 cat confdefs.h >>conftest.$ac_ext
74226 cat >>conftest.$ac_ext <<_ACEOF
74227 /* end confdefs.h. */
74229 /* Override any GCC internal prototype to avoid an error.
74230 Use char because int might match the return type of a GCC
74231 builtin and then its argument prototype would still apply. */
74232 #ifdef __cplusplus
74233 extern "C"
74234 #endif
74235 char ll_query ();
74237 main ()
74239 return ll_query ();
74241 return 0;
74243 _ACEOF
74244 rm -f conftest.$ac_objext conftest$ac_exeext
74245 if { (ac_try="$ac_link"
74246 case "(($ac_try" in
74247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74248 *) ac_try_echo=$ac_try;;
74249 esac
74250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
74251 (eval "$ac_link") 2>conftest.er1
74252 ac_status=$?
74253 grep -v '^ *+' conftest.er1 >conftest.err
74254 rm -f conftest.er1
74255 cat conftest.err >&5
74256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
74257 (exit $ac_status); } && {
74258 test -z "$ac_c_werror_flag" ||
74259 test ! -s conftest.err
74260 } && test -s conftest$ac_exeext &&
74261 $as_test_x conftest$ac_exeext; then
74262 ac_cv_lib_llapi_ll_query=yes
74263 else
74264 echo "$as_me: failed program was:" >&5
74265 sed 's/^/| /' conftest.$ac_ext >&5
74267 ac_cv_lib_llapi_ll_query=no
74270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
74271 conftest$ac_exeext conftest.$ac_ext
74272 LIBS=$ac_check_lib_save_LIBS
74274 { echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
74275 echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
74276 if test $ac_cv_lib_llapi_ll_query = yes; then
74277 ompi_check_package_lib_happy="yes"
74278 else
74279 ompi_check_package_lib_happy="no"
74282 if test "$ompi_check_package_lib_happy" = "no"; then
74283 # no go on the as is.. see what happens later...
74284 LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS"
74285 ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
74286 unset ac_cv_lib_llapi_ll_query
74296 if test "$ompi_check_package_lib_happy" = "yes"; then
74297 ompi_check_package_happy="yes"
74298 else
74299 ompi_check_package_happy="no"
74304 else
74305 ompi_check_package_happy="no"
74309 else
74311 # This is stolen from autoconf to peek under the covers to get the
74312 # cache variable for the library check. one should not copy this
74313 # code into other places unless you want much pain and suffering
74315 # see comment above
74316 unset ac_cv_lib_llapi_ll_query
74317 ompi_check_package_lib_happy="no"
74318 if test "" != ""; then
74319 # libdir was specified - search only there
74320 ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L"
74321 LDFLAGS="$LDFLAGS -L"
74322 { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
74323 echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
74324 if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
74325 echo $ECHO_N "(cached) $ECHO_C" >&6
74326 else
74327 ac_check_lib_save_LIBS=$LIBS
74328 LIBS="-lllapi $LIBS"
74329 cat >conftest.$ac_ext <<_ACEOF
74330 /* confdefs.h. */
74331 _ACEOF
74332 cat confdefs.h >>conftest.$ac_ext
74333 cat >>conftest.$ac_ext <<_ACEOF
74334 /* end confdefs.h. */
74336 /* Override any GCC internal prototype to avoid an error.
74337 Use char because int might match the return type of a GCC
74338 builtin and then its argument prototype would still apply. */
74339 #ifdef __cplusplus
74340 extern "C"
74341 #endif
74342 char ll_query ();
74344 main ()
74346 return ll_query ();
74348 return 0;
74350 _ACEOF
74351 rm -f conftest.$ac_objext conftest$ac_exeext
74352 if { (ac_try="$ac_link"
74353 case "(($ac_try" in
74354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74355 *) ac_try_echo=$ac_try;;
74356 esac
74357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
74358 (eval "$ac_link") 2>conftest.er1
74359 ac_status=$?
74360 grep -v '^ *+' conftest.er1 >conftest.err
74361 rm -f conftest.er1
74362 cat conftest.err >&5
74363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
74364 (exit $ac_status); } && {
74365 test -z "$ac_c_werror_flag" ||
74366 test ! -s conftest.err
74367 } && test -s conftest$ac_exeext &&
74368 $as_test_x conftest$ac_exeext; then
74369 ac_cv_lib_llapi_ll_query=yes
74370 else
74371 echo "$as_me: failed program was:" >&5
74372 sed 's/^/| /' conftest.$ac_ext >&5
74374 ac_cv_lib_llapi_ll_query=no
74377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
74378 conftest$ac_exeext conftest.$ac_ext
74379 LIBS=$ac_check_lib_save_LIBS
74381 { echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
74382 echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
74383 if test $ac_cv_lib_llapi_ll_query = yes; then
74384 ompi_check_package_lib_happy="yes"
74385 else
74386 ompi_check_package_lib_happy="no"
74389 if test "$ompi_check_package_lib_happy" = "no"; then
74390 LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS"
74391 ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
74392 unset ac_cv_lib_llapi_ll_query
74395 else
74396 # libdir was not specified - go through search path
74397 ompi_check_package_libdir="$ompi_check_loadleveler_dir"
74398 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
74399 # try as is...
74400 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
74401 echo "${ECHO_T}looking for library without search path" >&6; }
74402 { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
74403 echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
74404 if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
74405 echo $ECHO_N "(cached) $ECHO_C" >&6
74406 else
74407 ac_check_lib_save_LIBS=$LIBS
74408 LIBS="-lllapi $LIBS"
74409 cat >conftest.$ac_ext <<_ACEOF
74410 /* confdefs.h. */
74411 _ACEOF
74412 cat confdefs.h >>conftest.$ac_ext
74413 cat >>conftest.$ac_ext <<_ACEOF
74414 /* end confdefs.h. */
74416 /* Override any GCC internal prototype to avoid an error.
74417 Use char because int might match the return type of a GCC
74418 builtin and then its argument prototype would still apply. */
74419 #ifdef __cplusplus
74420 extern "C"
74421 #endif
74422 char ll_query ();
74424 main ()
74426 return ll_query ();
74428 return 0;
74430 _ACEOF
74431 rm -f conftest.$ac_objext conftest$ac_exeext
74432 if { (ac_try="$ac_link"
74433 case "(($ac_try" in
74434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74435 *) ac_try_echo=$ac_try;;
74436 esac
74437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
74438 (eval "$ac_link") 2>conftest.er1
74439 ac_status=$?
74440 grep -v '^ *+' conftest.er1 >conftest.err
74441 rm -f conftest.er1
74442 cat conftest.err >&5
74443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
74444 (exit $ac_status); } && {
74445 test -z "$ac_c_werror_flag" ||
74446 test ! -s conftest.err
74447 } && test -s conftest$ac_exeext &&
74448 $as_test_x conftest$ac_exeext; then
74449 ac_cv_lib_llapi_ll_query=yes
74450 else
74451 echo "$as_me: failed program was:" >&5
74452 sed 's/^/| /' conftest.$ac_ext >&5
74454 ac_cv_lib_llapi_ll_query=no
74457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
74458 conftest$ac_exeext conftest.$ac_ext
74459 LIBS=$ac_check_lib_save_LIBS
74461 { echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
74462 echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
74463 if test $ac_cv_lib_llapi_ll_query = yes; then
74464 ompi_check_package_lib_happy="yes"
74465 else
74466 ompi_check_package_lib_happy="no"
74469 if test "$ompi_check_package_lib_happy" = "no"; then
74470 # no go on the as is.. see what happens later...
74471 LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS"
74472 ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
74473 unset ac_cv_lib_llapi_ll_query
74479 if test "$ompi_check_package_lib_happy" = "no"; then
74480 if test "$ompi_check_package_libdir" != ""; then
74481 ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L$ompi_check_package_libdir/lib"
74482 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
74483 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
74484 echo "${ECHO_T}looking for library in lib" >&6; }
74485 { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
74486 echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
74487 if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
74488 echo $ECHO_N "(cached) $ECHO_C" >&6
74489 else
74490 ac_check_lib_save_LIBS=$LIBS
74491 LIBS="-lllapi $LIBS"
74492 cat >conftest.$ac_ext <<_ACEOF
74493 /* confdefs.h. */
74494 _ACEOF
74495 cat confdefs.h >>conftest.$ac_ext
74496 cat >>conftest.$ac_ext <<_ACEOF
74497 /* end confdefs.h. */
74499 /* Override any GCC internal prototype to avoid an error.
74500 Use char because int might match the return type of a GCC
74501 builtin and then its argument prototype would still apply. */
74502 #ifdef __cplusplus
74503 extern "C"
74504 #endif
74505 char ll_query ();
74507 main ()
74509 return ll_query ();
74511 return 0;
74513 _ACEOF
74514 rm -f conftest.$ac_objext conftest$ac_exeext
74515 if { (ac_try="$ac_link"
74516 case "(($ac_try" in
74517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74518 *) ac_try_echo=$ac_try;;
74519 esac
74520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
74521 (eval "$ac_link") 2>conftest.er1
74522 ac_status=$?
74523 grep -v '^ *+' conftest.er1 >conftest.err
74524 rm -f conftest.er1
74525 cat conftest.err >&5
74526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
74527 (exit $ac_status); } && {
74528 test -z "$ac_c_werror_flag" ||
74529 test ! -s conftest.err
74530 } && test -s conftest$ac_exeext &&
74531 $as_test_x conftest$ac_exeext; then
74532 ac_cv_lib_llapi_ll_query=yes
74533 else
74534 echo "$as_me: failed program was:" >&5
74535 sed 's/^/| /' conftest.$ac_ext >&5
74537 ac_cv_lib_llapi_ll_query=no
74540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
74541 conftest$ac_exeext conftest.$ac_ext
74542 LIBS=$ac_check_lib_save_LIBS
74544 { echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
74545 echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
74546 if test $ac_cv_lib_llapi_ll_query = yes; then
74547 ompi_check_package_lib_happy="yes"
74548 else
74549 ompi_check_package_lib_happy="no"
74552 if test "$ompi_check_package_lib_happy" = "no"; then
74553 # no go on the as is.. see what happens later...
74554 LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS"
74555 ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
74556 unset ac_cv_lib_llapi_ll_query
74564 if test "$ompi_check_package_lib_happy" = "no"; then
74565 if test "$ompi_check_package_libdir" != ""; then
74566 ras_loadleveler_LDFLAGS="$ras_loadleveler_LDFLAGS -L$ompi_check_package_libdir/lib64"
74567 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
74568 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
74569 echo "${ECHO_T}looking for library in lib64" >&6; }
74570 { echo "$as_me:$LINENO: checking for ll_query in -lllapi" >&5
74571 echo $ECHO_N "checking for ll_query in -lllapi... $ECHO_C" >&6; }
74572 if test "${ac_cv_lib_llapi_ll_query+set}" = set; then
74573 echo $ECHO_N "(cached) $ECHO_C" >&6
74574 else
74575 ac_check_lib_save_LIBS=$LIBS
74576 LIBS="-lllapi $LIBS"
74577 cat >conftest.$ac_ext <<_ACEOF
74578 /* confdefs.h. */
74579 _ACEOF
74580 cat confdefs.h >>conftest.$ac_ext
74581 cat >>conftest.$ac_ext <<_ACEOF
74582 /* end confdefs.h. */
74584 /* Override any GCC internal prototype to avoid an error.
74585 Use char because int might match the return type of a GCC
74586 builtin and then its argument prototype would still apply. */
74587 #ifdef __cplusplus
74588 extern "C"
74589 #endif
74590 char ll_query ();
74592 main ()
74594 return ll_query ();
74596 return 0;
74598 _ACEOF
74599 rm -f conftest.$ac_objext conftest$ac_exeext
74600 if { (ac_try="$ac_link"
74601 case "(($ac_try" in
74602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74603 *) ac_try_echo=$ac_try;;
74604 esac
74605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
74606 (eval "$ac_link") 2>conftest.er1
74607 ac_status=$?
74608 grep -v '^ *+' conftest.er1 >conftest.err
74609 rm -f conftest.er1
74610 cat conftest.err >&5
74611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
74612 (exit $ac_status); } && {
74613 test -z "$ac_c_werror_flag" ||
74614 test ! -s conftest.err
74615 } && test -s conftest$ac_exeext &&
74616 $as_test_x conftest$ac_exeext; then
74617 ac_cv_lib_llapi_ll_query=yes
74618 else
74619 echo "$as_me: failed program was:" >&5
74620 sed 's/^/| /' conftest.$ac_ext >&5
74622 ac_cv_lib_llapi_ll_query=no
74625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
74626 conftest$ac_exeext conftest.$ac_ext
74627 LIBS=$ac_check_lib_save_LIBS
74629 { echo "$as_me:$LINENO: result: $ac_cv_lib_llapi_ll_query" >&5
74630 echo "${ECHO_T}$ac_cv_lib_llapi_ll_query" >&6; }
74631 if test $ac_cv_lib_llapi_ll_query = yes; then
74632 ompi_check_package_lib_happy="yes"
74633 else
74634 ompi_check_package_lib_happy="no"
74637 if test "$ompi_check_package_lib_happy" = "no"; then
74638 # no go on the as is.. see what happens later...
74639 LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS"
74640 ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
74641 unset ac_cv_lib_llapi_ll_query
74651 if test "$ompi_check_package_lib_happy" = "yes"; then
74652 ompi_check_package_happy="yes"
74653 else
74654 ompi_check_package_happy="no"
74661 unset ompi_check_package_header_happy
74663 if test "$ompi_check_package_happy" = "yes"; then
74664 ompi_check_loadleveler_happy="yes"
74665 ras_loadleveler_LIBS="-lllapi "
74666 else
74667 ras_loadleveler_CPPFLAGS="$ompi_check_package_ras_loadleveler_orig_CPPFLAGS"
74668 ras_loadleveler_LDFLAGS="$ompi_check_package_ras_loadleveler_orig_LDFLAGS"
74669 ras_loadleveler_LIBS="$ompi_check_package_ras_loadleveler_orig_LIBS"
74670 ompi_check_loadleveler_happy="no"
74674 CPPFLAGS="$ompi_check_package_ras_loadleveler_save_CPPFLAGS"
74675 LDFLAGS="$ompi_check_package_ras_loadleveler_save_LDFLAGS"
74676 LIBS="$ompi_check_package_ras_loadleveler_save_LIBS"
74681 if test "$ompi_check_loadleveler_happy" = "yes"; then
74682 ras_loadleveler_good=1
74683 else
74684 if test ! -z "$with_loadleveler" -a "$with_loadleveler" != "no"; then
74685 { { echo "$as_me:$LINENO: error: LOADLEVELER support requested but not found. Aborting" >&5
74686 echo "$as_me: error: LOADLEVELER support requested but not found. Aborting" >&2;}
74687 { (exit 1); exit 1; }; }
74690 ras_loadleveler_good=0
74695 # if check worked, set wrapper flags if so.
74696 # Evaluate succeed / fail
74697 if test "$ras_loadleveler_good" = "1"; then
74698 ras_loadleveler_WRAPPER_EXTRA_LDFLAGS="$ras_loadleveler_LDFLAGS"
74699 ras_loadleveler_WRAPPER_EXTRA_LIBS="$ras_loadleveler_LIBS"
74700 should_build=1
74701 else
74702 should_build=0
74706 # set build flags to use in makefile
74714 if test "$should_build" = "1"; then
74716 project=orte
74717 framework=ras
74718 component=loadleveler
74720 # See if it dropped an output file for us to pick up some
74721 # shell variables in.
74722 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
74724 # Add this subdir to the mast list of all MCA component subdirs
74725 all_components="$all_components $component"
74727 if test "$compile_mode" = "dso" ; then
74728 dso_components="$dso_components $component"
74729 else
74730 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
74731 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
74732 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
74733 static_components="$static_components $component"
74736 # Output pretty results
74737 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
74738 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
74739 { echo "$as_me:$LINENO: result: yes" >&5
74740 echo "${ECHO_T}yes" >&6; }
74742 # If there's an output file, add the values to
74743 # scope_EXTRA_flags.
74744 if test -f $infile; then
74746 # First check for the ABORT tag
74747 line="`grep ABORT= $infile | cut -d= -f2-`"
74748 if test -n "$line" -a "$line" != "no"; then
74749 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
74750 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
74751 { { echo "$as_me:$LINENO: error: cannot continue" >&5
74752 echo "$as_me: error: cannot continue" >&2;}
74753 { (exit 1); exit 1; }; }
74756 # Check for flags passed up from the component. If we're
74757 # compiling statically, then take all flags passed up from the
74758 # component.
74759 if test "$compile_mode" = "static"; then
74760 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
74761 eval "line=$line"
74762 if test -n "$line"; then
74763 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
74765 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
74766 eval "line=$line"
74767 if test -n "$line"; then
74768 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
74772 if test "$DIRECT_ras" = "$component" ; then
74773 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
74774 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
74775 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
74776 eval $str
74777 else
74778 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
74779 *** does not appear to support direct calling.
74780 *** Aborting" >&5
74781 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
74782 *** does not appear to support direct calling.
74783 *** Aborting" >&2;}
74784 { (exit 1); exit 1; }; }
74787 else
74788 # were we supposed to have found something in the
74789 # post_configure.sh, but the file didn't exist?
74790 if test "$DIRECT_ras" = "$component" ; then
74791 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
74792 *** does not appear to support direct calling.
74793 *** Aborting" >&5
74794 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
74795 *** does not appear to support direct calling.
74796 *** Aborting" >&2;}
74797 { (exit 1); exit 1; }; }
74801 # now add the flags that were set in the environment variables
74802 # framework_component_FOO (for example, the flags set by
74803 # m4_configure components)
74805 # Check for flags passed up from the component. If we're
74806 # compiling statically, then take all flags passed up from the
74807 # component.
74808 if test "$compile_mode" = "static"; then
74809 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
74810 eval "$str"
74811 if test -n "$line" ; then
74812 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
74814 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
74815 eval "$str"
74816 if test -n "$line" ; then
74817 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
74821 else
74823 { echo "$as_me:$LINENO: checking if MCA component ras:loadleveler can compile" >&5
74824 echo $ECHO_N "checking if MCA component ras:loadleveler can compile... $ECHO_C" >&6; }
74825 { echo "$as_me:$LINENO: result: no" >&5
74826 echo "${ECHO_T}no" >&6; }
74828 # If this component was requested as the default for this
74829 # type, then abort.
74830 if test "$with_ras" = "loadleveler" ; then
74831 { echo "$as_me:$LINENO: WARNING: MCA component \"loadleveler\" failed to configure properly" >&5
74832 echo "$as_me: WARNING: MCA component \"loadleveler\" failed to configure properly" >&2;}
74833 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
74834 echo "$as_me: WARNING: This component was selected as the default" >&2;}
74835 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
74836 echo "$as_me: error: Cannot continue" >&2;}
74837 { (exit 1); exit 1; }; }
74838 exit 1
74841 if test ! -z "$DIRECT_ras" ; then
74842 if test "$DIRECT_ras" = "loadleveler" ; then
74843 { echo "$as_me:$LINENO: WARNING: MCA component \"loadleveler\" failed to configure properly" >&5
74844 echo "$as_me: WARNING: MCA component \"loadleveler\" failed to configure properly" >&2;}
74845 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
74846 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
74847 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
74848 echo "$as_me: error: Cannot continue" >&2;}
74849 { (exit 1); exit 1; }; }
74850 exit 1
74854 # add component to all component list
74855 all_components="$all_components loadleveler"
74859 # set the AM_CONDITIONAL on how we should build
74860 if test "$compile_mode" = "dso"; then
74861 BUILD_ras_loadleveler_DSO=1
74862 else
74863 BUILD_ras_loadleveler_DSO=0
74868 if test "$BUILD_ras_loadleveler_DSO" = "1"; then
74869 OMPI_BUILD_ras_loadleveler_DSO_TRUE=
74870 OMPI_BUILD_ras_loadleveler_DSO_FALSE='#'
74871 else
74872 OMPI_BUILD_ras_loadleveler_DSO_TRUE='#'
74873 OMPI_BUILD_ras_loadleveler_DSO_FALSE=
74877 if test "$should_build" = "1"; then
74878 components_looking_for_succeed="$happy_value"
74882 unset compile_mode
74884 ompi_show_subsubsubtitle "MCA component ras:lsf_bproc (m4 configuration macro)"
74887 project=orte
74888 framework=ras
74889 component=lsf_bproc
74890 component_path="$srcdir/$project/mca/$framework/$component"
74891 want_component=0
74893 # build if:
74894 # - the component type is direct and we are that component
74895 # - there is no ompi_ignore file
74896 # - there is an ompi_ignore, but there is an empty ompi_unignore
74897 # - there is an ompi_ignore, but username is in ompi_unignore
74898 if test -d $component_path ; then
74899 # decide if we want the component to be built or not. This
74900 # is spread out because some of the logic is a little complex
74901 # and test's syntax isn't exactly the greatest. We want to
74902 # build the component by default.
74903 want_component=1
74904 if test -f $component_path/.ompi_ignore ; then
74905 # If there is an ompi_ignore file, don't build
74906 # the component. Note that this decision can be
74907 # overriden by the unignore logic below.
74908 want_component=0
74910 if test -f $component_path/.ompi_unignore ; then
74911 # if there is an empty ompi_unignore, that is
74912 # equivalent to having your userid in the unignore file.
74913 # If userid is in the file, unignore the ignore file.
74914 if test ! -s $component_path/.ompi_unignore ; then
74915 want_component=1
74916 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
74917 want_component=1
74920 # if this component type is direct and we are not it, we don't want
74921 # to be built. Otherwise, we do want to be built.
74922 if test ! -z "$DIRECT_ras" ; then
74923 if test "$DIRECT_ras" = "$component" ; then
74924 want_component=1
74925 else
74926 want_component=0
74931 # if we were explicitly disabled, don't build :)
74932 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
74933 eval $str
74934 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
74935 want_component=0
74938 if test "$want_component" = "1"; then
74939 should_build=$components_looking_for_succeed
74940 else
74941 should_build=0
74945 # Allow the component to override the build mode if it really wants to.
74946 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
74948 project=orte
74949 framework=ras
74950 component=lsf_bproc
74952 # Is this component going to built staic or shared? $component
74953 # might not be known until configure time, so have to use eval
74954 # tricks - can't set variable names at autogen time.
74955 str="SHARED_FRAMEWORK=\$DSO_$framework"
74956 eval $str
74957 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
74958 eval $str
74960 str="STATIC_FRAMEWORK=\$STATIC_$framework"
74961 eval $str
74962 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
74963 eval $str
74965 shared_mode_override=static
74967 # Setup for either shared or static
74968 if test "$STATIC_FRAMEWORK" = "1" -o \
74969 "$STATIC_COMPONENT" = "1" -o \
74970 "$STATIC_all" = "1" ; then
74971 compile_mode="static"
74972 elif test "$shared_mode_override" = "dso" -o \
74973 "$SHARED_FRAMEWORK" = "1" -o \
74974 "$SHARED_COMPONENT" = "1" -o \
74975 "$DSO_all" = "1"; then
74976 compile_mode="dso"
74977 else
74978 compile_mode="static"
74981 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
74982 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
74983 if test "$DIRECT_ras" = "$component" ; then
74984 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
74985 echo "${ECHO_T}$compile_mode - direct" >&6; }
74986 else
74987 { echo "$as_me:$LINENO: result: $compile_mode" >&5
74988 echo "${ECHO_T}$compile_mode" >&6; }
74992 # try to configure the component. pay no attention to
74993 # --enable-dist, since we'll always have makefiles.
74994 if test "$should_build" = "1"; then
74998 # Check whether --with-bproc was given.
74999 if test "${with_bproc+set}" = set; then
75000 withval=$with_bproc;
75004 if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
75005 ras_lsf_bproc_good=0
75006 else
75008 ompi_check_bproc_save_CPPFLAGS="$CPPFLAGS"
75009 ompi_check_bproc_save_LDFLAGS="$LDFLAGS"
75010 ompi_check_bproc_save_LIBS="$LIBS"
75012 if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
75013 CPPFLAGS="$CPPFLAGS -I$with_bproc/include"
75014 LDFLAGS="$LDFLAGS -L$with_bproc/lib"
75018 for ac_header in sys/bproc.h
75020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
75021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
75022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
75023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
75024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
75025 echo $ECHO_N "(cached) $ECHO_C" >&6
75027 ac_res=`eval echo '${'$as_ac_Header'}'`
75028 { echo "$as_me:$LINENO: result: $ac_res" >&5
75029 echo "${ECHO_T}$ac_res" >&6; }
75030 else
75031 # Is the header compilable?
75032 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
75033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
75034 cat >conftest.$ac_ext <<_ACEOF
75035 /* confdefs.h. */
75036 _ACEOF
75037 cat confdefs.h >>conftest.$ac_ext
75038 cat >>conftest.$ac_ext <<_ACEOF
75039 /* end confdefs.h. */
75040 $ac_includes_default
75041 #include <$ac_header>
75042 _ACEOF
75043 rm -f conftest.$ac_objext
75044 if { (ac_try="$ac_compile"
75045 case "(($ac_try" in
75046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75047 *) ac_try_echo=$ac_try;;
75048 esac
75049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
75050 (eval "$ac_compile") 2>conftest.er1
75051 ac_status=$?
75052 grep -v '^ *+' conftest.er1 >conftest.err
75053 rm -f conftest.er1
75054 cat conftest.err >&5
75055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
75056 (exit $ac_status); } && {
75057 test -z "$ac_c_werror_flag" ||
75058 test ! -s conftest.err
75059 } && test -s conftest.$ac_objext; then
75060 ac_header_compiler=yes
75061 else
75062 echo "$as_me: failed program was:" >&5
75063 sed 's/^/| /' conftest.$ac_ext >&5
75065 ac_header_compiler=no
75068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
75070 echo "${ECHO_T}$ac_header_compiler" >&6; }
75072 # Is the header present?
75073 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
75074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
75075 cat >conftest.$ac_ext <<_ACEOF
75076 /* confdefs.h. */
75077 _ACEOF
75078 cat confdefs.h >>conftest.$ac_ext
75079 cat >>conftest.$ac_ext <<_ACEOF
75080 /* end confdefs.h. */
75081 #include <$ac_header>
75082 _ACEOF
75083 if { (ac_try="$ac_cpp conftest.$ac_ext"
75084 case "(($ac_try" in
75085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75086 *) ac_try_echo=$ac_try;;
75087 esac
75088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
75089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
75090 ac_status=$?
75091 grep -v '^ *+' conftest.er1 >conftest.err
75092 rm -f conftest.er1
75093 cat conftest.err >&5
75094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
75095 (exit $ac_status); } >/dev/null && {
75096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
75097 test ! -s conftest.err
75098 }; then
75099 ac_header_preproc=yes
75100 else
75101 echo "$as_me: failed program was:" >&5
75102 sed 's/^/| /' conftest.$ac_ext >&5
75104 ac_header_preproc=no
75107 rm -f conftest.err conftest.$ac_ext
75108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
75109 echo "${ECHO_T}$ac_header_preproc" >&6; }
75111 # So? What about this header?
75112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
75113 yes:no: )
75114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
75115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
75116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
75117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
75118 ac_header_preproc=yes
75120 no:yes:* )
75121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
75122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
75123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
75124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
75125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
75126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
75127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
75128 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
75129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
75130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
75131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
75132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
75133 ( cat <<\_ASBOX
75134 ## ------------------------------------------------------ ##
75135 ## Report this to http://www.open-mpi.org/community/help/ ##
75136 ## ------------------------------------------------------ ##
75137 _ASBOX
75138 ) | sed "s/^/$as_me: WARNING: /" >&2
75140 esac
75141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
75142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
75143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
75144 echo $ECHO_N "(cached) $ECHO_C" >&6
75145 else
75146 eval "$as_ac_Header=\$ac_header_preproc"
75148 ac_res=`eval echo '${'$as_ac_Header'}'`
75149 { echo "$as_me:$LINENO: result: $ac_res" >&5
75150 echo "${ECHO_T}$ac_res" >&6; }
75153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
75154 cat >>confdefs.h <<_ACEOF
75155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
75156 _ACEOF
75157 { echo "$as_me:$LINENO: checking for bproc_numnodes in -lbproc" >&5
75158 echo $ECHO_N "checking for bproc_numnodes in -lbproc... $ECHO_C" >&6; }
75159 if test "${ac_cv_lib_bproc_bproc_numnodes+set}" = set; then
75160 echo $ECHO_N "(cached) $ECHO_C" >&6
75161 else
75162 ac_check_lib_save_LIBS=$LIBS
75163 LIBS="-lbproc $LIBS"
75164 cat >conftest.$ac_ext <<_ACEOF
75165 /* confdefs.h. */
75166 _ACEOF
75167 cat confdefs.h >>conftest.$ac_ext
75168 cat >>conftest.$ac_ext <<_ACEOF
75169 /* end confdefs.h. */
75171 /* Override any GCC internal prototype to avoid an error.
75172 Use char because int might match the return type of a GCC
75173 builtin and then its argument prototype would still apply. */
75174 #ifdef __cplusplus
75175 extern "C"
75176 #endif
75177 char bproc_numnodes ();
75179 main ()
75181 return bproc_numnodes ();
75183 return 0;
75185 _ACEOF
75186 rm -f conftest.$ac_objext conftest$ac_exeext
75187 if { (ac_try="$ac_link"
75188 case "(($ac_try" in
75189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75190 *) ac_try_echo=$ac_try;;
75191 esac
75192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
75193 (eval "$ac_link") 2>conftest.er1
75194 ac_status=$?
75195 grep -v '^ *+' conftest.er1 >conftest.err
75196 rm -f conftest.er1
75197 cat conftest.err >&5
75198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
75199 (exit $ac_status); } && {
75200 test -z "$ac_c_werror_flag" ||
75201 test ! -s conftest.err
75202 } && test -s conftest$ac_exeext &&
75203 $as_test_x conftest$ac_exeext; then
75204 ac_cv_lib_bproc_bproc_numnodes=yes
75205 else
75206 echo "$as_me: failed program was:" >&5
75207 sed 's/^/| /' conftest.$ac_ext >&5
75209 ac_cv_lib_bproc_bproc_numnodes=no
75212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
75213 conftest$ac_exeext conftest.$ac_ext
75214 LIBS=$ac_check_lib_save_LIBS
75216 { echo "$as_me:$LINENO: result: $ac_cv_lib_bproc_bproc_numnodes" >&5
75217 echo "${ECHO_T}$ac_cv_lib_bproc_bproc_numnodes" >&6; }
75218 if test $ac_cv_lib_bproc_bproc_numnodes = yes; then
75219 ompi_check_bproc_happy="yes"
75220 else
75221 ompi_check_bproc_happy="no"
75224 else
75225 ompi_check_bproc_happy="no"
75228 done
75231 # Check for Scyld bproc or an old version of LANL Bproc (pre 3.2.0)
75232 if test "$ompi_check_bproc_happy" = "yes"; then
75234 for ac_header in sys/bproc_common.h
75236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
75237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
75238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
75239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
75240 echo $ECHO_N "(cached) $ECHO_C" >&6
75241 else
75242 cat >conftest.$ac_ext <<_ACEOF
75243 /* confdefs.h. */
75244 _ACEOF
75245 cat confdefs.h >>conftest.$ac_ext
75246 cat >>conftest.$ac_ext <<_ACEOF
75247 /* end confdefs.h. */
75248 #include <stdint.h>
75249 #include <sys/socket.h>
75251 #include <$ac_header>
75252 _ACEOF
75253 rm -f conftest.$ac_objext
75254 if { (ac_try="$ac_compile"
75255 case "(($ac_try" in
75256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75257 *) ac_try_echo=$ac_try;;
75258 esac
75259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
75260 (eval "$ac_compile") 2>conftest.er1
75261 ac_status=$?
75262 grep -v '^ *+' conftest.er1 >conftest.err
75263 rm -f conftest.er1
75264 cat conftest.err >&5
75265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
75266 (exit $ac_status); } && {
75267 test -z "$ac_c_werror_flag" ||
75268 test ! -s conftest.err
75269 } && test -s conftest.$ac_objext; then
75270 eval "$as_ac_Header=yes"
75271 else
75272 echo "$as_me: failed program was:" >&5
75273 sed 's/^/| /' conftest.$ac_ext >&5
75275 eval "$as_ac_Header=no"
75278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75280 ac_res=`eval echo '${'$as_ac_Header'}'`
75281 { echo "$as_me:$LINENO: result: $ac_res" >&5
75282 echo "${ECHO_T}$ac_res" >&6; }
75283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
75284 cat >>confdefs.h <<_ACEOF
75285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
75286 _ACEOF
75287 ompi_check_bproc_happy="new"
75288 else
75289 ompi_check_bproc_happy="old"
75292 done
75297 CPPFLAGS="$ompi_check_bproc_save_CPPFLAGS"
75298 LDFLAGS="$ompi_check_bproc_save_LDFLAGS"
75299 LIBS="$ompi_check_bproc_save_LIBS"
75301 if test "$ompi_check_bproc_happy" != "no"; then
75302 if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
75303 ras_lsf_bproc_CPPFLAGS="$ras_lsf_bproc_CPPFLAGS -I$with_bproc/include"
75304 ras_lsf_bproc_LDFLAGS="$ras_lsf_bproc_LDFLAGS -L$with_bproc/lib"
75307 ras_lsf_bproc_LIBS="$ras_lsf_bproc_LIBS -lbproc"
75308 if test "$ompi_check_bproc_happy" = "new"; then
75309 ras_lsf_bproc_good=1
75310 else
75311 ras_lsf_bproc_good=1
75314 else
75315 if test ! -z "$with_bproc"; then
75316 { { echo "$as_me:$LINENO: error: BProc support request but not found. Perhaps
75317 you need to specify the location of the BProc libraries." >&5
75318 echo "$as_me: error: BProc support request but not found. Perhaps
75319 you need to specify the location of the BProc libraries." >&2;}
75320 { (exit 1); exit 1; }; }
75323 ras_lsf_bproc_good=0
75331 # if check worked, set wrapper flags if so.
75332 # Evaluate succeed / fail
75333 if test "$ras_lsf_bproc_good" = "1"; then
75334 ras_lsf_bproc_WRAPPER_EXTRA_LDFLAGS="$ras_lsf_bproc_LDFLAGS"
75335 ras_lsf_bproc_WRAPPER_EXTRA_LIBS="$ras_lsf_bproc_LIBS"
75336 should_build=1
75337 else
75338 should_build=0
75342 # set build flags to use in makefile
75350 if test "$should_build" = "1"; then
75352 project=orte
75353 framework=ras
75354 component=lsf_bproc
75356 # See if it dropped an output file for us to pick up some
75357 # shell variables in.
75358 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
75360 # Add this subdir to the mast list of all MCA component subdirs
75361 all_components="$all_components $component"
75363 if test "$compile_mode" = "dso" ; then
75364 dso_components="$dso_components $component"
75365 else
75366 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
75367 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
75368 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
75369 static_components="$static_components $component"
75372 # Output pretty results
75373 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
75374 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
75375 { echo "$as_me:$LINENO: result: yes" >&5
75376 echo "${ECHO_T}yes" >&6; }
75378 # If there's an output file, add the values to
75379 # scope_EXTRA_flags.
75380 if test -f $infile; then
75382 # First check for the ABORT tag
75383 line="`grep ABORT= $infile | cut -d= -f2-`"
75384 if test -n "$line" -a "$line" != "no"; then
75385 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
75386 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
75387 { { echo "$as_me:$LINENO: error: cannot continue" >&5
75388 echo "$as_me: error: cannot continue" >&2;}
75389 { (exit 1); exit 1; }; }
75392 # Check for flags passed up from the component. If we're
75393 # compiling statically, then take all flags passed up from the
75394 # component.
75395 if test "$compile_mode" = "static"; then
75396 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
75397 eval "line=$line"
75398 if test -n "$line"; then
75399 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
75401 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
75402 eval "line=$line"
75403 if test -n "$line"; then
75404 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
75408 if test "$DIRECT_ras" = "$component" ; then
75409 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
75410 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
75411 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
75412 eval $str
75413 else
75414 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
75415 *** does not appear to support direct calling.
75416 *** Aborting" >&5
75417 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
75418 *** does not appear to support direct calling.
75419 *** Aborting" >&2;}
75420 { (exit 1); exit 1; }; }
75423 else
75424 # were we supposed to have found something in the
75425 # post_configure.sh, but the file didn't exist?
75426 if test "$DIRECT_ras" = "$component" ; then
75427 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
75428 *** does not appear to support direct calling.
75429 *** Aborting" >&5
75430 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
75431 *** does not appear to support direct calling.
75432 *** Aborting" >&2;}
75433 { (exit 1); exit 1; }; }
75437 # now add the flags that were set in the environment variables
75438 # framework_component_FOO (for example, the flags set by
75439 # m4_configure components)
75441 # Check for flags passed up from the component. If we're
75442 # compiling statically, then take all flags passed up from the
75443 # component.
75444 if test "$compile_mode" = "static"; then
75445 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
75446 eval "$str"
75447 if test -n "$line" ; then
75448 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
75450 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
75451 eval "$str"
75452 if test -n "$line" ; then
75453 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
75457 else
75459 { echo "$as_me:$LINENO: checking if MCA component ras:lsf_bproc can compile" >&5
75460 echo $ECHO_N "checking if MCA component ras:lsf_bproc can compile... $ECHO_C" >&6; }
75461 { echo "$as_me:$LINENO: result: no" >&5
75462 echo "${ECHO_T}no" >&6; }
75464 # If this component was requested as the default for this
75465 # type, then abort.
75466 if test "$with_ras" = "lsf_bproc" ; then
75467 { echo "$as_me:$LINENO: WARNING: MCA component \"lsf_bproc\" failed to configure properly" >&5
75468 echo "$as_me: WARNING: MCA component \"lsf_bproc\" failed to configure properly" >&2;}
75469 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
75470 echo "$as_me: WARNING: This component was selected as the default" >&2;}
75471 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
75472 echo "$as_me: error: Cannot continue" >&2;}
75473 { (exit 1); exit 1; }; }
75474 exit 1
75477 if test ! -z "$DIRECT_ras" ; then
75478 if test "$DIRECT_ras" = "lsf_bproc" ; then
75479 { echo "$as_me:$LINENO: WARNING: MCA component \"lsf_bproc\" failed to configure properly" >&5
75480 echo "$as_me: WARNING: MCA component \"lsf_bproc\" failed to configure properly" >&2;}
75481 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
75482 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
75483 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
75484 echo "$as_me: error: Cannot continue" >&2;}
75485 { (exit 1); exit 1; }; }
75486 exit 1
75490 # add component to all component list
75491 all_components="$all_components lsf_bproc"
75495 # set the AM_CONDITIONAL on how we should build
75496 if test "$compile_mode" = "dso"; then
75497 BUILD_ras_lsf_bproc_DSO=1
75498 else
75499 BUILD_ras_lsf_bproc_DSO=0
75504 if test "$BUILD_ras_lsf_bproc_DSO" = "1"; then
75505 OMPI_BUILD_ras_lsf_bproc_DSO_TRUE=
75506 OMPI_BUILD_ras_lsf_bproc_DSO_FALSE='#'
75507 else
75508 OMPI_BUILD_ras_lsf_bproc_DSO_TRUE='#'
75509 OMPI_BUILD_ras_lsf_bproc_DSO_FALSE=
75513 if test "$should_build" = "1"; then
75514 components_looking_for_succeed="$happy_value"
75518 unset compile_mode
75520 ompi_show_subsubsubtitle "MCA component ras:poe (m4 configuration macro)"
75523 project=orte
75524 framework=ras
75525 component=poe
75526 component_path="$srcdir/$project/mca/$framework/$component"
75527 want_component=0
75529 # build if:
75530 # - the component type is direct and we are that component
75531 # - there is no ompi_ignore file
75532 # - there is an ompi_ignore, but there is an empty ompi_unignore
75533 # - there is an ompi_ignore, but username is in ompi_unignore
75534 if test -d $component_path ; then
75535 # decide if we want the component to be built or not. This
75536 # is spread out because some of the logic is a little complex
75537 # and test's syntax isn't exactly the greatest. We want to
75538 # build the component by default.
75539 want_component=1
75540 if test -f $component_path/.ompi_ignore ; then
75541 # If there is an ompi_ignore file, don't build
75542 # the component. Note that this decision can be
75543 # overriden by the unignore logic below.
75544 want_component=0
75546 if test -f $component_path/.ompi_unignore ; then
75547 # if there is an empty ompi_unignore, that is
75548 # equivalent to having your userid in the unignore file.
75549 # If userid is in the file, unignore the ignore file.
75550 if test ! -s $component_path/.ompi_unignore ; then
75551 want_component=1
75552 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
75553 want_component=1
75556 # if this component type is direct and we are not it, we don't want
75557 # to be built. Otherwise, we do want to be built.
75558 if test ! -z "$DIRECT_ras" ; then
75559 if test "$DIRECT_ras" = "$component" ; then
75560 want_component=1
75561 else
75562 want_component=0
75567 # if we were explicitly disabled, don't build :)
75568 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
75569 eval $str
75570 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
75571 want_component=0
75574 if test "$want_component" = "1"; then
75575 should_build=$components_looking_for_succeed
75576 else
75577 should_build=0
75581 # Allow the component to override the build mode if it really wants to.
75582 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
75584 project=orte
75585 framework=ras
75586 component=poe
75588 # Is this component going to built staic or shared? $component
75589 # might not be known until configure time, so have to use eval
75590 # tricks - can't set variable names at autogen time.
75591 str="SHARED_FRAMEWORK=\$DSO_$framework"
75592 eval $str
75593 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
75594 eval $str
75596 str="STATIC_FRAMEWORK=\$STATIC_$framework"
75597 eval $str
75598 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
75599 eval $str
75601 shared_mode_override=static
75603 # Setup for either shared or static
75604 if test "$STATIC_FRAMEWORK" = "1" -o \
75605 "$STATIC_COMPONENT" = "1" -o \
75606 "$STATIC_all" = "1" ; then
75607 compile_mode="static"
75608 elif test "$shared_mode_override" = "dso" -o \
75609 "$SHARED_FRAMEWORK" = "1" -o \
75610 "$SHARED_COMPONENT" = "1" -o \
75611 "$DSO_all" = "1"; then
75612 compile_mode="dso"
75613 else
75614 compile_mode="static"
75617 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
75618 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
75619 if test "$DIRECT_ras" = "$component" ; then
75620 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
75621 echo "${ECHO_T}$compile_mode - direct" >&6; }
75622 else
75623 { echo "$as_me:$LINENO: result: $compile_mode" >&5
75624 echo "${ECHO_T}$compile_mode" >&6; }
75628 # try to configure the component. pay no attention to
75629 # --enable-dist, since we'll always have makefiles.
75630 if test "$should_build" = "1"; then
75632 # POE used to be only supported on AIX. Now we support it on
75633 # AIX and some IBM Linux Machines.
75634 # We only need executables (no header files or libraries), but
75635 # those can be found (or not) at run-time. So if we're on AIX,
75636 # or Linux build this component.
75637 { echo "$as_me:$LINENO: checking if on AIX or Linux" >&5
75638 echo $ECHO_N "checking if on AIX or Linux... $ECHO_C" >&6; }
75639 case $host_os in
75640 linux* | aix3* | aix4* | aix5*)
75641 happy=yes
75644 happy=no
75646 esac
75647 { echo "$as_me:$LINENO: result: $happy" >&5
75648 echo "${ECHO_T}$happy" >&6; }
75649 if test "$happy" = "yes"; then
75650 should_build=1
75651 else
75652 should_build=0
75659 if test "$should_build" = "1"; then
75661 project=orte
75662 framework=ras
75663 component=poe
75665 # See if it dropped an output file for us to pick up some
75666 # shell variables in.
75667 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
75669 # Add this subdir to the mast list of all MCA component subdirs
75670 all_components="$all_components $component"
75672 if test "$compile_mode" = "dso" ; then
75673 dso_components="$dso_components $component"
75674 else
75675 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
75676 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
75677 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
75678 static_components="$static_components $component"
75681 # Output pretty results
75682 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
75683 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
75684 { echo "$as_me:$LINENO: result: yes" >&5
75685 echo "${ECHO_T}yes" >&6; }
75687 # If there's an output file, add the values to
75688 # scope_EXTRA_flags.
75689 if test -f $infile; then
75691 # First check for the ABORT tag
75692 line="`grep ABORT= $infile | cut -d= -f2-`"
75693 if test -n "$line" -a "$line" != "no"; then
75694 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
75695 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
75696 { { echo "$as_me:$LINENO: error: cannot continue" >&5
75697 echo "$as_me: error: cannot continue" >&2;}
75698 { (exit 1); exit 1; }; }
75701 # Check for flags passed up from the component. If we're
75702 # compiling statically, then take all flags passed up from the
75703 # component.
75704 if test "$compile_mode" = "static"; then
75705 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
75706 eval "line=$line"
75707 if test -n "$line"; then
75708 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
75710 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
75711 eval "line=$line"
75712 if test -n "$line"; then
75713 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
75717 if test "$DIRECT_ras" = "$component" ; then
75718 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
75719 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
75720 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
75721 eval $str
75722 else
75723 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
75724 *** does not appear to support direct calling.
75725 *** Aborting" >&5
75726 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
75727 *** does not appear to support direct calling.
75728 *** Aborting" >&2;}
75729 { (exit 1); exit 1; }; }
75732 else
75733 # were we supposed to have found something in the
75734 # post_configure.sh, but the file didn't exist?
75735 if test "$DIRECT_ras" = "$component" ; then
75736 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
75737 *** does not appear to support direct calling.
75738 *** Aborting" >&5
75739 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
75740 *** does not appear to support direct calling.
75741 *** Aborting" >&2;}
75742 { (exit 1); exit 1; }; }
75746 # now add the flags that were set in the environment variables
75747 # framework_component_FOO (for example, the flags set by
75748 # m4_configure components)
75750 # Check for flags passed up from the component. If we're
75751 # compiling statically, then take all flags passed up from the
75752 # component.
75753 if test "$compile_mode" = "static"; then
75754 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
75755 eval "$str"
75756 if test -n "$line" ; then
75757 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
75759 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
75760 eval "$str"
75761 if test -n "$line" ; then
75762 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
75766 else
75768 { echo "$as_me:$LINENO: checking if MCA component ras:poe can compile" >&5
75769 echo $ECHO_N "checking if MCA component ras:poe can compile... $ECHO_C" >&6; }
75770 { echo "$as_me:$LINENO: result: no" >&5
75771 echo "${ECHO_T}no" >&6; }
75773 # If this component was requested as the default for this
75774 # type, then abort.
75775 if test "$with_ras" = "poe" ; then
75776 { echo "$as_me:$LINENO: WARNING: MCA component \"poe\" failed to configure properly" >&5
75777 echo "$as_me: WARNING: MCA component \"poe\" failed to configure properly" >&2;}
75778 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
75779 echo "$as_me: WARNING: This component was selected as the default" >&2;}
75780 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
75781 echo "$as_me: error: Cannot continue" >&2;}
75782 { (exit 1); exit 1; }; }
75783 exit 1
75786 if test ! -z "$DIRECT_ras" ; then
75787 if test "$DIRECT_ras" = "poe" ; then
75788 { echo "$as_me:$LINENO: WARNING: MCA component \"poe\" failed to configure properly" >&5
75789 echo "$as_me: WARNING: MCA component \"poe\" failed to configure properly" >&2;}
75790 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
75791 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
75792 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
75793 echo "$as_me: error: Cannot continue" >&2;}
75794 { (exit 1); exit 1; }; }
75795 exit 1
75799 # add component to all component list
75800 all_components="$all_components poe"
75804 # set the AM_CONDITIONAL on how we should build
75805 if test "$compile_mode" = "dso"; then
75806 BUILD_ras_poe_DSO=1
75807 else
75808 BUILD_ras_poe_DSO=0
75813 if test "$BUILD_ras_poe_DSO" = "1"; then
75814 OMPI_BUILD_ras_poe_DSO_TRUE=
75815 OMPI_BUILD_ras_poe_DSO_FALSE='#'
75816 else
75817 OMPI_BUILD_ras_poe_DSO_TRUE='#'
75818 OMPI_BUILD_ras_poe_DSO_FALSE=
75822 if test "$should_build" = "1"; then
75823 components_looking_for_succeed="$happy_value"
75827 unset compile_mode
75829 ompi_show_subsubsubtitle "MCA component ras:slurm (m4 configuration macro)"
75832 project=orte
75833 framework=ras
75834 component=slurm
75835 component_path="$srcdir/$project/mca/$framework/$component"
75836 want_component=0
75838 # build if:
75839 # - the component type is direct and we are that component
75840 # - there is no ompi_ignore file
75841 # - there is an ompi_ignore, but there is an empty ompi_unignore
75842 # - there is an ompi_ignore, but username is in ompi_unignore
75843 if test -d $component_path ; then
75844 # decide if we want the component to be built or not. This
75845 # is spread out because some of the logic is a little complex
75846 # and test's syntax isn't exactly the greatest. We want to
75847 # build the component by default.
75848 want_component=1
75849 if test -f $component_path/.ompi_ignore ; then
75850 # If there is an ompi_ignore file, don't build
75851 # the component. Note that this decision can be
75852 # overriden by the unignore logic below.
75853 want_component=0
75855 if test -f $component_path/.ompi_unignore ; then
75856 # if there is an empty ompi_unignore, that is
75857 # equivalent to having your userid in the unignore file.
75858 # If userid is in the file, unignore the ignore file.
75859 if test ! -s $component_path/.ompi_unignore ; then
75860 want_component=1
75861 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
75862 want_component=1
75865 # if this component type is direct and we are not it, we don't want
75866 # to be built. Otherwise, we do want to be built.
75867 if test ! -z "$DIRECT_ras" ; then
75868 if test "$DIRECT_ras" = "$component" ; then
75869 want_component=1
75870 else
75871 want_component=0
75876 # if we were explicitly disabled, don't build :)
75877 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
75878 eval $str
75879 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
75880 want_component=0
75883 if test "$want_component" = "1"; then
75884 should_build=$components_looking_for_succeed
75885 else
75886 should_build=0
75890 # Allow the component to override the build mode if it really wants to.
75891 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
75893 project=orte
75894 framework=ras
75895 component=slurm
75897 # Is this component going to built staic or shared? $component
75898 # might not be known until configure time, so have to use eval
75899 # tricks - can't set variable names at autogen time.
75900 str="SHARED_FRAMEWORK=\$DSO_$framework"
75901 eval $str
75902 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
75903 eval $str
75905 str="STATIC_FRAMEWORK=\$STATIC_$framework"
75906 eval $str
75907 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
75908 eval $str
75910 shared_mode_override=static
75912 # Setup for either shared or static
75913 if test "$STATIC_FRAMEWORK" = "1" -o \
75914 "$STATIC_COMPONENT" = "1" -o \
75915 "$STATIC_all" = "1" ; then
75916 compile_mode="static"
75917 elif test "$shared_mode_override" = "dso" -o \
75918 "$SHARED_FRAMEWORK" = "1" -o \
75919 "$SHARED_COMPONENT" = "1" -o \
75920 "$DSO_all" = "1"; then
75921 compile_mode="dso"
75922 else
75923 compile_mode="static"
75926 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
75927 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
75928 if test "$DIRECT_ras" = "$component" ; then
75929 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
75930 echo "${ECHO_T}$compile_mode - direct" >&6; }
75931 else
75932 { echo "$as_me:$LINENO: result: $compile_mode" >&5
75933 echo "${ECHO_T}$compile_mode" >&6; }
75937 # try to configure the component. pay no attention to
75938 # --enable-dist, since we'll always have makefiles.
75939 if test "$should_build" = "1"; then
75943 # Check whether --with-slurm was given.
75944 if test "${with_slurm+set}" = set; then
75945 withval=$with_slurm;
75949 if test "$with_slurm" = "no" ; then
75950 ompi_check_slurm_happy="no"
75951 elif test "$with_slurm" = "" ; then
75952 # unless user asked, only build slurm component on
75953 # linux systems.
75954 case $host in
75955 *-linux*|*-aix*)
75956 ompi_check_slurm_happy="yes"
75959 ompi_check_slurm_happy="no"
75961 esac
75962 else
75963 ompi_check_slurm_happy="yes"
75966 if test "$ompi_check_slurm_happy" = "yes"; then
75967 { echo "$as_me:$LINENO: checking for fork" >&5
75968 echo $ECHO_N "checking for fork... $ECHO_C" >&6; }
75969 if test "${ac_cv_func_fork+set}" = set; then
75970 echo $ECHO_N "(cached) $ECHO_C" >&6
75971 else
75972 cat >conftest.$ac_ext <<_ACEOF
75973 /* confdefs.h. */
75974 _ACEOF
75975 cat confdefs.h >>conftest.$ac_ext
75976 cat >>conftest.$ac_ext <<_ACEOF
75977 /* end confdefs.h. */
75978 /* Define fork to an innocuous variant, in case <limits.h> declares fork.
75979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
75980 #define fork innocuous_fork
75982 /* System header to define __stub macros and hopefully few prototypes,
75983 which can conflict with char fork (); below.
75984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
75985 <limits.h> exists even on freestanding compilers. */
75987 #ifdef __STDC__
75988 # include <limits.h>
75989 #else
75990 # include <assert.h>
75991 #endif
75993 #undef fork
75995 /* Override any GCC internal prototype to avoid an error.
75996 Use char because int might match the return type of a GCC
75997 builtin and then its argument prototype would still apply. */
75998 #ifdef __cplusplus
75999 extern "C"
76000 #endif
76001 char fork ();
76002 /* The GNU C library defines this for functions which it implements
76003 to always fail with ENOSYS. Some functions are actually named
76004 something starting with __ and the normal name is an alias. */
76005 #if defined __stub_fork || defined __stub___fork
76006 choke me
76007 #endif
76010 main ()
76012 return fork ();
76014 return 0;
76016 _ACEOF
76017 rm -f conftest.$ac_objext conftest$ac_exeext
76018 if { (ac_try="$ac_link"
76019 case "(($ac_try" in
76020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76021 *) ac_try_echo=$ac_try;;
76022 esac
76023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
76024 (eval "$ac_link") 2>conftest.er1
76025 ac_status=$?
76026 grep -v '^ *+' conftest.er1 >conftest.err
76027 rm -f conftest.er1
76028 cat conftest.err >&5
76029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
76030 (exit $ac_status); } && {
76031 test -z "$ac_c_werror_flag" ||
76032 test ! -s conftest.err
76033 } && test -s conftest$ac_exeext &&
76034 $as_test_x conftest$ac_exeext; then
76035 ac_cv_func_fork=yes
76036 else
76037 echo "$as_me: failed program was:" >&5
76038 sed 's/^/| /' conftest.$ac_ext >&5
76040 ac_cv_func_fork=no
76043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
76044 conftest$ac_exeext conftest.$ac_ext
76046 { echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
76047 echo "${ECHO_T}$ac_cv_func_fork" >&6; }
76048 if test $ac_cv_func_fork = yes; then
76049 ompi_check_slurm_happy="yes"
76050 else
76051 ompi_check_slurm_happy="no"
76057 if test "$ompi_check_slurm_happy" = "yes"; then
76058 { echo "$as_me:$LINENO: checking for execve" >&5
76059 echo $ECHO_N "checking for execve... $ECHO_C" >&6; }
76060 if test "${ac_cv_func_execve+set}" = set; then
76061 echo $ECHO_N "(cached) $ECHO_C" >&6
76062 else
76063 cat >conftest.$ac_ext <<_ACEOF
76064 /* confdefs.h. */
76065 _ACEOF
76066 cat confdefs.h >>conftest.$ac_ext
76067 cat >>conftest.$ac_ext <<_ACEOF
76068 /* end confdefs.h. */
76069 /* Define execve to an innocuous variant, in case <limits.h> declares execve.
76070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
76071 #define execve innocuous_execve
76073 /* System header to define __stub macros and hopefully few prototypes,
76074 which can conflict with char execve (); below.
76075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
76076 <limits.h> exists even on freestanding compilers. */
76078 #ifdef __STDC__
76079 # include <limits.h>
76080 #else
76081 # include <assert.h>
76082 #endif
76084 #undef execve
76086 /* Override any GCC internal prototype to avoid an error.
76087 Use char because int might match the return type of a GCC
76088 builtin and then its argument prototype would still apply. */
76089 #ifdef __cplusplus
76090 extern "C"
76091 #endif
76092 char execve ();
76093 /* The GNU C library defines this for functions which it implements
76094 to always fail with ENOSYS. Some functions are actually named
76095 something starting with __ and the normal name is an alias. */
76096 #if defined __stub_execve || defined __stub___execve
76097 choke me
76098 #endif
76101 main ()
76103 return execve ();
76105 return 0;
76107 _ACEOF
76108 rm -f conftest.$ac_objext conftest$ac_exeext
76109 if { (ac_try="$ac_link"
76110 case "(($ac_try" in
76111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76112 *) ac_try_echo=$ac_try;;
76113 esac
76114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
76115 (eval "$ac_link") 2>conftest.er1
76116 ac_status=$?
76117 grep -v '^ *+' conftest.er1 >conftest.err
76118 rm -f conftest.er1
76119 cat conftest.err >&5
76120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
76121 (exit $ac_status); } && {
76122 test -z "$ac_c_werror_flag" ||
76123 test ! -s conftest.err
76124 } && test -s conftest$ac_exeext &&
76125 $as_test_x conftest$ac_exeext; then
76126 ac_cv_func_execve=yes
76127 else
76128 echo "$as_me: failed program was:" >&5
76129 sed 's/^/| /' conftest.$ac_ext >&5
76131 ac_cv_func_execve=no
76134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
76135 conftest$ac_exeext conftest.$ac_ext
76137 { echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5
76138 echo "${ECHO_T}$ac_cv_func_execve" >&6; }
76139 if test $ac_cv_func_execve = yes; then
76140 ompi_check_slurm_happy="yes"
76141 else
76142 ompi_check_slurm_happy="no"
76148 if test "$ompi_check_slurm_happy" = "yes"; then
76149 { echo "$as_me:$LINENO: checking for setpgid" >&5
76150 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; }
76151 if test "${ac_cv_func_setpgid+set}" = set; then
76152 echo $ECHO_N "(cached) $ECHO_C" >&6
76153 else
76154 cat >conftest.$ac_ext <<_ACEOF
76155 /* confdefs.h. */
76156 _ACEOF
76157 cat confdefs.h >>conftest.$ac_ext
76158 cat >>conftest.$ac_ext <<_ACEOF
76159 /* end confdefs.h. */
76160 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
76161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
76162 #define setpgid innocuous_setpgid
76164 /* System header to define __stub macros and hopefully few prototypes,
76165 which can conflict with char setpgid (); below.
76166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
76167 <limits.h> exists even on freestanding compilers. */
76169 #ifdef __STDC__
76170 # include <limits.h>
76171 #else
76172 # include <assert.h>
76173 #endif
76175 #undef setpgid
76177 /* Override any GCC internal prototype to avoid an error.
76178 Use char because int might match the return type of a GCC
76179 builtin and then its argument prototype would still apply. */
76180 #ifdef __cplusplus
76181 extern "C"
76182 #endif
76183 char setpgid ();
76184 /* The GNU C library defines this for functions which it implements
76185 to always fail with ENOSYS. Some functions are actually named
76186 something starting with __ and the normal name is an alias. */
76187 #if defined __stub_setpgid || defined __stub___setpgid
76188 choke me
76189 #endif
76192 main ()
76194 return setpgid ();
76196 return 0;
76198 _ACEOF
76199 rm -f conftest.$ac_objext conftest$ac_exeext
76200 if { (ac_try="$ac_link"
76201 case "(($ac_try" in
76202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76203 *) ac_try_echo=$ac_try;;
76204 esac
76205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
76206 (eval "$ac_link") 2>conftest.er1
76207 ac_status=$?
76208 grep -v '^ *+' conftest.er1 >conftest.err
76209 rm -f conftest.er1
76210 cat conftest.err >&5
76211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
76212 (exit $ac_status); } && {
76213 test -z "$ac_c_werror_flag" ||
76214 test ! -s conftest.err
76215 } && test -s conftest$ac_exeext &&
76216 $as_test_x conftest$ac_exeext; then
76217 ac_cv_func_setpgid=yes
76218 else
76219 echo "$as_me: failed program was:" >&5
76220 sed 's/^/| /' conftest.$ac_ext >&5
76222 ac_cv_func_setpgid=no
76225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
76226 conftest$ac_exeext conftest.$ac_ext
76228 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
76229 echo "${ECHO_T}$ac_cv_func_setpgid" >&6; }
76230 if test $ac_cv_func_setpgid = yes; then
76231 ompi_check_slurm_happy="yes"
76232 else
76233 ompi_check_slurm_happy="no"
76239 if test "$ompi_check_slurm_happy" = "yes"; then
76240 ras_slurm_good=1
76241 else
76242 ras_slurm_good=0
76247 # if check worked, set wrapper flags if so.
76248 # Evaluate succeed / fail
76249 if test "$ras_slurm_good" = "1"; then
76250 ras_slurm_WRAPPER_EXTRA_LDFLAGS="$ras_slurm_LDFLAGS"
76251 ras_slurm_WRAPPER_EXTRA_LIBS="$ras_slurm_LIBS"
76252 should_build=1
76253 else
76254 should_build=0
76258 # set build flags to use in makefile
76266 if test "$should_build" = "1"; then
76268 project=orte
76269 framework=ras
76270 component=slurm
76272 # See if it dropped an output file for us to pick up some
76273 # shell variables in.
76274 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
76276 # Add this subdir to the mast list of all MCA component subdirs
76277 all_components="$all_components $component"
76279 if test "$compile_mode" = "dso" ; then
76280 dso_components="$dso_components $component"
76281 else
76282 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
76283 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
76284 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
76285 static_components="$static_components $component"
76288 # Output pretty results
76289 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
76290 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
76291 { echo "$as_me:$LINENO: result: yes" >&5
76292 echo "${ECHO_T}yes" >&6; }
76294 # If there's an output file, add the values to
76295 # scope_EXTRA_flags.
76296 if test -f $infile; then
76298 # First check for the ABORT tag
76299 line="`grep ABORT= $infile | cut -d= -f2-`"
76300 if test -n "$line" -a "$line" != "no"; then
76301 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
76302 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
76303 { { echo "$as_me:$LINENO: error: cannot continue" >&5
76304 echo "$as_me: error: cannot continue" >&2;}
76305 { (exit 1); exit 1; }; }
76308 # Check for flags passed up from the component. If we're
76309 # compiling statically, then take all flags passed up from the
76310 # component.
76311 if test "$compile_mode" = "static"; then
76312 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
76313 eval "line=$line"
76314 if test -n "$line"; then
76315 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
76317 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
76318 eval "line=$line"
76319 if test -n "$line"; then
76320 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
76324 if test "$DIRECT_ras" = "$component" ; then
76325 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
76326 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
76327 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
76328 eval $str
76329 else
76330 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
76331 *** does not appear to support direct calling.
76332 *** Aborting" >&5
76333 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
76334 *** does not appear to support direct calling.
76335 *** Aborting" >&2;}
76336 { (exit 1); exit 1; }; }
76339 else
76340 # were we supposed to have found something in the
76341 # post_configure.sh, but the file didn't exist?
76342 if test "$DIRECT_ras" = "$component" ; then
76343 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
76344 *** does not appear to support direct calling.
76345 *** Aborting" >&5
76346 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
76347 *** does not appear to support direct calling.
76348 *** Aborting" >&2;}
76349 { (exit 1); exit 1; }; }
76353 # now add the flags that were set in the environment variables
76354 # framework_component_FOO (for example, the flags set by
76355 # m4_configure components)
76357 # Check for flags passed up from the component. If we're
76358 # compiling statically, then take all flags passed up from the
76359 # component.
76360 if test "$compile_mode" = "static"; then
76361 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
76362 eval "$str"
76363 if test -n "$line" ; then
76364 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
76366 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
76367 eval "$str"
76368 if test -n "$line" ; then
76369 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
76373 else
76375 { echo "$as_me:$LINENO: checking if MCA component ras:slurm can compile" >&5
76376 echo $ECHO_N "checking if MCA component ras:slurm can compile... $ECHO_C" >&6; }
76377 { echo "$as_me:$LINENO: result: no" >&5
76378 echo "${ECHO_T}no" >&6; }
76380 # If this component was requested as the default for this
76381 # type, then abort.
76382 if test "$with_ras" = "slurm" ; then
76383 { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
76384 echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
76385 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
76386 echo "$as_me: WARNING: This component was selected as the default" >&2;}
76387 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
76388 echo "$as_me: error: Cannot continue" >&2;}
76389 { (exit 1); exit 1; }; }
76390 exit 1
76393 if test ! -z "$DIRECT_ras" ; then
76394 if test "$DIRECT_ras" = "slurm" ; then
76395 { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
76396 echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
76397 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
76398 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
76399 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
76400 echo "$as_me: error: Cannot continue" >&2;}
76401 { (exit 1); exit 1; }; }
76402 exit 1
76406 # add component to all component list
76407 all_components="$all_components slurm"
76411 # set the AM_CONDITIONAL on how we should build
76412 if test "$compile_mode" = "dso"; then
76413 BUILD_ras_slurm_DSO=1
76414 else
76415 BUILD_ras_slurm_DSO=0
76420 if test "$BUILD_ras_slurm_DSO" = "1"; then
76421 OMPI_BUILD_ras_slurm_DSO_TRUE=
76422 OMPI_BUILD_ras_slurm_DSO_FALSE='#'
76423 else
76424 OMPI_BUILD_ras_slurm_DSO_TRUE='#'
76425 OMPI_BUILD_ras_slurm_DSO_FALSE=
76429 if test "$should_build" = "1"; then
76430 components_looking_for_succeed="$happy_value"
76434 unset compile_mode
76436 ompi_show_subsubsubtitle "MCA component ras:tm (m4 configuration macro)"
76439 project=orte
76440 framework=ras
76441 component=tm
76442 component_path="$srcdir/$project/mca/$framework/$component"
76443 want_component=0
76445 # build if:
76446 # - the component type is direct and we are that component
76447 # - there is no ompi_ignore file
76448 # - there is an ompi_ignore, but there is an empty ompi_unignore
76449 # - there is an ompi_ignore, but username is in ompi_unignore
76450 if test -d $component_path ; then
76451 # decide if we want the component to be built or not. This
76452 # is spread out because some of the logic is a little complex
76453 # and test's syntax isn't exactly the greatest. We want to
76454 # build the component by default.
76455 want_component=1
76456 if test -f $component_path/.ompi_ignore ; then
76457 # If there is an ompi_ignore file, don't build
76458 # the component. Note that this decision can be
76459 # overriden by the unignore logic below.
76460 want_component=0
76462 if test -f $component_path/.ompi_unignore ; then
76463 # if there is an empty ompi_unignore, that is
76464 # equivalent to having your userid in the unignore file.
76465 # If userid is in the file, unignore the ignore file.
76466 if test ! -s $component_path/.ompi_unignore ; then
76467 want_component=1
76468 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
76469 want_component=1
76472 # if this component type is direct and we are not it, we don't want
76473 # to be built. Otherwise, we do want to be built.
76474 if test ! -z "$DIRECT_ras" ; then
76475 if test "$DIRECT_ras" = "$component" ; then
76476 want_component=1
76477 else
76478 want_component=0
76483 # if we were explicitly disabled, don't build :)
76484 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
76485 eval $str
76486 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
76487 want_component=0
76490 if test "$want_component" = "1"; then
76491 should_build=$components_looking_for_succeed
76492 else
76493 should_build=0
76497 # Allow the component to override the build mode if it really wants to.
76498 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
76500 project=orte
76501 framework=ras
76502 component=tm
76504 # Is this component going to built staic or shared? $component
76505 # might not be known until configure time, so have to use eval
76506 # tricks - can't set variable names at autogen time.
76507 str="SHARED_FRAMEWORK=\$DSO_$framework"
76508 eval $str
76509 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
76510 eval $str
76512 str="STATIC_FRAMEWORK=\$STATIC_$framework"
76513 eval $str
76514 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
76515 eval $str
76517 shared_mode_override=static
76519 # Setup for either shared or static
76520 if test "$STATIC_FRAMEWORK" = "1" -o \
76521 "$STATIC_COMPONENT" = "1" -o \
76522 "$STATIC_all" = "1" ; then
76523 compile_mode="static"
76524 elif test "$shared_mode_override" = "dso" -o \
76525 "$SHARED_FRAMEWORK" = "1" -o \
76526 "$SHARED_COMPONENT" = "1" -o \
76527 "$DSO_all" = "1"; then
76528 compile_mode="dso"
76529 else
76530 compile_mode="static"
76533 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
76534 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
76535 if test "$DIRECT_ras" = "$component" ; then
76536 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
76537 echo "${ECHO_T}$compile_mode - direct" >&6; }
76538 else
76539 { echo "$as_me:$LINENO: result: $compile_mode" >&5
76540 echo "${ECHO_T}$compile_mode" >&6; }
76544 # try to configure the component. pay no attention to
76545 # --enable-dist, since we'll always have makefiles.
76546 if test "$should_build" = "1"; then
76550 # Check whether --with-tm was given.
76551 if test "${with_tm+set}" = set; then
76552 withval=$with_tm;
76556 if test "$with_tm" = "no"; then
76557 ompi_check_tm_hapy="no"
76558 else
76559 ompi_check_tm_happy="yes"
76560 if test ! -z "$with_tm" -a "$with_tm" != "yes"; then
76561 ompi_check_tm_dir="$with_tm"
76562 else
76563 ompi_check_tm_dir=""
76569 # Note that Torque 2.1.0 changed the name of their back-end
76570 # library to "libtorque". So we have to check for both libpbs and
76571 # libtorque. First, check for libpbs.
76573 if test "$ompi_check_tm_happy" = "yes"; then
76575 ompi_check_package_ras_tm_save_CPPFLAGS="$CPPFLAGS"
76576 ompi_check_package_ras_tm_save_LDFLAGS="$LDFLAGS"
76577 ompi_check_package_ras_tm_save_LIBS="$LIBS"
76579 ompi_check_package_ras_tm_orig_CPPFLAGS="$ras_tm_CPPFLAGS"
76580 ompi_check_package_ras_tm_orig_LDFLAGS="$ras_tm_LDFLAGS"
76581 ompi_check_package_ras_tm_orig_LIBS="$ras_tm_LIBS"
76584 # This is stolen from autoconf to peek under the covers to get the
76585 # cache variable for the library check. one should not copy this
76586 # code into other places unless you want much pain and suffering
76589 # so this sucks, but there's no way to get through the progression
76590 # of header includes without killing off the cache variable and trying
76591 # again...
76592 unset ac_cv_header_tm_h
76594 ompi_check_package_header_happy="no"
76595 if test "$ompi_check_tm_dir" = "/usr" -o "$ompi_check_tm_dir" = "/usr/local"; then
76596 # try as is...
76597 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
76598 echo "${ECHO_T}looking for header without includes" >&6; }
76599 if test "${ac_cv_header_tm_h+set}" = set; then
76600 { echo "$as_me:$LINENO: checking for tm.h" >&5
76601 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
76602 if test "${ac_cv_header_tm_h+set}" = set; then
76603 echo $ECHO_N "(cached) $ECHO_C" >&6
76605 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
76606 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
76607 else
76608 # Is the header compilable?
76609 { echo "$as_me:$LINENO: checking tm.h usability" >&5
76610 echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; }
76611 cat >conftest.$ac_ext <<_ACEOF
76612 /* confdefs.h. */
76613 _ACEOF
76614 cat confdefs.h >>conftest.$ac_ext
76615 cat >>conftest.$ac_ext <<_ACEOF
76616 /* end confdefs.h. */
76617 $ac_includes_default
76618 #include <tm.h>
76619 _ACEOF
76620 rm -f conftest.$ac_objext
76621 if { (ac_try="$ac_compile"
76622 case "(($ac_try" in
76623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76624 *) ac_try_echo=$ac_try;;
76625 esac
76626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
76627 (eval "$ac_compile") 2>conftest.er1
76628 ac_status=$?
76629 grep -v '^ *+' conftest.er1 >conftest.err
76630 rm -f conftest.er1
76631 cat conftest.err >&5
76632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
76633 (exit $ac_status); } && {
76634 test -z "$ac_c_werror_flag" ||
76635 test ! -s conftest.err
76636 } && test -s conftest.$ac_objext; then
76637 ac_header_compiler=yes
76638 else
76639 echo "$as_me: failed program was:" >&5
76640 sed 's/^/| /' conftest.$ac_ext >&5
76642 ac_header_compiler=no
76645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
76647 echo "${ECHO_T}$ac_header_compiler" >&6; }
76649 # Is the header present?
76650 { echo "$as_me:$LINENO: checking tm.h presence" >&5
76651 echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; }
76652 cat >conftest.$ac_ext <<_ACEOF
76653 /* confdefs.h. */
76654 _ACEOF
76655 cat confdefs.h >>conftest.$ac_ext
76656 cat >>conftest.$ac_ext <<_ACEOF
76657 /* end confdefs.h. */
76658 #include <tm.h>
76659 _ACEOF
76660 if { (ac_try="$ac_cpp conftest.$ac_ext"
76661 case "(($ac_try" in
76662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76663 *) ac_try_echo=$ac_try;;
76664 esac
76665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
76666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
76667 ac_status=$?
76668 grep -v '^ *+' conftest.er1 >conftest.err
76669 rm -f conftest.er1
76670 cat conftest.err >&5
76671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
76672 (exit $ac_status); } >/dev/null && {
76673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
76674 test ! -s conftest.err
76675 }; then
76676 ac_header_preproc=yes
76677 else
76678 echo "$as_me: failed program was:" >&5
76679 sed 's/^/| /' conftest.$ac_ext >&5
76681 ac_header_preproc=no
76684 rm -f conftest.err conftest.$ac_ext
76685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
76686 echo "${ECHO_T}$ac_header_preproc" >&6; }
76688 # So? What about this header?
76689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
76690 yes:no: )
76691 { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
76692 echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
76693 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
76694 echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
76695 ac_header_preproc=yes
76697 no:yes:* )
76698 { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
76699 echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
76700 { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5
76701 echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;}
76702 { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
76703 echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
76704 { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5
76705 echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;}
76706 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
76707 echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
76708 { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
76709 echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
76710 ( cat <<\_ASBOX
76711 ## ------------------------------------------------------ ##
76712 ## Report this to http://www.open-mpi.org/community/help/ ##
76713 ## ------------------------------------------------------ ##
76714 _ASBOX
76715 ) | sed "s/^/$as_me: WARNING: /" >&2
76717 esac
76718 { echo "$as_me:$LINENO: checking for tm.h" >&5
76719 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
76720 if test "${ac_cv_header_tm_h+set}" = set; then
76721 echo $ECHO_N "(cached) $ECHO_C" >&6
76722 else
76723 ac_cv_header_tm_h=$ac_header_preproc
76725 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
76726 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
76729 if test $ac_cv_header_tm_h = yes; then
76730 ompi_check_package_header_happy="yes"
76731 else
76732 ompi_check_package_header_happy="no"
76736 if test "$ompi_check_package_header_happy" = "no"; then
76737 # no go on the as is - reset the cache and try again
76738 unset ac_cv_header_tm_h
76744 if test "$ompi_check_package_header_happy" = "no"; then
76745 if test "$ompi_check_tm_dir" != ""; then
76746 ras_tm_CPPFLAGS="$ras_tm_CPPFLAGS -I$ompi_check_tm_dir/include"
76747 CPPFLAGS="$CPPFLAGS -I$ompi_check_tm_dir/include"
76750 if test "${ac_cv_header_tm_h+set}" = set; then
76751 { echo "$as_me:$LINENO: checking for tm.h" >&5
76752 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
76753 if test "${ac_cv_header_tm_h+set}" = set; then
76754 echo $ECHO_N "(cached) $ECHO_C" >&6
76756 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
76757 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
76758 else
76759 # Is the header compilable?
76760 { echo "$as_me:$LINENO: checking tm.h usability" >&5
76761 echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; }
76762 cat >conftest.$ac_ext <<_ACEOF
76763 /* confdefs.h. */
76764 _ACEOF
76765 cat confdefs.h >>conftest.$ac_ext
76766 cat >>conftest.$ac_ext <<_ACEOF
76767 /* end confdefs.h. */
76768 $ac_includes_default
76769 #include <tm.h>
76770 _ACEOF
76771 rm -f conftest.$ac_objext
76772 if { (ac_try="$ac_compile"
76773 case "(($ac_try" in
76774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76775 *) ac_try_echo=$ac_try;;
76776 esac
76777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
76778 (eval "$ac_compile") 2>conftest.er1
76779 ac_status=$?
76780 grep -v '^ *+' conftest.er1 >conftest.err
76781 rm -f conftest.er1
76782 cat conftest.err >&5
76783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
76784 (exit $ac_status); } && {
76785 test -z "$ac_c_werror_flag" ||
76786 test ! -s conftest.err
76787 } && test -s conftest.$ac_objext; then
76788 ac_header_compiler=yes
76789 else
76790 echo "$as_me: failed program was:" >&5
76791 sed 's/^/| /' conftest.$ac_ext >&5
76793 ac_header_compiler=no
76796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
76798 echo "${ECHO_T}$ac_header_compiler" >&6; }
76800 # Is the header present?
76801 { echo "$as_me:$LINENO: checking tm.h presence" >&5
76802 echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; }
76803 cat >conftest.$ac_ext <<_ACEOF
76804 /* confdefs.h. */
76805 _ACEOF
76806 cat confdefs.h >>conftest.$ac_ext
76807 cat >>conftest.$ac_ext <<_ACEOF
76808 /* end confdefs.h. */
76809 #include <tm.h>
76810 _ACEOF
76811 if { (ac_try="$ac_cpp conftest.$ac_ext"
76812 case "(($ac_try" in
76813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76814 *) ac_try_echo=$ac_try;;
76815 esac
76816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
76817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
76818 ac_status=$?
76819 grep -v '^ *+' conftest.er1 >conftest.err
76820 rm -f conftest.er1
76821 cat conftest.err >&5
76822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
76823 (exit $ac_status); } >/dev/null && {
76824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
76825 test ! -s conftest.err
76826 }; then
76827 ac_header_preproc=yes
76828 else
76829 echo "$as_me: failed program was:" >&5
76830 sed 's/^/| /' conftest.$ac_ext >&5
76832 ac_header_preproc=no
76835 rm -f conftest.err conftest.$ac_ext
76836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
76837 echo "${ECHO_T}$ac_header_preproc" >&6; }
76839 # So? What about this header?
76840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
76841 yes:no: )
76842 { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
76843 echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
76844 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
76845 echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
76846 ac_header_preproc=yes
76848 no:yes:* )
76849 { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
76850 echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
76851 { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5
76852 echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;}
76853 { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
76854 echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
76855 { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5
76856 echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;}
76857 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
76858 echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
76859 { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
76860 echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
76861 ( cat <<\_ASBOX
76862 ## ------------------------------------------------------ ##
76863 ## Report this to http://www.open-mpi.org/community/help/ ##
76864 ## ------------------------------------------------------ ##
76865 _ASBOX
76866 ) | sed "s/^/$as_me: WARNING: /" >&2
76868 esac
76869 { echo "$as_me:$LINENO: checking for tm.h" >&5
76870 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
76871 if test "${ac_cv_header_tm_h+set}" = set; then
76872 echo $ECHO_N "(cached) $ECHO_C" >&6
76873 else
76874 ac_cv_header_tm_h=$ac_header_preproc
76876 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
76877 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
76880 if test $ac_cv_header_tm_h = yes; then
76882 # This is stolen from autoconf to peek under the covers to get the
76883 # cache variable for the library check. one should not copy this
76884 # code into other places unless you want much pain and suffering
76886 # see comment above
76887 unset ac_cv_lib_pbs_tm_init
76888 ompi_check_package_lib_happy="no"
76889 if test "" != ""; then
76890 # libdir was specified - search only there
76891 ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L"
76892 LDFLAGS="$LDFLAGS -L"
76893 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
76894 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
76895 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
76896 echo $ECHO_N "(cached) $ECHO_C" >&6
76897 else
76898 ac_check_lib_save_LIBS=$LIBS
76899 LIBS="-lpbs $LIBS"
76900 cat >conftest.$ac_ext <<_ACEOF
76901 /* confdefs.h. */
76902 _ACEOF
76903 cat confdefs.h >>conftest.$ac_ext
76904 cat >>conftest.$ac_ext <<_ACEOF
76905 /* end confdefs.h. */
76907 /* Override any GCC internal prototype to avoid an error.
76908 Use char because int might match the return type of a GCC
76909 builtin and then its argument prototype would still apply. */
76910 #ifdef __cplusplus
76911 extern "C"
76912 #endif
76913 char tm_init ();
76915 main ()
76917 return tm_init ();
76919 return 0;
76921 _ACEOF
76922 rm -f conftest.$ac_objext conftest$ac_exeext
76923 if { (ac_try="$ac_link"
76924 case "(($ac_try" in
76925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76926 *) ac_try_echo=$ac_try;;
76927 esac
76928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
76929 (eval "$ac_link") 2>conftest.er1
76930 ac_status=$?
76931 grep -v '^ *+' conftest.er1 >conftest.err
76932 rm -f conftest.er1
76933 cat conftest.err >&5
76934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
76935 (exit $ac_status); } && {
76936 test -z "$ac_c_werror_flag" ||
76937 test ! -s conftest.err
76938 } && test -s conftest$ac_exeext &&
76939 $as_test_x conftest$ac_exeext; then
76940 ac_cv_lib_pbs_tm_init=yes
76941 else
76942 echo "$as_me: failed program was:" >&5
76943 sed 's/^/| /' conftest.$ac_ext >&5
76945 ac_cv_lib_pbs_tm_init=no
76948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
76949 conftest$ac_exeext conftest.$ac_ext
76950 LIBS=$ac_check_lib_save_LIBS
76952 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
76953 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
76954 if test $ac_cv_lib_pbs_tm_init = yes; then
76955 ompi_check_package_lib_happy="yes"
76956 else
76957 ompi_check_package_lib_happy="no"
76960 if test "$ompi_check_package_lib_happy" = "no"; then
76961 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
76962 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
76963 unset ac_cv_lib_pbs_tm_init
76966 else
76967 # libdir was not specified - go through search path
76968 ompi_check_package_libdir="$ompi_check_tm_dir"
76969 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
76970 # try as is...
76971 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
76972 echo "${ECHO_T}looking for library without search path" >&6; }
76973 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
76974 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
76975 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
76976 echo $ECHO_N "(cached) $ECHO_C" >&6
76977 else
76978 ac_check_lib_save_LIBS=$LIBS
76979 LIBS="-lpbs $LIBS"
76980 cat >conftest.$ac_ext <<_ACEOF
76981 /* confdefs.h. */
76982 _ACEOF
76983 cat confdefs.h >>conftest.$ac_ext
76984 cat >>conftest.$ac_ext <<_ACEOF
76985 /* end confdefs.h. */
76987 /* Override any GCC internal prototype to avoid an error.
76988 Use char because int might match the return type of a GCC
76989 builtin and then its argument prototype would still apply. */
76990 #ifdef __cplusplus
76991 extern "C"
76992 #endif
76993 char tm_init ();
76995 main ()
76997 return tm_init ();
76999 return 0;
77001 _ACEOF
77002 rm -f conftest.$ac_objext conftest$ac_exeext
77003 if { (ac_try="$ac_link"
77004 case "(($ac_try" in
77005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77006 *) ac_try_echo=$ac_try;;
77007 esac
77008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
77009 (eval "$ac_link") 2>conftest.er1
77010 ac_status=$?
77011 grep -v '^ *+' conftest.er1 >conftest.err
77012 rm -f conftest.er1
77013 cat conftest.err >&5
77014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77015 (exit $ac_status); } && {
77016 test -z "$ac_c_werror_flag" ||
77017 test ! -s conftest.err
77018 } && test -s conftest$ac_exeext &&
77019 $as_test_x conftest$ac_exeext; then
77020 ac_cv_lib_pbs_tm_init=yes
77021 else
77022 echo "$as_me: failed program was:" >&5
77023 sed 's/^/| /' conftest.$ac_ext >&5
77025 ac_cv_lib_pbs_tm_init=no
77028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
77029 conftest$ac_exeext conftest.$ac_ext
77030 LIBS=$ac_check_lib_save_LIBS
77032 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
77033 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
77034 if test $ac_cv_lib_pbs_tm_init = yes; then
77035 ompi_check_package_lib_happy="yes"
77036 else
77037 ompi_check_package_lib_happy="no"
77040 if test "$ompi_check_package_lib_happy" = "no"; then
77041 # no go on the as is.. see what happens later...
77042 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
77043 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
77044 unset ac_cv_lib_pbs_tm_init
77050 if test "$ompi_check_package_lib_happy" = "no"; then
77051 if test "$ompi_check_package_libdir" != ""; then
77052 ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
77053 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
77054 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
77055 echo "${ECHO_T}looking for library in lib" >&6; }
77056 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
77057 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
77058 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
77059 echo $ECHO_N "(cached) $ECHO_C" >&6
77060 else
77061 ac_check_lib_save_LIBS=$LIBS
77062 LIBS="-lpbs $LIBS"
77063 cat >conftest.$ac_ext <<_ACEOF
77064 /* confdefs.h. */
77065 _ACEOF
77066 cat confdefs.h >>conftest.$ac_ext
77067 cat >>conftest.$ac_ext <<_ACEOF
77068 /* end confdefs.h. */
77070 /* Override any GCC internal prototype to avoid an error.
77071 Use char because int might match the return type of a GCC
77072 builtin and then its argument prototype would still apply. */
77073 #ifdef __cplusplus
77074 extern "C"
77075 #endif
77076 char tm_init ();
77078 main ()
77080 return tm_init ();
77082 return 0;
77084 _ACEOF
77085 rm -f conftest.$ac_objext conftest$ac_exeext
77086 if { (ac_try="$ac_link"
77087 case "(($ac_try" in
77088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77089 *) ac_try_echo=$ac_try;;
77090 esac
77091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
77092 (eval "$ac_link") 2>conftest.er1
77093 ac_status=$?
77094 grep -v '^ *+' conftest.er1 >conftest.err
77095 rm -f conftest.er1
77096 cat conftest.err >&5
77097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77098 (exit $ac_status); } && {
77099 test -z "$ac_c_werror_flag" ||
77100 test ! -s conftest.err
77101 } && test -s conftest$ac_exeext &&
77102 $as_test_x conftest$ac_exeext; then
77103 ac_cv_lib_pbs_tm_init=yes
77104 else
77105 echo "$as_me: failed program was:" >&5
77106 sed 's/^/| /' conftest.$ac_ext >&5
77108 ac_cv_lib_pbs_tm_init=no
77111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
77112 conftest$ac_exeext conftest.$ac_ext
77113 LIBS=$ac_check_lib_save_LIBS
77115 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
77116 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
77117 if test $ac_cv_lib_pbs_tm_init = yes; then
77118 ompi_check_package_lib_happy="yes"
77119 else
77120 ompi_check_package_lib_happy="no"
77123 if test "$ompi_check_package_lib_happy" = "no"; then
77124 # no go on the as is.. see what happens later...
77125 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
77126 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
77127 unset ac_cv_lib_pbs_tm_init
77135 if test "$ompi_check_package_lib_happy" = "no"; then
77136 if test "$ompi_check_package_libdir" != ""; then
77137 ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
77138 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
77139 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
77140 echo "${ECHO_T}looking for library in lib64" >&6; }
77141 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
77142 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
77143 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
77144 echo $ECHO_N "(cached) $ECHO_C" >&6
77145 else
77146 ac_check_lib_save_LIBS=$LIBS
77147 LIBS="-lpbs $LIBS"
77148 cat >conftest.$ac_ext <<_ACEOF
77149 /* confdefs.h. */
77150 _ACEOF
77151 cat confdefs.h >>conftest.$ac_ext
77152 cat >>conftest.$ac_ext <<_ACEOF
77153 /* end confdefs.h. */
77155 /* Override any GCC internal prototype to avoid an error.
77156 Use char because int might match the return type of a GCC
77157 builtin and then its argument prototype would still apply. */
77158 #ifdef __cplusplus
77159 extern "C"
77160 #endif
77161 char tm_init ();
77163 main ()
77165 return tm_init ();
77167 return 0;
77169 _ACEOF
77170 rm -f conftest.$ac_objext conftest$ac_exeext
77171 if { (ac_try="$ac_link"
77172 case "(($ac_try" in
77173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77174 *) ac_try_echo=$ac_try;;
77175 esac
77176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
77177 (eval "$ac_link") 2>conftest.er1
77178 ac_status=$?
77179 grep -v '^ *+' conftest.er1 >conftest.err
77180 rm -f conftest.er1
77181 cat conftest.err >&5
77182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77183 (exit $ac_status); } && {
77184 test -z "$ac_c_werror_flag" ||
77185 test ! -s conftest.err
77186 } && test -s conftest$ac_exeext &&
77187 $as_test_x conftest$ac_exeext; then
77188 ac_cv_lib_pbs_tm_init=yes
77189 else
77190 echo "$as_me: failed program was:" >&5
77191 sed 's/^/| /' conftest.$ac_ext >&5
77193 ac_cv_lib_pbs_tm_init=no
77196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
77197 conftest$ac_exeext conftest.$ac_ext
77198 LIBS=$ac_check_lib_save_LIBS
77200 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
77201 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
77202 if test $ac_cv_lib_pbs_tm_init = yes; then
77203 ompi_check_package_lib_happy="yes"
77204 else
77205 ompi_check_package_lib_happy="no"
77208 if test "$ompi_check_package_lib_happy" = "no"; then
77209 # no go on the as is.. see what happens later...
77210 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
77211 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
77212 unset ac_cv_lib_pbs_tm_init
77222 if test "$ompi_check_package_lib_happy" = "yes"; then
77223 ompi_check_package_happy="yes"
77224 else
77225 ompi_check_package_happy="no"
77230 else
77231 ompi_check_package_happy="no"
77235 else
77237 # This is stolen from autoconf to peek under the covers to get the
77238 # cache variable for the library check. one should not copy this
77239 # code into other places unless you want much pain and suffering
77241 # see comment above
77242 unset ac_cv_lib_pbs_tm_init
77243 ompi_check_package_lib_happy="no"
77244 if test "" != ""; then
77245 # libdir was specified - search only there
77246 ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L"
77247 LDFLAGS="$LDFLAGS -L"
77248 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
77249 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
77250 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
77251 echo $ECHO_N "(cached) $ECHO_C" >&6
77252 else
77253 ac_check_lib_save_LIBS=$LIBS
77254 LIBS="-lpbs $LIBS"
77255 cat >conftest.$ac_ext <<_ACEOF
77256 /* confdefs.h. */
77257 _ACEOF
77258 cat confdefs.h >>conftest.$ac_ext
77259 cat >>conftest.$ac_ext <<_ACEOF
77260 /* end confdefs.h. */
77262 /* Override any GCC internal prototype to avoid an error.
77263 Use char because int might match the return type of a GCC
77264 builtin and then its argument prototype would still apply. */
77265 #ifdef __cplusplus
77266 extern "C"
77267 #endif
77268 char tm_init ();
77270 main ()
77272 return tm_init ();
77274 return 0;
77276 _ACEOF
77277 rm -f conftest.$ac_objext conftest$ac_exeext
77278 if { (ac_try="$ac_link"
77279 case "(($ac_try" in
77280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77281 *) ac_try_echo=$ac_try;;
77282 esac
77283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
77284 (eval "$ac_link") 2>conftest.er1
77285 ac_status=$?
77286 grep -v '^ *+' conftest.er1 >conftest.err
77287 rm -f conftest.er1
77288 cat conftest.err >&5
77289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77290 (exit $ac_status); } && {
77291 test -z "$ac_c_werror_flag" ||
77292 test ! -s conftest.err
77293 } && test -s conftest$ac_exeext &&
77294 $as_test_x conftest$ac_exeext; then
77295 ac_cv_lib_pbs_tm_init=yes
77296 else
77297 echo "$as_me: failed program was:" >&5
77298 sed 's/^/| /' conftest.$ac_ext >&5
77300 ac_cv_lib_pbs_tm_init=no
77303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
77304 conftest$ac_exeext conftest.$ac_ext
77305 LIBS=$ac_check_lib_save_LIBS
77307 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
77308 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
77309 if test $ac_cv_lib_pbs_tm_init = yes; then
77310 ompi_check_package_lib_happy="yes"
77311 else
77312 ompi_check_package_lib_happy="no"
77315 if test "$ompi_check_package_lib_happy" = "no"; then
77316 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
77317 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
77318 unset ac_cv_lib_pbs_tm_init
77321 else
77322 # libdir was not specified - go through search path
77323 ompi_check_package_libdir="$ompi_check_tm_dir"
77324 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
77325 # try as is...
77326 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
77327 echo "${ECHO_T}looking for library without search path" >&6; }
77328 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
77329 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
77330 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
77331 echo $ECHO_N "(cached) $ECHO_C" >&6
77332 else
77333 ac_check_lib_save_LIBS=$LIBS
77334 LIBS="-lpbs $LIBS"
77335 cat >conftest.$ac_ext <<_ACEOF
77336 /* confdefs.h. */
77337 _ACEOF
77338 cat confdefs.h >>conftest.$ac_ext
77339 cat >>conftest.$ac_ext <<_ACEOF
77340 /* end confdefs.h. */
77342 /* Override any GCC internal prototype to avoid an error.
77343 Use char because int might match the return type of a GCC
77344 builtin and then its argument prototype would still apply. */
77345 #ifdef __cplusplus
77346 extern "C"
77347 #endif
77348 char tm_init ();
77350 main ()
77352 return tm_init ();
77354 return 0;
77356 _ACEOF
77357 rm -f conftest.$ac_objext conftest$ac_exeext
77358 if { (ac_try="$ac_link"
77359 case "(($ac_try" in
77360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77361 *) ac_try_echo=$ac_try;;
77362 esac
77363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
77364 (eval "$ac_link") 2>conftest.er1
77365 ac_status=$?
77366 grep -v '^ *+' conftest.er1 >conftest.err
77367 rm -f conftest.er1
77368 cat conftest.err >&5
77369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77370 (exit $ac_status); } && {
77371 test -z "$ac_c_werror_flag" ||
77372 test ! -s conftest.err
77373 } && test -s conftest$ac_exeext &&
77374 $as_test_x conftest$ac_exeext; then
77375 ac_cv_lib_pbs_tm_init=yes
77376 else
77377 echo "$as_me: failed program was:" >&5
77378 sed 's/^/| /' conftest.$ac_ext >&5
77380 ac_cv_lib_pbs_tm_init=no
77383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
77384 conftest$ac_exeext conftest.$ac_ext
77385 LIBS=$ac_check_lib_save_LIBS
77387 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
77388 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
77389 if test $ac_cv_lib_pbs_tm_init = yes; then
77390 ompi_check_package_lib_happy="yes"
77391 else
77392 ompi_check_package_lib_happy="no"
77395 if test "$ompi_check_package_lib_happy" = "no"; then
77396 # no go on the as is.. see what happens later...
77397 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
77398 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
77399 unset ac_cv_lib_pbs_tm_init
77405 if test "$ompi_check_package_lib_happy" = "no"; then
77406 if test "$ompi_check_package_libdir" != ""; then
77407 ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
77408 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
77409 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
77410 echo "${ECHO_T}looking for library in lib" >&6; }
77411 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
77412 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
77413 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
77414 echo $ECHO_N "(cached) $ECHO_C" >&6
77415 else
77416 ac_check_lib_save_LIBS=$LIBS
77417 LIBS="-lpbs $LIBS"
77418 cat >conftest.$ac_ext <<_ACEOF
77419 /* confdefs.h. */
77420 _ACEOF
77421 cat confdefs.h >>conftest.$ac_ext
77422 cat >>conftest.$ac_ext <<_ACEOF
77423 /* end confdefs.h. */
77425 /* Override any GCC internal prototype to avoid an error.
77426 Use char because int might match the return type of a GCC
77427 builtin and then its argument prototype would still apply. */
77428 #ifdef __cplusplus
77429 extern "C"
77430 #endif
77431 char tm_init ();
77433 main ()
77435 return tm_init ();
77437 return 0;
77439 _ACEOF
77440 rm -f conftest.$ac_objext conftest$ac_exeext
77441 if { (ac_try="$ac_link"
77442 case "(($ac_try" in
77443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77444 *) ac_try_echo=$ac_try;;
77445 esac
77446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
77447 (eval "$ac_link") 2>conftest.er1
77448 ac_status=$?
77449 grep -v '^ *+' conftest.er1 >conftest.err
77450 rm -f conftest.er1
77451 cat conftest.err >&5
77452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77453 (exit $ac_status); } && {
77454 test -z "$ac_c_werror_flag" ||
77455 test ! -s conftest.err
77456 } && test -s conftest$ac_exeext &&
77457 $as_test_x conftest$ac_exeext; then
77458 ac_cv_lib_pbs_tm_init=yes
77459 else
77460 echo "$as_me: failed program was:" >&5
77461 sed 's/^/| /' conftest.$ac_ext >&5
77463 ac_cv_lib_pbs_tm_init=no
77466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
77467 conftest$ac_exeext conftest.$ac_ext
77468 LIBS=$ac_check_lib_save_LIBS
77470 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
77471 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
77472 if test $ac_cv_lib_pbs_tm_init = yes; then
77473 ompi_check_package_lib_happy="yes"
77474 else
77475 ompi_check_package_lib_happy="no"
77478 if test "$ompi_check_package_lib_happy" = "no"; then
77479 # no go on the as is.. see what happens later...
77480 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
77481 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
77482 unset ac_cv_lib_pbs_tm_init
77490 if test "$ompi_check_package_lib_happy" = "no"; then
77491 if test "$ompi_check_package_libdir" != ""; then
77492 ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
77493 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
77494 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
77495 echo "${ECHO_T}looking for library in lib64" >&6; }
77496 { echo "$as_me:$LINENO: checking for tm_init in -lpbs" >&5
77497 echo $ECHO_N "checking for tm_init in -lpbs... $ECHO_C" >&6; }
77498 if test "${ac_cv_lib_pbs_tm_init+set}" = set; then
77499 echo $ECHO_N "(cached) $ECHO_C" >&6
77500 else
77501 ac_check_lib_save_LIBS=$LIBS
77502 LIBS="-lpbs $LIBS"
77503 cat >conftest.$ac_ext <<_ACEOF
77504 /* confdefs.h. */
77505 _ACEOF
77506 cat confdefs.h >>conftest.$ac_ext
77507 cat >>conftest.$ac_ext <<_ACEOF
77508 /* end confdefs.h. */
77510 /* Override any GCC internal prototype to avoid an error.
77511 Use char because int might match the return type of a GCC
77512 builtin and then its argument prototype would still apply. */
77513 #ifdef __cplusplus
77514 extern "C"
77515 #endif
77516 char tm_init ();
77518 main ()
77520 return tm_init ();
77522 return 0;
77524 _ACEOF
77525 rm -f conftest.$ac_objext conftest$ac_exeext
77526 if { (ac_try="$ac_link"
77527 case "(($ac_try" in
77528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77529 *) ac_try_echo=$ac_try;;
77530 esac
77531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
77532 (eval "$ac_link") 2>conftest.er1
77533 ac_status=$?
77534 grep -v '^ *+' conftest.er1 >conftest.err
77535 rm -f conftest.er1
77536 cat conftest.err >&5
77537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77538 (exit $ac_status); } && {
77539 test -z "$ac_c_werror_flag" ||
77540 test ! -s conftest.err
77541 } && test -s conftest$ac_exeext &&
77542 $as_test_x conftest$ac_exeext; then
77543 ac_cv_lib_pbs_tm_init=yes
77544 else
77545 echo "$as_me: failed program was:" >&5
77546 sed 's/^/| /' conftest.$ac_ext >&5
77548 ac_cv_lib_pbs_tm_init=no
77551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
77552 conftest$ac_exeext conftest.$ac_ext
77553 LIBS=$ac_check_lib_save_LIBS
77555 { echo "$as_me:$LINENO: result: $ac_cv_lib_pbs_tm_init" >&5
77556 echo "${ECHO_T}$ac_cv_lib_pbs_tm_init" >&6; }
77557 if test $ac_cv_lib_pbs_tm_init = yes; then
77558 ompi_check_package_lib_happy="yes"
77559 else
77560 ompi_check_package_lib_happy="no"
77563 if test "$ompi_check_package_lib_happy" = "no"; then
77564 # no go on the as is.. see what happens later...
77565 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
77566 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
77567 unset ac_cv_lib_pbs_tm_init
77577 if test "$ompi_check_package_lib_happy" = "yes"; then
77578 ompi_check_package_happy="yes"
77579 else
77580 ompi_check_package_happy="no"
77587 unset ompi_check_package_header_happy
77589 if test "$ompi_check_package_happy" = "yes"; then
77590 ompi_check_tm_happy="yes"
77591 ras_tm_LIBS="-lpbs "
77592 else
77593 ras_tm_CPPFLAGS="$ompi_check_package_ras_tm_orig_CPPFLAGS"
77594 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
77595 ras_tm_LIBS="$ompi_check_package_ras_tm_orig_LIBS"
77596 ompi_check_tm_happy="no"
77600 CPPFLAGS="$ompi_check_package_ras_tm_save_CPPFLAGS"
77601 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
77602 LIBS="$ompi_check_package_ras_tm_save_LIBS"
77607 # If that failed, check for libtorque. Admittedly, this is
77608 # sub-optimal -- the above may have failed because tm.h was not
77609 # found. If so, we'll check for it again. Life is hard.
77611 if test "$ompi_check_tm_happy" = "no"; then
77613 ompi_check_package_ras_tm_save_CPPFLAGS="$CPPFLAGS"
77614 ompi_check_package_ras_tm_save_LDFLAGS="$LDFLAGS"
77615 ompi_check_package_ras_tm_save_LIBS="$LIBS"
77617 ompi_check_package_ras_tm_orig_CPPFLAGS="$ras_tm_CPPFLAGS"
77618 ompi_check_package_ras_tm_orig_LDFLAGS="$ras_tm_LDFLAGS"
77619 ompi_check_package_ras_tm_orig_LIBS="$ras_tm_LIBS"
77622 # This is stolen from autoconf to peek under the covers to get the
77623 # cache variable for the library check. one should not copy this
77624 # code into other places unless you want much pain and suffering
77627 # so this sucks, but there's no way to get through the progression
77628 # of header includes without killing off the cache variable and trying
77629 # again...
77630 unset ac_cv_header_tm_h
77632 ompi_check_package_header_happy="no"
77633 if test "$ompi_check_tm_dir" = "/usr" -o "$ompi_check_tm_dir" = "/usr/local"; then
77634 # try as is...
77635 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
77636 echo "${ECHO_T}looking for header without includes" >&6; }
77637 if test "${ac_cv_header_tm_h+set}" = set; then
77638 { echo "$as_me:$LINENO: checking for tm.h" >&5
77639 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
77640 if test "${ac_cv_header_tm_h+set}" = set; then
77641 echo $ECHO_N "(cached) $ECHO_C" >&6
77643 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
77644 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
77645 else
77646 # Is the header compilable?
77647 { echo "$as_me:$LINENO: checking tm.h usability" >&5
77648 echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; }
77649 cat >conftest.$ac_ext <<_ACEOF
77650 /* confdefs.h. */
77651 _ACEOF
77652 cat confdefs.h >>conftest.$ac_ext
77653 cat >>conftest.$ac_ext <<_ACEOF
77654 /* end confdefs.h. */
77655 $ac_includes_default
77656 #include <tm.h>
77657 _ACEOF
77658 rm -f conftest.$ac_objext
77659 if { (ac_try="$ac_compile"
77660 case "(($ac_try" in
77661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77662 *) ac_try_echo=$ac_try;;
77663 esac
77664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
77665 (eval "$ac_compile") 2>conftest.er1
77666 ac_status=$?
77667 grep -v '^ *+' conftest.er1 >conftest.err
77668 rm -f conftest.er1
77669 cat conftest.err >&5
77670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77671 (exit $ac_status); } && {
77672 test -z "$ac_c_werror_flag" ||
77673 test ! -s conftest.err
77674 } && test -s conftest.$ac_objext; then
77675 ac_header_compiler=yes
77676 else
77677 echo "$as_me: failed program was:" >&5
77678 sed 's/^/| /' conftest.$ac_ext >&5
77680 ac_header_compiler=no
77683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
77685 echo "${ECHO_T}$ac_header_compiler" >&6; }
77687 # Is the header present?
77688 { echo "$as_me:$LINENO: checking tm.h presence" >&5
77689 echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; }
77690 cat >conftest.$ac_ext <<_ACEOF
77691 /* confdefs.h. */
77692 _ACEOF
77693 cat confdefs.h >>conftest.$ac_ext
77694 cat >>conftest.$ac_ext <<_ACEOF
77695 /* end confdefs.h. */
77696 #include <tm.h>
77697 _ACEOF
77698 if { (ac_try="$ac_cpp conftest.$ac_ext"
77699 case "(($ac_try" in
77700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77701 *) ac_try_echo=$ac_try;;
77702 esac
77703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
77704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
77705 ac_status=$?
77706 grep -v '^ *+' conftest.er1 >conftest.err
77707 rm -f conftest.er1
77708 cat conftest.err >&5
77709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77710 (exit $ac_status); } >/dev/null && {
77711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
77712 test ! -s conftest.err
77713 }; then
77714 ac_header_preproc=yes
77715 else
77716 echo "$as_me: failed program was:" >&5
77717 sed 's/^/| /' conftest.$ac_ext >&5
77719 ac_header_preproc=no
77722 rm -f conftest.err conftest.$ac_ext
77723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
77724 echo "${ECHO_T}$ac_header_preproc" >&6; }
77726 # So? What about this header?
77727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
77728 yes:no: )
77729 { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
77730 echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
77731 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
77732 echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
77733 ac_header_preproc=yes
77735 no:yes:* )
77736 { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
77737 echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
77738 { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5
77739 echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;}
77740 { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
77741 echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
77742 { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5
77743 echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;}
77744 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
77745 echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
77746 { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
77747 echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
77748 ( cat <<\_ASBOX
77749 ## ------------------------------------------------------ ##
77750 ## Report this to http://www.open-mpi.org/community/help/ ##
77751 ## ------------------------------------------------------ ##
77752 _ASBOX
77753 ) | sed "s/^/$as_me: WARNING: /" >&2
77755 esac
77756 { echo "$as_me:$LINENO: checking for tm.h" >&5
77757 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
77758 if test "${ac_cv_header_tm_h+set}" = set; then
77759 echo $ECHO_N "(cached) $ECHO_C" >&6
77760 else
77761 ac_cv_header_tm_h=$ac_header_preproc
77763 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
77764 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
77767 if test $ac_cv_header_tm_h = yes; then
77768 ompi_check_package_header_happy="yes"
77769 else
77770 ompi_check_package_header_happy="no"
77774 if test "$ompi_check_package_header_happy" = "no"; then
77775 # no go on the as is - reset the cache and try again
77776 unset ac_cv_header_tm_h
77782 if test "$ompi_check_package_header_happy" = "no"; then
77783 if test "$ompi_check_tm_dir" != ""; then
77784 ras_tm_CPPFLAGS="$ras_tm_CPPFLAGS -I$ompi_check_tm_dir/include"
77785 CPPFLAGS="$CPPFLAGS -I$ompi_check_tm_dir/include"
77788 if test "${ac_cv_header_tm_h+set}" = set; then
77789 { echo "$as_me:$LINENO: checking for tm.h" >&5
77790 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
77791 if test "${ac_cv_header_tm_h+set}" = set; then
77792 echo $ECHO_N "(cached) $ECHO_C" >&6
77794 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
77795 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
77796 else
77797 # Is the header compilable?
77798 { echo "$as_me:$LINENO: checking tm.h usability" >&5
77799 echo $ECHO_N "checking tm.h usability... $ECHO_C" >&6; }
77800 cat >conftest.$ac_ext <<_ACEOF
77801 /* confdefs.h. */
77802 _ACEOF
77803 cat confdefs.h >>conftest.$ac_ext
77804 cat >>conftest.$ac_ext <<_ACEOF
77805 /* end confdefs.h. */
77806 $ac_includes_default
77807 #include <tm.h>
77808 _ACEOF
77809 rm -f conftest.$ac_objext
77810 if { (ac_try="$ac_compile"
77811 case "(($ac_try" in
77812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77813 *) ac_try_echo=$ac_try;;
77814 esac
77815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
77816 (eval "$ac_compile") 2>conftest.er1
77817 ac_status=$?
77818 grep -v '^ *+' conftest.er1 >conftest.err
77819 rm -f conftest.er1
77820 cat conftest.err >&5
77821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77822 (exit $ac_status); } && {
77823 test -z "$ac_c_werror_flag" ||
77824 test ! -s conftest.err
77825 } && test -s conftest.$ac_objext; then
77826 ac_header_compiler=yes
77827 else
77828 echo "$as_me: failed program was:" >&5
77829 sed 's/^/| /' conftest.$ac_ext >&5
77831 ac_header_compiler=no
77834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
77836 echo "${ECHO_T}$ac_header_compiler" >&6; }
77838 # Is the header present?
77839 { echo "$as_me:$LINENO: checking tm.h presence" >&5
77840 echo $ECHO_N "checking tm.h presence... $ECHO_C" >&6; }
77841 cat >conftest.$ac_ext <<_ACEOF
77842 /* confdefs.h. */
77843 _ACEOF
77844 cat confdefs.h >>conftest.$ac_ext
77845 cat >>conftest.$ac_ext <<_ACEOF
77846 /* end confdefs.h. */
77847 #include <tm.h>
77848 _ACEOF
77849 if { (ac_try="$ac_cpp conftest.$ac_ext"
77850 case "(($ac_try" in
77851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77852 *) ac_try_echo=$ac_try;;
77853 esac
77854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
77855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
77856 ac_status=$?
77857 grep -v '^ *+' conftest.er1 >conftest.err
77858 rm -f conftest.er1
77859 cat conftest.err >&5
77860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77861 (exit $ac_status); } >/dev/null && {
77862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
77863 test ! -s conftest.err
77864 }; then
77865 ac_header_preproc=yes
77866 else
77867 echo "$as_me: failed program was:" >&5
77868 sed 's/^/| /' conftest.$ac_ext >&5
77870 ac_header_preproc=no
77873 rm -f conftest.err conftest.$ac_ext
77874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
77875 echo "${ECHO_T}$ac_header_preproc" >&6; }
77877 # So? What about this header?
77878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
77879 yes:no: )
77880 { echo "$as_me:$LINENO: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&5
77881 echo "$as_me: WARNING: tm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
77882 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the compiler's result" >&5
77883 echo "$as_me: WARNING: tm.h: proceeding with the compiler's result" >&2;}
77884 ac_header_preproc=yes
77886 no:yes:* )
77887 { echo "$as_me:$LINENO: WARNING: tm.h: present but cannot be compiled" >&5
77888 echo "$as_me: WARNING: tm.h: present but cannot be compiled" >&2;}
77889 { echo "$as_me:$LINENO: WARNING: tm.h: check for missing prerequisite headers?" >&5
77890 echo "$as_me: WARNING: tm.h: check for missing prerequisite headers?" >&2;}
77891 { echo "$as_me:$LINENO: WARNING: tm.h: see the Autoconf documentation" >&5
77892 echo "$as_me: WARNING: tm.h: see the Autoconf documentation" >&2;}
77893 { echo "$as_me:$LINENO: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&5
77894 echo "$as_me: WARNING: tm.h: section \"Present But Cannot Be Compiled\"" >&2;}
77895 { echo "$as_me:$LINENO: WARNING: tm.h: proceeding with the preprocessor's result" >&5
77896 echo "$as_me: WARNING: tm.h: proceeding with the preprocessor's result" >&2;}
77897 { echo "$as_me:$LINENO: WARNING: tm.h: in the future, the compiler will take precedence" >&5
77898 echo "$as_me: WARNING: tm.h: in the future, the compiler will take precedence" >&2;}
77899 ( cat <<\_ASBOX
77900 ## ------------------------------------------------------ ##
77901 ## Report this to http://www.open-mpi.org/community/help/ ##
77902 ## ------------------------------------------------------ ##
77903 _ASBOX
77904 ) | sed "s/^/$as_me: WARNING: /" >&2
77906 esac
77907 { echo "$as_me:$LINENO: checking for tm.h" >&5
77908 echo $ECHO_N "checking for tm.h... $ECHO_C" >&6; }
77909 if test "${ac_cv_header_tm_h+set}" = set; then
77910 echo $ECHO_N "(cached) $ECHO_C" >&6
77911 else
77912 ac_cv_header_tm_h=$ac_header_preproc
77914 { echo "$as_me:$LINENO: result: $ac_cv_header_tm_h" >&5
77915 echo "${ECHO_T}$ac_cv_header_tm_h" >&6; }
77918 if test $ac_cv_header_tm_h = yes; then
77920 # This is stolen from autoconf to peek under the covers to get the
77921 # cache variable for the library check. one should not copy this
77922 # code into other places unless you want much pain and suffering
77924 # see comment above
77925 unset ac_cv_lib_torque_tm_finalize
77926 ompi_check_package_lib_happy="no"
77927 if test "" != ""; then
77928 # libdir was specified - search only there
77929 ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L"
77930 LDFLAGS="$LDFLAGS -L"
77931 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
77932 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
77933 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
77934 echo $ECHO_N "(cached) $ECHO_C" >&6
77935 else
77936 ac_check_lib_save_LIBS=$LIBS
77937 LIBS="-ltorque $LIBS"
77938 cat >conftest.$ac_ext <<_ACEOF
77939 /* confdefs.h. */
77940 _ACEOF
77941 cat confdefs.h >>conftest.$ac_ext
77942 cat >>conftest.$ac_ext <<_ACEOF
77943 /* end confdefs.h. */
77945 /* Override any GCC internal prototype to avoid an error.
77946 Use char because int might match the return type of a GCC
77947 builtin and then its argument prototype would still apply. */
77948 #ifdef __cplusplus
77949 extern "C"
77950 #endif
77951 char tm_finalize ();
77953 main ()
77955 return tm_finalize ();
77957 return 0;
77959 _ACEOF
77960 rm -f conftest.$ac_objext conftest$ac_exeext
77961 if { (ac_try="$ac_link"
77962 case "(($ac_try" in
77963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77964 *) ac_try_echo=$ac_try;;
77965 esac
77966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
77967 (eval "$ac_link") 2>conftest.er1
77968 ac_status=$?
77969 grep -v '^ *+' conftest.er1 >conftest.err
77970 rm -f conftest.er1
77971 cat conftest.err >&5
77972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77973 (exit $ac_status); } && {
77974 test -z "$ac_c_werror_flag" ||
77975 test ! -s conftest.err
77976 } && test -s conftest$ac_exeext &&
77977 $as_test_x conftest$ac_exeext; then
77978 ac_cv_lib_torque_tm_finalize=yes
77979 else
77980 echo "$as_me: failed program was:" >&5
77981 sed 's/^/| /' conftest.$ac_ext >&5
77983 ac_cv_lib_torque_tm_finalize=no
77986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
77987 conftest$ac_exeext conftest.$ac_ext
77988 LIBS=$ac_check_lib_save_LIBS
77990 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
77991 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
77992 if test $ac_cv_lib_torque_tm_finalize = yes; then
77993 ompi_check_package_lib_happy="yes"
77994 else
77995 ompi_check_package_lib_happy="no"
77998 if test "$ompi_check_package_lib_happy" = "no"; then
77999 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
78000 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
78001 unset ac_cv_lib_torque_tm_finalize
78004 else
78005 # libdir was not specified - go through search path
78006 ompi_check_package_libdir="$ompi_check_tm_dir"
78007 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
78008 # try as is...
78009 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
78010 echo "${ECHO_T}looking for library without search path" >&6; }
78011 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
78012 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
78013 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
78014 echo $ECHO_N "(cached) $ECHO_C" >&6
78015 else
78016 ac_check_lib_save_LIBS=$LIBS
78017 LIBS="-ltorque $LIBS"
78018 cat >conftest.$ac_ext <<_ACEOF
78019 /* confdefs.h. */
78020 _ACEOF
78021 cat confdefs.h >>conftest.$ac_ext
78022 cat >>conftest.$ac_ext <<_ACEOF
78023 /* end confdefs.h. */
78025 /* Override any GCC internal prototype to avoid an error.
78026 Use char because int might match the return type of a GCC
78027 builtin and then its argument prototype would still apply. */
78028 #ifdef __cplusplus
78029 extern "C"
78030 #endif
78031 char tm_finalize ();
78033 main ()
78035 return tm_finalize ();
78037 return 0;
78039 _ACEOF
78040 rm -f conftest.$ac_objext conftest$ac_exeext
78041 if { (ac_try="$ac_link"
78042 case "(($ac_try" in
78043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78044 *) ac_try_echo=$ac_try;;
78045 esac
78046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
78047 (eval "$ac_link") 2>conftest.er1
78048 ac_status=$?
78049 grep -v '^ *+' conftest.er1 >conftest.err
78050 rm -f conftest.er1
78051 cat conftest.err >&5
78052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
78053 (exit $ac_status); } && {
78054 test -z "$ac_c_werror_flag" ||
78055 test ! -s conftest.err
78056 } && test -s conftest$ac_exeext &&
78057 $as_test_x conftest$ac_exeext; then
78058 ac_cv_lib_torque_tm_finalize=yes
78059 else
78060 echo "$as_me: failed program was:" >&5
78061 sed 's/^/| /' conftest.$ac_ext >&5
78063 ac_cv_lib_torque_tm_finalize=no
78066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
78067 conftest$ac_exeext conftest.$ac_ext
78068 LIBS=$ac_check_lib_save_LIBS
78070 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
78071 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
78072 if test $ac_cv_lib_torque_tm_finalize = yes; then
78073 ompi_check_package_lib_happy="yes"
78074 else
78075 ompi_check_package_lib_happy="no"
78078 if test "$ompi_check_package_lib_happy" = "no"; then
78079 # no go on the as is.. see what happens later...
78080 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
78081 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
78082 unset ac_cv_lib_torque_tm_finalize
78088 if test "$ompi_check_package_lib_happy" = "no"; then
78089 if test "$ompi_check_package_libdir" != ""; then
78090 ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
78091 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
78092 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
78093 echo "${ECHO_T}looking for library in lib" >&6; }
78094 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
78095 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
78096 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
78097 echo $ECHO_N "(cached) $ECHO_C" >&6
78098 else
78099 ac_check_lib_save_LIBS=$LIBS
78100 LIBS="-ltorque $LIBS"
78101 cat >conftest.$ac_ext <<_ACEOF
78102 /* confdefs.h. */
78103 _ACEOF
78104 cat confdefs.h >>conftest.$ac_ext
78105 cat >>conftest.$ac_ext <<_ACEOF
78106 /* end confdefs.h. */
78108 /* Override any GCC internal prototype to avoid an error.
78109 Use char because int might match the return type of a GCC
78110 builtin and then its argument prototype would still apply. */
78111 #ifdef __cplusplus
78112 extern "C"
78113 #endif
78114 char tm_finalize ();
78116 main ()
78118 return tm_finalize ();
78120 return 0;
78122 _ACEOF
78123 rm -f conftest.$ac_objext conftest$ac_exeext
78124 if { (ac_try="$ac_link"
78125 case "(($ac_try" in
78126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78127 *) ac_try_echo=$ac_try;;
78128 esac
78129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
78130 (eval "$ac_link") 2>conftest.er1
78131 ac_status=$?
78132 grep -v '^ *+' conftest.er1 >conftest.err
78133 rm -f conftest.er1
78134 cat conftest.err >&5
78135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
78136 (exit $ac_status); } && {
78137 test -z "$ac_c_werror_flag" ||
78138 test ! -s conftest.err
78139 } && test -s conftest$ac_exeext &&
78140 $as_test_x conftest$ac_exeext; then
78141 ac_cv_lib_torque_tm_finalize=yes
78142 else
78143 echo "$as_me: failed program was:" >&5
78144 sed 's/^/| /' conftest.$ac_ext >&5
78146 ac_cv_lib_torque_tm_finalize=no
78149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
78150 conftest$ac_exeext conftest.$ac_ext
78151 LIBS=$ac_check_lib_save_LIBS
78153 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
78154 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
78155 if test $ac_cv_lib_torque_tm_finalize = yes; then
78156 ompi_check_package_lib_happy="yes"
78157 else
78158 ompi_check_package_lib_happy="no"
78161 if test "$ompi_check_package_lib_happy" = "no"; then
78162 # no go on the as is.. see what happens later...
78163 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
78164 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
78165 unset ac_cv_lib_torque_tm_finalize
78173 if test "$ompi_check_package_lib_happy" = "no"; then
78174 if test "$ompi_check_package_libdir" != ""; then
78175 ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
78176 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
78177 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
78178 echo "${ECHO_T}looking for library in lib64" >&6; }
78179 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
78180 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
78181 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
78182 echo $ECHO_N "(cached) $ECHO_C" >&6
78183 else
78184 ac_check_lib_save_LIBS=$LIBS
78185 LIBS="-ltorque $LIBS"
78186 cat >conftest.$ac_ext <<_ACEOF
78187 /* confdefs.h. */
78188 _ACEOF
78189 cat confdefs.h >>conftest.$ac_ext
78190 cat >>conftest.$ac_ext <<_ACEOF
78191 /* end confdefs.h. */
78193 /* Override any GCC internal prototype to avoid an error.
78194 Use char because int might match the return type of a GCC
78195 builtin and then its argument prototype would still apply. */
78196 #ifdef __cplusplus
78197 extern "C"
78198 #endif
78199 char tm_finalize ();
78201 main ()
78203 return tm_finalize ();
78205 return 0;
78207 _ACEOF
78208 rm -f conftest.$ac_objext conftest$ac_exeext
78209 if { (ac_try="$ac_link"
78210 case "(($ac_try" in
78211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78212 *) ac_try_echo=$ac_try;;
78213 esac
78214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
78215 (eval "$ac_link") 2>conftest.er1
78216 ac_status=$?
78217 grep -v '^ *+' conftest.er1 >conftest.err
78218 rm -f conftest.er1
78219 cat conftest.err >&5
78220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
78221 (exit $ac_status); } && {
78222 test -z "$ac_c_werror_flag" ||
78223 test ! -s conftest.err
78224 } && test -s conftest$ac_exeext &&
78225 $as_test_x conftest$ac_exeext; then
78226 ac_cv_lib_torque_tm_finalize=yes
78227 else
78228 echo "$as_me: failed program was:" >&5
78229 sed 's/^/| /' conftest.$ac_ext >&5
78231 ac_cv_lib_torque_tm_finalize=no
78234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
78235 conftest$ac_exeext conftest.$ac_ext
78236 LIBS=$ac_check_lib_save_LIBS
78238 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
78239 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
78240 if test $ac_cv_lib_torque_tm_finalize = yes; then
78241 ompi_check_package_lib_happy="yes"
78242 else
78243 ompi_check_package_lib_happy="no"
78246 if test "$ompi_check_package_lib_happy" = "no"; then
78247 # no go on the as is.. see what happens later...
78248 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
78249 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
78250 unset ac_cv_lib_torque_tm_finalize
78260 if test "$ompi_check_package_lib_happy" = "yes"; then
78261 ompi_check_package_happy="yes"
78262 else
78263 ompi_check_package_happy="no"
78268 else
78269 ompi_check_package_happy="no"
78273 else
78275 # This is stolen from autoconf to peek under the covers to get the
78276 # cache variable for the library check. one should not copy this
78277 # code into other places unless you want much pain and suffering
78279 # see comment above
78280 unset ac_cv_lib_torque_tm_finalize
78281 ompi_check_package_lib_happy="no"
78282 if test "" != ""; then
78283 # libdir was specified - search only there
78284 ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L"
78285 LDFLAGS="$LDFLAGS -L"
78286 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
78287 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
78288 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
78289 echo $ECHO_N "(cached) $ECHO_C" >&6
78290 else
78291 ac_check_lib_save_LIBS=$LIBS
78292 LIBS="-ltorque $LIBS"
78293 cat >conftest.$ac_ext <<_ACEOF
78294 /* confdefs.h. */
78295 _ACEOF
78296 cat confdefs.h >>conftest.$ac_ext
78297 cat >>conftest.$ac_ext <<_ACEOF
78298 /* end confdefs.h. */
78300 /* Override any GCC internal prototype to avoid an error.
78301 Use char because int might match the return type of a GCC
78302 builtin and then its argument prototype would still apply. */
78303 #ifdef __cplusplus
78304 extern "C"
78305 #endif
78306 char tm_finalize ();
78308 main ()
78310 return tm_finalize ();
78312 return 0;
78314 _ACEOF
78315 rm -f conftest.$ac_objext conftest$ac_exeext
78316 if { (ac_try="$ac_link"
78317 case "(($ac_try" in
78318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78319 *) ac_try_echo=$ac_try;;
78320 esac
78321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
78322 (eval "$ac_link") 2>conftest.er1
78323 ac_status=$?
78324 grep -v '^ *+' conftest.er1 >conftest.err
78325 rm -f conftest.er1
78326 cat conftest.err >&5
78327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
78328 (exit $ac_status); } && {
78329 test -z "$ac_c_werror_flag" ||
78330 test ! -s conftest.err
78331 } && test -s conftest$ac_exeext &&
78332 $as_test_x conftest$ac_exeext; then
78333 ac_cv_lib_torque_tm_finalize=yes
78334 else
78335 echo "$as_me: failed program was:" >&5
78336 sed 's/^/| /' conftest.$ac_ext >&5
78338 ac_cv_lib_torque_tm_finalize=no
78341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
78342 conftest$ac_exeext conftest.$ac_ext
78343 LIBS=$ac_check_lib_save_LIBS
78345 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
78346 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
78347 if test $ac_cv_lib_torque_tm_finalize = yes; then
78348 ompi_check_package_lib_happy="yes"
78349 else
78350 ompi_check_package_lib_happy="no"
78353 if test "$ompi_check_package_lib_happy" = "no"; then
78354 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
78355 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
78356 unset ac_cv_lib_torque_tm_finalize
78359 else
78360 # libdir was not specified - go through search path
78361 ompi_check_package_libdir="$ompi_check_tm_dir"
78362 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
78363 # try as is...
78364 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
78365 echo "${ECHO_T}looking for library without search path" >&6; }
78366 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
78367 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
78368 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
78369 echo $ECHO_N "(cached) $ECHO_C" >&6
78370 else
78371 ac_check_lib_save_LIBS=$LIBS
78372 LIBS="-ltorque $LIBS"
78373 cat >conftest.$ac_ext <<_ACEOF
78374 /* confdefs.h. */
78375 _ACEOF
78376 cat confdefs.h >>conftest.$ac_ext
78377 cat >>conftest.$ac_ext <<_ACEOF
78378 /* end confdefs.h. */
78380 /* Override any GCC internal prototype to avoid an error.
78381 Use char because int might match the return type of a GCC
78382 builtin and then its argument prototype would still apply. */
78383 #ifdef __cplusplus
78384 extern "C"
78385 #endif
78386 char tm_finalize ();
78388 main ()
78390 return tm_finalize ();
78392 return 0;
78394 _ACEOF
78395 rm -f conftest.$ac_objext conftest$ac_exeext
78396 if { (ac_try="$ac_link"
78397 case "(($ac_try" in
78398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78399 *) ac_try_echo=$ac_try;;
78400 esac
78401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
78402 (eval "$ac_link") 2>conftest.er1
78403 ac_status=$?
78404 grep -v '^ *+' conftest.er1 >conftest.err
78405 rm -f conftest.er1
78406 cat conftest.err >&5
78407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
78408 (exit $ac_status); } && {
78409 test -z "$ac_c_werror_flag" ||
78410 test ! -s conftest.err
78411 } && test -s conftest$ac_exeext &&
78412 $as_test_x conftest$ac_exeext; then
78413 ac_cv_lib_torque_tm_finalize=yes
78414 else
78415 echo "$as_me: failed program was:" >&5
78416 sed 's/^/| /' conftest.$ac_ext >&5
78418 ac_cv_lib_torque_tm_finalize=no
78421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
78422 conftest$ac_exeext conftest.$ac_ext
78423 LIBS=$ac_check_lib_save_LIBS
78425 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
78426 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
78427 if test $ac_cv_lib_torque_tm_finalize = yes; then
78428 ompi_check_package_lib_happy="yes"
78429 else
78430 ompi_check_package_lib_happy="no"
78433 if test "$ompi_check_package_lib_happy" = "no"; then
78434 # no go on the as is.. see what happens later...
78435 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
78436 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
78437 unset ac_cv_lib_torque_tm_finalize
78443 if test "$ompi_check_package_lib_happy" = "no"; then
78444 if test "$ompi_check_package_libdir" != ""; then
78445 ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib"
78446 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
78447 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
78448 echo "${ECHO_T}looking for library in lib" >&6; }
78449 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
78450 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
78451 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
78452 echo $ECHO_N "(cached) $ECHO_C" >&6
78453 else
78454 ac_check_lib_save_LIBS=$LIBS
78455 LIBS="-ltorque $LIBS"
78456 cat >conftest.$ac_ext <<_ACEOF
78457 /* confdefs.h. */
78458 _ACEOF
78459 cat confdefs.h >>conftest.$ac_ext
78460 cat >>conftest.$ac_ext <<_ACEOF
78461 /* end confdefs.h. */
78463 /* Override any GCC internal prototype to avoid an error.
78464 Use char because int might match the return type of a GCC
78465 builtin and then its argument prototype would still apply. */
78466 #ifdef __cplusplus
78467 extern "C"
78468 #endif
78469 char tm_finalize ();
78471 main ()
78473 return tm_finalize ();
78475 return 0;
78477 _ACEOF
78478 rm -f conftest.$ac_objext conftest$ac_exeext
78479 if { (ac_try="$ac_link"
78480 case "(($ac_try" in
78481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78482 *) ac_try_echo=$ac_try;;
78483 esac
78484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
78485 (eval "$ac_link") 2>conftest.er1
78486 ac_status=$?
78487 grep -v '^ *+' conftest.er1 >conftest.err
78488 rm -f conftest.er1
78489 cat conftest.err >&5
78490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
78491 (exit $ac_status); } && {
78492 test -z "$ac_c_werror_flag" ||
78493 test ! -s conftest.err
78494 } && test -s conftest$ac_exeext &&
78495 $as_test_x conftest$ac_exeext; then
78496 ac_cv_lib_torque_tm_finalize=yes
78497 else
78498 echo "$as_me: failed program was:" >&5
78499 sed 's/^/| /' conftest.$ac_ext >&5
78501 ac_cv_lib_torque_tm_finalize=no
78504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
78505 conftest$ac_exeext conftest.$ac_ext
78506 LIBS=$ac_check_lib_save_LIBS
78508 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
78509 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
78510 if test $ac_cv_lib_torque_tm_finalize = yes; then
78511 ompi_check_package_lib_happy="yes"
78512 else
78513 ompi_check_package_lib_happy="no"
78516 if test "$ompi_check_package_lib_happy" = "no"; then
78517 # no go on the as is.. see what happens later...
78518 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
78519 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
78520 unset ac_cv_lib_torque_tm_finalize
78528 if test "$ompi_check_package_lib_happy" = "no"; then
78529 if test "$ompi_check_package_libdir" != ""; then
78530 ras_tm_LDFLAGS="$ras_tm_LDFLAGS -L$ompi_check_package_libdir/lib64"
78531 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
78532 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
78533 echo "${ECHO_T}looking for library in lib64" >&6; }
78534 { echo "$as_me:$LINENO: checking for tm_finalize in -ltorque" >&5
78535 echo $ECHO_N "checking for tm_finalize in -ltorque... $ECHO_C" >&6; }
78536 if test "${ac_cv_lib_torque_tm_finalize+set}" = set; then
78537 echo $ECHO_N "(cached) $ECHO_C" >&6
78538 else
78539 ac_check_lib_save_LIBS=$LIBS
78540 LIBS="-ltorque $LIBS"
78541 cat >conftest.$ac_ext <<_ACEOF
78542 /* confdefs.h. */
78543 _ACEOF
78544 cat confdefs.h >>conftest.$ac_ext
78545 cat >>conftest.$ac_ext <<_ACEOF
78546 /* end confdefs.h. */
78548 /* Override any GCC internal prototype to avoid an error.
78549 Use char because int might match the return type of a GCC
78550 builtin and then its argument prototype would still apply. */
78551 #ifdef __cplusplus
78552 extern "C"
78553 #endif
78554 char tm_finalize ();
78556 main ()
78558 return tm_finalize ();
78560 return 0;
78562 _ACEOF
78563 rm -f conftest.$ac_objext conftest$ac_exeext
78564 if { (ac_try="$ac_link"
78565 case "(($ac_try" in
78566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78567 *) ac_try_echo=$ac_try;;
78568 esac
78569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
78570 (eval "$ac_link") 2>conftest.er1
78571 ac_status=$?
78572 grep -v '^ *+' conftest.er1 >conftest.err
78573 rm -f conftest.er1
78574 cat conftest.err >&5
78575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
78576 (exit $ac_status); } && {
78577 test -z "$ac_c_werror_flag" ||
78578 test ! -s conftest.err
78579 } && test -s conftest$ac_exeext &&
78580 $as_test_x conftest$ac_exeext; then
78581 ac_cv_lib_torque_tm_finalize=yes
78582 else
78583 echo "$as_me: failed program was:" >&5
78584 sed 's/^/| /' conftest.$ac_ext >&5
78586 ac_cv_lib_torque_tm_finalize=no
78589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
78590 conftest$ac_exeext conftest.$ac_ext
78591 LIBS=$ac_check_lib_save_LIBS
78593 { echo "$as_me:$LINENO: result: $ac_cv_lib_torque_tm_finalize" >&5
78594 echo "${ECHO_T}$ac_cv_lib_torque_tm_finalize" >&6; }
78595 if test $ac_cv_lib_torque_tm_finalize = yes; then
78596 ompi_check_package_lib_happy="yes"
78597 else
78598 ompi_check_package_lib_happy="no"
78601 if test "$ompi_check_package_lib_happy" = "no"; then
78602 # no go on the as is.. see what happens later...
78603 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
78604 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
78605 unset ac_cv_lib_torque_tm_finalize
78615 if test "$ompi_check_package_lib_happy" = "yes"; then
78616 ompi_check_package_happy="yes"
78617 else
78618 ompi_check_package_happy="no"
78625 unset ompi_check_package_header_happy
78627 if test "$ompi_check_package_happy" = "yes"; then
78628 ompi_check_tm_happy="yes"
78629 ras_tm_LIBS="-ltorque "
78630 else
78631 ras_tm_CPPFLAGS="$ompi_check_package_ras_tm_orig_CPPFLAGS"
78632 ras_tm_LDFLAGS="$ompi_check_package_ras_tm_orig_LDFLAGS"
78633 ras_tm_LIBS="$ompi_check_package_ras_tm_orig_LIBS"
78634 ompi_check_tm_happy="no"
78638 CPPFLAGS="$ompi_check_package_ras_tm_save_CPPFLAGS"
78639 LDFLAGS="$ompi_check_package_ras_tm_save_LDFLAGS"
78640 LIBS="$ompi_check_package_ras_tm_save_LIBS"
78645 if test "$ompi_check_tm_happy" = "yes"; then
78646 ras_tm_good=1
78647 else
78648 if test ! -z "$with_tm" -a "$with_tm" != "no"; then
78649 { { echo "$as_me:$LINENO: error: TM support requested but not found. Aborting" >&5
78650 echo "$as_me: error: TM support requested but not found. Aborting" >&2;}
78651 { (exit 1); exit 1; }; }
78654 ras_tm_good=0
78659 # if check worked, set wrapper flags if so.
78660 # Evaluate succeed / fail
78661 if test "$ras_tm_good" = "1"; then
78662 ras_tm_WRAPPER_EXTRA_LDFLAGS="$ras_tm_LDFLAGS"
78663 ras_tm_WRAPPER_EXTRA_LIBS="$ras_tm_LIBS"
78664 should_build=1
78665 else
78666 should_build=0
78670 # set build flags to use in makefile
78678 if test "$should_build" = "1"; then
78680 project=orte
78681 framework=ras
78682 component=tm
78684 # See if it dropped an output file for us to pick up some
78685 # shell variables in.
78686 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
78688 # Add this subdir to the mast list of all MCA component subdirs
78689 all_components="$all_components $component"
78691 if test "$compile_mode" = "dso" ; then
78692 dso_components="$dso_components $component"
78693 else
78694 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
78695 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
78696 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
78697 static_components="$static_components $component"
78700 # Output pretty results
78701 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
78702 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
78703 { echo "$as_me:$LINENO: result: yes" >&5
78704 echo "${ECHO_T}yes" >&6; }
78706 # If there's an output file, add the values to
78707 # scope_EXTRA_flags.
78708 if test -f $infile; then
78710 # First check for the ABORT tag
78711 line="`grep ABORT= $infile | cut -d= -f2-`"
78712 if test -n "$line" -a "$line" != "no"; then
78713 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
78714 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
78715 { { echo "$as_me:$LINENO: error: cannot continue" >&5
78716 echo "$as_me: error: cannot continue" >&2;}
78717 { (exit 1); exit 1; }; }
78720 # Check for flags passed up from the component. If we're
78721 # compiling statically, then take all flags passed up from the
78722 # component.
78723 if test "$compile_mode" = "static"; then
78724 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
78725 eval "line=$line"
78726 if test -n "$line"; then
78727 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
78729 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
78730 eval "line=$line"
78731 if test -n "$line"; then
78732 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
78736 if test "$DIRECT_ras" = "$component" ; then
78737 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
78738 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
78739 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
78740 eval $str
78741 else
78742 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
78743 *** does not appear to support direct calling.
78744 *** Aborting" >&5
78745 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
78746 *** does not appear to support direct calling.
78747 *** Aborting" >&2;}
78748 { (exit 1); exit 1; }; }
78751 else
78752 # were we supposed to have found something in the
78753 # post_configure.sh, but the file didn't exist?
78754 if test "$DIRECT_ras" = "$component" ; then
78755 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
78756 *** does not appear to support direct calling.
78757 *** Aborting" >&5
78758 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
78759 *** does not appear to support direct calling.
78760 *** Aborting" >&2;}
78761 { (exit 1); exit 1; }; }
78765 # now add the flags that were set in the environment variables
78766 # framework_component_FOO (for example, the flags set by
78767 # m4_configure components)
78769 # Check for flags passed up from the component. If we're
78770 # compiling statically, then take all flags passed up from the
78771 # component.
78772 if test "$compile_mode" = "static"; then
78773 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
78774 eval "$str"
78775 if test -n "$line" ; then
78776 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
78778 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
78779 eval "$str"
78780 if test -n "$line" ; then
78781 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
78785 else
78787 { echo "$as_me:$LINENO: checking if MCA component ras:tm can compile" >&5
78788 echo $ECHO_N "checking if MCA component ras:tm can compile... $ECHO_C" >&6; }
78789 { echo "$as_me:$LINENO: result: no" >&5
78790 echo "${ECHO_T}no" >&6; }
78792 # If this component was requested as the default for this
78793 # type, then abort.
78794 if test "$with_ras" = "tm" ; then
78795 { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5
78796 echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
78797 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
78798 echo "$as_me: WARNING: This component was selected as the default" >&2;}
78799 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
78800 echo "$as_me: error: Cannot continue" >&2;}
78801 { (exit 1); exit 1; }; }
78802 exit 1
78805 if test ! -z "$DIRECT_ras" ; then
78806 if test "$DIRECT_ras" = "tm" ; then
78807 { echo "$as_me:$LINENO: WARNING: MCA component \"tm\" failed to configure properly" >&5
78808 echo "$as_me: WARNING: MCA component \"tm\" failed to configure properly" >&2;}
78809 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
78810 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
78811 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
78812 echo "$as_me: error: Cannot continue" >&2;}
78813 { (exit 1); exit 1; }; }
78814 exit 1
78818 # add component to all component list
78819 all_components="$all_components tm"
78823 # set the AM_CONDITIONAL on how we should build
78824 if test "$compile_mode" = "dso"; then
78825 BUILD_ras_tm_DSO=1
78826 else
78827 BUILD_ras_tm_DSO=0
78832 if test "$BUILD_ras_tm_DSO" = "1"; then
78833 OMPI_BUILD_ras_tm_DSO_TRUE=
78834 OMPI_BUILD_ras_tm_DSO_FALSE='#'
78835 else
78836 OMPI_BUILD_ras_tm_DSO_TRUE='#'
78837 OMPI_BUILD_ras_tm_DSO_FALSE=
78841 if test "$should_build" = "1"; then
78842 components_looking_for_succeed="$happy_value"
78846 unset compile_mode
78848 ompi_show_subsubsubtitle "MCA component ras:xgrid (m4 configuration macro)"
78851 project=orte
78852 framework=ras
78853 component=xgrid
78854 component_path="$srcdir/$project/mca/$framework/$component"
78855 want_component=0
78857 # build if:
78858 # - the component type is direct and we are that component
78859 # - there is no ompi_ignore file
78860 # - there is an ompi_ignore, but there is an empty ompi_unignore
78861 # - there is an ompi_ignore, but username is in ompi_unignore
78862 if test -d $component_path ; then
78863 # decide if we want the component to be built or not. This
78864 # is spread out because some of the logic is a little complex
78865 # and test's syntax isn't exactly the greatest. We want to
78866 # build the component by default.
78867 want_component=1
78868 if test -f $component_path/.ompi_ignore ; then
78869 # If there is an ompi_ignore file, don't build
78870 # the component. Note that this decision can be
78871 # overriden by the unignore logic below.
78872 want_component=0
78874 if test -f $component_path/.ompi_unignore ; then
78875 # if there is an empty ompi_unignore, that is
78876 # equivalent to having your userid in the unignore file.
78877 # If userid is in the file, unignore the ignore file.
78878 if test ! -s $component_path/.ompi_unignore ; then
78879 want_component=1
78880 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
78881 want_component=1
78884 # if this component type is direct and we are not it, we don't want
78885 # to be built. Otherwise, we do want to be built.
78886 if test ! -z "$DIRECT_ras" ; then
78887 if test "$DIRECT_ras" = "$component" ; then
78888 want_component=1
78889 else
78890 want_component=0
78895 # if we were explicitly disabled, don't build :)
78896 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
78897 eval $str
78898 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
78899 want_component=0
78902 if test "$want_component" = "1"; then
78903 should_build=$components_looking_for_succeed
78904 else
78905 should_build=0
78909 # Allow the component to override the build mode if it really wants to.
78910 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
78912 project=orte
78913 framework=ras
78914 component=xgrid
78916 # Is this component going to built staic or shared? $component
78917 # might not be known until configure time, so have to use eval
78918 # tricks - can't set variable names at autogen time.
78919 str="SHARED_FRAMEWORK=\$DSO_$framework"
78920 eval $str
78921 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
78922 eval $str
78924 str="STATIC_FRAMEWORK=\$STATIC_$framework"
78925 eval $str
78926 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
78927 eval $str
78929 shared_mode_override=static
78931 # Setup for either shared or static
78932 if test "$STATIC_FRAMEWORK" = "1" -o \
78933 "$STATIC_COMPONENT" = "1" -o \
78934 "$STATIC_all" = "1" ; then
78935 compile_mode="static"
78936 elif test "$shared_mode_override" = "dso" -o \
78937 "$SHARED_FRAMEWORK" = "1" -o \
78938 "$SHARED_COMPONENT" = "1" -o \
78939 "$DSO_all" = "1"; then
78940 compile_mode="dso"
78941 else
78942 compile_mode="static"
78945 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
78946 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
78947 if test "$DIRECT_ras" = "$component" ; then
78948 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
78949 echo "${ECHO_T}$compile_mode - direct" >&6; }
78950 else
78951 { echo "$as_me:$LINENO: result: $compile_mode" >&5
78952 echo "${ECHO_T}$compile_mode" >&6; }
78956 # try to configure the component. pay no attention to
78957 # --enable-dist, since we'll always have makefiles.
78958 if test "$should_build" = "1"; then
78964 # Check whether --with-xgrid was given.
78965 if test "${with_xgrid+set}" = set; then
78966 withval=$with_xgrid;
78970 { echo "$as_me:$LINENO: checking for XGridFoundation Framework" >&5
78971 echo $ECHO_N "checking for XGridFoundation Framework... $ECHO_C" >&6; }
78972 if test "${ompi_cv_check_xgrid_foundation+set}" = set; then
78973 echo $ECHO_N "(cached) $ECHO_C" >&6
78974 else
78975 if test "$with_xgrid" != "no"; then
78977 # ok, so in environments where this is going to work, the objc and
78978 # c compilers are the same thing. Because our ompi_prog_objc is
78979 # really lame, you can't push/pop languages into and out of
78980 # objective-C (as soon as something post Autoconf 2.59 comes out,
78981 # it will have Objective C support, and this will all be much
78982 # simpler). We modify CFLAGS because AC_TRY_LINK is going to use
78983 # the C compiler. Automake, however, is smart enough to know what
78984 # Objective C is, so in the end, we put things in OBJCFLAGS and
78985 # the right things will happen. *sigh*
78987 if test "$ac_cv_sizeof_long" = "8"; then
78988 # can't compile in 64 bit mode
78989 ompi_cv_check_xgrid_foundation="no"
78990 else
78991 ompi_check_xgrid_save_CFLAGS="$CFLAGS"
78992 CFLAGS="$CFLAGS -framework XGridFoundation"
78993 cat >conftest.$ac_ext <<_ACEOF
78994 /* confdefs.h. */
78995 _ACEOF
78996 cat confdefs.h >>conftest.$ac_ext
78997 cat >>conftest.$ac_ext <<_ACEOF
78998 /* end confdefs.h. */
79001 main ()
79005 return 0;
79007 _ACEOF
79008 rm -f conftest.$ac_objext conftest$ac_exeext
79009 if { (ac_try="$ac_link"
79010 case "(($ac_try" in
79011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79012 *) ac_try_echo=$ac_try;;
79013 esac
79014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
79015 (eval "$ac_link") 2>conftest.er1
79016 ac_status=$?
79017 grep -v '^ *+' conftest.er1 >conftest.err
79018 rm -f conftest.er1
79019 cat conftest.err >&5
79020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
79021 (exit $ac_status); } && {
79022 test -z "$ac_c_werror_flag" ||
79023 test ! -s conftest.err
79024 } && test -s conftest$ac_exeext &&
79025 $as_test_x conftest$ac_exeext; then
79026 ompi_check_xgrid_happy="yes"
79027 else
79028 echo "$as_me: failed program was:" >&5
79029 sed 's/^/| /' conftest.$ac_ext >&5
79031 ompi_check_xgrid_happy="no"
79034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79035 conftest$ac_exeext conftest.$ac_ext
79036 CFLAGS="$ompi_check_xgrid_save_CFLAGS"
79037 if test "$ompi_check_xgrid_happy" = "no"; then
79038 ompi_cv_check_xgrid_foundation="no"
79039 else
79040 ompi_cv_check_xgrid_foundation="yes"
79046 else
79047 ompi_cv_check_xgrid_foundation="no"
79051 { echo "$as_me:$LINENO: result: $ompi_cv_check_xgrid_foundation" >&5
79052 echo "${ECHO_T}$ompi_cv_check_xgrid_foundation" >&6; }
79054 if test "$ompi_cv_check_xgrid_foundation" = "yes"; then
79055 ras_xgrid_OBJCFLAGS="$ras_xgrid_OBJCFLAGS -F XGridFoundation"
79056 ras_xgrid_LDFLAGS="$ras_xgrid_LDFLAGS -framework XGridFoundation"
79057 ras_xgrid_good=1
79058 else
79059 ras_xgrid_good=0
79064 # don't need to set any flags - there's no XGrid-using code in this
79065 # component. For very dumb reasons involving linking, it's near impossible
79066 # to build the XGrid components as static libraries. Disable if that's
79067 # the case.
79068 if test "$ras_xgrid_good" = "0"; then
79069 should_build=0
79070 else
79071 if test "$compile_mode" = "dso"; then
79072 should_build=1
79073 else
79074 { echo "$as_me:$LINENO: WARNING: XGrid components must be built as DSOs. Disabling" >&5
79075 echo "$as_me: WARNING: XGrid components must be built as DSOs. Disabling" >&2;}
79076 should_build=0
79085 if test "$should_build" = "1"; then
79087 project=orte
79088 framework=ras
79089 component=xgrid
79091 # See if it dropped an output file for us to pick up some
79092 # shell variables in.
79093 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
79095 # Add this subdir to the mast list of all MCA component subdirs
79096 all_components="$all_components $component"
79098 if test "$compile_mode" = "dso" ; then
79099 dso_components="$dso_components $component"
79100 else
79101 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
79102 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
79103 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
79104 static_components="$static_components $component"
79107 # Output pretty results
79108 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
79109 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
79110 { echo "$as_me:$LINENO: result: yes" >&5
79111 echo "${ECHO_T}yes" >&6; }
79113 # If there's an output file, add the values to
79114 # scope_EXTRA_flags.
79115 if test -f $infile; then
79117 # First check for the ABORT tag
79118 line="`grep ABORT= $infile | cut -d= -f2-`"
79119 if test -n "$line" -a "$line" != "no"; then
79120 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
79121 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
79122 { { echo "$as_me:$LINENO: error: cannot continue" >&5
79123 echo "$as_me: error: cannot continue" >&2;}
79124 { (exit 1); exit 1; }; }
79127 # Check for flags passed up from the component. If we're
79128 # compiling statically, then take all flags passed up from the
79129 # component.
79130 if test "$compile_mode" = "static"; then
79131 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
79132 eval "line=$line"
79133 if test -n "$line"; then
79134 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
79136 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
79137 eval "line=$line"
79138 if test -n "$line"; then
79139 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
79143 if test "$DIRECT_ras" = "$component" ; then
79144 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
79145 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
79146 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
79147 eval $str
79148 else
79149 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
79150 *** does not appear to support direct calling.
79151 *** Aborting" >&5
79152 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
79153 *** does not appear to support direct calling.
79154 *** Aborting" >&2;}
79155 { (exit 1); exit 1; }; }
79158 else
79159 # were we supposed to have found something in the
79160 # post_configure.sh, but the file didn't exist?
79161 if test "$DIRECT_ras" = "$component" ; then
79162 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
79163 *** does not appear to support direct calling.
79164 *** Aborting" >&5
79165 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
79166 *** does not appear to support direct calling.
79167 *** Aborting" >&2;}
79168 { (exit 1); exit 1; }; }
79172 # now add the flags that were set in the environment variables
79173 # framework_component_FOO (for example, the flags set by
79174 # m4_configure components)
79176 # Check for flags passed up from the component. If we're
79177 # compiling statically, then take all flags passed up from the
79178 # component.
79179 if test "$compile_mode" = "static"; then
79180 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
79181 eval "$str"
79182 if test -n "$line" ; then
79183 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
79185 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
79186 eval "$str"
79187 if test -n "$line" ; then
79188 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
79192 else
79194 { echo "$as_me:$LINENO: checking if MCA component ras:xgrid can compile" >&5
79195 echo $ECHO_N "checking if MCA component ras:xgrid can compile... $ECHO_C" >&6; }
79196 { echo "$as_me:$LINENO: result: no" >&5
79197 echo "${ECHO_T}no" >&6; }
79199 # If this component was requested as the default for this
79200 # type, then abort.
79201 if test "$with_ras" = "xgrid" ; then
79202 { echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5
79203 echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;}
79204 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
79205 echo "$as_me: WARNING: This component was selected as the default" >&2;}
79206 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
79207 echo "$as_me: error: Cannot continue" >&2;}
79208 { (exit 1); exit 1; }; }
79209 exit 1
79212 if test ! -z "$DIRECT_ras" ; then
79213 if test "$DIRECT_ras" = "xgrid" ; then
79214 { echo "$as_me:$LINENO: WARNING: MCA component \"xgrid\" failed to configure properly" >&5
79215 echo "$as_me: WARNING: MCA component \"xgrid\" failed to configure properly" >&2;}
79216 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
79217 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
79218 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
79219 echo "$as_me: error: Cannot continue" >&2;}
79220 { (exit 1); exit 1; }; }
79221 exit 1
79225 # add component to all component list
79226 all_components="$all_components xgrid"
79230 # set the AM_CONDITIONAL on how we should build
79231 if test "$compile_mode" = "dso"; then
79232 BUILD_ras_xgrid_DSO=1
79233 else
79234 BUILD_ras_xgrid_DSO=0
79239 if test "$BUILD_ras_xgrid_DSO" = "1"; then
79240 OMPI_BUILD_ras_xgrid_DSO_TRUE=
79241 OMPI_BUILD_ras_xgrid_DSO_FALSE='#'
79242 else
79243 OMPI_BUILD_ras_xgrid_DSO_TRUE='#'
79244 OMPI_BUILD_ras_xgrid_DSO_FALSE=
79248 if test "$should_build" = "1"; then
79249 components_looking_for_succeed="$happy_value"
79253 unset compile_mode
79256 # configure components that provide their own configure script.
79257 # It would be really hard to run these for "find first that
79258 # works", so we don't :)
79259 if test "$happy_value" = "1"; then
79261 for component_path in $srcdir/orte/mca/ras/* ; do
79262 component="`basename $component_path`"
79263 if test -d $component_path -a -x $component_path/configure ; then
79264 ompi_show_subsubsubtitle "MCA component ras:$component (need to configure)"
79267 project=orte
79268 framework=ras
79269 component=$component
79270 component_path="$srcdir/$project/mca/$framework/$component"
79271 want_component=0
79273 # build if:
79274 # - the component type is direct and we are that component
79275 # - there is no ompi_ignore file
79276 # - there is an ompi_ignore, but there is an empty ompi_unignore
79277 # - there is an ompi_ignore, but username is in ompi_unignore
79278 if test -d $component_path ; then
79279 # decide if we want the component to be built or not. This
79280 # is spread out because some of the logic is a little complex
79281 # and test's syntax isn't exactly the greatest. We want to
79282 # build the component by default.
79283 want_component=1
79284 if test -f $component_path/.ompi_ignore ; then
79285 # If there is an ompi_ignore file, don't build
79286 # the component. Note that this decision can be
79287 # overriden by the unignore logic below.
79288 want_component=0
79290 if test -f $component_path/.ompi_unignore ; then
79291 # if there is an empty ompi_unignore, that is
79292 # equivalent to having your userid in the unignore file.
79293 # If userid is in the file, unignore the ignore file.
79294 if test ! -s $component_path/.ompi_unignore ; then
79295 want_component=1
79296 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
79297 want_component=1
79300 # if this component type is direct and we are not it, we don't want
79301 # to be built. Otherwise, we do want to be built.
79302 if test ! -z "$DIRECT_ras" ; then
79303 if test "$DIRECT_ras" = "$component" ; then
79304 want_component=1
79305 else
79306 want_component=0
79311 # if we were explicitly disabled, don't build :)
79312 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
79313 eval $str
79314 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
79315 want_component=0
79318 if test "$want_component" = "1"; then
79319 should_build=1
79320 else
79321 should_build=0
79326 project=orte
79327 framework=ras
79328 component=$component
79330 # Is this component going to built staic or shared? $component
79331 # might not be known until configure time, so have to use eval
79332 # tricks - can't set variable names at autogen time.
79333 str="SHARED_FRAMEWORK=\$DSO_$framework"
79334 eval $str
79335 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
79336 eval $str
79338 str="STATIC_FRAMEWORK=\$STATIC_$framework"
79339 eval $str
79340 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
79341 eval $str
79343 shared_mode_override=static
79345 # Setup for either shared or static
79346 if test "$STATIC_FRAMEWORK" = "1" -o \
79347 "$STATIC_COMPONENT" = "1" -o \
79348 "$STATIC_all" = "1" ; then
79349 compile_mode="static"
79350 elif test "$shared_mode_override" = "dso" -o \
79351 "$SHARED_FRAMEWORK" = "1" -o \
79352 "$SHARED_COMPONENT" = "1" -o \
79353 "$DSO_all" = "1"; then
79354 compile_mode="dso"
79355 else
79356 compile_mode="static"
79359 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
79360 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
79361 if test "$DIRECT_ras" = "$component" ; then
79362 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
79363 echo "${ECHO_T}$compile_mode - direct" >&6; }
79364 else
79365 { echo "$as_me:$LINENO: result: $compile_mode" >&5
79366 echo "${ECHO_T}$compile_mode" >&6; }
79370 if test "$should_build" = "1" ; then
79373 # Invoke configure in a specific subdirectory.
79375 # orte/mca/ras/$component is the directory to invoke in
79376 # $ompi_subdir_args is the list of arguments to pass
79377 # should_build=1 is actions to execute upon success
79378 # should_build=2 is actions to execute upon failure
79380 subdir_dir="orte/mca/ras/$component"
79381 subdir_args="$ompi_subdir_args"
79382 subdir_success="should_build=1"
79383 subdir_failure="should_build=2"
79386 # Sanity checks
79389 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
79390 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
79391 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
79394 # Gotta check where srcdir is for VPATH builds. If srcdir is not
79395 # ., then we need to mkdir the subdir. Otherwise, we can just cd
79396 # into it.
79399 case $srcdir in
79403 { case $subdir_dir in
79404 [\\/]* | ?:[\\/]* ) total_dir=;;
79405 *) total_dir=.;;
79406 esac
79407 temp=$subdir_dir
79408 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
79409 case $dir_part in
79410 # Skip DOS drivespec
79411 ?:) total_dir=$dir_part ;;
79412 *) total_dir=$total_dir/$dir_part
79413 test -d "$total_dir" ||
79414 mkdir "$total_dir" ||
79415 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
79416 echo "$as_me: error: cannot create $subdir_dir" >&2;}
79417 { (exit 1); exit 1; }; }
79419 esac
79420 done; }
79422 if test -d ./$subdir_dir; then :;
79423 else
79424 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
79425 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
79426 { (exit 1); exit 1; }; }
79429 esac
79432 # Move into the target directory
79435 subdir_parent=`pwd`
79436 cd $subdir_dir
79439 # Make a "../" for each directory in $subdir_dir.
79442 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
79444 # Construct the --srcdir argument
79447 case $srcdir in
79449 # In place
79450 subdir_srcdir="$srcdir"
79452 [\\/]* | ?:[\\/]* )
79453 # Absolute path
79454 subdir_srcdir="$srcdir/$subdir_dir"
79457 # Relative path
79458 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
79460 esac
79463 # Construct the --cache-file argument
79466 # BWB - subdir caching is a pain since we change CFLAGS and all that.
79467 # Just disable it for now
79468 subdir_cache_file="/dev/null"
79471 # Invoke the configure script in the subdirectory
79474 export CFLAGS CPPFLAGS
79475 export CXXFLAGS CXXCPPFLAGS
79476 export FFLAGS
79477 export LDFLAGS LIBS
79478 sub_configure="$SHELL '$subdir_srcdir/configure'"
79479 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
79480 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
79481 eval "$sub_configure $subdir_args \
79482 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
79483 if test "$?" = "0"; then
79484 eval $subdir_success
79485 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
79486 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
79487 else
79488 eval $subdir_failure
79489 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
79490 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
79494 # Go back to the topdir
79497 cd $subdir_parent
79501 # Clean up
79504 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
79505 unset subdir_args subdir_dots total_dir dir_part temp
79508 if test "$should_build" = "1" ; then
79510 project=orte
79511 framework=ras
79512 component=$component
79514 # See if it dropped an output file for us to pick up some
79515 # shell variables in.
79516 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
79518 # Add this subdir to the mast list of all MCA component subdirs
79519 all_components="$all_components $component"
79521 if test "$compile_mode" = "dso" ; then
79522 dso_components="$dso_components $component"
79523 else
79524 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
79525 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
79526 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
79527 static_components="$static_components $component"
79530 # Output pretty results
79531 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
79532 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
79533 { echo "$as_me:$LINENO: result: yes" >&5
79534 echo "${ECHO_T}yes" >&6; }
79536 # If there's an output file, add the values to
79537 # scope_EXTRA_flags.
79538 if test -f $infile; then
79540 # First check for the ABORT tag
79541 line="`grep ABORT= $infile | cut -d= -f2-`"
79542 if test -n "$line" -a "$line" != "no"; then
79543 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
79544 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
79545 { { echo "$as_me:$LINENO: error: cannot continue" >&5
79546 echo "$as_me: error: cannot continue" >&2;}
79547 { (exit 1); exit 1; }; }
79550 # Check for flags passed up from the component. If we're
79551 # compiling statically, then take all flags passed up from the
79552 # component.
79553 if test "$compile_mode" = "static"; then
79554 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
79555 eval "line=$line"
79556 if test -n "$line"; then
79557 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
79559 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
79560 eval "line=$line"
79561 if test -n "$line"; then
79562 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
79566 if test "$DIRECT_ras" = "$component" ; then
79567 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
79568 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
79569 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
79570 eval $str
79571 else
79572 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
79573 *** does not appear to support direct calling.
79574 *** Aborting" >&5
79575 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
79576 *** does not appear to support direct calling.
79577 *** Aborting" >&2;}
79578 { (exit 1); exit 1; }; }
79581 else
79582 # were we supposed to have found something in the
79583 # post_configure.sh, but the file didn't exist?
79584 if test "$DIRECT_ras" = "$component" ; then
79585 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
79586 *** does not appear to support direct calling.
79587 *** Aborting" >&5
79588 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
79589 *** does not appear to support direct calling.
79590 *** Aborting" >&2;}
79591 { (exit 1); exit 1; }; }
79595 # now add the flags that were set in the environment variables
79596 # framework_component_FOO (for example, the flags set by
79597 # m4_configure components)
79599 # Check for flags passed up from the component. If we're
79600 # compiling statically, then take all flags passed up from the
79601 # component.
79602 if test "$compile_mode" = "static"; then
79603 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
79604 eval "$str"
79605 if test -n "$line" ; then
79606 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
79608 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
79609 eval "$str"
79610 if test -n "$line" ; then
79611 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
79615 else
79617 { echo "$as_me:$LINENO: checking if MCA component ras:$component can compile" >&5
79618 echo $ECHO_N "checking if MCA component ras:$component can compile... $ECHO_C" >&6; }
79619 { echo "$as_me:$LINENO: result: no" >&5
79620 echo "${ECHO_T}no" >&6; }
79622 # If this component was requested as the default for this
79623 # type, then abort.
79624 if test "$with_ras" = "$component" ; then
79625 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
79626 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
79627 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
79628 echo "$as_me: WARNING: This component was selected as the default" >&2;}
79629 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
79630 echo "$as_me: error: Cannot continue" >&2;}
79631 { (exit 1); exit 1; }; }
79632 exit 1
79635 if test ! -z "$DIRECT_ras" ; then
79636 if test "$DIRECT_ras" = "$component" ; then
79637 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
79638 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
79639 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
79640 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
79641 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
79642 echo "$as_me: error: Cannot continue" >&2;}
79643 { (exit 1); exit 1; }; }
79644 exit 1
79650 done
79655 MCA_ras_ALL_COMPONENTS="$all_components"
79656 MCA_ras_STATIC_COMPONENTS="$static_components"
79657 MCA_ras_DSO_COMPONENTS="$dso_components"
79658 MCA_ras_STATIC_LTLIBS="$static_ltlibs"
79666 MCA_ras_ALL_SUBDIRS=
79667 for item in $all_components ; do
79668 MCA_ras_ALL_SUBDIRS="$MCA_ras_ALL_SUBDIRS mca/ras/$item"
79669 done
79673 MCA_ras_STATIC_SUBDIRS=
79674 for item in $static_components ; do
79675 MCA_ras_STATIC_SUBDIRS="$MCA_ras_STATIC_SUBDIRS mca/ras/$item"
79676 done
79680 MCA_ras_DSO_SUBDIRS=
79681 for item in $dso_components ; do
79682 MCA_ras_DSO_SUBDIRS="$MCA_ras_DSO_SUBDIRS mca/ras/$item"
79683 done
79687 # add all the makefiles for the framework to the CONFIG_FILES.
79688 # Don't add common/base, since it doesn't exist
79689 ac_config_files="$ac_config_files orte/mca/ras/Makefile"
79692 # Create the final .h file that will be included in the type's
79693 # top-level glue. This lists all the static components. We don't
79694 # need to do this for "common".
79695 if test "ras" != "common"; then
79696 cat > $outfile <<EOF
79698 * \$HEADER\$
79701 `cat $outfile.extern`
79703 const mca_base_component_t *mca_ras_base_static_components[] = {
79704 `cat $outfile.struct`
79705 NULL
79708 # Only replace the header file if a) it doesn't previously
79709 # exist, or b) the contents are different. Do this to not
79710 # trigger recompilation of certain .c files just because the
79711 # timestamp changed on $outfile_real (similar to the way AC
79712 # handles AC_CONFIG_HEADER files).
79713 diff $outfile $outfile_real > /dev/null 2>&1
79714 if test "$?" != "0"; then
79715 mv $outfile $outfile_real
79716 else
79717 rm -f $outfile
79720 rm -f $outfile.struct $outfile.extern
79722 unset all_components static_components dso_components outfile outfile_real
79723 # common has to go up front
79724 if test "rds" = "common" ; then
79725 MCA_orte_FRAMEWORKS="rds $MCA_orte_FRAMEWORKS"
79726 MCA_orte_FRAMEWORKS_SUBDIRS="mca/rds $MCA_orte_FRAMEWORKS_SUBDIRS"
79727 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rds_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
79728 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rds_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
79729 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rds_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
79730 else
79731 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rds"
79732 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rds"
79733 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rds_ALL_SUBDIRS)"
79734 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rds_DSO_SUBDIRS)"
79735 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rds_STATIC_SUBDIRS)"
79737 if test "rds" != "common" ; then
79738 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rds/libmca_rds.la"
79740 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rds_STATIC_LTLIBS)"
79742 ompi_show_subsubtitle "Configuring MCA framework rds"
79744 # setup for framework
79745 all_components=
79746 static_components=
79747 dso_components=
79748 static_ltlibs=
79750 # Ensure that the directory where the #include file is to live
79751 # exists. Need to do this for VPATH builds, because the directory
79752 # may not exist yet. For the "common" type, it's not really a
79753 # component, so it doesn't have a base.
79754 if test "rds" = "common" ; then
79755 outdir=orte/mca/common
79756 else
79757 outdir=orte/mca/rds/base
79759 { as_dir=$outdir
79760 case $as_dir in #(
79761 -*) as_dir=./$as_dir;;
79762 esac
79763 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
79764 as_dirs=
79765 while :; do
79766 case $as_dir in #(
79767 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
79768 *) as_qdir=$as_dir;;
79769 esac
79770 as_dirs="'$as_qdir' $as_dirs"
79771 as_dir=`$as_dirname -- "$as_dir" ||
79772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
79773 X"$as_dir" : 'X\(//\)[^/]' \| \
79774 X"$as_dir" : 'X\(//\)$' \| \
79775 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
79776 echo X"$as_dir" |
79777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
79778 s//\1/
79781 /^X\(\/\/\)[^/].*/{
79782 s//\1/
79785 /^X\(\/\/\)$/{
79786 s//\1/
79789 /^X\(\/\).*/{
79790 s//\1/
79793 s/.*/./; q'`
79794 test -d "$as_dir" && break
79795 done
79796 test -z "$as_dirs" || eval "mkdir $as_dirs"
79797 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
79798 echo "$as_me: error: cannot create directory $as_dir" >&2;}
79799 { (exit 1); exit 1; }; }; }
79801 # remove any previously generated #include files
79802 outfile_real=$outdir/static-components.h
79803 outfile=$outfile_real.new
79804 rm -f $outfile $outfile.struct $outfile.extern
79805 touch $outfile.struct $outfile.extern
79807 # print some nice messages about what we're about to do...
79808 { echo "$as_me:$LINENO: checking for no configure components in framework rds" >&5
79809 echo $ECHO_N "checking for no configure components in framework rds... $ECHO_C" >&6; }
79810 { echo "$as_me:$LINENO: result: hostfile, resfile" >&5
79811 echo "${ECHO_T}hostfile, resfile" >&6; }
79812 { echo "$as_me:$LINENO: checking for m4 configure components in framework rds" >&5
79813 echo $ECHO_N "checking for m4 configure components in framework rds... $ECHO_C" >&6; }
79814 { echo "$as_me:$LINENO: result: " >&5
79815 echo "${ECHO_T}" >&6; }
79817 # if we only want the first successful component, set the variable
79818 # happy_value to 0 so we stop on first assignment. Otherwise, set
79819 # it to zero so that components_looking_for_succeed is always 1
79820 happy_value=1
79822 components_looking_for_succeed=1
79824 # configure components that don't have any component-specific
79825 # configuration. See comment in CONFIGURE_PROJECT about the
79826 # m4_ifval
79827 # if there isn't a component list, abort
79830 ompi_show_subsubsubtitle "MCA component rds:hostfile (no configuration)"
79833 project=orte
79834 framework=rds
79835 component=hostfile
79836 component_path="$srcdir/$project/mca/$framework/$component"
79837 want_component=0
79839 # build if:
79840 # - the component type is direct and we are that component
79841 # - there is no ompi_ignore file
79842 # - there is an ompi_ignore, but there is an empty ompi_unignore
79843 # - there is an ompi_ignore, but username is in ompi_unignore
79844 if test -d $component_path ; then
79845 # decide if we want the component to be built or not. This
79846 # is spread out because some of the logic is a little complex
79847 # and test's syntax isn't exactly the greatest. We want to
79848 # build the component by default.
79849 want_component=1
79850 if test -f $component_path/.ompi_ignore ; then
79851 # If there is an ompi_ignore file, don't build
79852 # the component. Note that this decision can be
79853 # overriden by the unignore logic below.
79854 want_component=0
79856 if test -f $component_path/.ompi_unignore ; then
79857 # if there is an empty ompi_unignore, that is
79858 # equivalent to having your userid in the unignore file.
79859 # If userid is in the file, unignore the ignore file.
79860 if test ! -s $component_path/.ompi_unignore ; then
79861 want_component=1
79862 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
79863 want_component=1
79866 # if this component type is direct and we are not it, we don't want
79867 # to be built. Otherwise, we do want to be built.
79868 if test ! -z "$DIRECT_rds" ; then
79869 if test "$DIRECT_rds" = "$component" ; then
79870 want_component=1
79871 else
79872 want_component=0
79877 # if we were explicitly disabled, don't build :)
79878 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
79879 eval $str
79880 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
79881 want_component=0
79884 if test "$want_component" = "1"; then
79885 should_build=$components_looking_for_succeed
79886 else
79887 should_build=0
79892 project=orte
79893 framework=rds
79894 component=hostfile
79896 # Is this component going to built staic or shared? $component
79897 # might not be known until configure time, so have to use eval
79898 # tricks - can't set variable names at autogen time.
79899 str="SHARED_FRAMEWORK=\$DSO_$framework"
79900 eval $str
79901 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
79902 eval $str
79904 str="STATIC_FRAMEWORK=\$STATIC_$framework"
79905 eval $str
79906 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
79907 eval $str
79909 shared_mode_override=static
79911 # Setup for either shared or static
79912 if test "$STATIC_FRAMEWORK" = "1" -o \
79913 "$STATIC_COMPONENT" = "1" -o \
79914 "$STATIC_all" = "1" ; then
79915 compile_mode="static"
79916 elif test "$shared_mode_override" = "dso" -o \
79917 "$SHARED_FRAMEWORK" = "1" -o \
79918 "$SHARED_COMPONENT" = "1" -o \
79919 "$DSO_all" = "1"; then
79920 compile_mode="dso"
79921 else
79922 compile_mode="static"
79925 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
79926 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
79927 if test "$DIRECT_rds" = "$component" ; then
79928 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
79929 echo "${ECHO_T}$compile_mode - direct" >&6; }
79930 else
79931 { echo "$as_me:$LINENO: result: $compile_mode" >&5
79932 echo "${ECHO_T}$compile_mode" >&6; }
79936 if test "$should_build" = "1" ; then
79938 project=orte
79939 framework=rds
79940 component=hostfile
79942 # See if it dropped an output file for us to pick up some
79943 # shell variables in.
79944 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
79946 # Add this subdir to the mast list of all MCA component subdirs
79947 all_components="$all_components $component"
79949 if test "$compile_mode" = "dso" ; then
79950 dso_components="$dso_components $component"
79951 else
79952 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
79953 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
79954 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
79955 static_components="$static_components $component"
79958 # Output pretty results
79959 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
79960 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
79961 { echo "$as_me:$LINENO: result: yes" >&5
79962 echo "${ECHO_T}yes" >&6; }
79964 # If there's an output file, add the values to
79965 # scope_EXTRA_flags.
79966 if test -f $infile; then
79968 # First check for the ABORT tag
79969 line="`grep ABORT= $infile | cut -d= -f2-`"
79970 if test -n "$line" -a "$line" != "no"; then
79971 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
79972 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
79973 { { echo "$as_me:$LINENO: error: cannot continue" >&5
79974 echo "$as_me: error: cannot continue" >&2;}
79975 { (exit 1); exit 1; }; }
79978 # Check for flags passed up from the component. If we're
79979 # compiling statically, then take all flags passed up from the
79980 # component.
79981 if test "$compile_mode" = "static"; then
79982 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
79983 eval "line=$line"
79984 if test -n "$line"; then
79985 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
79987 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
79988 eval "line=$line"
79989 if test -n "$line"; then
79990 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
79994 if test "$DIRECT_rds" = "$component" ; then
79995 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
79996 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
79997 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
79998 eval $str
79999 else
80000 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
80001 *** does not appear to support direct calling.
80002 *** Aborting" >&5
80003 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
80004 *** does not appear to support direct calling.
80005 *** Aborting" >&2;}
80006 { (exit 1); exit 1; }; }
80009 else
80010 # were we supposed to have found something in the
80011 # post_configure.sh, but the file didn't exist?
80012 if test "$DIRECT_rds" = "$component" ; then
80013 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
80014 *** does not appear to support direct calling.
80015 *** Aborting" >&5
80016 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
80017 *** does not appear to support direct calling.
80018 *** Aborting" >&2;}
80019 { (exit 1); exit 1; }; }
80023 # now add the flags that were set in the environment variables
80024 # framework_component_FOO (for example, the flags set by
80025 # m4_configure components)
80027 # Check for flags passed up from the component. If we're
80028 # compiling statically, then take all flags passed up from the
80029 # component.
80030 if test "$compile_mode" = "static"; then
80031 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
80032 eval "$str"
80033 if test -n "$line" ; then
80034 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
80036 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
80037 eval "$str"
80038 if test -n "$line" ; then
80039 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
80043 else
80045 { echo "$as_me:$LINENO: checking if MCA component rds:hostfile can compile" >&5
80046 echo $ECHO_N "checking if MCA component rds:hostfile can compile... $ECHO_C" >&6; }
80047 { echo "$as_me:$LINENO: result: no" >&5
80048 echo "${ECHO_T}no" >&6; }
80050 # If this component was requested as the default for this
80051 # type, then abort.
80052 if test "$with_rds" = "hostfile" ; then
80053 { echo "$as_me:$LINENO: WARNING: MCA component \"hostfile\" failed to configure properly" >&5
80054 echo "$as_me: WARNING: MCA component \"hostfile\" failed to configure properly" >&2;}
80055 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
80056 echo "$as_me: WARNING: This component was selected as the default" >&2;}
80057 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
80058 echo "$as_me: error: Cannot continue" >&2;}
80059 { (exit 1); exit 1; }; }
80060 exit 1
80063 if test ! -z "$DIRECT_rds" ; then
80064 if test "$DIRECT_rds" = "hostfile" ; then
80065 { echo "$as_me:$LINENO: WARNING: MCA component \"hostfile\" failed to configure properly" >&5
80066 echo "$as_me: WARNING: MCA component \"hostfile\" failed to configure properly" >&2;}
80067 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
80068 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
80069 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
80070 echo "$as_me: error: Cannot continue" >&2;}
80071 { (exit 1); exit 1; }; }
80072 exit 1
80076 # add component to all component list
80077 all_components="$all_components hostfile"
80080 # set the AM_CONDITIONAL on how we should build
80081 if test "$compile_mode" = "dso" ; then
80082 BUILD_rds_hostfile_DSO=1
80083 else
80084 BUILD_rds_hostfile_DSO=0
80088 if test "$BUILD_rds_hostfile_DSO" = "1"; then
80089 OMPI_BUILD_rds_hostfile_DSO_TRUE=
80090 OMPI_BUILD_rds_hostfile_DSO_FALSE='#'
80091 else
80092 OMPI_BUILD_rds_hostfile_DSO_TRUE='#'
80093 OMPI_BUILD_rds_hostfile_DSO_FALSE=
80097 unset compile_mode
80099 ompi_show_subsubsubtitle "MCA component rds:resfile (no configuration)"
80102 project=orte
80103 framework=rds
80104 component=resfile
80105 component_path="$srcdir/$project/mca/$framework/$component"
80106 want_component=0
80108 # build if:
80109 # - the component type is direct and we are that component
80110 # - there is no ompi_ignore file
80111 # - there is an ompi_ignore, but there is an empty ompi_unignore
80112 # - there is an ompi_ignore, but username is in ompi_unignore
80113 if test -d $component_path ; then
80114 # decide if we want the component to be built or not. This
80115 # is spread out because some of the logic is a little complex
80116 # and test's syntax isn't exactly the greatest. We want to
80117 # build the component by default.
80118 want_component=1
80119 if test -f $component_path/.ompi_ignore ; then
80120 # If there is an ompi_ignore file, don't build
80121 # the component. Note that this decision can be
80122 # overriden by the unignore logic below.
80123 want_component=0
80125 if test -f $component_path/.ompi_unignore ; then
80126 # if there is an empty ompi_unignore, that is
80127 # equivalent to having your userid in the unignore file.
80128 # If userid is in the file, unignore the ignore file.
80129 if test ! -s $component_path/.ompi_unignore ; then
80130 want_component=1
80131 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
80132 want_component=1
80135 # if this component type is direct and we are not it, we don't want
80136 # to be built. Otherwise, we do want to be built.
80137 if test ! -z "$DIRECT_rds" ; then
80138 if test "$DIRECT_rds" = "$component" ; then
80139 want_component=1
80140 else
80141 want_component=0
80146 # if we were explicitly disabled, don't build :)
80147 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
80148 eval $str
80149 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
80150 want_component=0
80153 if test "$want_component" = "1"; then
80154 should_build=$components_looking_for_succeed
80155 else
80156 should_build=0
80161 project=orte
80162 framework=rds
80163 component=resfile
80165 # Is this component going to built staic or shared? $component
80166 # might not be known until configure time, so have to use eval
80167 # tricks - can't set variable names at autogen time.
80168 str="SHARED_FRAMEWORK=\$DSO_$framework"
80169 eval $str
80170 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
80171 eval $str
80173 str="STATIC_FRAMEWORK=\$STATIC_$framework"
80174 eval $str
80175 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
80176 eval $str
80178 shared_mode_override=static
80180 # Setup for either shared or static
80181 if test "$STATIC_FRAMEWORK" = "1" -o \
80182 "$STATIC_COMPONENT" = "1" -o \
80183 "$STATIC_all" = "1" ; then
80184 compile_mode="static"
80185 elif test "$shared_mode_override" = "dso" -o \
80186 "$SHARED_FRAMEWORK" = "1" -o \
80187 "$SHARED_COMPONENT" = "1" -o \
80188 "$DSO_all" = "1"; then
80189 compile_mode="dso"
80190 else
80191 compile_mode="static"
80194 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
80195 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
80196 if test "$DIRECT_rds" = "$component" ; then
80197 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
80198 echo "${ECHO_T}$compile_mode - direct" >&6; }
80199 else
80200 { echo "$as_me:$LINENO: result: $compile_mode" >&5
80201 echo "${ECHO_T}$compile_mode" >&6; }
80205 if test "$should_build" = "1" ; then
80207 project=orte
80208 framework=rds
80209 component=resfile
80211 # See if it dropped an output file for us to pick up some
80212 # shell variables in.
80213 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
80215 # Add this subdir to the mast list of all MCA component subdirs
80216 all_components="$all_components $component"
80218 if test "$compile_mode" = "dso" ; then
80219 dso_components="$dso_components $component"
80220 else
80221 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
80222 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
80223 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
80224 static_components="$static_components $component"
80227 # Output pretty results
80228 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
80229 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
80230 { echo "$as_me:$LINENO: result: yes" >&5
80231 echo "${ECHO_T}yes" >&6; }
80233 # If there's an output file, add the values to
80234 # scope_EXTRA_flags.
80235 if test -f $infile; then
80237 # First check for the ABORT tag
80238 line="`grep ABORT= $infile | cut -d= -f2-`"
80239 if test -n "$line" -a "$line" != "no"; then
80240 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
80241 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
80242 { { echo "$as_me:$LINENO: error: cannot continue" >&5
80243 echo "$as_me: error: cannot continue" >&2;}
80244 { (exit 1); exit 1; }; }
80247 # Check for flags passed up from the component. If we're
80248 # compiling statically, then take all flags passed up from the
80249 # component.
80250 if test "$compile_mode" = "static"; then
80251 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
80252 eval "line=$line"
80253 if test -n "$line"; then
80254 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
80256 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
80257 eval "line=$line"
80258 if test -n "$line"; then
80259 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
80263 if test "$DIRECT_rds" = "$component" ; then
80264 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
80265 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
80266 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
80267 eval $str
80268 else
80269 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
80270 *** does not appear to support direct calling.
80271 *** Aborting" >&5
80272 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
80273 *** does not appear to support direct calling.
80274 *** Aborting" >&2;}
80275 { (exit 1); exit 1; }; }
80278 else
80279 # were we supposed to have found something in the
80280 # post_configure.sh, but the file didn't exist?
80281 if test "$DIRECT_rds" = "$component" ; then
80282 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
80283 *** does not appear to support direct calling.
80284 *** Aborting" >&5
80285 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
80286 *** does not appear to support direct calling.
80287 *** Aborting" >&2;}
80288 { (exit 1); exit 1; }; }
80292 # now add the flags that were set in the environment variables
80293 # framework_component_FOO (for example, the flags set by
80294 # m4_configure components)
80296 # Check for flags passed up from the component. If we're
80297 # compiling statically, then take all flags passed up from the
80298 # component.
80299 if test "$compile_mode" = "static"; then
80300 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
80301 eval "$str"
80302 if test -n "$line" ; then
80303 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
80305 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
80306 eval "$str"
80307 if test -n "$line" ; then
80308 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
80312 else
80314 { echo "$as_me:$LINENO: checking if MCA component rds:resfile can compile" >&5
80315 echo $ECHO_N "checking if MCA component rds:resfile can compile... $ECHO_C" >&6; }
80316 { echo "$as_me:$LINENO: result: no" >&5
80317 echo "${ECHO_T}no" >&6; }
80319 # If this component was requested as the default for this
80320 # type, then abort.
80321 if test "$with_rds" = "resfile" ; then
80322 { echo "$as_me:$LINENO: WARNING: MCA component \"resfile\" failed to configure properly" >&5
80323 echo "$as_me: WARNING: MCA component \"resfile\" failed to configure properly" >&2;}
80324 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
80325 echo "$as_me: WARNING: This component was selected as the default" >&2;}
80326 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
80327 echo "$as_me: error: Cannot continue" >&2;}
80328 { (exit 1); exit 1; }; }
80329 exit 1
80332 if test ! -z "$DIRECT_rds" ; then
80333 if test "$DIRECT_rds" = "resfile" ; then
80334 { echo "$as_me:$LINENO: WARNING: MCA component \"resfile\" failed to configure properly" >&5
80335 echo "$as_me: WARNING: MCA component \"resfile\" failed to configure properly" >&2;}
80336 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
80337 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
80338 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
80339 echo "$as_me: error: Cannot continue" >&2;}
80340 { (exit 1); exit 1; }; }
80341 exit 1
80345 # add component to all component list
80346 all_components="$all_components resfile"
80349 # set the AM_CONDITIONAL on how we should build
80350 if test "$compile_mode" = "dso" ; then
80351 BUILD_rds_resfile_DSO=1
80352 else
80353 BUILD_rds_resfile_DSO=0
80357 if test "$BUILD_rds_resfile_DSO" = "1"; then
80358 OMPI_BUILD_rds_resfile_DSO_TRUE=
80359 OMPI_BUILD_rds_resfile_DSO_FALSE='#'
80360 else
80361 OMPI_BUILD_rds_resfile_DSO_TRUE='#'
80362 OMPI_BUILD_rds_resfile_DSO_FALSE=
80366 unset compile_mode
80369 # configure components that use built-in configuration scripts
80370 # see comment in CONFIGURE_PROJECT about the m4_ifval
80371 # if there isn't a component list, abort
80375 # configure components that provide their own configure script.
80376 # It would be really hard to run these for "find first that
80377 # works", so we don't :)
80378 if test "$happy_value" = "1"; then
80380 for component_path in $srcdir/orte/mca/rds/* ; do
80381 component="`basename $component_path`"
80382 if test -d $component_path -a -x $component_path/configure ; then
80383 ompi_show_subsubsubtitle "MCA component rds:$component (need to configure)"
80386 project=orte
80387 framework=rds
80388 component=$component
80389 component_path="$srcdir/$project/mca/$framework/$component"
80390 want_component=0
80392 # build if:
80393 # - the component type is direct and we are that component
80394 # - there is no ompi_ignore file
80395 # - there is an ompi_ignore, but there is an empty ompi_unignore
80396 # - there is an ompi_ignore, but username is in ompi_unignore
80397 if test -d $component_path ; then
80398 # decide if we want the component to be built or not. This
80399 # is spread out because some of the logic is a little complex
80400 # and test's syntax isn't exactly the greatest. We want to
80401 # build the component by default.
80402 want_component=1
80403 if test -f $component_path/.ompi_ignore ; then
80404 # If there is an ompi_ignore file, don't build
80405 # the component. Note that this decision can be
80406 # overriden by the unignore logic below.
80407 want_component=0
80409 if test -f $component_path/.ompi_unignore ; then
80410 # if there is an empty ompi_unignore, that is
80411 # equivalent to having your userid in the unignore file.
80412 # If userid is in the file, unignore the ignore file.
80413 if test ! -s $component_path/.ompi_unignore ; then
80414 want_component=1
80415 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
80416 want_component=1
80419 # if this component type is direct and we are not it, we don't want
80420 # to be built. Otherwise, we do want to be built.
80421 if test ! -z "$DIRECT_rds" ; then
80422 if test "$DIRECT_rds" = "$component" ; then
80423 want_component=1
80424 else
80425 want_component=0
80430 # if we were explicitly disabled, don't build :)
80431 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
80432 eval $str
80433 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
80434 want_component=0
80437 if test "$want_component" = "1"; then
80438 should_build=1
80439 else
80440 should_build=0
80445 project=orte
80446 framework=rds
80447 component=$component
80449 # Is this component going to built staic or shared? $component
80450 # might not be known until configure time, so have to use eval
80451 # tricks - can't set variable names at autogen time.
80452 str="SHARED_FRAMEWORK=\$DSO_$framework"
80453 eval $str
80454 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
80455 eval $str
80457 str="STATIC_FRAMEWORK=\$STATIC_$framework"
80458 eval $str
80459 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
80460 eval $str
80462 shared_mode_override=static
80464 # Setup for either shared or static
80465 if test "$STATIC_FRAMEWORK" = "1" -o \
80466 "$STATIC_COMPONENT" = "1" -o \
80467 "$STATIC_all" = "1" ; then
80468 compile_mode="static"
80469 elif test "$shared_mode_override" = "dso" -o \
80470 "$SHARED_FRAMEWORK" = "1" -o \
80471 "$SHARED_COMPONENT" = "1" -o \
80472 "$DSO_all" = "1"; then
80473 compile_mode="dso"
80474 else
80475 compile_mode="static"
80478 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
80479 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
80480 if test "$DIRECT_rds" = "$component" ; then
80481 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
80482 echo "${ECHO_T}$compile_mode - direct" >&6; }
80483 else
80484 { echo "$as_me:$LINENO: result: $compile_mode" >&5
80485 echo "${ECHO_T}$compile_mode" >&6; }
80489 if test "$should_build" = "1" ; then
80492 # Invoke configure in a specific subdirectory.
80494 # orte/mca/rds/$component is the directory to invoke in
80495 # $ompi_subdir_args is the list of arguments to pass
80496 # should_build=1 is actions to execute upon success
80497 # should_build=2 is actions to execute upon failure
80499 subdir_dir="orte/mca/rds/$component"
80500 subdir_args="$ompi_subdir_args"
80501 subdir_success="should_build=1"
80502 subdir_failure="should_build=2"
80505 # Sanity checks
80508 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
80509 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
80510 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
80513 # Gotta check where srcdir is for VPATH builds. If srcdir is not
80514 # ., then we need to mkdir the subdir. Otherwise, we can just cd
80515 # into it.
80518 case $srcdir in
80522 { case $subdir_dir in
80523 [\\/]* | ?:[\\/]* ) total_dir=;;
80524 *) total_dir=.;;
80525 esac
80526 temp=$subdir_dir
80527 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
80528 case $dir_part in
80529 # Skip DOS drivespec
80530 ?:) total_dir=$dir_part ;;
80531 *) total_dir=$total_dir/$dir_part
80532 test -d "$total_dir" ||
80533 mkdir "$total_dir" ||
80534 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
80535 echo "$as_me: error: cannot create $subdir_dir" >&2;}
80536 { (exit 1); exit 1; }; }
80538 esac
80539 done; }
80541 if test -d ./$subdir_dir; then :;
80542 else
80543 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
80544 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
80545 { (exit 1); exit 1; }; }
80548 esac
80551 # Move into the target directory
80554 subdir_parent=`pwd`
80555 cd $subdir_dir
80558 # Make a "../" for each directory in $subdir_dir.
80561 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
80563 # Construct the --srcdir argument
80566 case $srcdir in
80568 # In place
80569 subdir_srcdir="$srcdir"
80571 [\\/]* | ?:[\\/]* )
80572 # Absolute path
80573 subdir_srcdir="$srcdir/$subdir_dir"
80576 # Relative path
80577 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
80579 esac
80582 # Construct the --cache-file argument
80585 # BWB - subdir caching is a pain since we change CFLAGS and all that.
80586 # Just disable it for now
80587 subdir_cache_file="/dev/null"
80590 # Invoke the configure script in the subdirectory
80593 export CFLAGS CPPFLAGS
80594 export CXXFLAGS CXXCPPFLAGS
80595 export FFLAGS
80596 export LDFLAGS LIBS
80597 sub_configure="$SHELL '$subdir_srcdir/configure'"
80598 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
80599 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
80600 eval "$sub_configure $subdir_args \
80601 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
80602 if test "$?" = "0"; then
80603 eval $subdir_success
80604 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
80605 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
80606 else
80607 eval $subdir_failure
80608 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
80609 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
80613 # Go back to the topdir
80616 cd $subdir_parent
80620 # Clean up
80623 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
80624 unset subdir_args subdir_dots total_dir dir_part temp
80627 if test "$should_build" = "1" ; then
80629 project=orte
80630 framework=rds
80631 component=$component
80633 # See if it dropped an output file for us to pick up some
80634 # shell variables in.
80635 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
80637 # Add this subdir to the mast list of all MCA component subdirs
80638 all_components="$all_components $component"
80640 if test "$compile_mode" = "dso" ; then
80641 dso_components="$dso_components $component"
80642 else
80643 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
80644 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
80645 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
80646 static_components="$static_components $component"
80649 # Output pretty results
80650 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
80651 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
80652 { echo "$as_me:$LINENO: result: yes" >&5
80653 echo "${ECHO_T}yes" >&6; }
80655 # If there's an output file, add the values to
80656 # scope_EXTRA_flags.
80657 if test -f $infile; then
80659 # First check for the ABORT tag
80660 line="`grep ABORT= $infile | cut -d= -f2-`"
80661 if test -n "$line" -a "$line" != "no"; then
80662 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
80663 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
80664 { { echo "$as_me:$LINENO: error: cannot continue" >&5
80665 echo "$as_me: error: cannot continue" >&2;}
80666 { (exit 1); exit 1; }; }
80669 # Check for flags passed up from the component. If we're
80670 # compiling statically, then take all flags passed up from the
80671 # component.
80672 if test "$compile_mode" = "static"; then
80673 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
80674 eval "line=$line"
80675 if test -n "$line"; then
80676 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
80678 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
80679 eval "line=$line"
80680 if test -n "$line"; then
80681 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
80685 if test "$DIRECT_rds" = "$component" ; then
80686 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
80687 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
80688 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
80689 eval $str
80690 else
80691 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
80692 *** does not appear to support direct calling.
80693 *** Aborting" >&5
80694 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
80695 *** does not appear to support direct calling.
80696 *** Aborting" >&2;}
80697 { (exit 1); exit 1; }; }
80700 else
80701 # were we supposed to have found something in the
80702 # post_configure.sh, but the file didn't exist?
80703 if test "$DIRECT_rds" = "$component" ; then
80704 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
80705 *** does not appear to support direct calling.
80706 *** Aborting" >&5
80707 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
80708 *** does not appear to support direct calling.
80709 *** Aborting" >&2;}
80710 { (exit 1); exit 1; }; }
80714 # now add the flags that were set in the environment variables
80715 # framework_component_FOO (for example, the flags set by
80716 # m4_configure components)
80718 # Check for flags passed up from the component. If we're
80719 # compiling statically, then take all flags passed up from the
80720 # component.
80721 if test "$compile_mode" = "static"; then
80722 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
80723 eval "$str"
80724 if test -n "$line" ; then
80725 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
80727 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
80728 eval "$str"
80729 if test -n "$line" ; then
80730 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
80734 else
80736 { echo "$as_me:$LINENO: checking if MCA component rds:$component can compile" >&5
80737 echo $ECHO_N "checking if MCA component rds:$component can compile... $ECHO_C" >&6; }
80738 { echo "$as_me:$LINENO: result: no" >&5
80739 echo "${ECHO_T}no" >&6; }
80741 # If this component was requested as the default for this
80742 # type, then abort.
80743 if test "$with_rds" = "$component" ; then
80744 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
80745 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
80746 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
80747 echo "$as_me: WARNING: This component was selected as the default" >&2;}
80748 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
80749 echo "$as_me: error: Cannot continue" >&2;}
80750 { (exit 1); exit 1; }; }
80751 exit 1
80754 if test ! -z "$DIRECT_rds" ; then
80755 if test "$DIRECT_rds" = "$component" ; then
80756 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
80757 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
80758 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
80759 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
80760 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
80761 echo "$as_me: error: Cannot continue" >&2;}
80762 { (exit 1); exit 1; }; }
80763 exit 1
80769 done
80774 MCA_rds_ALL_COMPONENTS="$all_components"
80775 MCA_rds_STATIC_COMPONENTS="$static_components"
80776 MCA_rds_DSO_COMPONENTS="$dso_components"
80777 MCA_rds_STATIC_LTLIBS="$static_ltlibs"
80785 MCA_rds_ALL_SUBDIRS=
80786 for item in $all_components ; do
80787 MCA_rds_ALL_SUBDIRS="$MCA_rds_ALL_SUBDIRS mca/rds/$item"
80788 done
80792 MCA_rds_STATIC_SUBDIRS=
80793 for item in $static_components ; do
80794 MCA_rds_STATIC_SUBDIRS="$MCA_rds_STATIC_SUBDIRS mca/rds/$item"
80795 done
80799 MCA_rds_DSO_SUBDIRS=
80800 for item in $dso_components ; do
80801 MCA_rds_DSO_SUBDIRS="$MCA_rds_DSO_SUBDIRS mca/rds/$item"
80802 done
80806 # add all the makefiles for the framework to the CONFIG_FILES.
80807 # Don't add common/base, since it doesn't exist
80808 ac_config_files="$ac_config_files orte/mca/rds/Makefile"
80811 # Create the final .h file that will be included in the type's
80812 # top-level glue. This lists all the static components. We don't
80813 # need to do this for "common".
80814 if test "rds" != "common"; then
80815 cat > $outfile <<EOF
80817 * \$HEADER\$
80820 `cat $outfile.extern`
80822 const mca_base_component_t *mca_rds_base_static_components[] = {
80823 `cat $outfile.struct`
80824 NULL
80827 # Only replace the header file if a) it doesn't previously
80828 # exist, or b) the contents are different. Do this to not
80829 # trigger recompilation of certain .c files just because the
80830 # timestamp changed on $outfile_real (similar to the way AC
80831 # handles AC_CONFIG_HEADER files).
80832 diff $outfile $outfile_real > /dev/null 2>&1
80833 if test "$?" != "0"; then
80834 mv $outfile $outfile_real
80835 else
80836 rm -f $outfile
80839 rm -f $outfile.struct $outfile.extern
80841 unset all_components static_components dso_components outfile outfile_real
80842 # common has to go up front
80843 if test "rmaps" = "common" ; then
80844 MCA_orte_FRAMEWORKS="rmaps $MCA_orte_FRAMEWORKS"
80845 MCA_orte_FRAMEWORKS_SUBDIRS="mca/rmaps $MCA_orte_FRAMEWORKS_SUBDIRS"
80846 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rmaps_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
80847 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rmaps_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
80848 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rmaps_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
80849 else
80850 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rmaps"
80851 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rmaps"
80852 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rmaps_ALL_SUBDIRS)"
80853 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rmaps_DSO_SUBDIRS)"
80854 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rmaps_STATIC_SUBDIRS)"
80856 if test "rmaps" != "common" ; then
80857 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rmaps/libmca_rmaps.la"
80859 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rmaps_STATIC_LTLIBS)"
80861 ompi_show_subsubtitle "Configuring MCA framework rmaps"
80863 # setup for framework
80864 all_components=
80865 static_components=
80866 dso_components=
80867 static_ltlibs=
80869 # Ensure that the directory where the #include file is to live
80870 # exists. Need to do this for VPATH builds, because the directory
80871 # may not exist yet. For the "common" type, it's not really a
80872 # component, so it doesn't have a base.
80873 if test "rmaps" = "common" ; then
80874 outdir=orte/mca/common
80875 else
80876 outdir=orte/mca/rmaps/base
80878 { as_dir=$outdir
80879 case $as_dir in #(
80880 -*) as_dir=./$as_dir;;
80881 esac
80882 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
80883 as_dirs=
80884 while :; do
80885 case $as_dir in #(
80886 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
80887 *) as_qdir=$as_dir;;
80888 esac
80889 as_dirs="'$as_qdir' $as_dirs"
80890 as_dir=`$as_dirname -- "$as_dir" ||
80891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
80892 X"$as_dir" : 'X\(//\)[^/]' \| \
80893 X"$as_dir" : 'X\(//\)$' \| \
80894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
80895 echo X"$as_dir" |
80896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
80897 s//\1/
80900 /^X\(\/\/\)[^/].*/{
80901 s//\1/
80904 /^X\(\/\/\)$/{
80905 s//\1/
80908 /^X\(\/\).*/{
80909 s//\1/
80912 s/.*/./; q'`
80913 test -d "$as_dir" && break
80914 done
80915 test -z "$as_dirs" || eval "mkdir $as_dirs"
80916 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
80917 echo "$as_me: error: cannot create directory $as_dir" >&2;}
80918 { (exit 1); exit 1; }; }; }
80920 # remove any previously generated #include files
80921 outfile_real=$outdir/static-components.h
80922 outfile=$outfile_real.new
80923 rm -f $outfile $outfile.struct $outfile.extern
80924 touch $outfile.struct $outfile.extern
80926 # print some nice messages about what we're about to do...
80927 { echo "$as_me:$LINENO: checking for no configure components in framework rmaps" >&5
80928 echo $ECHO_N "checking for no configure components in framework rmaps... $ECHO_C" >&6; }
80929 { echo "$as_me:$LINENO: result: round_robin" >&5
80930 echo "${ECHO_T}round_robin" >&6; }
80931 { echo "$as_me:$LINENO: checking for m4 configure components in framework rmaps" >&5
80932 echo $ECHO_N "checking for m4 configure components in framework rmaps... $ECHO_C" >&6; }
80933 { echo "$as_me:$LINENO: result: " >&5
80934 echo "${ECHO_T}" >&6; }
80936 # if we only want the first successful component, set the variable
80937 # happy_value to 0 so we stop on first assignment. Otherwise, set
80938 # it to zero so that components_looking_for_succeed is always 1
80939 happy_value=1
80941 components_looking_for_succeed=1
80943 # configure components that don't have any component-specific
80944 # configuration. See comment in CONFIGURE_PROJECT about the
80945 # m4_ifval
80946 # if there isn't a component list, abort
80949 ompi_show_subsubsubtitle "MCA component rmaps:round_robin (no configuration)"
80952 project=orte
80953 framework=rmaps
80954 component=round_robin
80955 component_path="$srcdir/$project/mca/$framework/$component"
80956 want_component=0
80958 # build if:
80959 # - the component type is direct and we are that component
80960 # - there is no ompi_ignore file
80961 # - there is an ompi_ignore, but there is an empty ompi_unignore
80962 # - there is an ompi_ignore, but username is in ompi_unignore
80963 if test -d $component_path ; then
80964 # decide if we want the component to be built or not. This
80965 # is spread out because some of the logic is a little complex
80966 # and test's syntax isn't exactly the greatest. We want to
80967 # build the component by default.
80968 want_component=1
80969 if test -f $component_path/.ompi_ignore ; then
80970 # If there is an ompi_ignore file, don't build
80971 # the component. Note that this decision can be
80972 # overriden by the unignore logic below.
80973 want_component=0
80975 if test -f $component_path/.ompi_unignore ; then
80976 # if there is an empty ompi_unignore, that is
80977 # equivalent to having your userid in the unignore file.
80978 # If userid is in the file, unignore the ignore file.
80979 if test ! -s $component_path/.ompi_unignore ; then
80980 want_component=1
80981 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
80982 want_component=1
80985 # if this component type is direct and we are not it, we don't want
80986 # to be built. Otherwise, we do want to be built.
80987 if test ! -z "$DIRECT_rmaps" ; then
80988 if test "$DIRECT_rmaps" = "$component" ; then
80989 want_component=1
80990 else
80991 want_component=0
80996 # if we were explicitly disabled, don't build :)
80997 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
80998 eval $str
80999 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
81000 want_component=0
81003 if test "$want_component" = "1"; then
81004 should_build=$components_looking_for_succeed
81005 else
81006 should_build=0
81011 project=orte
81012 framework=rmaps
81013 component=round_robin
81015 # Is this component going to built staic or shared? $component
81016 # might not be known until configure time, so have to use eval
81017 # tricks - can't set variable names at autogen time.
81018 str="SHARED_FRAMEWORK=\$DSO_$framework"
81019 eval $str
81020 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
81021 eval $str
81023 str="STATIC_FRAMEWORK=\$STATIC_$framework"
81024 eval $str
81025 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
81026 eval $str
81028 shared_mode_override=static
81030 # Setup for either shared or static
81031 if test "$STATIC_FRAMEWORK" = "1" -o \
81032 "$STATIC_COMPONENT" = "1" -o \
81033 "$STATIC_all" = "1" ; then
81034 compile_mode="static"
81035 elif test "$shared_mode_override" = "dso" -o \
81036 "$SHARED_FRAMEWORK" = "1" -o \
81037 "$SHARED_COMPONENT" = "1" -o \
81038 "$DSO_all" = "1"; then
81039 compile_mode="dso"
81040 else
81041 compile_mode="static"
81044 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
81045 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
81046 if test "$DIRECT_rmaps" = "$component" ; then
81047 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
81048 echo "${ECHO_T}$compile_mode - direct" >&6; }
81049 else
81050 { echo "$as_me:$LINENO: result: $compile_mode" >&5
81051 echo "${ECHO_T}$compile_mode" >&6; }
81055 if test "$should_build" = "1" ; then
81057 project=orte
81058 framework=rmaps
81059 component=round_robin
81061 # See if it dropped an output file for us to pick up some
81062 # shell variables in.
81063 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
81065 # Add this subdir to the mast list of all MCA component subdirs
81066 all_components="$all_components $component"
81068 if test "$compile_mode" = "dso" ; then
81069 dso_components="$dso_components $component"
81070 else
81071 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
81072 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
81073 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
81074 static_components="$static_components $component"
81077 # Output pretty results
81078 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
81079 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
81080 { echo "$as_me:$LINENO: result: yes" >&5
81081 echo "${ECHO_T}yes" >&6; }
81083 # If there's an output file, add the values to
81084 # scope_EXTRA_flags.
81085 if test -f $infile; then
81087 # First check for the ABORT tag
81088 line="`grep ABORT= $infile | cut -d= -f2-`"
81089 if test -n "$line" -a "$line" != "no"; then
81090 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
81091 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
81092 { { echo "$as_me:$LINENO: error: cannot continue" >&5
81093 echo "$as_me: error: cannot continue" >&2;}
81094 { (exit 1); exit 1; }; }
81097 # Check for flags passed up from the component. If we're
81098 # compiling statically, then take all flags passed up from the
81099 # component.
81100 if test "$compile_mode" = "static"; then
81101 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
81102 eval "line=$line"
81103 if test -n "$line"; then
81104 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
81106 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
81107 eval "line=$line"
81108 if test -n "$line"; then
81109 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
81113 if test "$DIRECT_rmaps" = "$component" ; then
81114 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
81115 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
81116 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
81117 eval $str
81118 else
81119 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
81120 *** does not appear to support direct calling.
81121 *** Aborting" >&5
81122 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
81123 *** does not appear to support direct calling.
81124 *** Aborting" >&2;}
81125 { (exit 1); exit 1; }; }
81128 else
81129 # were we supposed to have found something in the
81130 # post_configure.sh, but the file didn't exist?
81131 if test "$DIRECT_rmaps" = "$component" ; then
81132 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
81133 *** does not appear to support direct calling.
81134 *** Aborting" >&5
81135 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
81136 *** does not appear to support direct calling.
81137 *** Aborting" >&2;}
81138 { (exit 1); exit 1; }; }
81142 # now add the flags that were set in the environment variables
81143 # framework_component_FOO (for example, the flags set by
81144 # m4_configure components)
81146 # Check for flags passed up from the component. If we're
81147 # compiling statically, then take all flags passed up from the
81148 # component.
81149 if test "$compile_mode" = "static"; then
81150 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
81151 eval "$str"
81152 if test -n "$line" ; then
81153 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
81155 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
81156 eval "$str"
81157 if test -n "$line" ; then
81158 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
81162 else
81164 { echo "$as_me:$LINENO: checking if MCA component rmaps:round_robin can compile" >&5
81165 echo $ECHO_N "checking if MCA component rmaps:round_robin can compile... $ECHO_C" >&6; }
81166 { echo "$as_me:$LINENO: result: no" >&5
81167 echo "${ECHO_T}no" >&6; }
81169 # If this component was requested as the default for this
81170 # type, then abort.
81171 if test "$with_rmaps" = "round_robin" ; then
81172 { echo "$as_me:$LINENO: WARNING: MCA component \"round_robin\" failed to configure properly" >&5
81173 echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;}
81174 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
81175 echo "$as_me: WARNING: This component was selected as the default" >&2;}
81176 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
81177 echo "$as_me: error: Cannot continue" >&2;}
81178 { (exit 1); exit 1; }; }
81179 exit 1
81182 if test ! -z "$DIRECT_rmaps" ; then
81183 if test "$DIRECT_rmaps" = "round_robin" ; then
81184 { echo "$as_me:$LINENO: WARNING: MCA component \"round_robin\" failed to configure properly" >&5
81185 echo "$as_me: WARNING: MCA component \"round_robin\" failed to configure properly" >&2;}
81186 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
81187 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
81188 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
81189 echo "$as_me: error: Cannot continue" >&2;}
81190 { (exit 1); exit 1; }; }
81191 exit 1
81195 # add component to all component list
81196 all_components="$all_components round_robin"
81199 # set the AM_CONDITIONAL on how we should build
81200 if test "$compile_mode" = "dso" ; then
81201 BUILD_rmaps_round_robin_DSO=1
81202 else
81203 BUILD_rmaps_round_robin_DSO=0
81207 if test "$BUILD_rmaps_round_robin_DSO" = "1"; then
81208 OMPI_BUILD_rmaps_round_robin_DSO_TRUE=
81209 OMPI_BUILD_rmaps_round_robin_DSO_FALSE='#'
81210 else
81211 OMPI_BUILD_rmaps_round_robin_DSO_TRUE='#'
81212 OMPI_BUILD_rmaps_round_robin_DSO_FALSE=
81216 unset compile_mode
81219 # configure components that use built-in configuration scripts
81220 # see comment in CONFIGURE_PROJECT about the m4_ifval
81221 # if there isn't a component list, abort
81225 # configure components that provide their own configure script.
81226 # It would be really hard to run these for "find first that
81227 # works", so we don't :)
81228 if test "$happy_value" = "1"; then
81230 for component_path in $srcdir/orte/mca/rmaps/* ; do
81231 component="`basename $component_path`"
81232 if test -d $component_path -a -x $component_path/configure ; then
81233 ompi_show_subsubsubtitle "MCA component rmaps:$component (need to configure)"
81236 project=orte
81237 framework=rmaps
81238 component=$component
81239 component_path="$srcdir/$project/mca/$framework/$component"
81240 want_component=0
81242 # build if:
81243 # - the component type is direct and we are that component
81244 # - there is no ompi_ignore file
81245 # - there is an ompi_ignore, but there is an empty ompi_unignore
81246 # - there is an ompi_ignore, but username is in ompi_unignore
81247 if test -d $component_path ; then
81248 # decide if we want the component to be built or not. This
81249 # is spread out because some of the logic is a little complex
81250 # and test's syntax isn't exactly the greatest. We want to
81251 # build the component by default.
81252 want_component=1
81253 if test -f $component_path/.ompi_ignore ; then
81254 # If there is an ompi_ignore file, don't build
81255 # the component. Note that this decision can be
81256 # overriden by the unignore logic below.
81257 want_component=0
81259 if test -f $component_path/.ompi_unignore ; then
81260 # if there is an empty ompi_unignore, that is
81261 # equivalent to having your userid in the unignore file.
81262 # If userid is in the file, unignore the ignore file.
81263 if test ! -s $component_path/.ompi_unignore ; then
81264 want_component=1
81265 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
81266 want_component=1
81269 # if this component type is direct and we are not it, we don't want
81270 # to be built. Otherwise, we do want to be built.
81271 if test ! -z "$DIRECT_rmaps" ; then
81272 if test "$DIRECT_rmaps" = "$component" ; then
81273 want_component=1
81274 else
81275 want_component=0
81280 # if we were explicitly disabled, don't build :)
81281 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
81282 eval $str
81283 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
81284 want_component=0
81287 if test "$want_component" = "1"; then
81288 should_build=1
81289 else
81290 should_build=0
81295 project=orte
81296 framework=rmaps
81297 component=$component
81299 # Is this component going to built staic or shared? $component
81300 # might not be known until configure time, so have to use eval
81301 # tricks - can't set variable names at autogen time.
81302 str="SHARED_FRAMEWORK=\$DSO_$framework"
81303 eval $str
81304 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
81305 eval $str
81307 str="STATIC_FRAMEWORK=\$STATIC_$framework"
81308 eval $str
81309 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
81310 eval $str
81312 shared_mode_override=static
81314 # Setup for either shared or static
81315 if test "$STATIC_FRAMEWORK" = "1" -o \
81316 "$STATIC_COMPONENT" = "1" -o \
81317 "$STATIC_all" = "1" ; then
81318 compile_mode="static"
81319 elif test "$shared_mode_override" = "dso" -o \
81320 "$SHARED_FRAMEWORK" = "1" -o \
81321 "$SHARED_COMPONENT" = "1" -o \
81322 "$DSO_all" = "1"; then
81323 compile_mode="dso"
81324 else
81325 compile_mode="static"
81328 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
81329 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
81330 if test "$DIRECT_rmaps" = "$component" ; then
81331 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
81332 echo "${ECHO_T}$compile_mode - direct" >&6; }
81333 else
81334 { echo "$as_me:$LINENO: result: $compile_mode" >&5
81335 echo "${ECHO_T}$compile_mode" >&6; }
81339 if test "$should_build" = "1" ; then
81342 # Invoke configure in a specific subdirectory.
81344 # orte/mca/rmaps/$component is the directory to invoke in
81345 # $ompi_subdir_args is the list of arguments to pass
81346 # should_build=1 is actions to execute upon success
81347 # should_build=2 is actions to execute upon failure
81349 subdir_dir="orte/mca/rmaps/$component"
81350 subdir_args="$ompi_subdir_args"
81351 subdir_success="should_build=1"
81352 subdir_failure="should_build=2"
81355 # Sanity checks
81358 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
81359 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
81360 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
81363 # Gotta check where srcdir is for VPATH builds. If srcdir is not
81364 # ., then we need to mkdir the subdir. Otherwise, we can just cd
81365 # into it.
81368 case $srcdir in
81372 { case $subdir_dir in
81373 [\\/]* | ?:[\\/]* ) total_dir=;;
81374 *) total_dir=.;;
81375 esac
81376 temp=$subdir_dir
81377 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
81378 case $dir_part in
81379 # Skip DOS drivespec
81380 ?:) total_dir=$dir_part ;;
81381 *) total_dir=$total_dir/$dir_part
81382 test -d "$total_dir" ||
81383 mkdir "$total_dir" ||
81384 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
81385 echo "$as_me: error: cannot create $subdir_dir" >&2;}
81386 { (exit 1); exit 1; }; }
81388 esac
81389 done; }
81391 if test -d ./$subdir_dir; then :;
81392 else
81393 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
81394 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
81395 { (exit 1); exit 1; }; }
81398 esac
81401 # Move into the target directory
81404 subdir_parent=`pwd`
81405 cd $subdir_dir
81408 # Make a "../" for each directory in $subdir_dir.
81411 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
81413 # Construct the --srcdir argument
81416 case $srcdir in
81418 # In place
81419 subdir_srcdir="$srcdir"
81421 [\\/]* | ?:[\\/]* )
81422 # Absolute path
81423 subdir_srcdir="$srcdir/$subdir_dir"
81426 # Relative path
81427 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
81429 esac
81432 # Construct the --cache-file argument
81435 # BWB - subdir caching is a pain since we change CFLAGS and all that.
81436 # Just disable it for now
81437 subdir_cache_file="/dev/null"
81440 # Invoke the configure script in the subdirectory
81443 export CFLAGS CPPFLAGS
81444 export CXXFLAGS CXXCPPFLAGS
81445 export FFLAGS
81446 export LDFLAGS LIBS
81447 sub_configure="$SHELL '$subdir_srcdir/configure'"
81448 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
81449 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
81450 eval "$sub_configure $subdir_args \
81451 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
81452 if test "$?" = "0"; then
81453 eval $subdir_success
81454 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
81455 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
81456 else
81457 eval $subdir_failure
81458 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
81459 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
81463 # Go back to the topdir
81466 cd $subdir_parent
81470 # Clean up
81473 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
81474 unset subdir_args subdir_dots total_dir dir_part temp
81477 if test "$should_build" = "1" ; then
81479 project=orte
81480 framework=rmaps
81481 component=$component
81483 # See if it dropped an output file for us to pick up some
81484 # shell variables in.
81485 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
81487 # Add this subdir to the mast list of all MCA component subdirs
81488 all_components="$all_components $component"
81490 if test "$compile_mode" = "dso" ; then
81491 dso_components="$dso_components $component"
81492 else
81493 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
81494 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
81495 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
81496 static_components="$static_components $component"
81499 # Output pretty results
81500 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
81501 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
81502 { echo "$as_me:$LINENO: result: yes" >&5
81503 echo "${ECHO_T}yes" >&6; }
81505 # If there's an output file, add the values to
81506 # scope_EXTRA_flags.
81507 if test -f $infile; then
81509 # First check for the ABORT tag
81510 line="`grep ABORT= $infile | cut -d= -f2-`"
81511 if test -n "$line" -a "$line" != "no"; then
81512 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
81513 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
81514 { { echo "$as_me:$LINENO: error: cannot continue" >&5
81515 echo "$as_me: error: cannot continue" >&2;}
81516 { (exit 1); exit 1; }; }
81519 # Check for flags passed up from the component. If we're
81520 # compiling statically, then take all flags passed up from the
81521 # component.
81522 if test "$compile_mode" = "static"; then
81523 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
81524 eval "line=$line"
81525 if test -n "$line"; then
81526 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
81528 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
81529 eval "line=$line"
81530 if test -n "$line"; then
81531 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
81535 if test "$DIRECT_rmaps" = "$component" ; then
81536 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
81537 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
81538 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
81539 eval $str
81540 else
81541 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
81542 *** does not appear to support direct calling.
81543 *** Aborting" >&5
81544 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
81545 *** does not appear to support direct calling.
81546 *** Aborting" >&2;}
81547 { (exit 1); exit 1; }; }
81550 else
81551 # were we supposed to have found something in the
81552 # post_configure.sh, but the file didn't exist?
81553 if test "$DIRECT_rmaps" = "$component" ; then
81554 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
81555 *** does not appear to support direct calling.
81556 *** Aborting" >&5
81557 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
81558 *** does not appear to support direct calling.
81559 *** Aborting" >&2;}
81560 { (exit 1); exit 1; }; }
81564 # now add the flags that were set in the environment variables
81565 # framework_component_FOO (for example, the flags set by
81566 # m4_configure components)
81568 # Check for flags passed up from the component. If we're
81569 # compiling statically, then take all flags passed up from the
81570 # component.
81571 if test "$compile_mode" = "static"; then
81572 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
81573 eval "$str"
81574 if test -n "$line" ; then
81575 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
81577 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
81578 eval "$str"
81579 if test -n "$line" ; then
81580 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
81584 else
81586 { echo "$as_me:$LINENO: checking if MCA component rmaps:$component can compile" >&5
81587 echo $ECHO_N "checking if MCA component rmaps:$component can compile... $ECHO_C" >&6; }
81588 { echo "$as_me:$LINENO: result: no" >&5
81589 echo "${ECHO_T}no" >&6; }
81591 # If this component was requested as the default for this
81592 # type, then abort.
81593 if test "$with_rmaps" = "$component" ; then
81594 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
81595 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
81596 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
81597 echo "$as_me: WARNING: This component was selected as the default" >&2;}
81598 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
81599 echo "$as_me: error: Cannot continue" >&2;}
81600 { (exit 1); exit 1; }; }
81601 exit 1
81604 if test ! -z "$DIRECT_rmaps" ; then
81605 if test "$DIRECT_rmaps" = "$component" ; then
81606 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
81607 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
81608 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
81609 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
81610 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
81611 echo "$as_me: error: Cannot continue" >&2;}
81612 { (exit 1); exit 1; }; }
81613 exit 1
81619 done
81624 MCA_rmaps_ALL_COMPONENTS="$all_components"
81625 MCA_rmaps_STATIC_COMPONENTS="$static_components"
81626 MCA_rmaps_DSO_COMPONENTS="$dso_components"
81627 MCA_rmaps_STATIC_LTLIBS="$static_ltlibs"
81635 MCA_rmaps_ALL_SUBDIRS=
81636 for item in $all_components ; do
81637 MCA_rmaps_ALL_SUBDIRS="$MCA_rmaps_ALL_SUBDIRS mca/rmaps/$item"
81638 done
81642 MCA_rmaps_STATIC_SUBDIRS=
81643 for item in $static_components ; do
81644 MCA_rmaps_STATIC_SUBDIRS="$MCA_rmaps_STATIC_SUBDIRS mca/rmaps/$item"
81645 done
81649 MCA_rmaps_DSO_SUBDIRS=
81650 for item in $dso_components ; do
81651 MCA_rmaps_DSO_SUBDIRS="$MCA_rmaps_DSO_SUBDIRS mca/rmaps/$item"
81652 done
81656 # add all the makefiles for the framework to the CONFIG_FILES.
81657 # Don't add common/base, since it doesn't exist
81658 ac_config_files="$ac_config_files orte/mca/rmaps/Makefile"
81661 # Create the final .h file that will be included in the type's
81662 # top-level glue. This lists all the static components. We don't
81663 # need to do this for "common".
81664 if test "rmaps" != "common"; then
81665 cat > $outfile <<EOF
81667 * \$HEADER\$
81670 `cat $outfile.extern`
81672 const mca_base_component_t *mca_rmaps_base_static_components[] = {
81673 `cat $outfile.struct`
81674 NULL
81677 # Only replace the header file if a) it doesn't previously
81678 # exist, or b) the contents are different. Do this to not
81679 # trigger recompilation of certain .c files just because the
81680 # timestamp changed on $outfile_real (similar to the way AC
81681 # handles AC_CONFIG_HEADER files).
81682 diff $outfile $outfile_real > /dev/null 2>&1
81683 if test "$?" != "0"; then
81684 mv $outfile $outfile_real
81685 else
81686 rm -f $outfile
81689 rm -f $outfile.struct $outfile.extern
81691 unset all_components static_components dso_components outfile outfile_real
81692 # common has to go up front
81693 if test "rmgr" = "common" ; then
81694 MCA_orte_FRAMEWORKS="rmgr $MCA_orte_FRAMEWORKS"
81695 MCA_orte_FRAMEWORKS_SUBDIRS="mca/rmgr $MCA_orte_FRAMEWORKS_SUBDIRS"
81696 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rmgr_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
81697 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rmgr_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
81698 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rmgr_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
81699 else
81700 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rmgr"
81701 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rmgr"
81702 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rmgr_ALL_SUBDIRS)"
81703 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rmgr_DSO_SUBDIRS)"
81704 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rmgr_STATIC_SUBDIRS)"
81706 if test "rmgr" != "common" ; then
81707 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rmgr/libmca_rmgr.la"
81709 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rmgr_STATIC_LTLIBS)"
81711 ompi_show_subsubtitle "Configuring MCA framework rmgr"
81713 # setup for framework
81714 all_components=
81715 static_components=
81716 dso_components=
81717 static_ltlibs=
81719 # Ensure that the directory where the #include file is to live
81720 # exists. Need to do this for VPATH builds, because the directory
81721 # may not exist yet. For the "common" type, it's not really a
81722 # component, so it doesn't have a base.
81723 if test "rmgr" = "common" ; then
81724 outdir=orte/mca/common
81725 else
81726 outdir=orte/mca/rmgr/base
81728 { as_dir=$outdir
81729 case $as_dir in #(
81730 -*) as_dir=./$as_dir;;
81731 esac
81732 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
81733 as_dirs=
81734 while :; do
81735 case $as_dir in #(
81736 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
81737 *) as_qdir=$as_dir;;
81738 esac
81739 as_dirs="'$as_qdir' $as_dirs"
81740 as_dir=`$as_dirname -- "$as_dir" ||
81741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
81742 X"$as_dir" : 'X\(//\)[^/]' \| \
81743 X"$as_dir" : 'X\(//\)$' \| \
81744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
81745 echo X"$as_dir" |
81746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
81747 s//\1/
81750 /^X\(\/\/\)[^/].*/{
81751 s//\1/
81754 /^X\(\/\/\)$/{
81755 s//\1/
81758 /^X\(\/\).*/{
81759 s//\1/
81762 s/.*/./; q'`
81763 test -d "$as_dir" && break
81764 done
81765 test -z "$as_dirs" || eval "mkdir $as_dirs"
81766 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
81767 echo "$as_me: error: cannot create directory $as_dir" >&2;}
81768 { (exit 1); exit 1; }; }; }
81770 # remove any previously generated #include files
81771 outfile_real=$outdir/static-components.h
81772 outfile=$outfile_real.new
81773 rm -f $outfile $outfile.struct $outfile.extern
81774 touch $outfile.struct $outfile.extern
81776 # print some nice messages about what we're about to do...
81777 { echo "$as_me:$LINENO: checking for no configure components in framework rmgr" >&5
81778 echo $ECHO_N "checking for no configure components in framework rmgr... $ECHO_C" >&6; }
81779 { echo "$as_me:$LINENO: result: proxy, urm" >&5
81780 echo "${ECHO_T}proxy, urm" >&6; }
81781 { echo "$as_me:$LINENO: checking for m4 configure components in framework rmgr" >&5
81782 echo $ECHO_N "checking for m4 configure components in framework rmgr... $ECHO_C" >&6; }
81783 { echo "$as_me:$LINENO: result: cnos" >&5
81784 echo "${ECHO_T}cnos" >&6; }
81786 # if we only want the first successful component, set the variable
81787 # happy_value to 0 so we stop on first assignment. Otherwise, set
81788 # it to zero so that components_looking_for_succeed is always 1
81789 happy_value=1
81791 components_looking_for_succeed=1
81793 # configure components that don't have any component-specific
81794 # configuration. See comment in CONFIGURE_PROJECT about the
81795 # m4_ifval
81796 # if there isn't a component list, abort
81799 ompi_show_subsubsubtitle "MCA component rmgr:proxy (no configuration)"
81802 project=orte
81803 framework=rmgr
81804 component=proxy
81805 component_path="$srcdir/$project/mca/$framework/$component"
81806 want_component=0
81808 # build if:
81809 # - the component type is direct and we are that component
81810 # - there is no ompi_ignore file
81811 # - there is an ompi_ignore, but there is an empty ompi_unignore
81812 # - there is an ompi_ignore, but username is in ompi_unignore
81813 if test -d $component_path ; then
81814 # decide if we want the component to be built or not. This
81815 # is spread out because some of the logic is a little complex
81816 # and test's syntax isn't exactly the greatest. We want to
81817 # build the component by default.
81818 want_component=1
81819 if test -f $component_path/.ompi_ignore ; then
81820 # If there is an ompi_ignore file, don't build
81821 # the component. Note that this decision can be
81822 # overriden by the unignore logic below.
81823 want_component=0
81825 if test -f $component_path/.ompi_unignore ; then
81826 # if there is an empty ompi_unignore, that is
81827 # equivalent to having your userid in the unignore file.
81828 # If userid is in the file, unignore the ignore file.
81829 if test ! -s $component_path/.ompi_unignore ; then
81830 want_component=1
81831 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
81832 want_component=1
81835 # if this component type is direct and we are not it, we don't want
81836 # to be built. Otherwise, we do want to be built.
81837 if test ! -z "$DIRECT_rmgr" ; then
81838 if test "$DIRECT_rmgr" = "$component" ; then
81839 want_component=1
81840 else
81841 want_component=0
81846 # if we were explicitly disabled, don't build :)
81847 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
81848 eval $str
81849 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
81850 want_component=0
81853 if test "$want_component" = "1"; then
81854 should_build=$components_looking_for_succeed
81855 else
81856 should_build=0
81861 project=orte
81862 framework=rmgr
81863 component=proxy
81865 # Is this component going to built staic or shared? $component
81866 # might not be known until configure time, so have to use eval
81867 # tricks - can't set variable names at autogen time.
81868 str="SHARED_FRAMEWORK=\$DSO_$framework"
81869 eval $str
81870 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
81871 eval $str
81873 str="STATIC_FRAMEWORK=\$STATIC_$framework"
81874 eval $str
81875 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
81876 eval $str
81878 shared_mode_override=static
81880 # Setup for either shared or static
81881 if test "$STATIC_FRAMEWORK" = "1" -o \
81882 "$STATIC_COMPONENT" = "1" -o \
81883 "$STATIC_all" = "1" ; then
81884 compile_mode="static"
81885 elif test "$shared_mode_override" = "dso" -o \
81886 "$SHARED_FRAMEWORK" = "1" -o \
81887 "$SHARED_COMPONENT" = "1" -o \
81888 "$DSO_all" = "1"; then
81889 compile_mode="dso"
81890 else
81891 compile_mode="static"
81894 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
81895 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
81896 if test "$DIRECT_rmgr" = "$component" ; then
81897 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
81898 echo "${ECHO_T}$compile_mode - direct" >&6; }
81899 else
81900 { echo "$as_me:$LINENO: result: $compile_mode" >&5
81901 echo "${ECHO_T}$compile_mode" >&6; }
81905 if test "$should_build" = "1" ; then
81907 project=orte
81908 framework=rmgr
81909 component=proxy
81911 # See if it dropped an output file for us to pick up some
81912 # shell variables in.
81913 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
81915 # Add this subdir to the mast list of all MCA component subdirs
81916 all_components="$all_components $component"
81918 if test "$compile_mode" = "dso" ; then
81919 dso_components="$dso_components $component"
81920 else
81921 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
81922 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
81923 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
81924 static_components="$static_components $component"
81927 # Output pretty results
81928 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
81929 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
81930 { echo "$as_me:$LINENO: result: yes" >&5
81931 echo "${ECHO_T}yes" >&6; }
81933 # If there's an output file, add the values to
81934 # scope_EXTRA_flags.
81935 if test -f $infile; then
81937 # First check for the ABORT tag
81938 line="`grep ABORT= $infile | cut -d= -f2-`"
81939 if test -n "$line" -a "$line" != "no"; then
81940 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
81941 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
81942 { { echo "$as_me:$LINENO: error: cannot continue" >&5
81943 echo "$as_me: error: cannot continue" >&2;}
81944 { (exit 1); exit 1; }; }
81947 # Check for flags passed up from the component. If we're
81948 # compiling statically, then take all flags passed up from the
81949 # component.
81950 if test "$compile_mode" = "static"; then
81951 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
81952 eval "line=$line"
81953 if test -n "$line"; then
81954 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
81956 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
81957 eval "line=$line"
81958 if test -n "$line"; then
81959 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
81963 if test "$DIRECT_rmgr" = "$component" ; then
81964 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
81965 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
81966 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
81967 eval $str
81968 else
81969 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
81970 *** does not appear to support direct calling.
81971 *** Aborting" >&5
81972 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
81973 *** does not appear to support direct calling.
81974 *** Aborting" >&2;}
81975 { (exit 1); exit 1; }; }
81978 else
81979 # were we supposed to have found something in the
81980 # post_configure.sh, but the file didn't exist?
81981 if test "$DIRECT_rmgr" = "$component" ; then
81982 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
81983 *** does not appear to support direct calling.
81984 *** Aborting" >&5
81985 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
81986 *** does not appear to support direct calling.
81987 *** Aborting" >&2;}
81988 { (exit 1); exit 1; }; }
81992 # now add the flags that were set in the environment variables
81993 # framework_component_FOO (for example, the flags set by
81994 # m4_configure components)
81996 # Check for flags passed up from the component. If we're
81997 # compiling statically, then take all flags passed up from the
81998 # component.
81999 if test "$compile_mode" = "static"; then
82000 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
82001 eval "$str"
82002 if test -n "$line" ; then
82003 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
82005 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
82006 eval "$str"
82007 if test -n "$line" ; then
82008 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
82012 else
82014 { echo "$as_me:$LINENO: checking if MCA component rmgr:proxy can compile" >&5
82015 echo $ECHO_N "checking if MCA component rmgr:proxy can compile... $ECHO_C" >&6; }
82016 { echo "$as_me:$LINENO: result: no" >&5
82017 echo "${ECHO_T}no" >&6; }
82019 # If this component was requested as the default for this
82020 # type, then abort.
82021 if test "$with_rmgr" = "proxy" ; then
82022 { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
82023 echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
82024 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
82025 echo "$as_me: WARNING: This component was selected as the default" >&2;}
82026 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
82027 echo "$as_me: error: Cannot continue" >&2;}
82028 { (exit 1); exit 1; }; }
82029 exit 1
82032 if test ! -z "$DIRECT_rmgr" ; then
82033 if test "$DIRECT_rmgr" = "proxy" ; then
82034 { echo "$as_me:$LINENO: WARNING: MCA component \"proxy\" failed to configure properly" >&5
82035 echo "$as_me: WARNING: MCA component \"proxy\" failed to configure properly" >&2;}
82036 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
82037 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
82038 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
82039 echo "$as_me: error: Cannot continue" >&2;}
82040 { (exit 1); exit 1; }; }
82041 exit 1
82045 # add component to all component list
82046 all_components="$all_components proxy"
82049 # set the AM_CONDITIONAL on how we should build
82050 if test "$compile_mode" = "dso" ; then
82051 BUILD_rmgr_proxy_DSO=1
82052 else
82053 BUILD_rmgr_proxy_DSO=0
82057 if test "$BUILD_rmgr_proxy_DSO" = "1"; then
82058 OMPI_BUILD_rmgr_proxy_DSO_TRUE=
82059 OMPI_BUILD_rmgr_proxy_DSO_FALSE='#'
82060 else
82061 OMPI_BUILD_rmgr_proxy_DSO_TRUE='#'
82062 OMPI_BUILD_rmgr_proxy_DSO_FALSE=
82066 unset compile_mode
82068 ompi_show_subsubsubtitle "MCA component rmgr:urm (no configuration)"
82071 project=orte
82072 framework=rmgr
82073 component=urm
82074 component_path="$srcdir/$project/mca/$framework/$component"
82075 want_component=0
82077 # build if:
82078 # - the component type is direct and we are that component
82079 # - there is no ompi_ignore file
82080 # - there is an ompi_ignore, but there is an empty ompi_unignore
82081 # - there is an ompi_ignore, but username is in ompi_unignore
82082 if test -d $component_path ; then
82083 # decide if we want the component to be built or not. This
82084 # is spread out because some of the logic is a little complex
82085 # and test's syntax isn't exactly the greatest. We want to
82086 # build the component by default.
82087 want_component=1
82088 if test -f $component_path/.ompi_ignore ; then
82089 # If there is an ompi_ignore file, don't build
82090 # the component. Note that this decision can be
82091 # overriden by the unignore logic below.
82092 want_component=0
82094 if test -f $component_path/.ompi_unignore ; then
82095 # if there is an empty ompi_unignore, that is
82096 # equivalent to having your userid in the unignore file.
82097 # If userid is in the file, unignore the ignore file.
82098 if test ! -s $component_path/.ompi_unignore ; then
82099 want_component=1
82100 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
82101 want_component=1
82104 # if this component type is direct and we are not it, we don't want
82105 # to be built. Otherwise, we do want to be built.
82106 if test ! -z "$DIRECT_rmgr" ; then
82107 if test "$DIRECT_rmgr" = "$component" ; then
82108 want_component=1
82109 else
82110 want_component=0
82115 # if we were explicitly disabled, don't build :)
82116 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
82117 eval $str
82118 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
82119 want_component=0
82122 if test "$want_component" = "1"; then
82123 should_build=$components_looking_for_succeed
82124 else
82125 should_build=0
82130 project=orte
82131 framework=rmgr
82132 component=urm
82134 # Is this component going to built staic or shared? $component
82135 # might not be known until configure time, so have to use eval
82136 # tricks - can't set variable names at autogen time.
82137 str="SHARED_FRAMEWORK=\$DSO_$framework"
82138 eval $str
82139 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
82140 eval $str
82142 str="STATIC_FRAMEWORK=\$STATIC_$framework"
82143 eval $str
82144 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
82145 eval $str
82147 shared_mode_override=static
82149 # Setup for either shared or static
82150 if test "$STATIC_FRAMEWORK" = "1" -o \
82151 "$STATIC_COMPONENT" = "1" -o \
82152 "$STATIC_all" = "1" ; then
82153 compile_mode="static"
82154 elif test "$shared_mode_override" = "dso" -o \
82155 "$SHARED_FRAMEWORK" = "1" -o \
82156 "$SHARED_COMPONENT" = "1" -o \
82157 "$DSO_all" = "1"; then
82158 compile_mode="dso"
82159 else
82160 compile_mode="static"
82163 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
82164 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
82165 if test "$DIRECT_rmgr" = "$component" ; then
82166 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
82167 echo "${ECHO_T}$compile_mode - direct" >&6; }
82168 else
82169 { echo "$as_me:$LINENO: result: $compile_mode" >&5
82170 echo "${ECHO_T}$compile_mode" >&6; }
82174 if test "$should_build" = "1" ; then
82176 project=orte
82177 framework=rmgr
82178 component=urm
82180 # See if it dropped an output file for us to pick up some
82181 # shell variables in.
82182 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
82184 # Add this subdir to the mast list of all MCA component subdirs
82185 all_components="$all_components $component"
82187 if test "$compile_mode" = "dso" ; then
82188 dso_components="$dso_components $component"
82189 else
82190 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
82191 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
82192 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
82193 static_components="$static_components $component"
82196 # Output pretty results
82197 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
82198 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
82199 { echo "$as_me:$LINENO: result: yes" >&5
82200 echo "${ECHO_T}yes" >&6; }
82202 # If there's an output file, add the values to
82203 # scope_EXTRA_flags.
82204 if test -f $infile; then
82206 # First check for the ABORT tag
82207 line="`grep ABORT= $infile | cut -d= -f2-`"
82208 if test -n "$line" -a "$line" != "no"; then
82209 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
82210 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
82211 { { echo "$as_me:$LINENO: error: cannot continue" >&5
82212 echo "$as_me: error: cannot continue" >&2;}
82213 { (exit 1); exit 1; }; }
82216 # Check for flags passed up from the component. If we're
82217 # compiling statically, then take all flags passed up from the
82218 # component.
82219 if test "$compile_mode" = "static"; then
82220 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
82221 eval "line=$line"
82222 if test -n "$line"; then
82223 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
82225 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
82226 eval "line=$line"
82227 if test -n "$line"; then
82228 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
82232 if test "$DIRECT_rmgr" = "$component" ; then
82233 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
82234 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
82235 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
82236 eval $str
82237 else
82238 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
82239 *** does not appear to support direct calling.
82240 *** Aborting" >&5
82241 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
82242 *** does not appear to support direct calling.
82243 *** Aborting" >&2;}
82244 { (exit 1); exit 1; }; }
82247 else
82248 # were we supposed to have found something in the
82249 # post_configure.sh, but the file didn't exist?
82250 if test "$DIRECT_rmgr" = "$component" ; then
82251 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
82252 *** does not appear to support direct calling.
82253 *** Aborting" >&5
82254 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
82255 *** does not appear to support direct calling.
82256 *** Aborting" >&2;}
82257 { (exit 1); exit 1; }; }
82261 # now add the flags that were set in the environment variables
82262 # framework_component_FOO (for example, the flags set by
82263 # m4_configure components)
82265 # Check for flags passed up from the component. If we're
82266 # compiling statically, then take all flags passed up from the
82267 # component.
82268 if test "$compile_mode" = "static"; then
82269 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
82270 eval "$str"
82271 if test -n "$line" ; then
82272 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
82274 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
82275 eval "$str"
82276 if test -n "$line" ; then
82277 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
82281 else
82283 { echo "$as_me:$LINENO: checking if MCA component rmgr:urm can compile" >&5
82284 echo $ECHO_N "checking if MCA component rmgr:urm can compile... $ECHO_C" >&6; }
82285 { echo "$as_me:$LINENO: result: no" >&5
82286 echo "${ECHO_T}no" >&6; }
82288 # If this component was requested as the default for this
82289 # type, then abort.
82290 if test "$with_rmgr" = "urm" ; then
82291 { echo "$as_me:$LINENO: WARNING: MCA component \"urm\" failed to configure properly" >&5
82292 echo "$as_me: WARNING: MCA component \"urm\" failed to configure properly" >&2;}
82293 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
82294 echo "$as_me: WARNING: This component was selected as the default" >&2;}
82295 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
82296 echo "$as_me: error: Cannot continue" >&2;}
82297 { (exit 1); exit 1; }; }
82298 exit 1
82301 if test ! -z "$DIRECT_rmgr" ; then
82302 if test "$DIRECT_rmgr" = "urm" ; then
82303 { echo "$as_me:$LINENO: WARNING: MCA component \"urm\" failed to configure properly" >&5
82304 echo "$as_me: WARNING: MCA component \"urm\" failed to configure properly" >&2;}
82305 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
82306 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
82307 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
82308 echo "$as_me: error: Cannot continue" >&2;}
82309 { (exit 1); exit 1; }; }
82310 exit 1
82314 # add component to all component list
82315 all_components="$all_components urm"
82318 # set the AM_CONDITIONAL on how we should build
82319 if test "$compile_mode" = "dso" ; then
82320 BUILD_rmgr_urm_DSO=1
82321 else
82322 BUILD_rmgr_urm_DSO=0
82326 if test "$BUILD_rmgr_urm_DSO" = "1"; then
82327 OMPI_BUILD_rmgr_urm_DSO_TRUE=
82328 OMPI_BUILD_rmgr_urm_DSO_FALSE='#'
82329 else
82330 OMPI_BUILD_rmgr_urm_DSO_TRUE='#'
82331 OMPI_BUILD_rmgr_urm_DSO_FALSE=
82335 unset compile_mode
82338 # configure components that use built-in configuration scripts
82339 # see comment in CONFIGURE_PROJECT about the m4_ifval
82340 # if there isn't a component list, abort
82343 ompi_show_subsubsubtitle "MCA component rmgr:cnos (m4 configuration macro)"
82346 project=orte
82347 framework=rmgr
82348 component=cnos
82349 component_path="$srcdir/$project/mca/$framework/$component"
82350 want_component=0
82352 # build if:
82353 # - the component type is direct and we are that component
82354 # - there is no ompi_ignore file
82355 # - there is an ompi_ignore, but there is an empty ompi_unignore
82356 # - there is an ompi_ignore, but username is in ompi_unignore
82357 if test -d $component_path ; then
82358 # decide if we want the component to be built or not. This
82359 # is spread out because some of the logic is a little complex
82360 # and test's syntax isn't exactly the greatest. We want to
82361 # build the component by default.
82362 want_component=1
82363 if test -f $component_path/.ompi_ignore ; then
82364 # If there is an ompi_ignore file, don't build
82365 # the component. Note that this decision can be
82366 # overriden by the unignore logic below.
82367 want_component=0
82369 if test -f $component_path/.ompi_unignore ; then
82370 # if there is an empty ompi_unignore, that is
82371 # equivalent to having your userid in the unignore file.
82372 # If userid is in the file, unignore the ignore file.
82373 if test ! -s $component_path/.ompi_unignore ; then
82374 want_component=1
82375 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
82376 want_component=1
82379 # if this component type is direct and we are not it, we don't want
82380 # to be built. Otherwise, we do want to be built.
82381 if test ! -z "$DIRECT_rmgr" ; then
82382 if test "$DIRECT_rmgr" = "$component" ; then
82383 want_component=1
82384 else
82385 want_component=0
82390 # if we were explicitly disabled, don't build :)
82391 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
82392 eval $str
82393 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
82394 want_component=0
82397 if test "$want_component" = "1"; then
82398 should_build=$components_looking_for_succeed
82399 else
82400 should_build=0
82404 # Allow the component to override the build mode if it really wants to.
82405 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
82407 project=orte
82408 framework=rmgr
82409 component=cnos
82411 # Is this component going to built staic or shared? $component
82412 # might not be known until configure time, so have to use eval
82413 # tricks - can't set variable names at autogen time.
82414 str="SHARED_FRAMEWORK=\$DSO_$framework"
82415 eval $str
82416 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
82417 eval $str
82419 str="STATIC_FRAMEWORK=\$STATIC_$framework"
82420 eval $str
82421 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
82422 eval $str
82424 shared_mode_override=static
82426 # Setup for either shared or static
82427 if test "$STATIC_FRAMEWORK" = "1" -o \
82428 "$STATIC_COMPONENT" = "1" -o \
82429 "$STATIC_all" = "1" ; then
82430 compile_mode="static"
82431 elif test "$shared_mode_override" = "dso" -o \
82432 "$SHARED_FRAMEWORK" = "1" -o \
82433 "$SHARED_COMPONENT" = "1" -o \
82434 "$DSO_all" = "1"; then
82435 compile_mode="dso"
82436 else
82437 compile_mode="static"
82440 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
82441 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
82442 if test "$DIRECT_rmgr" = "$component" ; then
82443 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
82444 echo "${ECHO_T}$compile_mode - direct" >&6; }
82445 else
82446 { echo "$as_me:$LINENO: result: $compile_mode" >&5
82447 echo "${ECHO_T}$compile_mode" >&6; }
82451 # try to configure the component. pay no attention to
82452 # --enable-dist, since we'll always have makefiles.
82453 if test "$should_build" = "1"; then
82455 rmgr_cnos_happy="no"
82456 # see if we should enable super secret utcp support
82457 if test "$with_rmgr_cnos" = "utcp" ; then
82458 rmgr_cnos_happy="yes"
82459 else
82460 # check for cnos functions
82461 { echo "$as_me:$LINENO: checking for cnos_barrier" >&5
82462 echo $ECHO_N "checking for cnos_barrier... $ECHO_C" >&6; }
82463 if test "${ac_cv_func_cnos_barrier+set}" = set; then
82464 echo $ECHO_N "(cached) $ECHO_C" >&6
82465 else
82466 cat >conftest.$ac_ext <<_ACEOF
82467 /* confdefs.h. */
82468 _ACEOF
82469 cat confdefs.h >>conftest.$ac_ext
82470 cat >>conftest.$ac_ext <<_ACEOF
82471 /* end confdefs.h. */
82472 /* Define cnos_barrier to an innocuous variant, in case <limits.h> declares cnos_barrier.
82473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
82474 #define cnos_barrier innocuous_cnos_barrier
82476 /* System header to define __stub macros and hopefully few prototypes,
82477 which can conflict with char cnos_barrier (); below.
82478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
82479 <limits.h> exists even on freestanding compilers. */
82481 #ifdef __STDC__
82482 # include <limits.h>
82483 #else
82484 # include <assert.h>
82485 #endif
82487 #undef cnos_barrier
82489 /* Override any GCC internal prototype to avoid an error.
82490 Use char because int might match the return type of a GCC
82491 builtin and then its argument prototype would still apply. */
82492 #ifdef __cplusplus
82493 extern "C"
82494 #endif
82495 char cnos_barrier ();
82496 /* The GNU C library defines this for functions which it implements
82497 to always fail with ENOSYS. Some functions are actually named
82498 something starting with __ and the normal name is an alias. */
82499 #if defined __stub_cnos_barrier || defined __stub___cnos_barrier
82500 choke me
82501 #endif
82504 main ()
82506 return cnos_barrier ();
82508 return 0;
82510 _ACEOF
82511 rm -f conftest.$ac_objext conftest$ac_exeext
82512 if { (ac_try="$ac_link"
82513 case "(($ac_try" in
82514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82515 *) ac_try_echo=$ac_try;;
82516 esac
82517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
82518 (eval "$ac_link") 2>conftest.er1
82519 ac_status=$?
82520 grep -v '^ *+' conftest.er1 >conftest.err
82521 rm -f conftest.er1
82522 cat conftest.err >&5
82523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82524 (exit $ac_status); } && {
82525 test -z "$ac_c_werror_flag" ||
82526 test ! -s conftest.err
82527 } && test -s conftest$ac_exeext &&
82528 $as_test_x conftest$ac_exeext; then
82529 ac_cv_func_cnos_barrier=yes
82530 else
82531 echo "$as_me: failed program was:" >&5
82532 sed 's/^/| /' conftest.$ac_ext >&5
82534 ac_cv_func_cnos_barrier=no
82537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
82538 conftest$ac_exeext conftest.$ac_ext
82540 { echo "$as_me:$LINENO: result: $ac_cv_func_cnos_barrier" >&5
82541 echo "${ECHO_T}$ac_cv_func_cnos_barrier" >&6; }
82542 if test $ac_cv_func_cnos_barrier = yes; then
82543 rmgr_cnos_happy="yes"
82544 else
82545 rmgr_cnos_happy="no"
82552 for ac_func in killrank cnos_pm_barrier
82554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
82555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
82556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
82557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
82558 echo $ECHO_N "(cached) $ECHO_C" >&6
82559 else
82560 cat >conftest.$ac_ext <<_ACEOF
82561 /* confdefs.h. */
82562 _ACEOF
82563 cat confdefs.h >>conftest.$ac_ext
82564 cat >>conftest.$ac_ext <<_ACEOF
82565 /* end confdefs.h. */
82566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
82567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
82568 #define $ac_func innocuous_$ac_func
82570 /* System header to define __stub macros and hopefully few prototypes,
82571 which can conflict with char $ac_func (); below.
82572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
82573 <limits.h> exists even on freestanding compilers. */
82575 #ifdef __STDC__
82576 # include <limits.h>
82577 #else
82578 # include <assert.h>
82579 #endif
82581 #undef $ac_func
82583 /* Override any GCC internal prototype to avoid an error.
82584 Use char because int might match the return type of a GCC
82585 builtin and then its argument prototype would still apply. */
82586 #ifdef __cplusplus
82587 extern "C"
82588 #endif
82589 char $ac_func ();
82590 /* The GNU C library defines this for functions which it implements
82591 to always fail with ENOSYS. Some functions are actually named
82592 something starting with __ and the normal name is an alias. */
82593 #if defined __stub_$ac_func || defined __stub___$ac_func
82594 choke me
82595 #endif
82598 main ()
82600 return $ac_func ();
82602 return 0;
82604 _ACEOF
82605 rm -f conftest.$ac_objext conftest$ac_exeext
82606 if { (ac_try="$ac_link"
82607 case "(($ac_try" in
82608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82609 *) ac_try_echo=$ac_try;;
82610 esac
82611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
82612 (eval "$ac_link") 2>conftest.er1
82613 ac_status=$?
82614 grep -v '^ *+' conftest.er1 >conftest.err
82615 rm -f conftest.er1
82616 cat conftest.err >&5
82617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
82618 (exit $ac_status); } && {
82619 test -z "$ac_c_werror_flag" ||
82620 test ! -s conftest.err
82621 } && test -s conftest$ac_exeext &&
82622 $as_test_x conftest$ac_exeext; then
82623 eval "$as_ac_var=yes"
82624 else
82625 echo "$as_me: failed program was:" >&5
82626 sed 's/^/| /' conftest.$ac_ext >&5
82628 eval "$as_ac_var=no"
82631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
82632 conftest$ac_exeext conftest.$ac_ext
82634 ac_res=`eval echo '${'$as_ac_var'}'`
82635 { echo "$as_me:$LINENO: result: $ac_res" >&5
82636 echo "${ECHO_T}$ac_res" >&6; }
82637 if test `eval echo '${'$as_ac_var'}'` = yes; then
82638 cat >>confdefs.h <<_ACEOF
82639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
82640 _ACEOF
82643 done
82646 if test "$rmgr_cnos_happy" = "yes"; then
82647 should_build=1
82648 else
82649 should_build=0
82656 if test "$should_build" = "1"; then
82658 project=orte
82659 framework=rmgr
82660 component=cnos
82662 # See if it dropped an output file for us to pick up some
82663 # shell variables in.
82664 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
82666 # Add this subdir to the mast list of all MCA component subdirs
82667 all_components="$all_components $component"
82669 if test "$compile_mode" = "dso" ; then
82670 dso_components="$dso_components $component"
82671 else
82672 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
82673 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
82674 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
82675 static_components="$static_components $component"
82678 # Output pretty results
82679 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
82680 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
82681 { echo "$as_me:$LINENO: result: yes" >&5
82682 echo "${ECHO_T}yes" >&6; }
82684 # If there's an output file, add the values to
82685 # scope_EXTRA_flags.
82686 if test -f $infile; then
82688 # First check for the ABORT tag
82689 line="`grep ABORT= $infile | cut -d= -f2-`"
82690 if test -n "$line" -a "$line" != "no"; then
82691 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
82692 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
82693 { { echo "$as_me:$LINENO: error: cannot continue" >&5
82694 echo "$as_me: error: cannot continue" >&2;}
82695 { (exit 1); exit 1; }; }
82698 # Check for flags passed up from the component. If we're
82699 # compiling statically, then take all flags passed up from the
82700 # component.
82701 if test "$compile_mode" = "static"; then
82702 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
82703 eval "line=$line"
82704 if test -n "$line"; then
82705 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
82707 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
82708 eval "line=$line"
82709 if test -n "$line"; then
82710 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
82714 if test "$DIRECT_rmgr" = "$component" ; then
82715 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
82716 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
82717 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
82718 eval $str
82719 else
82720 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
82721 *** does not appear to support direct calling.
82722 *** Aborting" >&5
82723 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
82724 *** does not appear to support direct calling.
82725 *** Aborting" >&2;}
82726 { (exit 1); exit 1; }; }
82729 else
82730 # were we supposed to have found something in the
82731 # post_configure.sh, but the file didn't exist?
82732 if test "$DIRECT_rmgr" = "$component" ; then
82733 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
82734 *** does not appear to support direct calling.
82735 *** Aborting" >&5
82736 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
82737 *** does not appear to support direct calling.
82738 *** Aborting" >&2;}
82739 { (exit 1); exit 1; }; }
82743 # now add the flags that were set in the environment variables
82744 # framework_component_FOO (for example, the flags set by
82745 # m4_configure components)
82747 # Check for flags passed up from the component. If we're
82748 # compiling statically, then take all flags passed up from the
82749 # component.
82750 if test "$compile_mode" = "static"; then
82751 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
82752 eval "$str"
82753 if test -n "$line" ; then
82754 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
82756 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
82757 eval "$str"
82758 if test -n "$line" ; then
82759 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
82763 else
82765 { echo "$as_me:$LINENO: checking if MCA component rmgr:cnos can compile" >&5
82766 echo $ECHO_N "checking if MCA component rmgr:cnos can compile... $ECHO_C" >&6; }
82767 { echo "$as_me:$LINENO: result: no" >&5
82768 echo "${ECHO_T}no" >&6; }
82770 # If this component was requested as the default for this
82771 # type, then abort.
82772 if test "$with_rmgr" = "cnos" ; then
82773 { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
82774 echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
82775 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
82776 echo "$as_me: WARNING: This component was selected as the default" >&2;}
82777 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
82778 echo "$as_me: error: Cannot continue" >&2;}
82779 { (exit 1); exit 1; }; }
82780 exit 1
82783 if test ! -z "$DIRECT_rmgr" ; then
82784 if test "$DIRECT_rmgr" = "cnos" ; then
82785 { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
82786 echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
82787 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
82788 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
82789 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
82790 echo "$as_me: error: Cannot continue" >&2;}
82791 { (exit 1); exit 1; }; }
82792 exit 1
82796 # add component to all component list
82797 all_components="$all_components cnos"
82801 # set the AM_CONDITIONAL on how we should build
82802 if test "$compile_mode" = "dso"; then
82803 BUILD_rmgr_cnos_DSO=1
82804 else
82805 BUILD_rmgr_cnos_DSO=0
82810 if test "$BUILD_rmgr_cnos_DSO" = "1"; then
82811 OMPI_BUILD_rmgr_cnos_DSO_TRUE=
82812 OMPI_BUILD_rmgr_cnos_DSO_FALSE='#'
82813 else
82814 OMPI_BUILD_rmgr_cnos_DSO_TRUE='#'
82815 OMPI_BUILD_rmgr_cnos_DSO_FALSE=
82819 if test "$should_build" = "1"; then
82820 components_looking_for_succeed="$happy_value"
82824 unset compile_mode
82827 # configure components that provide their own configure script.
82828 # It would be really hard to run these for "find first that
82829 # works", so we don't :)
82830 if test "$happy_value" = "1"; then
82832 for component_path in $srcdir/orte/mca/rmgr/* ; do
82833 component="`basename $component_path`"
82834 if test -d $component_path -a -x $component_path/configure ; then
82835 ompi_show_subsubsubtitle "MCA component rmgr:$component (need to configure)"
82838 project=orte
82839 framework=rmgr
82840 component=$component
82841 component_path="$srcdir/$project/mca/$framework/$component"
82842 want_component=0
82844 # build if:
82845 # - the component type is direct and we are that component
82846 # - there is no ompi_ignore file
82847 # - there is an ompi_ignore, but there is an empty ompi_unignore
82848 # - there is an ompi_ignore, but username is in ompi_unignore
82849 if test -d $component_path ; then
82850 # decide if we want the component to be built or not. This
82851 # is spread out because some of the logic is a little complex
82852 # and test's syntax isn't exactly the greatest. We want to
82853 # build the component by default.
82854 want_component=1
82855 if test -f $component_path/.ompi_ignore ; then
82856 # If there is an ompi_ignore file, don't build
82857 # the component. Note that this decision can be
82858 # overriden by the unignore logic below.
82859 want_component=0
82861 if test -f $component_path/.ompi_unignore ; then
82862 # if there is an empty ompi_unignore, that is
82863 # equivalent to having your userid in the unignore file.
82864 # If userid is in the file, unignore the ignore file.
82865 if test ! -s $component_path/.ompi_unignore ; then
82866 want_component=1
82867 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
82868 want_component=1
82871 # if this component type is direct and we are not it, we don't want
82872 # to be built. Otherwise, we do want to be built.
82873 if test ! -z "$DIRECT_rmgr" ; then
82874 if test "$DIRECT_rmgr" = "$component" ; then
82875 want_component=1
82876 else
82877 want_component=0
82882 # if we were explicitly disabled, don't build :)
82883 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
82884 eval $str
82885 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
82886 want_component=0
82889 if test "$want_component" = "1"; then
82890 should_build=1
82891 else
82892 should_build=0
82897 project=orte
82898 framework=rmgr
82899 component=$component
82901 # Is this component going to built staic or shared? $component
82902 # might not be known until configure time, so have to use eval
82903 # tricks - can't set variable names at autogen time.
82904 str="SHARED_FRAMEWORK=\$DSO_$framework"
82905 eval $str
82906 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
82907 eval $str
82909 str="STATIC_FRAMEWORK=\$STATIC_$framework"
82910 eval $str
82911 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
82912 eval $str
82914 shared_mode_override=static
82916 # Setup for either shared or static
82917 if test "$STATIC_FRAMEWORK" = "1" -o \
82918 "$STATIC_COMPONENT" = "1" -o \
82919 "$STATIC_all" = "1" ; then
82920 compile_mode="static"
82921 elif test "$shared_mode_override" = "dso" -o \
82922 "$SHARED_FRAMEWORK" = "1" -o \
82923 "$SHARED_COMPONENT" = "1" -o \
82924 "$DSO_all" = "1"; then
82925 compile_mode="dso"
82926 else
82927 compile_mode="static"
82930 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
82931 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
82932 if test "$DIRECT_rmgr" = "$component" ; then
82933 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
82934 echo "${ECHO_T}$compile_mode - direct" >&6; }
82935 else
82936 { echo "$as_me:$LINENO: result: $compile_mode" >&5
82937 echo "${ECHO_T}$compile_mode" >&6; }
82941 if test "$should_build" = "1" ; then
82944 # Invoke configure in a specific subdirectory.
82946 # orte/mca/rmgr/$component is the directory to invoke in
82947 # $ompi_subdir_args is the list of arguments to pass
82948 # should_build=1 is actions to execute upon success
82949 # should_build=2 is actions to execute upon failure
82951 subdir_dir="orte/mca/rmgr/$component"
82952 subdir_args="$ompi_subdir_args"
82953 subdir_success="should_build=1"
82954 subdir_failure="should_build=2"
82957 # Sanity checks
82960 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
82961 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
82962 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
82965 # Gotta check where srcdir is for VPATH builds. If srcdir is not
82966 # ., then we need to mkdir the subdir. Otherwise, we can just cd
82967 # into it.
82970 case $srcdir in
82974 { case $subdir_dir in
82975 [\\/]* | ?:[\\/]* ) total_dir=;;
82976 *) total_dir=.;;
82977 esac
82978 temp=$subdir_dir
82979 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
82980 case $dir_part in
82981 # Skip DOS drivespec
82982 ?:) total_dir=$dir_part ;;
82983 *) total_dir=$total_dir/$dir_part
82984 test -d "$total_dir" ||
82985 mkdir "$total_dir" ||
82986 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
82987 echo "$as_me: error: cannot create $subdir_dir" >&2;}
82988 { (exit 1); exit 1; }; }
82990 esac
82991 done; }
82993 if test -d ./$subdir_dir; then :;
82994 else
82995 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
82996 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
82997 { (exit 1); exit 1; }; }
83000 esac
83003 # Move into the target directory
83006 subdir_parent=`pwd`
83007 cd $subdir_dir
83010 # Make a "../" for each directory in $subdir_dir.
83013 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
83015 # Construct the --srcdir argument
83018 case $srcdir in
83020 # In place
83021 subdir_srcdir="$srcdir"
83023 [\\/]* | ?:[\\/]* )
83024 # Absolute path
83025 subdir_srcdir="$srcdir/$subdir_dir"
83028 # Relative path
83029 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
83031 esac
83034 # Construct the --cache-file argument
83037 # BWB - subdir caching is a pain since we change CFLAGS and all that.
83038 # Just disable it for now
83039 subdir_cache_file="/dev/null"
83042 # Invoke the configure script in the subdirectory
83045 export CFLAGS CPPFLAGS
83046 export CXXFLAGS CXXCPPFLAGS
83047 export FFLAGS
83048 export LDFLAGS LIBS
83049 sub_configure="$SHELL '$subdir_srcdir/configure'"
83050 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
83051 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
83052 eval "$sub_configure $subdir_args \
83053 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
83054 if test "$?" = "0"; then
83055 eval $subdir_success
83056 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
83057 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
83058 else
83059 eval $subdir_failure
83060 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
83061 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
83065 # Go back to the topdir
83068 cd $subdir_parent
83072 # Clean up
83075 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
83076 unset subdir_args subdir_dots total_dir dir_part temp
83079 if test "$should_build" = "1" ; then
83081 project=orte
83082 framework=rmgr
83083 component=$component
83085 # See if it dropped an output file for us to pick up some
83086 # shell variables in.
83087 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
83089 # Add this subdir to the mast list of all MCA component subdirs
83090 all_components="$all_components $component"
83092 if test "$compile_mode" = "dso" ; then
83093 dso_components="$dso_components $component"
83094 else
83095 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
83096 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
83097 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
83098 static_components="$static_components $component"
83101 # Output pretty results
83102 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
83103 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
83104 { echo "$as_me:$LINENO: result: yes" >&5
83105 echo "${ECHO_T}yes" >&6; }
83107 # If there's an output file, add the values to
83108 # scope_EXTRA_flags.
83109 if test -f $infile; then
83111 # First check for the ABORT tag
83112 line="`grep ABORT= $infile | cut -d= -f2-`"
83113 if test -n "$line" -a "$line" != "no"; then
83114 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
83115 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
83116 { { echo "$as_me:$LINENO: error: cannot continue" >&5
83117 echo "$as_me: error: cannot continue" >&2;}
83118 { (exit 1); exit 1; }; }
83121 # Check for flags passed up from the component. If we're
83122 # compiling statically, then take all flags passed up from the
83123 # component.
83124 if test "$compile_mode" = "static"; then
83125 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
83126 eval "line=$line"
83127 if test -n "$line"; then
83128 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
83130 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
83131 eval "line=$line"
83132 if test -n "$line"; then
83133 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
83137 if test "$DIRECT_rmgr" = "$component" ; then
83138 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
83139 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
83140 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
83141 eval $str
83142 else
83143 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
83144 *** does not appear to support direct calling.
83145 *** Aborting" >&5
83146 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
83147 *** does not appear to support direct calling.
83148 *** Aborting" >&2;}
83149 { (exit 1); exit 1; }; }
83152 else
83153 # were we supposed to have found something in the
83154 # post_configure.sh, but the file didn't exist?
83155 if test "$DIRECT_rmgr" = "$component" ; then
83156 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
83157 *** does not appear to support direct calling.
83158 *** Aborting" >&5
83159 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
83160 *** does not appear to support direct calling.
83161 *** Aborting" >&2;}
83162 { (exit 1); exit 1; }; }
83166 # now add the flags that were set in the environment variables
83167 # framework_component_FOO (for example, the flags set by
83168 # m4_configure components)
83170 # Check for flags passed up from the component. If we're
83171 # compiling statically, then take all flags passed up from the
83172 # component.
83173 if test "$compile_mode" = "static"; then
83174 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
83175 eval "$str"
83176 if test -n "$line" ; then
83177 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
83179 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
83180 eval "$str"
83181 if test -n "$line" ; then
83182 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
83186 else
83188 { echo "$as_me:$LINENO: checking if MCA component rmgr:$component can compile" >&5
83189 echo $ECHO_N "checking if MCA component rmgr:$component can compile... $ECHO_C" >&6; }
83190 { echo "$as_me:$LINENO: result: no" >&5
83191 echo "${ECHO_T}no" >&6; }
83193 # If this component was requested as the default for this
83194 # type, then abort.
83195 if test "$with_rmgr" = "$component" ; then
83196 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
83197 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
83198 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
83199 echo "$as_me: WARNING: This component was selected as the default" >&2;}
83200 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
83201 echo "$as_me: error: Cannot continue" >&2;}
83202 { (exit 1); exit 1; }; }
83203 exit 1
83206 if test ! -z "$DIRECT_rmgr" ; then
83207 if test "$DIRECT_rmgr" = "$component" ; then
83208 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
83209 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
83210 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
83211 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
83212 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
83213 echo "$as_me: error: Cannot continue" >&2;}
83214 { (exit 1); exit 1; }; }
83215 exit 1
83221 done
83226 MCA_rmgr_ALL_COMPONENTS="$all_components"
83227 MCA_rmgr_STATIC_COMPONENTS="$static_components"
83228 MCA_rmgr_DSO_COMPONENTS="$dso_components"
83229 MCA_rmgr_STATIC_LTLIBS="$static_ltlibs"
83237 MCA_rmgr_ALL_SUBDIRS=
83238 for item in $all_components ; do
83239 MCA_rmgr_ALL_SUBDIRS="$MCA_rmgr_ALL_SUBDIRS mca/rmgr/$item"
83240 done
83244 MCA_rmgr_STATIC_SUBDIRS=
83245 for item in $static_components ; do
83246 MCA_rmgr_STATIC_SUBDIRS="$MCA_rmgr_STATIC_SUBDIRS mca/rmgr/$item"
83247 done
83251 MCA_rmgr_DSO_SUBDIRS=
83252 for item in $dso_components ; do
83253 MCA_rmgr_DSO_SUBDIRS="$MCA_rmgr_DSO_SUBDIRS mca/rmgr/$item"
83254 done
83258 # add all the makefiles for the framework to the CONFIG_FILES.
83259 # Don't add common/base, since it doesn't exist
83260 ac_config_files="$ac_config_files orte/mca/rmgr/Makefile"
83263 # Create the final .h file that will be included in the type's
83264 # top-level glue. This lists all the static components. We don't
83265 # need to do this for "common".
83266 if test "rmgr" != "common"; then
83267 cat > $outfile <<EOF
83269 * \$HEADER\$
83272 `cat $outfile.extern`
83274 const mca_base_component_t *mca_rmgr_base_static_components[] = {
83275 `cat $outfile.struct`
83276 NULL
83279 # Only replace the header file if a) it doesn't previously
83280 # exist, or b) the contents are different. Do this to not
83281 # trigger recompilation of certain .c files just because the
83282 # timestamp changed on $outfile_real (similar to the way AC
83283 # handles AC_CONFIG_HEADER files).
83284 diff $outfile $outfile_real > /dev/null 2>&1
83285 if test "$?" != "0"; then
83286 mv $outfile $outfile_real
83287 else
83288 rm -f $outfile
83291 rm -f $outfile.struct $outfile.extern
83293 unset all_components static_components dso_components outfile outfile_real
83294 # common has to go up front
83295 if test "rml" = "common" ; then
83296 MCA_orte_FRAMEWORKS="rml $MCA_orte_FRAMEWORKS"
83297 MCA_orte_FRAMEWORKS_SUBDIRS="mca/rml $MCA_orte_FRAMEWORKS_SUBDIRS"
83298 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rml_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
83299 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rml_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
83300 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rml_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
83301 else
83302 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS rml"
83303 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/rml"
83304 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rml_ALL_SUBDIRS)"
83305 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rml_DSO_SUBDIRS)"
83306 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rml_STATIC_SUBDIRS)"
83308 if test "rml" != "common" ; then
83309 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/rml/libmca_rml.la"
83311 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_rml_STATIC_LTLIBS)"
83313 ompi_show_subsubtitle "Configuring MCA framework rml"
83315 # setup for framework
83316 all_components=
83317 static_components=
83318 dso_components=
83319 static_ltlibs=
83321 # Ensure that the directory where the #include file is to live
83322 # exists. Need to do this for VPATH builds, because the directory
83323 # may not exist yet. For the "common" type, it's not really a
83324 # component, so it doesn't have a base.
83325 if test "rml" = "common" ; then
83326 outdir=orte/mca/common
83327 else
83328 outdir=orte/mca/rml/base
83330 { as_dir=$outdir
83331 case $as_dir in #(
83332 -*) as_dir=./$as_dir;;
83333 esac
83334 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
83335 as_dirs=
83336 while :; do
83337 case $as_dir in #(
83338 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
83339 *) as_qdir=$as_dir;;
83340 esac
83341 as_dirs="'$as_qdir' $as_dirs"
83342 as_dir=`$as_dirname -- "$as_dir" ||
83343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
83344 X"$as_dir" : 'X\(//\)[^/]' \| \
83345 X"$as_dir" : 'X\(//\)$' \| \
83346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
83347 echo X"$as_dir" |
83348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
83349 s//\1/
83352 /^X\(\/\/\)[^/].*/{
83353 s//\1/
83356 /^X\(\/\/\)$/{
83357 s//\1/
83360 /^X\(\/\).*/{
83361 s//\1/
83364 s/.*/./; q'`
83365 test -d "$as_dir" && break
83366 done
83367 test -z "$as_dirs" || eval "mkdir $as_dirs"
83368 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
83369 echo "$as_me: error: cannot create directory $as_dir" >&2;}
83370 { (exit 1); exit 1; }; }; }
83372 # remove any previously generated #include files
83373 outfile_real=$outdir/static-components.h
83374 outfile=$outfile_real.new
83375 rm -f $outfile $outfile.struct $outfile.extern
83376 touch $outfile.struct $outfile.extern
83378 # print some nice messages about what we're about to do...
83379 { echo "$as_me:$LINENO: checking for no configure components in framework rml" >&5
83380 echo $ECHO_N "checking for no configure components in framework rml... $ECHO_C" >&6; }
83381 { echo "$as_me:$LINENO: result: oob" >&5
83382 echo "${ECHO_T}oob" >&6; }
83383 { echo "$as_me:$LINENO: checking for m4 configure components in framework rml" >&5
83384 echo $ECHO_N "checking for m4 configure components in framework rml... $ECHO_C" >&6; }
83385 { echo "$as_me:$LINENO: result: cnos" >&5
83386 echo "${ECHO_T}cnos" >&6; }
83388 # if we only want the first successful component, set the variable
83389 # happy_value to 0 so we stop on first assignment. Otherwise, set
83390 # it to zero so that components_looking_for_succeed is always 1
83391 happy_value=1
83393 components_looking_for_succeed=1
83395 # configure components that don't have any component-specific
83396 # configuration. See comment in CONFIGURE_PROJECT about the
83397 # m4_ifval
83398 # if there isn't a component list, abort
83401 ompi_show_subsubsubtitle "MCA component rml:oob (no configuration)"
83404 project=orte
83405 framework=rml
83406 component=oob
83407 component_path="$srcdir/$project/mca/$framework/$component"
83408 want_component=0
83410 # build if:
83411 # - the component type is direct and we are that component
83412 # - there is no ompi_ignore file
83413 # - there is an ompi_ignore, but there is an empty ompi_unignore
83414 # - there is an ompi_ignore, but username is in ompi_unignore
83415 if test -d $component_path ; then
83416 # decide if we want the component to be built or not. This
83417 # is spread out because some of the logic is a little complex
83418 # and test's syntax isn't exactly the greatest. We want to
83419 # build the component by default.
83420 want_component=1
83421 if test -f $component_path/.ompi_ignore ; then
83422 # If there is an ompi_ignore file, don't build
83423 # the component. Note that this decision can be
83424 # overriden by the unignore logic below.
83425 want_component=0
83427 if test -f $component_path/.ompi_unignore ; then
83428 # if there is an empty ompi_unignore, that is
83429 # equivalent to having your userid in the unignore file.
83430 # If userid is in the file, unignore the ignore file.
83431 if test ! -s $component_path/.ompi_unignore ; then
83432 want_component=1
83433 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
83434 want_component=1
83437 # if this component type is direct and we are not it, we don't want
83438 # to be built. Otherwise, we do want to be built.
83439 if test ! -z "$DIRECT_rml" ; then
83440 if test "$DIRECT_rml" = "$component" ; then
83441 want_component=1
83442 else
83443 want_component=0
83448 # if we were explicitly disabled, don't build :)
83449 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
83450 eval $str
83451 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
83452 want_component=0
83455 if test "$want_component" = "1"; then
83456 should_build=$components_looking_for_succeed
83457 else
83458 should_build=0
83463 project=orte
83464 framework=rml
83465 component=oob
83467 # Is this component going to built staic or shared? $component
83468 # might not be known until configure time, so have to use eval
83469 # tricks - can't set variable names at autogen time.
83470 str="SHARED_FRAMEWORK=\$DSO_$framework"
83471 eval $str
83472 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
83473 eval $str
83475 str="STATIC_FRAMEWORK=\$STATIC_$framework"
83476 eval $str
83477 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
83478 eval $str
83480 shared_mode_override=static
83482 # Setup for either shared or static
83483 if test "$STATIC_FRAMEWORK" = "1" -o \
83484 "$STATIC_COMPONENT" = "1" -o \
83485 "$STATIC_all" = "1" ; then
83486 compile_mode="static"
83487 elif test "$shared_mode_override" = "dso" -o \
83488 "$SHARED_FRAMEWORK" = "1" -o \
83489 "$SHARED_COMPONENT" = "1" -o \
83490 "$DSO_all" = "1"; then
83491 compile_mode="dso"
83492 else
83493 compile_mode="static"
83496 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
83497 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
83498 if test "$DIRECT_rml" = "$component" ; then
83499 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
83500 echo "${ECHO_T}$compile_mode - direct" >&6; }
83501 else
83502 { echo "$as_me:$LINENO: result: $compile_mode" >&5
83503 echo "${ECHO_T}$compile_mode" >&6; }
83507 if test "$should_build" = "1" ; then
83509 project=orte
83510 framework=rml
83511 component=oob
83513 # See if it dropped an output file for us to pick up some
83514 # shell variables in.
83515 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
83517 # Add this subdir to the mast list of all MCA component subdirs
83518 all_components="$all_components $component"
83520 if test "$compile_mode" = "dso" ; then
83521 dso_components="$dso_components $component"
83522 else
83523 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
83524 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
83525 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
83526 static_components="$static_components $component"
83529 # Output pretty results
83530 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
83531 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
83532 { echo "$as_me:$LINENO: result: yes" >&5
83533 echo "${ECHO_T}yes" >&6; }
83535 # If there's an output file, add the values to
83536 # scope_EXTRA_flags.
83537 if test -f $infile; then
83539 # First check for the ABORT tag
83540 line="`grep ABORT= $infile | cut -d= -f2-`"
83541 if test -n "$line" -a "$line" != "no"; then
83542 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
83543 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
83544 { { echo "$as_me:$LINENO: error: cannot continue" >&5
83545 echo "$as_me: error: cannot continue" >&2;}
83546 { (exit 1); exit 1; }; }
83549 # Check for flags passed up from the component. If we're
83550 # compiling statically, then take all flags passed up from the
83551 # component.
83552 if test "$compile_mode" = "static"; then
83553 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
83554 eval "line=$line"
83555 if test -n "$line"; then
83556 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
83558 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
83559 eval "line=$line"
83560 if test -n "$line"; then
83561 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
83565 if test "$DIRECT_rml" = "$component" ; then
83566 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
83567 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
83568 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
83569 eval $str
83570 else
83571 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
83572 *** does not appear to support direct calling.
83573 *** Aborting" >&5
83574 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
83575 *** does not appear to support direct calling.
83576 *** Aborting" >&2;}
83577 { (exit 1); exit 1; }; }
83580 else
83581 # were we supposed to have found something in the
83582 # post_configure.sh, but the file didn't exist?
83583 if test "$DIRECT_rml" = "$component" ; then
83584 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
83585 *** does not appear to support direct calling.
83586 *** Aborting" >&5
83587 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
83588 *** does not appear to support direct calling.
83589 *** Aborting" >&2;}
83590 { (exit 1); exit 1; }; }
83594 # now add the flags that were set in the environment variables
83595 # framework_component_FOO (for example, the flags set by
83596 # m4_configure components)
83598 # Check for flags passed up from the component. If we're
83599 # compiling statically, then take all flags passed up from the
83600 # component.
83601 if test "$compile_mode" = "static"; then
83602 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
83603 eval "$str"
83604 if test -n "$line" ; then
83605 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
83607 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
83608 eval "$str"
83609 if test -n "$line" ; then
83610 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
83614 else
83616 { echo "$as_me:$LINENO: checking if MCA component rml:oob can compile" >&5
83617 echo $ECHO_N "checking if MCA component rml:oob can compile... $ECHO_C" >&6; }
83618 { echo "$as_me:$LINENO: result: no" >&5
83619 echo "${ECHO_T}no" >&6; }
83621 # If this component was requested as the default for this
83622 # type, then abort.
83623 if test "$with_rml" = "oob" ; then
83624 { echo "$as_me:$LINENO: WARNING: MCA component \"oob\" failed to configure properly" >&5
83625 echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;}
83626 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
83627 echo "$as_me: WARNING: This component was selected as the default" >&2;}
83628 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
83629 echo "$as_me: error: Cannot continue" >&2;}
83630 { (exit 1); exit 1; }; }
83631 exit 1
83634 if test ! -z "$DIRECT_rml" ; then
83635 if test "$DIRECT_rml" = "oob" ; then
83636 { echo "$as_me:$LINENO: WARNING: MCA component \"oob\" failed to configure properly" >&5
83637 echo "$as_me: WARNING: MCA component \"oob\" failed to configure properly" >&2;}
83638 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
83639 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
83640 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
83641 echo "$as_me: error: Cannot continue" >&2;}
83642 { (exit 1); exit 1; }; }
83643 exit 1
83647 # add component to all component list
83648 all_components="$all_components oob"
83651 # set the AM_CONDITIONAL on how we should build
83652 if test "$compile_mode" = "dso" ; then
83653 BUILD_rml_oob_DSO=1
83654 else
83655 BUILD_rml_oob_DSO=0
83659 if test "$BUILD_rml_oob_DSO" = "1"; then
83660 OMPI_BUILD_rml_oob_DSO_TRUE=
83661 OMPI_BUILD_rml_oob_DSO_FALSE='#'
83662 else
83663 OMPI_BUILD_rml_oob_DSO_TRUE='#'
83664 OMPI_BUILD_rml_oob_DSO_FALSE=
83668 unset compile_mode
83671 # configure components that use built-in configuration scripts
83672 # see comment in CONFIGURE_PROJECT about the m4_ifval
83673 # if there isn't a component list, abort
83676 ompi_show_subsubsubtitle "MCA component rml:cnos (m4 configuration macro)"
83679 project=orte
83680 framework=rml
83681 component=cnos
83682 component_path="$srcdir/$project/mca/$framework/$component"
83683 want_component=0
83685 # build if:
83686 # - the component type is direct and we are that component
83687 # - there is no ompi_ignore file
83688 # - there is an ompi_ignore, but there is an empty ompi_unignore
83689 # - there is an ompi_ignore, but username is in ompi_unignore
83690 if test -d $component_path ; then
83691 # decide if we want the component to be built or not. This
83692 # is spread out because some of the logic is a little complex
83693 # and test's syntax isn't exactly the greatest. We want to
83694 # build the component by default.
83695 want_component=1
83696 if test -f $component_path/.ompi_ignore ; then
83697 # If there is an ompi_ignore file, don't build
83698 # the component. Note that this decision can be
83699 # overriden by the unignore logic below.
83700 want_component=0
83702 if test -f $component_path/.ompi_unignore ; then
83703 # if there is an empty ompi_unignore, that is
83704 # equivalent to having your userid in the unignore file.
83705 # If userid is in the file, unignore the ignore file.
83706 if test ! -s $component_path/.ompi_unignore ; then
83707 want_component=1
83708 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
83709 want_component=1
83712 # if this component type is direct and we are not it, we don't want
83713 # to be built. Otherwise, we do want to be built.
83714 if test ! -z "$DIRECT_rml" ; then
83715 if test "$DIRECT_rml" = "$component" ; then
83716 want_component=1
83717 else
83718 want_component=0
83723 # if we were explicitly disabled, don't build :)
83724 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
83725 eval $str
83726 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
83727 want_component=0
83730 if test "$want_component" = "1"; then
83731 should_build=$components_looking_for_succeed
83732 else
83733 should_build=0
83737 # Allow the component to override the build mode if it really wants to.
83738 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
83740 project=orte
83741 framework=rml
83742 component=cnos
83744 # Is this component going to built staic or shared? $component
83745 # might not be known until configure time, so have to use eval
83746 # tricks - can't set variable names at autogen time.
83747 str="SHARED_FRAMEWORK=\$DSO_$framework"
83748 eval $str
83749 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
83750 eval $str
83752 str="STATIC_FRAMEWORK=\$STATIC_$framework"
83753 eval $str
83754 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
83755 eval $str
83757 shared_mode_override=static
83759 # Setup for either shared or static
83760 if test "$STATIC_FRAMEWORK" = "1" -o \
83761 "$STATIC_COMPONENT" = "1" -o \
83762 "$STATIC_all" = "1" ; then
83763 compile_mode="static"
83764 elif test "$shared_mode_override" = "dso" -o \
83765 "$SHARED_FRAMEWORK" = "1" -o \
83766 "$SHARED_COMPONENT" = "1" -o \
83767 "$DSO_all" = "1"; then
83768 compile_mode="dso"
83769 else
83770 compile_mode="static"
83773 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
83774 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
83775 if test "$DIRECT_rml" = "$component" ; then
83776 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
83777 echo "${ECHO_T}$compile_mode - direct" >&6; }
83778 else
83779 { echo "$as_me:$LINENO: result: $compile_mode" >&5
83780 echo "${ECHO_T}$compile_mode" >&6; }
83784 # try to configure the component. pay no attention to
83785 # --enable-dist, since we'll always have makefiles.
83786 if test "$should_build" = "1"; then
83788 rml_cnos_happy="no"
83789 # see if we should enable super secret utcp support
83790 if test "$with_rml_cnos" = "utcp" ; then
83791 rml_cnos_happy="yes"
83792 rml_cnos_barrier=0
83793 else
83794 # check for cnos functions
83795 { echo "$as_me:$LINENO: checking for cnos_barrier" >&5
83796 echo $ECHO_N "checking for cnos_barrier... $ECHO_C" >&6; }
83797 if test "${ac_cv_func_cnos_barrier+set}" = set; then
83798 echo $ECHO_N "(cached) $ECHO_C" >&6
83799 else
83800 cat >conftest.$ac_ext <<_ACEOF
83801 /* confdefs.h. */
83802 _ACEOF
83803 cat confdefs.h >>conftest.$ac_ext
83804 cat >>conftest.$ac_ext <<_ACEOF
83805 /* end confdefs.h. */
83806 /* Define cnos_barrier to an innocuous variant, in case <limits.h> declares cnos_barrier.
83807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
83808 #define cnos_barrier innocuous_cnos_barrier
83810 /* System header to define __stub macros and hopefully few prototypes,
83811 which can conflict with char cnos_barrier (); below.
83812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
83813 <limits.h> exists even on freestanding compilers. */
83815 #ifdef __STDC__
83816 # include <limits.h>
83817 #else
83818 # include <assert.h>
83819 #endif
83821 #undef cnos_barrier
83823 /* Override any GCC internal prototype to avoid an error.
83824 Use char because int might match the return type of a GCC
83825 builtin and then its argument prototype would still apply. */
83826 #ifdef __cplusplus
83827 extern "C"
83828 #endif
83829 char cnos_barrier ();
83830 /* The GNU C library defines this for functions which it implements
83831 to always fail with ENOSYS. Some functions are actually named
83832 something starting with __ and the normal name is an alias. */
83833 #if defined __stub_cnos_barrier || defined __stub___cnos_barrier
83834 choke me
83835 #endif
83838 main ()
83840 return cnos_barrier ();
83842 return 0;
83844 _ACEOF
83845 rm -f conftest.$ac_objext conftest$ac_exeext
83846 if { (ac_try="$ac_link"
83847 case "(($ac_try" in
83848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
83849 *) ac_try_echo=$ac_try;;
83850 esac
83851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
83852 (eval "$ac_link") 2>conftest.er1
83853 ac_status=$?
83854 grep -v '^ *+' conftest.er1 >conftest.err
83855 rm -f conftest.er1
83856 cat conftest.err >&5
83857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
83858 (exit $ac_status); } && {
83859 test -z "$ac_c_werror_flag" ||
83860 test ! -s conftest.err
83861 } && test -s conftest$ac_exeext &&
83862 $as_test_x conftest$ac_exeext; then
83863 ac_cv_func_cnos_barrier=yes
83864 else
83865 echo "$as_me: failed program was:" >&5
83866 sed 's/^/| /' conftest.$ac_ext >&5
83868 ac_cv_func_cnos_barrier=no
83871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
83872 conftest$ac_exeext conftest.$ac_ext
83874 { echo "$as_me:$LINENO: result: $ac_cv_func_cnos_barrier" >&5
83875 echo "${ECHO_T}$ac_cv_func_cnos_barrier" >&6; }
83876 if test $ac_cv_func_cnos_barrier = yes; then
83877 rml_cnos_happy="yes"
83878 rml_cnos_barrier=1
83879 else
83880 rml_cnos_happy="no"
83881 rml_cnos_barrier=0
83887 cat >>confdefs.h <<_ACEOF
83888 #define OMPI_RML_CNOS_HAVE_BARRIER $rml_cnos_barrier
83889 _ACEOF
83891 if test "$rml_cnos_happy" = "yes"; then
83892 should_build=1
83893 else
83894 should_build=0
83901 if test "$should_build" = "1"; then
83903 project=orte
83904 framework=rml
83905 component=cnos
83907 # See if it dropped an output file for us to pick up some
83908 # shell variables in.
83909 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
83911 # Add this subdir to the mast list of all MCA component subdirs
83912 all_components="$all_components $component"
83914 if test "$compile_mode" = "dso" ; then
83915 dso_components="$dso_components $component"
83916 else
83917 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
83918 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
83919 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
83920 static_components="$static_components $component"
83923 # Output pretty results
83924 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
83925 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
83926 { echo "$as_me:$LINENO: result: yes" >&5
83927 echo "${ECHO_T}yes" >&6; }
83929 # If there's an output file, add the values to
83930 # scope_EXTRA_flags.
83931 if test -f $infile; then
83933 # First check for the ABORT tag
83934 line="`grep ABORT= $infile | cut -d= -f2-`"
83935 if test -n "$line" -a "$line" != "no"; then
83936 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
83937 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
83938 { { echo "$as_me:$LINENO: error: cannot continue" >&5
83939 echo "$as_me: error: cannot continue" >&2;}
83940 { (exit 1); exit 1; }; }
83943 # Check for flags passed up from the component. If we're
83944 # compiling statically, then take all flags passed up from the
83945 # component.
83946 if test "$compile_mode" = "static"; then
83947 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
83948 eval "line=$line"
83949 if test -n "$line"; then
83950 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
83952 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
83953 eval "line=$line"
83954 if test -n "$line"; then
83955 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
83959 if test "$DIRECT_rml" = "$component" ; then
83960 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
83961 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
83962 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
83963 eval $str
83964 else
83965 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
83966 *** does not appear to support direct calling.
83967 *** Aborting" >&5
83968 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
83969 *** does not appear to support direct calling.
83970 *** Aborting" >&2;}
83971 { (exit 1); exit 1; }; }
83974 else
83975 # were we supposed to have found something in the
83976 # post_configure.sh, but the file didn't exist?
83977 if test "$DIRECT_rml" = "$component" ; then
83978 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
83979 *** does not appear to support direct calling.
83980 *** Aborting" >&5
83981 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
83982 *** does not appear to support direct calling.
83983 *** Aborting" >&2;}
83984 { (exit 1); exit 1; }; }
83988 # now add the flags that were set in the environment variables
83989 # framework_component_FOO (for example, the flags set by
83990 # m4_configure components)
83992 # Check for flags passed up from the component. If we're
83993 # compiling statically, then take all flags passed up from the
83994 # component.
83995 if test "$compile_mode" = "static"; then
83996 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
83997 eval "$str"
83998 if test -n "$line" ; then
83999 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
84001 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
84002 eval "$str"
84003 if test -n "$line" ; then
84004 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
84008 else
84010 { echo "$as_me:$LINENO: checking if MCA component rml:cnos can compile" >&5
84011 echo $ECHO_N "checking if MCA component rml:cnos can compile... $ECHO_C" >&6; }
84012 { echo "$as_me:$LINENO: result: no" >&5
84013 echo "${ECHO_T}no" >&6; }
84015 # If this component was requested as the default for this
84016 # type, then abort.
84017 if test "$with_rml" = "cnos" ; then
84018 { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
84019 echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
84020 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
84021 echo "$as_me: WARNING: This component was selected as the default" >&2;}
84022 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
84023 echo "$as_me: error: Cannot continue" >&2;}
84024 { (exit 1); exit 1; }; }
84025 exit 1
84028 if test ! -z "$DIRECT_rml" ; then
84029 if test "$DIRECT_rml" = "cnos" ; then
84030 { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
84031 echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
84032 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
84033 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
84034 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
84035 echo "$as_me: error: Cannot continue" >&2;}
84036 { (exit 1); exit 1; }; }
84037 exit 1
84041 # add component to all component list
84042 all_components="$all_components cnos"
84046 # set the AM_CONDITIONAL on how we should build
84047 if test "$compile_mode" = "dso"; then
84048 BUILD_rml_cnos_DSO=1
84049 else
84050 BUILD_rml_cnos_DSO=0
84055 if test "$BUILD_rml_cnos_DSO" = "1"; then
84056 OMPI_BUILD_rml_cnos_DSO_TRUE=
84057 OMPI_BUILD_rml_cnos_DSO_FALSE='#'
84058 else
84059 OMPI_BUILD_rml_cnos_DSO_TRUE='#'
84060 OMPI_BUILD_rml_cnos_DSO_FALSE=
84064 if test "$should_build" = "1"; then
84065 components_looking_for_succeed="$happy_value"
84069 unset compile_mode
84072 # configure components that provide their own configure script.
84073 # It would be really hard to run these for "find first that
84074 # works", so we don't :)
84075 if test "$happy_value" = "1"; then
84077 for component_path in $srcdir/orte/mca/rml/* ; do
84078 component="`basename $component_path`"
84079 if test -d $component_path -a -x $component_path/configure ; then
84080 ompi_show_subsubsubtitle "MCA component rml:$component (need to configure)"
84083 project=orte
84084 framework=rml
84085 component=$component
84086 component_path="$srcdir/$project/mca/$framework/$component"
84087 want_component=0
84089 # build if:
84090 # - the component type is direct and we are that component
84091 # - there is no ompi_ignore file
84092 # - there is an ompi_ignore, but there is an empty ompi_unignore
84093 # - there is an ompi_ignore, but username is in ompi_unignore
84094 if test -d $component_path ; then
84095 # decide if we want the component to be built or not. This
84096 # is spread out because some of the logic is a little complex
84097 # and test's syntax isn't exactly the greatest. We want to
84098 # build the component by default.
84099 want_component=1
84100 if test -f $component_path/.ompi_ignore ; then
84101 # If there is an ompi_ignore file, don't build
84102 # the component. Note that this decision can be
84103 # overriden by the unignore logic below.
84104 want_component=0
84106 if test -f $component_path/.ompi_unignore ; then
84107 # if there is an empty ompi_unignore, that is
84108 # equivalent to having your userid in the unignore file.
84109 # If userid is in the file, unignore the ignore file.
84110 if test ! -s $component_path/.ompi_unignore ; then
84111 want_component=1
84112 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
84113 want_component=1
84116 # if this component type is direct and we are not it, we don't want
84117 # to be built. Otherwise, we do want to be built.
84118 if test ! -z "$DIRECT_rml" ; then
84119 if test "$DIRECT_rml" = "$component" ; then
84120 want_component=1
84121 else
84122 want_component=0
84127 # if we were explicitly disabled, don't build :)
84128 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
84129 eval $str
84130 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
84131 want_component=0
84134 if test "$want_component" = "1"; then
84135 should_build=1
84136 else
84137 should_build=0
84142 project=orte
84143 framework=rml
84144 component=$component
84146 # Is this component going to built staic or shared? $component
84147 # might not be known until configure time, so have to use eval
84148 # tricks - can't set variable names at autogen time.
84149 str="SHARED_FRAMEWORK=\$DSO_$framework"
84150 eval $str
84151 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
84152 eval $str
84154 str="STATIC_FRAMEWORK=\$STATIC_$framework"
84155 eval $str
84156 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
84157 eval $str
84159 shared_mode_override=static
84161 # Setup for either shared or static
84162 if test "$STATIC_FRAMEWORK" = "1" -o \
84163 "$STATIC_COMPONENT" = "1" -o \
84164 "$STATIC_all" = "1" ; then
84165 compile_mode="static"
84166 elif test "$shared_mode_override" = "dso" -o \
84167 "$SHARED_FRAMEWORK" = "1" -o \
84168 "$SHARED_COMPONENT" = "1" -o \
84169 "$DSO_all" = "1"; then
84170 compile_mode="dso"
84171 else
84172 compile_mode="static"
84175 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
84176 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
84177 if test "$DIRECT_rml" = "$component" ; then
84178 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
84179 echo "${ECHO_T}$compile_mode - direct" >&6; }
84180 else
84181 { echo "$as_me:$LINENO: result: $compile_mode" >&5
84182 echo "${ECHO_T}$compile_mode" >&6; }
84186 if test "$should_build" = "1" ; then
84189 # Invoke configure in a specific subdirectory.
84191 # orte/mca/rml/$component is the directory to invoke in
84192 # $ompi_subdir_args is the list of arguments to pass
84193 # should_build=1 is actions to execute upon success
84194 # should_build=2 is actions to execute upon failure
84196 subdir_dir="orte/mca/rml/$component"
84197 subdir_args="$ompi_subdir_args"
84198 subdir_success="should_build=1"
84199 subdir_failure="should_build=2"
84202 # Sanity checks
84205 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
84206 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
84207 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
84210 # Gotta check where srcdir is for VPATH builds. If srcdir is not
84211 # ., then we need to mkdir the subdir. Otherwise, we can just cd
84212 # into it.
84215 case $srcdir in
84219 { case $subdir_dir in
84220 [\\/]* | ?:[\\/]* ) total_dir=;;
84221 *) total_dir=.;;
84222 esac
84223 temp=$subdir_dir
84224 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
84225 case $dir_part in
84226 # Skip DOS drivespec
84227 ?:) total_dir=$dir_part ;;
84228 *) total_dir=$total_dir/$dir_part
84229 test -d "$total_dir" ||
84230 mkdir "$total_dir" ||
84231 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
84232 echo "$as_me: error: cannot create $subdir_dir" >&2;}
84233 { (exit 1); exit 1; }; }
84235 esac
84236 done; }
84238 if test -d ./$subdir_dir; then :;
84239 else
84240 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
84241 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
84242 { (exit 1); exit 1; }; }
84245 esac
84248 # Move into the target directory
84251 subdir_parent=`pwd`
84252 cd $subdir_dir
84255 # Make a "../" for each directory in $subdir_dir.
84258 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
84260 # Construct the --srcdir argument
84263 case $srcdir in
84265 # In place
84266 subdir_srcdir="$srcdir"
84268 [\\/]* | ?:[\\/]* )
84269 # Absolute path
84270 subdir_srcdir="$srcdir/$subdir_dir"
84273 # Relative path
84274 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
84276 esac
84279 # Construct the --cache-file argument
84282 # BWB - subdir caching is a pain since we change CFLAGS and all that.
84283 # Just disable it for now
84284 subdir_cache_file="/dev/null"
84287 # Invoke the configure script in the subdirectory
84290 export CFLAGS CPPFLAGS
84291 export CXXFLAGS CXXCPPFLAGS
84292 export FFLAGS
84293 export LDFLAGS LIBS
84294 sub_configure="$SHELL '$subdir_srcdir/configure'"
84295 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
84296 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
84297 eval "$sub_configure $subdir_args \
84298 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
84299 if test "$?" = "0"; then
84300 eval $subdir_success
84301 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
84302 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
84303 else
84304 eval $subdir_failure
84305 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
84306 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
84310 # Go back to the topdir
84313 cd $subdir_parent
84317 # Clean up
84320 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
84321 unset subdir_args subdir_dots total_dir dir_part temp
84324 if test "$should_build" = "1" ; then
84326 project=orte
84327 framework=rml
84328 component=$component
84330 # See if it dropped an output file for us to pick up some
84331 # shell variables in.
84332 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
84334 # Add this subdir to the mast list of all MCA component subdirs
84335 all_components="$all_components $component"
84337 if test "$compile_mode" = "dso" ; then
84338 dso_components="$dso_components $component"
84339 else
84340 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
84341 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
84342 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
84343 static_components="$static_components $component"
84346 # Output pretty results
84347 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
84348 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
84349 { echo "$as_me:$LINENO: result: yes" >&5
84350 echo "${ECHO_T}yes" >&6; }
84352 # If there's an output file, add the values to
84353 # scope_EXTRA_flags.
84354 if test -f $infile; then
84356 # First check for the ABORT tag
84357 line="`grep ABORT= $infile | cut -d= -f2-`"
84358 if test -n "$line" -a "$line" != "no"; then
84359 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
84360 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
84361 { { echo "$as_me:$LINENO: error: cannot continue" >&5
84362 echo "$as_me: error: cannot continue" >&2;}
84363 { (exit 1); exit 1; }; }
84366 # Check for flags passed up from the component. If we're
84367 # compiling statically, then take all flags passed up from the
84368 # component.
84369 if test "$compile_mode" = "static"; then
84370 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
84371 eval "line=$line"
84372 if test -n "$line"; then
84373 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
84375 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
84376 eval "line=$line"
84377 if test -n "$line"; then
84378 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
84382 if test "$DIRECT_rml" = "$component" ; then
84383 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
84384 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
84385 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
84386 eval $str
84387 else
84388 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
84389 *** does not appear to support direct calling.
84390 *** Aborting" >&5
84391 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
84392 *** does not appear to support direct calling.
84393 *** Aborting" >&2;}
84394 { (exit 1); exit 1; }; }
84397 else
84398 # were we supposed to have found something in the
84399 # post_configure.sh, but the file didn't exist?
84400 if test "$DIRECT_rml" = "$component" ; then
84401 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
84402 *** does not appear to support direct calling.
84403 *** Aborting" >&5
84404 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
84405 *** does not appear to support direct calling.
84406 *** Aborting" >&2;}
84407 { (exit 1); exit 1; }; }
84411 # now add the flags that were set in the environment variables
84412 # framework_component_FOO (for example, the flags set by
84413 # m4_configure components)
84415 # Check for flags passed up from the component. If we're
84416 # compiling statically, then take all flags passed up from the
84417 # component.
84418 if test "$compile_mode" = "static"; then
84419 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
84420 eval "$str"
84421 if test -n "$line" ; then
84422 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
84424 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
84425 eval "$str"
84426 if test -n "$line" ; then
84427 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
84431 else
84433 { echo "$as_me:$LINENO: checking if MCA component rml:$component can compile" >&5
84434 echo $ECHO_N "checking if MCA component rml:$component can compile... $ECHO_C" >&6; }
84435 { echo "$as_me:$LINENO: result: no" >&5
84436 echo "${ECHO_T}no" >&6; }
84438 # If this component was requested as the default for this
84439 # type, then abort.
84440 if test "$with_rml" = "$component" ; then
84441 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
84442 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
84443 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
84444 echo "$as_me: WARNING: This component was selected as the default" >&2;}
84445 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
84446 echo "$as_me: error: Cannot continue" >&2;}
84447 { (exit 1); exit 1; }; }
84448 exit 1
84451 if test ! -z "$DIRECT_rml" ; then
84452 if test "$DIRECT_rml" = "$component" ; then
84453 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
84454 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
84455 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
84456 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
84457 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
84458 echo "$as_me: error: Cannot continue" >&2;}
84459 { (exit 1); exit 1; }; }
84460 exit 1
84466 done
84471 MCA_rml_ALL_COMPONENTS="$all_components"
84472 MCA_rml_STATIC_COMPONENTS="$static_components"
84473 MCA_rml_DSO_COMPONENTS="$dso_components"
84474 MCA_rml_STATIC_LTLIBS="$static_ltlibs"
84482 MCA_rml_ALL_SUBDIRS=
84483 for item in $all_components ; do
84484 MCA_rml_ALL_SUBDIRS="$MCA_rml_ALL_SUBDIRS mca/rml/$item"
84485 done
84489 MCA_rml_STATIC_SUBDIRS=
84490 for item in $static_components ; do
84491 MCA_rml_STATIC_SUBDIRS="$MCA_rml_STATIC_SUBDIRS mca/rml/$item"
84492 done
84496 MCA_rml_DSO_SUBDIRS=
84497 for item in $dso_components ; do
84498 MCA_rml_DSO_SUBDIRS="$MCA_rml_DSO_SUBDIRS mca/rml/$item"
84499 done
84503 # add all the makefiles for the framework to the CONFIG_FILES.
84504 # Don't add common/base, since it doesn't exist
84505 ac_config_files="$ac_config_files orte/mca/rml/Makefile"
84508 # Create the final .h file that will be included in the type's
84509 # top-level glue. This lists all the static components. We don't
84510 # need to do this for "common".
84511 if test "rml" != "common"; then
84512 cat > $outfile <<EOF
84514 * \$HEADER\$
84517 `cat $outfile.extern`
84519 const mca_base_component_t *mca_rml_base_static_components[] = {
84520 `cat $outfile.struct`
84521 NULL
84524 # Only replace the header file if a) it doesn't previously
84525 # exist, or b) the contents are different. Do this to not
84526 # trigger recompilation of certain .c files just because the
84527 # timestamp changed on $outfile_real (similar to the way AC
84528 # handles AC_CONFIG_HEADER files).
84529 diff $outfile $outfile_real > /dev/null 2>&1
84530 if test "$?" != "0"; then
84531 mv $outfile $outfile_real
84532 else
84533 rm -f $outfile
84536 rm -f $outfile.struct $outfile.extern
84538 unset all_components static_components dso_components outfile outfile_real
84539 # common has to go up front
84540 if test "schema" = "common" ; then
84541 MCA_orte_FRAMEWORKS="schema $MCA_orte_FRAMEWORKS"
84542 MCA_orte_FRAMEWORKS_SUBDIRS="mca/schema $MCA_orte_FRAMEWORKS_SUBDIRS"
84543 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_schema_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
84544 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_schema_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
84545 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_schema_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
84546 else
84547 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS schema"
84548 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/schema"
84549 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_schema_ALL_SUBDIRS)"
84550 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_schema_DSO_SUBDIRS)"
84551 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_schema_STATIC_SUBDIRS)"
84553 if test "schema" != "common" ; then
84554 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/schema/libmca_schema.la"
84556 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_schema_STATIC_LTLIBS)"
84558 ompi_show_subsubtitle "Configuring MCA framework schema"
84560 # setup for framework
84561 all_components=
84562 static_components=
84563 dso_components=
84564 static_ltlibs=
84566 # Ensure that the directory where the #include file is to live
84567 # exists. Need to do this for VPATH builds, because the directory
84568 # may not exist yet. For the "common" type, it's not really a
84569 # component, so it doesn't have a base.
84570 if test "schema" = "common" ; then
84571 outdir=orte/mca/common
84572 else
84573 outdir=orte/mca/schema/base
84575 { as_dir=$outdir
84576 case $as_dir in #(
84577 -*) as_dir=./$as_dir;;
84578 esac
84579 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
84580 as_dirs=
84581 while :; do
84582 case $as_dir in #(
84583 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
84584 *) as_qdir=$as_dir;;
84585 esac
84586 as_dirs="'$as_qdir' $as_dirs"
84587 as_dir=`$as_dirname -- "$as_dir" ||
84588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
84589 X"$as_dir" : 'X\(//\)[^/]' \| \
84590 X"$as_dir" : 'X\(//\)$' \| \
84591 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
84592 echo X"$as_dir" |
84593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
84594 s//\1/
84597 /^X\(\/\/\)[^/].*/{
84598 s//\1/
84601 /^X\(\/\/\)$/{
84602 s//\1/
84605 /^X\(\/\).*/{
84606 s//\1/
84609 s/.*/./; q'`
84610 test -d "$as_dir" && break
84611 done
84612 test -z "$as_dirs" || eval "mkdir $as_dirs"
84613 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
84614 echo "$as_me: error: cannot create directory $as_dir" >&2;}
84615 { (exit 1); exit 1; }; }; }
84617 # remove any previously generated #include files
84618 outfile_real=$outdir/static-components.h
84619 outfile=$outfile_real.new
84620 rm -f $outfile $outfile.struct $outfile.extern
84621 touch $outfile.struct $outfile.extern
84623 # print some nice messages about what we're about to do...
84624 { echo "$as_me:$LINENO: checking for no configure components in framework schema" >&5
84625 echo $ECHO_N "checking for no configure components in framework schema... $ECHO_C" >&6; }
84626 { echo "$as_me:$LINENO: result: " >&5
84627 echo "${ECHO_T}" >&6; }
84628 { echo "$as_me:$LINENO: checking for m4 configure components in framework schema" >&5
84629 echo $ECHO_N "checking for m4 configure components in framework schema... $ECHO_C" >&6; }
84630 { echo "$as_me:$LINENO: result: " >&5
84631 echo "${ECHO_T}" >&6; }
84633 # if we only want the first successful component, set the variable
84634 # happy_value to 0 so we stop on first assignment. Otherwise, set
84635 # it to zero so that components_looking_for_succeed is always 1
84636 happy_value=1
84638 components_looking_for_succeed=1
84640 # configure components that don't have any component-specific
84641 # configuration. See comment in CONFIGURE_PROJECT about the
84642 # m4_ifval
84643 # if there isn't a component list, abort
84647 # configure components that use built-in configuration scripts
84648 # see comment in CONFIGURE_PROJECT about the m4_ifval
84649 # if there isn't a component list, abort
84653 # configure components that provide their own configure script.
84654 # It would be really hard to run these for "find first that
84655 # works", so we don't :)
84656 if test "$happy_value" = "1"; then
84658 for component_path in $srcdir/orte/mca/schema/* ; do
84659 component="`basename $component_path`"
84660 if test -d $component_path -a -x $component_path/configure ; then
84661 ompi_show_subsubsubtitle "MCA component schema:$component (need to configure)"
84664 project=orte
84665 framework=schema
84666 component=$component
84667 component_path="$srcdir/$project/mca/$framework/$component"
84668 want_component=0
84670 # build if:
84671 # - the component type is direct and we are that component
84672 # - there is no ompi_ignore file
84673 # - there is an ompi_ignore, but there is an empty ompi_unignore
84674 # - there is an ompi_ignore, but username is in ompi_unignore
84675 if test -d $component_path ; then
84676 # decide if we want the component to be built or not. This
84677 # is spread out because some of the logic is a little complex
84678 # and test's syntax isn't exactly the greatest. We want to
84679 # build the component by default.
84680 want_component=1
84681 if test -f $component_path/.ompi_ignore ; then
84682 # If there is an ompi_ignore file, don't build
84683 # the component. Note that this decision can be
84684 # overriden by the unignore logic below.
84685 want_component=0
84687 if test -f $component_path/.ompi_unignore ; then
84688 # if there is an empty ompi_unignore, that is
84689 # equivalent to having your userid in the unignore file.
84690 # If userid is in the file, unignore the ignore file.
84691 if test ! -s $component_path/.ompi_unignore ; then
84692 want_component=1
84693 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
84694 want_component=1
84697 # if this component type is direct and we are not it, we don't want
84698 # to be built. Otherwise, we do want to be built.
84699 if test ! -z "$DIRECT_schema" ; then
84700 if test "$DIRECT_schema" = "$component" ; then
84701 want_component=1
84702 else
84703 want_component=0
84708 # if we were explicitly disabled, don't build :)
84709 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
84710 eval $str
84711 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
84712 want_component=0
84715 if test "$want_component" = "1"; then
84716 should_build=1
84717 else
84718 should_build=0
84723 project=orte
84724 framework=schema
84725 component=$component
84727 # Is this component going to built staic or shared? $component
84728 # might not be known until configure time, so have to use eval
84729 # tricks - can't set variable names at autogen time.
84730 str="SHARED_FRAMEWORK=\$DSO_$framework"
84731 eval $str
84732 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
84733 eval $str
84735 str="STATIC_FRAMEWORK=\$STATIC_$framework"
84736 eval $str
84737 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
84738 eval $str
84740 shared_mode_override=static
84742 # Setup for either shared or static
84743 if test "$STATIC_FRAMEWORK" = "1" -o \
84744 "$STATIC_COMPONENT" = "1" -o \
84745 "$STATIC_all" = "1" ; then
84746 compile_mode="static"
84747 elif test "$shared_mode_override" = "dso" -o \
84748 "$SHARED_FRAMEWORK" = "1" -o \
84749 "$SHARED_COMPONENT" = "1" -o \
84750 "$DSO_all" = "1"; then
84751 compile_mode="dso"
84752 else
84753 compile_mode="static"
84756 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
84757 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
84758 if test "$DIRECT_schema" = "$component" ; then
84759 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
84760 echo "${ECHO_T}$compile_mode - direct" >&6; }
84761 else
84762 { echo "$as_me:$LINENO: result: $compile_mode" >&5
84763 echo "${ECHO_T}$compile_mode" >&6; }
84767 if test "$should_build" = "1" ; then
84770 # Invoke configure in a specific subdirectory.
84772 # orte/mca/schema/$component is the directory to invoke in
84773 # $ompi_subdir_args is the list of arguments to pass
84774 # should_build=1 is actions to execute upon success
84775 # should_build=2 is actions to execute upon failure
84777 subdir_dir="orte/mca/schema/$component"
84778 subdir_args="$ompi_subdir_args"
84779 subdir_success="should_build=1"
84780 subdir_failure="should_build=2"
84783 # Sanity checks
84786 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
84787 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
84788 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
84791 # Gotta check where srcdir is for VPATH builds. If srcdir is not
84792 # ., then we need to mkdir the subdir. Otherwise, we can just cd
84793 # into it.
84796 case $srcdir in
84800 { case $subdir_dir in
84801 [\\/]* | ?:[\\/]* ) total_dir=;;
84802 *) total_dir=.;;
84803 esac
84804 temp=$subdir_dir
84805 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
84806 case $dir_part in
84807 # Skip DOS drivespec
84808 ?:) total_dir=$dir_part ;;
84809 *) total_dir=$total_dir/$dir_part
84810 test -d "$total_dir" ||
84811 mkdir "$total_dir" ||
84812 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
84813 echo "$as_me: error: cannot create $subdir_dir" >&2;}
84814 { (exit 1); exit 1; }; }
84816 esac
84817 done; }
84819 if test -d ./$subdir_dir; then :;
84820 else
84821 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
84822 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
84823 { (exit 1); exit 1; }; }
84826 esac
84829 # Move into the target directory
84832 subdir_parent=`pwd`
84833 cd $subdir_dir
84836 # Make a "../" for each directory in $subdir_dir.
84839 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
84841 # Construct the --srcdir argument
84844 case $srcdir in
84846 # In place
84847 subdir_srcdir="$srcdir"
84849 [\\/]* | ?:[\\/]* )
84850 # Absolute path
84851 subdir_srcdir="$srcdir/$subdir_dir"
84854 # Relative path
84855 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
84857 esac
84860 # Construct the --cache-file argument
84863 # BWB - subdir caching is a pain since we change CFLAGS and all that.
84864 # Just disable it for now
84865 subdir_cache_file="/dev/null"
84868 # Invoke the configure script in the subdirectory
84871 export CFLAGS CPPFLAGS
84872 export CXXFLAGS CXXCPPFLAGS
84873 export FFLAGS
84874 export LDFLAGS LIBS
84875 sub_configure="$SHELL '$subdir_srcdir/configure'"
84876 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
84877 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
84878 eval "$sub_configure $subdir_args \
84879 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
84880 if test "$?" = "0"; then
84881 eval $subdir_success
84882 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
84883 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
84884 else
84885 eval $subdir_failure
84886 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
84887 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
84891 # Go back to the topdir
84894 cd $subdir_parent
84898 # Clean up
84901 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
84902 unset subdir_args subdir_dots total_dir dir_part temp
84905 if test "$should_build" = "1" ; then
84907 project=orte
84908 framework=schema
84909 component=$component
84911 # See if it dropped an output file for us to pick up some
84912 # shell variables in.
84913 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
84915 # Add this subdir to the mast list of all MCA component subdirs
84916 all_components="$all_components $component"
84918 if test "$compile_mode" = "dso" ; then
84919 dso_components="$dso_components $component"
84920 else
84921 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
84922 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
84923 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
84924 static_components="$static_components $component"
84927 # Output pretty results
84928 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
84929 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
84930 { echo "$as_me:$LINENO: result: yes" >&5
84931 echo "${ECHO_T}yes" >&6; }
84933 # If there's an output file, add the values to
84934 # scope_EXTRA_flags.
84935 if test -f $infile; then
84937 # First check for the ABORT tag
84938 line="`grep ABORT= $infile | cut -d= -f2-`"
84939 if test -n "$line" -a "$line" != "no"; then
84940 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
84941 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
84942 { { echo "$as_me:$LINENO: error: cannot continue" >&5
84943 echo "$as_me: error: cannot continue" >&2;}
84944 { (exit 1); exit 1; }; }
84947 # Check for flags passed up from the component. If we're
84948 # compiling statically, then take all flags passed up from the
84949 # component.
84950 if test "$compile_mode" = "static"; then
84951 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
84952 eval "line=$line"
84953 if test -n "$line"; then
84954 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
84956 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
84957 eval "line=$line"
84958 if test -n "$line"; then
84959 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
84963 if test "$DIRECT_schema" = "$component" ; then
84964 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
84965 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
84966 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
84967 eval $str
84968 else
84969 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
84970 *** does not appear to support direct calling.
84971 *** Aborting" >&5
84972 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
84973 *** does not appear to support direct calling.
84974 *** Aborting" >&2;}
84975 { (exit 1); exit 1; }; }
84978 else
84979 # were we supposed to have found something in the
84980 # post_configure.sh, but the file didn't exist?
84981 if test "$DIRECT_schema" = "$component" ; then
84982 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
84983 *** does not appear to support direct calling.
84984 *** Aborting" >&5
84985 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
84986 *** does not appear to support direct calling.
84987 *** Aborting" >&2;}
84988 { (exit 1); exit 1; }; }
84992 # now add the flags that were set in the environment variables
84993 # framework_component_FOO (for example, the flags set by
84994 # m4_configure components)
84996 # Check for flags passed up from the component. If we're
84997 # compiling statically, then take all flags passed up from the
84998 # component.
84999 if test "$compile_mode" = "static"; then
85000 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
85001 eval "$str"
85002 if test -n "$line" ; then
85003 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
85005 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
85006 eval "$str"
85007 if test -n "$line" ; then
85008 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
85012 else
85014 { echo "$as_me:$LINENO: checking if MCA component schema:$component can compile" >&5
85015 echo $ECHO_N "checking if MCA component schema:$component can compile... $ECHO_C" >&6; }
85016 { echo "$as_me:$LINENO: result: no" >&5
85017 echo "${ECHO_T}no" >&6; }
85019 # If this component was requested as the default for this
85020 # type, then abort.
85021 if test "$with_schema" = "$component" ; then
85022 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
85023 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
85024 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
85025 echo "$as_me: WARNING: This component was selected as the default" >&2;}
85026 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
85027 echo "$as_me: error: Cannot continue" >&2;}
85028 { (exit 1); exit 1; }; }
85029 exit 1
85032 if test ! -z "$DIRECT_schema" ; then
85033 if test "$DIRECT_schema" = "$component" ; then
85034 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
85035 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
85036 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
85037 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
85038 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
85039 echo "$as_me: error: Cannot continue" >&2;}
85040 { (exit 1); exit 1; }; }
85041 exit 1
85047 done
85052 MCA_schema_ALL_COMPONENTS="$all_components"
85053 MCA_schema_STATIC_COMPONENTS="$static_components"
85054 MCA_schema_DSO_COMPONENTS="$dso_components"
85055 MCA_schema_STATIC_LTLIBS="$static_ltlibs"
85063 MCA_schema_ALL_SUBDIRS=
85064 for item in $all_components ; do
85065 MCA_schema_ALL_SUBDIRS="$MCA_schema_ALL_SUBDIRS mca/schema/$item"
85066 done
85070 MCA_schema_STATIC_SUBDIRS=
85071 for item in $static_components ; do
85072 MCA_schema_STATIC_SUBDIRS="$MCA_schema_STATIC_SUBDIRS mca/schema/$item"
85073 done
85077 MCA_schema_DSO_SUBDIRS=
85078 for item in $dso_components ; do
85079 MCA_schema_DSO_SUBDIRS="$MCA_schema_DSO_SUBDIRS mca/schema/$item"
85080 done
85084 # add all the makefiles for the framework to the CONFIG_FILES.
85085 # Don't add common/base, since it doesn't exist
85086 ac_config_files="$ac_config_files orte/mca/schema/Makefile"
85089 # Create the final .h file that will be included in the type's
85090 # top-level glue. This lists all the static components. We don't
85091 # need to do this for "common".
85092 if test "schema" != "common"; then
85093 cat > $outfile <<EOF
85095 * \$HEADER\$
85098 `cat $outfile.extern`
85100 const mca_base_component_t *mca_schema_base_static_components[] = {
85101 `cat $outfile.struct`
85102 NULL
85105 # Only replace the header file if a) it doesn't previously
85106 # exist, or b) the contents are different. Do this to not
85107 # trigger recompilation of certain .c files just because the
85108 # timestamp changed on $outfile_real (similar to the way AC
85109 # handles AC_CONFIG_HEADER files).
85110 diff $outfile $outfile_real > /dev/null 2>&1
85111 if test "$?" != "0"; then
85112 mv $outfile $outfile_real
85113 else
85114 rm -f $outfile
85117 rm -f $outfile.struct $outfile.extern
85119 unset all_components static_components dso_components outfile outfile_real
85120 # common has to go up front
85121 if test "sds" = "common" ; then
85122 MCA_orte_FRAMEWORKS="sds $MCA_orte_FRAMEWORKS"
85123 MCA_orte_FRAMEWORKS_SUBDIRS="mca/sds $MCA_orte_FRAMEWORKS_SUBDIRS"
85124 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_sds_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
85125 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_sds_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
85126 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_sds_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
85127 else
85128 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS sds"
85129 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/sds"
85130 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_sds_ALL_SUBDIRS)"
85131 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_sds_DSO_SUBDIRS)"
85132 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_sds_STATIC_SUBDIRS)"
85134 if test "sds" != "common" ; then
85135 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/sds/libmca_sds.la"
85137 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_sds_STATIC_LTLIBS)"
85139 ompi_show_subsubtitle "Configuring MCA framework sds"
85141 # setup for framework
85142 all_components=
85143 static_components=
85144 dso_components=
85145 static_ltlibs=
85147 # Ensure that the directory where the #include file is to live
85148 # exists. Need to do this for VPATH builds, because the directory
85149 # may not exist yet. For the "common" type, it's not really a
85150 # component, so it doesn't have a base.
85151 if test "sds" = "common" ; then
85152 outdir=orte/mca/common
85153 else
85154 outdir=orte/mca/sds/base
85156 { as_dir=$outdir
85157 case $as_dir in #(
85158 -*) as_dir=./$as_dir;;
85159 esac
85160 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
85161 as_dirs=
85162 while :; do
85163 case $as_dir in #(
85164 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
85165 *) as_qdir=$as_dir;;
85166 esac
85167 as_dirs="'$as_qdir' $as_dirs"
85168 as_dir=`$as_dirname -- "$as_dir" ||
85169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
85170 X"$as_dir" : 'X\(//\)[^/]' \| \
85171 X"$as_dir" : 'X\(//\)$' \| \
85172 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
85173 echo X"$as_dir" |
85174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
85175 s//\1/
85178 /^X\(\/\/\)[^/].*/{
85179 s//\1/
85182 /^X\(\/\/\)$/{
85183 s//\1/
85186 /^X\(\/\).*/{
85187 s//\1/
85190 s/.*/./; q'`
85191 test -d "$as_dir" && break
85192 done
85193 test -z "$as_dirs" || eval "mkdir $as_dirs"
85194 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
85195 echo "$as_me: error: cannot create directory $as_dir" >&2;}
85196 { (exit 1); exit 1; }; }; }
85198 # remove any previously generated #include files
85199 outfile_real=$outdir/static-components.h
85200 outfile=$outfile_real.new
85201 rm -f $outfile $outfile.struct $outfile.extern
85202 touch $outfile.struct $outfile.extern
85204 # print some nice messages about what we're about to do...
85205 { echo "$as_me:$LINENO: checking for no configure components in framework sds" >&5
85206 echo $ECHO_N "checking for no configure components in framework sds... $ECHO_C" >&6; }
85207 { echo "$as_me:$LINENO: result: env, seed, singleton" >&5
85208 echo "${ECHO_T}env, seed, singleton" >&6; }
85209 { echo "$as_me:$LINENO: checking for m4 configure components in framework sds" >&5
85210 echo $ECHO_N "checking for m4 configure components in framework sds... $ECHO_C" >&6; }
85211 { echo "$as_me:$LINENO: result: bproc, cnos, pipe, portals_utcp, slurm" >&5
85212 echo "${ECHO_T}bproc, cnos, pipe, portals_utcp, slurm" >&6; }
85214 # if we only want the first successful component, set the variable
85215 # happy_value to 0 so we stop on first assignment. Otherwise, set
85216 # it to zero so that components_looking_for_succeed is always 1
85217 happy_value=1
85219 components_looking_for_succeed=1
85221 # configure components that don't have any component-specific
85222 # configuration. See comment in CONFIGURE_PROJECT about the
85223 # m4_ifval
85224 # if there isn't a component list, abort
85227 ompi_show_subsubsubtitle "MCA component sds:env (no configuration)"
85230 project=orte
85231 framework=sds
85232 component=env
85233 component_path="$srcdir/$project/mca/$framework/$component"
85234 want_component=0
85236 # build if:
85237 # - the component type is direct and we are that component
85238 # - there is no ompi_ignore file
85239 # - there is an ompi_ignore, but there is an empty ompi_unignore
85240 # - there is an ompi_ignore, but username is in ompi_unignore
85241 if test -d $component_path ; then
85242 # decide if we want the component to be built or not. This
85243 # is spread out because some of the logic is a little complex
85244 # and test's syntax isn't exactly the greatest. We want to
85245 # build the component by default.
85246 want_component=1
85247 if test -f $component_path/.ompi_ignore ; then
85248 # If there is an ompi_ignore file, don't build
85249 # the component. Note that this decision can be
85250 # overriden by the unignore logic below.
85251 want_component=0
85253 if test -f $component_path/.ompi_unignore ; then
85254 # if there is an empty ompi_unignore, that is
85255 # equivalent to having your userid in the unignore file.
85256 # If userid is in the file, unignore the ignore file.
85257 if test ! -s $component_path/.ompi_unignore ; then
85258 want_component=1
85259 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
85260 want_component=1
85263 # if this component type is direct and we are not it, we don't want
85264 # to be built. Otherwise, we do want to be built.
85265 if test ! -z "$DIRECT_sds" ; then
85266 if test "$DIRECT_sds" = "$component" ; then
85267 want_component=1
85268 else
85269 want_component=0
85274 # if we were explicitly disabled, don't build :)
85275 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
85276 eval $str
85277 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
85278 want_component=0
85281 if test "$want_component" = "1"; then
85282 should_build=$components_looking_for_succeed
85283 else
85284 should_build=0
85289 project=orte
85290 framework=sds
85291 component=env
85293 # Is this component going to built staic or shared? $component
85294 # might not be known until configure time, so have to use eval
85295 # tricks - can't set variable names at autogen time.
85296 str="SHARED_FRAMEWORK=\$DSO_$framework"
85297 eval $str
85298 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
85299 eval $str
85301 str="STATIC_FRAMEWORK=\$STATIC_$framework"
85302 eval $str
85303 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
85304 eval $str
85306 shared_mode_override=static
85308 # Setup for either shared or static
85309 if test "$STATIC_FRAMEWORK" = "1" -o \
85310 "$STATIC_COMPONENT" = "1" -o \
85311 "$STATIC_all" = "1" ; then
85312 compile_mode="static"
85313 elif test "$shared_mode_override" = "dso" -o \
85314 "$SHARED_FRAMEWORK" = "1" -o \
85315 "$SHARED_COMPONENT" = "1" -o \
85316 "$DSO_all" = "1"; then
85317 compile_mode="dso"
85318 else
85319 compile_mode="static"
85322 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
85323 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
85324 if test "$DIRECT_sds" = "$component" ; then
85325 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
85326 echo "${ECHO_T}$compile_mode - direct" >&6; }
85327 else
85328 { echo "$as_me:$LINENO: result: $compile_mode" >&5
85329 echo "${ECHO_T}$compile_mode" >&6; }
85333 if test "$should_build" = "1" ; then
85335 project=orte
85336 framework=sds
85337 component=env
85339 # See if it dropped an output file for us to pick up some
85340 # shell variables in.
85341 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
85343 # Add this subdir to the mast list of all MCA component subdirs
85344 all_components="$all_components $component"
85346 if test "$compile_mode" = "dso" ; then
85347 dso_components="$dso_components $component"
85348 else
85349 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
85350 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
85351 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
85352 static_components="$static_components $component"
85355 # Output pretty results
85356 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
85357 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
85358 { echo "$as_me:$LINENO: result: yes" >&5
85359 echo "${ECHO_T}yes" >&6; }
85361 # If there's an output file, add the values to
85362 # scope_EXTRA_flags.
85363 if test -f $infile; then
85365 # First check for the ABORT tag
85366 line="`grep ABORT= $infile | cut -d= -f2-`"
85367 if test -n "$line" -a "$line" != "no"; then
85368 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
85369 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
85370 { { echo "$as_me:$LINENO: error: cannot continue" >&5
85371 echo "$as_me: error: cannot continue" >&2;}
85372 { (exit 1); exit 1; }; }
85375 # Check for flags passed up from the component. If we're
85376 # compiling statically, then take all flags passed up from the
85377 # component.
85378 if test "$compile_mode" = "static"; then
85379 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
85380 eval "line=$line"
85381 if test -n "$line"; then
85382 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
85384 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
85385 eval "line=$line"
85386 if test -n "$line"; then
85387 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
85391 if test "$DIRECT_sds" = "$component" ; then
85392 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
85393 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
85394 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
85395 eval $str
85396 else
85397 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
85398 *** does not appear to support direct calling.
85399 *** Aborting" >&5
85400 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
85401 *** does not appear to support direct calling.
85402 *** Aborting" >&2;}
85403 { (exit 1); exit 1; }; }
85406 else
85407 # were we supposed to have found something in the
85408 # post_configure.sh, but the file didn't exist?
85409 if test "$DIRECT_sds" = "$component" ; then
85410 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
85411 *** does not appear to support direct calling.
85412 *** Aborting" >&5
85413 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
85414 *** does not appear to support direct calling.
85415 *** Aborting" >&2;}
85416 { (exit 1); exit 1; }; }
85420 # now add the flags that were set in the environment variables
85421 # framework_component_FOO (for example, the flags set by
85422 # m4_configure components)
85424 # Check for flags passed up from the component. If we're
85425 # compiling statically, then take all flags passed up from the
85426 # component.
85427 if test "$compile_mode" = "static"; then
85428 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
85429 eval "$str"
85430 if test -n "$line" ; then
85431 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
85433 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
85434 eval "$str"
85435 if test -n "$line" ; then
85436 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
85440 else
85442 { echo "$as_me:$LINENO: checking if MCA component sds:env can compile" >&5
85443 echo $ECHO_N "checking if MCA component sds:env can compile... $ECHO_C" >&6; }
85444 { echo "$as_me:$LINENO: result: no" >&5
85445 echo "${ECHO_T}no" >&6; }
85447 # If this component was requested as the default for this
85448 # type, then abort.
85449 if test "$with_sds" = "env" ; then
85450 { echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5
85451 echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
85452 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
85453 echo "$as_me: WARNING: This component was selected as the default" >&2;}
85454 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
85455 echo "$as_me: error: Cannot continue" >&2;}
85456 { (exit 1); exit 1; }; }
85457 exit 1
85460 if test ! -z "$DIRECT_sds" ; then
85461 if test "$DIRECT_sds" = "env" ; then
85462 { echo "$as_me:$LINENO: WARNING: MCA component \"env\" failed to configure properly" >&5
85463 echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
85464 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
85465 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
85466 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
85467 echo "$as_me: error: Cannot continue" >&2;}
85468 { (exit 1); exit 1; }; }
85469 exit 1
85473 # add component to all component list
85474 all_components="$all_components env"
85477 # set the AM_CONDITIONAL on how we should build
85478 if test "$compile_mode" = "dso" ; then
85479 BUILD_sds_env_DSO=1
85480 else
85481 BUILD_sds_env_DSO=0
85485 if test "$BUILD_sds_env_DSO" = "1"; then
85486 OMPI_BUILD_sds_env_DSO_TRUE=
85487 OMPI_BUILD_sds_env_DSO_FALSE='#'
85488 else
85489 OMPI_BUILD_sds_env_DSO_TRUE='#'
85490 OMPI_BUILD_sds_env_DSO_FALSE=
85494 unset compile_mode
85496 ompi_show_subsubsubtitle "MCA component sds:seed (no configuration)"
85499 project=orte
85500 framework=sds
85501 component=seed
85502 component_path="$srcdir/$project/mca/$framework/$component"
85503 want_component=0
85505 # build if:
85506 # - the component type is direct and we are that component
85507 # - there is no ompi_ignore file
85508 # - there is an ompi_ignore, but there is an empty ompi_unignore
85509 # - there is an ompi_ignore, but username is in ompi_unignore
85510 if test -d $component_path ; then
85511 # decide if we want the component to be built or not. This
85512 # is spread out because some of the logic is a little complex
85513 # and test's syntax isn't exactly the greatest. We want to
85514 # build the component by default.
85515 want_component=1
85516 if test -f $component_path/.ompi_ignore ; then
85517 # If there is an ompi_ignore file, don't build
85518 # the component. Note that this decision can be
85519 # overriden by the unignore logic below.
85520 want_component=0
85522 if test -f $component_path/.ompi_unignore ; then
85523 # if there is an empty ompi_unignore, that is
85524 # equivalent to having your userid in the unignore file.
85525 # If userid is in the file, unignore the ignore file.
85526 if test ! -s $component_path/.ompi_unignore ; then
85527 want_component=1
85528 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
85529 want_component=1
85532 # if this component type is direct and we are not it, we don't want
85533 # to be built. Otherwise, we do want to be built.
85534 if test ! -z "$DIRECT_sds" ; then
85535 if test "$DIRECT_sds" = "$component" ; then
85536 want_component=1
85537 else
85538 want_component=0
85543 # if we were explicitly disabled, don't build :)
85544 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
85545 eval $str
85546 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
85547 want_component=0
85550 if test "$want_component" = "1"; then
85551 should_build=$components_looking_for_succeed
85552 else
85553 should_build=0
85558 project=orte
85559 framework=sds
85560 component=seed
85562 # Is this component going to built staic or shared? $component
85563 # might not be known until configure time, so have to use eval
85564 # tricks - can't set variable names at autogen time.
85565 str="SHARED_FRAMEWORK=\$DSO_$framework"
85566 eval $str
85567 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
85568 eval $str
85570 str="STATIC_FRAMEWORK=\$STATIC_$framework"
85571 eval $str
85572 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
85573 eval $str
85575 shared_mode_override=static
85577 # Setup for either shared or static
85578 if test "$STATIC_FRAMEWORK" = "1" -o \
85579 "$STATIC_COMPONENT" = "1" -o \
85580 "$STATIC_all" = "1" ; then
85581 compile_mode="static"
85582 elif test "$shared_mode_override" = "dso" -o \
85583 "$SHARED_FRAMEWORK" = "1" -o \
85584 "$SHARED_COMPONENT" = "1" -o \
85585 "$DSO_all" = "1"; then
85586 compile_mode="dso"
85587 else
85588 compile_mode="static"
85591 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
85592 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
85593 if test "$DIRECT_sds" = "$component" ; then
85594 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
85595 echo "${ECHO_T}$compile_mode - direct" >&6; }
85596 else
85597 { echo "$as_me:$LINENO: result: $compile_mode" >&5
85598 echo "${ECHO_T}$compile_mode" >&6; }
85602 if test "$should_build" = "1" ; then
85604 project=orte
85605 framework=sds
85606 component=seed
85608 # See if it dropped an output file for us to pick up some
85609 # shell variables in.
85610 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
85612 # Add this subdir to the mast list of all MCA component subdirs
85613 all_components="$all_components $component"
85615 if test "$compile_mode" = "dso" ; then
85616 dso_components="$dso_components $component"
85617 else
85618 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
85619 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
85620 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
85621 static_components="$static_components $component"
85624 # Output pretty results
85625 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
85626 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
85627 { echo "$as_me:$LINENO: result: yes" >&5
85628 echo "${ECHO_T}yes" >&6; }
85630 # If there's an output file, add the values to
85631 # scope_EXTRA_flags.
85632 if test -f $infile; then
85634 # First check for the ABORT tag
85635 line="`grep ABORT= $infile | cut -d= -f2-`"
85636 if test -n "$line" -a "$line" != "no"; then
85637 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
85638 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
85639 { { echo "$as_me:$LINENO: error: cannot continue" >&5
85640 echo "$as_me: error: cannot continue" >&2;}
85641 { (exit 1); exit 1; }; }
85644 # Check for flags passed up from the component. If we're
85645 # compiling statically, then take all flags passed up from the
85646 # component.
85647 if test "$compile_mode" = "static"; then
85648 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
85649 eval "line=$line"
85650 if test -n "$line"; then
85651 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
85653 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
85654 eval "line=$line"
85655 if test -n "$line"; then
85656 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
85660 if test "$DIRECT_sds" = "$component" ; then
85661 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
85662 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
85663 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
85664 eval $str
85665 else
85666 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
85667 *** does not appear to support direct calling.
85668 *** Aborting" >&5
85669 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
85670 *** does not appear to support direct calling.
85671 *** Aborting" >&2;}
85672 { (exit 1); exit 1; }; }
85675 else
85676 # were we supposed to have found something in the
85677 # post_configure.sh, but the file didn't exist?
85678 if test "$DIRECT_sds" = "$component" ; then
85679 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
85680 *** does not appear to support direct calling.
85681 *** Aborting" >&5
85682 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
85683 *** does not appear to support direct calling.
85684 *** Aborting" >&2;}
85685 { (exit 1); exit 1; }; }
85689 # now add the flags that were set in the environment variables
85690 # framework_component_FOO (for example, the flags set by
85691 # m4_configure components)
85693 # Check for flags passed up from the component. If we're
85694 # compiling statically, then take all flags passed up from the
85695 # component.
85696 if test "$compile_mode" = "static"; then
85697 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
85698 eval "$str"
85699 if test -n "$line" ; then
85700 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
85702 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
85703 eval "$str"
85704 if test -n "$line" ; then
85705 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
85709 else
85711 { echo "$as_me:$LINENO: checking if MCA component sds:seed can compile" >&5
85712 echo $ECHO_N "checking if MCA component sds:seed can compile... $ECHO_C" >&6; }
85713 { echo "$as_me:$LINENO: result: no" >&5
85714 echo "${ECHO_T}no" >&6; }
85716 # If this component was requested as the default for this
85717 # type, then abort.
85718 if test "$with_sds" = "seed" ; then
85719 { echo "$as_me:$LINENO: WARNING: MCA component \"seed\" failed to configure properly" >&5
85720 echo "$as_me: WARNING: MCA component \"seed\" failed to configure properly" >&2;}
85721 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
85722 echo "$as_me: WARNING: This component was selected as the default" >&2;}
85723 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
85724 echo "$as_me: error: Cannot continue" >&2;}
85725 { (exit 1); exit 1; }; }
85726 exit 1
85729 if test ! -z "$DIRECT_sds" ; then
85730 if test "$DIRECT_sds" = "seed" ; then
85731 { echo "$as_me:$LINENO: WARNING: MCA component \"seed\" failed to configure properly" >&5
85732 echo "$as_me: WARNING: MCA component \"seed\" failed to configure properly" >&2;}
85733 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
85734 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
85735 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
85736 echo "$as_me: error: Cannot continue" >&2;}
85737 { (exit 1); exit 1; }; }
85738 exit 1
85742 # add component to all component list
85743 all_components="$all_components seed"
85746 # set the AM_CONDITIONAL on how we should build
85747 if test "$compile_mode" = "dso" ; then
85748 BUILD_sds_seed_DSO=1
85749 else
85750 BUILD_sds_seed_DSO=0
85754 if test "$BUILD_sds_seed_DSO" = "1"; then
85755 OMPI_BUILD_sds_seed_DSO_TRUE=
85756 OMPI_BUILD_sds_seed_DSO_FALSE='#'
85757 else
85758 OMPI_BUILD_sds_seed_DSO_TRUE='#'
85759 OMPI_BUILD_sds_seed_DSO_FALSE=
85763 unset compile_mode
85765 ompi_show_subsubsubtitle "MCA component sds:singleton (no configuration)"
85768 project=orte
85769 framework=sds
85770 component=singleton
85771 component_path="$srcdir/$project/mca/$framework/$component"
85772 want_component=0
85774 # build if:
85775 # - the component type is direct and we are that component
85776 # - there is no ompi_ignore file
85777 # - there is an ompi_ignore, but there is an empty ompi_unignore
85778 # - there is an ompi_ignore, but username is in ompi_unignore
85779 if test -d $component_path ; then
85780 # decide if we want the component to be built or not. This
85781 # is spread out because some of the logic is a little complex
85782 # and test's syntax isn't exactly the greatest. We want to
85783 # build the component by default.
85784 want_component=1
85785 if test -f $component_path/.ompi_ignore ; then
85786 # If there is an ompi_ignore file, don't build
85787 # the component. Note that this decision can be
85788 # overriden by the unignore logic below.
85789 want_component=0
85791 if test -f $component_path/.ompi_unignore ; then
85792 # if there is an empty ompi_unignore, that is
85793 # equivalent to having your userid in the unignore file.
85794 # If userid is in the file, unignore the ignore file.
85795 if test ! -s $component_path/.ompi_unignore ; then
85796 want_component=1
85797 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
85798 want_component=1
85801 # if this component type is direct and we are not it, we don't want
85802 # to be built. Otherwise, we do want to be built.
85803 if test ! -z "$DIRECT_sds" ; then
85804 if test "$DIRECT_sds" = "$component" ; then
85805 want_component=1
85806 else
85807 want_component=0
85812 # if we were explicitly disabled, don't build :)
85813 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
85814 eval $str
85815 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
85816 want_component=0
85819 if test "$want_component" = "1"; then
85820 should_build=$components_looking_for_succeed
85821 else
85822 should_build=0
85827 project=orte
85828 framework=sds
85829 component=singleton
85831 # Is this component going to built staic or shared? $component
85832 # might not be known until configure time, so have to use eval
85833 # tricks - can't set variable names at autogen time.
85834 str="SHARED_FRAMEWORK=\$DSO_$framework"
85835 eval $str
85836 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
85837 eval $str
85839 str="STATIC_FRAMEWORK=\$STATIC_$framework"
85840 eval $str
85841 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
85842 eval $str
85844 shared_mode_override=static
85846 # Setup for either shared or static
85847 if test "$STATIC_FRAMEWORK" = "1" -o \
85848 "$STATIC_COMPONENT" = "1" -o \
85849 "$STATIC_all" = "1" ; then
85850 compile_mode="static"
85851 elif test "$shared_mode_override" = "dso" -o \
85852 "$SHARED_FRAMEWORK" = "1" -o \
85853 "$SHARED_COMPONENT" = "1" -o \
85854 "$DSO_all" = "1"; then
85855 compile_mode="dso"
85856 else
85857 compile_mode="static"
85860 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
85861 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
85862 if test "$DIRECT_sds" = "$component" ; then
85863 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
85864 echo "${ECHO_T}$compile_mode - direct" >&6; }
85865 else
85866 { echo "$as_me:$LINENO: result: $compile_mode" >&5
85867 echo "${ECHO_T}$compile_mode" >&6; }
85871 if test "$should_build" = "1" ; then
85873 project=orte
85874 framework=sds
85875 component=singleton
85877 # See if it dropped an output file for us to pick up some
85878 # shell variables in.
85879 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
85881 # Add this subdir to the mast list of all MCA component subdirs
85882 all_components="$all_components $component"
85884 if test "$compile_mode" = "dso" ; then
85885 dso_components="$dso_components $component"
85886 else
85887 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
85888 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
85889 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
85890 static_components="$static_components $component"
85893 # Output pretty results
85894 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
85895 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
85896 { echo "$as_me:$LINENO: result: yes" >&5
85897 echo "${ECHO_T}yes" >&6; }
85899 # If there's an output file, add the values to
85900 # scope_EXTRA_flags.
85901 if test -f $infile; then
85903 # First check for the ABORT tag
85904 line="`grep ABORT= $infile | cut -d= -f2-`"
85905 if test -n "$line" -a "$line" != "no"; then
85906 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
85907 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
85908 { { echo "$as_me:$LINENO: error: cannot continue" >&5
85909 echo "$as_me: error: cannot continue" >&2;}
85910 { (exit 1); exit 1; }; }
85913 # Check for flags passed up from the component. If we're
85914 # compiling statically, then take all flags passed up from the
85915 # component.
85916 if test "$compile_mode" = "static"; then
85917 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
85918 eval "line=$line"
85919 if test -n "$line"; then
85920 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
85922 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
85923 eval "line=$line"
85924 if test -n "$line"; then
85925 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
85929 if test "$DIRECT_sds" = "$component" ; then
85930 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
85931 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
85932 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
85933 eval $str
85934 else
85935 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
85936 *** does not appear to support direct calling.
85937 *** Aborting" >&5
85938 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
85939 *** does not appear to support direct calling.
85940 *** Aborting" >&2;}
85941 { (exit 1); exit 1; }; }
85944 else
85945 # were we supposed to have found something in the
85946 # post_configure.sh, but the file didn't exist?
85947 if test "$DIRECT_sds" = "$component" ; then
85948 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
85949 *** does not appear to support direct calling.
85950 *** Aborting" >&5
85951 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
85952 *** does not appear to support direct calling.
85953 *** Aborting" >&2;}
85954 { (exit 1); exit 1; }; }
85958 # now add the flags that were set in the environment variables
85959 # framework_component_FOO (for example, the flags set by
85960 # m4_configure components)
85962 # Check for flags passed up from the component. If we're
85963 # compiling statically, then take all flags passed up from the
85964 # component.
85965 if test "$compile_mode" = "static"; then
85966 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
85967 eval "$str"
85968 if test -n "$line" ; then
85969 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
85971 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
85972 eval "$str"
85973 if test -n "$line" ; then
85974 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
85978 else
85980 { echo "$as_me:$LINENO: checking if MCA component sds:singleton can compile" >&5
85981 echo $ECHO_N "checking if MCA component sds:singleton can compile... $ECHO_C" >&6; }
85982 { echo "$as_me:$LINENO: result: no" >&5
85983 echo "${ECHO_T}no" >&6; }
85985 # If this component was requested as the default for this
85986 # type, then abort.
85987 if test "$with_sds" = "singleton" ; then
85988 { echo "$as_me:$LINENO: WARNING: MCA component \"singleton\" failed to configure properly" >&5
85989 echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;}
85990 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
85991 echo "$as_me: WARNING: This component was selected as the default" >&2;}
85992 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
85993 echo "$as_me: error: Cannot continue" >&2;}
85994 { (exit 1); exit 1; }; }
85995 exit 1
85998 if test ! -z "$DIRECT_sds" ; then
85999 if test "$DIRECT_sds" = "singleton" ; then
86000 { echo "$as_me:$LINENO: WARNING: MCA component \"singleton\" failed to configure properly" >&5
86001 echo "$as_me: WARNING: MCA component \"singleton\" failed to configure properly" >&2;}
86002 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
86003 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
86004 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
86005 echo "$as_me: error: Cannot continue" >&2;}
86006 { (exit 1); exit 1; }; }
86007 exit 1
86011 # add component to all component list
86012 all_components="$all_components singleton"
86015 # set the AM_CONDITIONAL on how we should build
86016 if test "$compile_mode" = "dso" ; then
86017 BUILD_sds_singleton_DSO=1
86018 else
86019 BUILD_sds_singleton_DSO=0
86023 if test "$BUILD_sds_singleton_DSO" = "1"; then
86024 OMPI_BUILD_sds_singleton_DSO_TRUE=
86025 OMPI_BUILD_sds_singleton_DSO_FALSE='#'
86026 else
86027 OMPI_BUILD_sds_singleton_DSO_TRUE='#'
86028 OMPI_BUILD_sds_singleton_DSO_FALSE=
86032 unset compile_mode
86035 # configure components that use built-in configuration scripts
86036 # see comment in CONFIGURE_PROJECT about the m4_ifval
86037 # if there isn't a component list, abort
86040 ompi_show_subsubsubtitle "MCA component sds:bproc (m4 configuration macro)"
86043 project=orte
86044 framework=sds
86045 component=bproc
86046 component_path="$srcdir/$project/mca/$framework/$component"
86047 want_component=0
86049 # build if:
86050 # - the component type is direct and we are that component
86051 # - there is no ompi_ignore file
86052 # - there is an ompi_ignore, but there is an empty ompi_unignore
86053 # - there is an ompi_ignore, but username is in ompi_unignore
86054 if test -d $component_path ; then
86055 # decide if we want the component to be built or not. This
86056 # is spread out because some of the logic is a little complex
86057 # and test's syntax isn't exactly the greatest. We want to
86058 # build the component by default.
86059 want_component=1
86060 if test -f $component_path/.ompi_ignore ; then
86061 # If there is an ompi_ignore file, don't build
86062 # the component. Note that this decision can be
86063 # overriden by the unignore logic below.
86064 want_component=0
86066 if test -f $component_path/.ompi_unignore ; then
86067 # if there is an empty ompi_unignore, that is
86068 # equivalent to having your userid in the unignore file.
86069 # If userid is in the file, unignore the ignore file.
86070 if test ! -s $component_path/.ompi_unignore ; then
86071 want_component=1
86072 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
86073 want_component=1
86076 # if this component type is direct and we are not it, we don't want
86077 # to be built. Otherwise, we do want to be built.
86078 if test ! -z "$DIRECT_sds" ; then
86079 if test "$DIRECT_sds" = "$component" ; then
86080 want_component=1
86081 else
86082 want_component=0
86087 # if we were explicitly disabled, don't build :)
86088 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
86089 eval $str
86090 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
86091 want_component=0
86094 if test "$want_component" = "1"; then
86095 should_build=$components_looking_for_succeed
86096 else
86097 should_build=0
86101 # Allow the component to override the build mode if it really wants to.
86102 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
86104 project=orte
86105 framework=sds
86106 component=bproc
86108 # Is this component going to built staic or shared? $component
86109 # might not be known until configure time, so have to use eval
86110 # tricks - can't set variable names at autogen time.
86111 str="SHARED_FRAMEWORK=\$DSO_$framework"
86112 eval $str
86113 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
86114 eval $str
86116 str="STATIC_FRAMEWORK=\$STATIC_$framework"
86117 eval $str
86118 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
86119 eval $str
86121 shared_mode_override=static
86123 # Setup for either shared or static
86124 if test "$STATIC_FRAMEWORK" = "1" -o \
86125 "$STATIC_COMPONENT" = "1" -o \
86126 "$STATIC_all" = "1" ; then
86127 compile_mode="static"
86128 elif test "$shared_mode_override" = "dso" -o \
86129 "$SHARED_FRAMEWORK" = "1" -o \
86130 "$SHARED_COMPONENT" = "1" -o \
86131 "$DSO_all" = "1"; then
86132 compile_mode="dso"
86133 else
86134 compile_mode="static"
86137 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
86138 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
86139 if test "$DIRECT_sds" = "$component" ; then
86140 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
86141 echo "${ECHO_T}$compile_mode - direct" >&6; }
86142 else
86143 { echo "$as_me:$LINENO: result: $compile_mode" >&5
86144 echo "${ECHO_T}$compile_mode" >&6; }
86148 # try to configure the component. pay no attention to
86149 # --enable-dist, since we'll always have makefiles.
86150 if test "$should_build" = "1"; then
86154 # Check whether --with-bproc was given.
86155 if test "${with_bproc+set}" = set; then
86156 withval=$with_bproc;
86160 if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
86161 sds_bproc_good=0
86162 else
86164 ompi_check_bproc_save_CPPFLAGS="$CPPFLAGS"
86165 ompi_check_bproc_save_LDFLAGS="$LDFLAGS"
86166 ompi_check_bproc_save_LIBS="$LIBS"
86168 if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
86169 CPPFLAGS="$CPPFLAGS -I$with_bproc/include"
86170 LDFLAGS="$LDFLAGS -L$with_bproc/lib"
86174 for ac_header in sys/bproc.h
86176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
86177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
86178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
86179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
86180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
86181 echo $ECHO_N "(cached) $ECHO_C" >&6
86183 ac_res=`eval echo '${'$as_ac_Header'}'`
86184 { echo "$as_me:$LINENO: result: $ac_res" >&5
86185 echo "${ECHO_T}$ac_res" >&6; }
86186 else
86187 # Is the header compilable?
86188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
86189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
86190 cat >conftest.$ac_ext <<_ACEOF
86191 /* confdefs.h. */
86192 _ACEOF
86193 cat confdefs.h >>conftest.$ac_ext
86194 cat >>conftest.$ac_ext <<_ACEOF
86195 /* end confdefs.h. */
86196 $ac_includes_default
86197 #include <$ac_header>
86198 _ACEOF
86199 rm -f conftest.$ac_objext
86200 if { (ac_try="$ac_compile"
86201 case "(($ac_try" in
86202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
86203 *) ac_try_echo=$ac_try;;
86204 esac
86205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
86206 (eval "$ac_compile") 2>conftest.er1
86207 ac_status=$?
86208 grep -v '^ *+' conftest.er1 >conftest.err
86209 rm -f conftest.er1
86210 cat conftest.err >&5
86211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86212 (exit $ac_status); } && {
86213 test -z "$ac_c_werror_flag" ||
86214 test ! -s conftest.err
86215 } && test -s conftest.$ac_objext; then
86216 ac_header_compiler=yes
86217 else
86218 echo "$as_me: failed program was:" >&5
86219 sed 's/^/| /' conftest.$ac_ext >&5
86221 ac_header_compiler=no
86224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
86226 echo "${ECHO_T}$ac_header_compiler" >&6; }
86228 # Is the header present?
86229 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
86230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
86231 cat >conftest.$ac_ext <<_ACEOF
86232 /* confdefs.h. */
86233 _ACEOF
86234 cat confdefs.h >>conftest.$ac_ext
86235 cat >>conftest.$ac_ext <<_ACEOF
86236 /* end confdefs.h. */
86237 #include <$ac_header>
86238 _ACEOF
86239 if { (ac_try="$ac_cpp conftest.$ac_ext"
86240 case "(($ac_try" in
86241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
86242 *) ac_try_echo=$ac_try;;
86243 esac
86244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
86245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
86246 ac_status=$?
86247 grep -v '^ *+' conftest.er1 >conftest.err
86248 rm -f conftest.er1
86249 cat conftest.err >&5
86250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86251 (exit $ac_status); } >/dev/null && {
86252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
86253 test ! -s conftest.err
86254 }; then
86255 ac_header_preproc=yes
86256 else
86257 echo "$as_me: failed program was:" >&5
86258 sed 's/^/| /' conftest.$ac_ext >&5
86260 ac_header_preproc=no
86263 rm -f conftest.err conftest.$ac_ext
86264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
86265 echo "${ECHO_T}$ac_header_preproc" >&6; }
86267 # So? What about this header?
86268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
86269 yes:no: )
86270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
86271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
86272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
86273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
86274 ac_header_preproc=yes
86276 no:yes:* )
86277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
86278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
86279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
86280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
86281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
86282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
86283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
86284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
86285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
86286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
86287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
86288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
86289 ( cat <<\_ASBOX
86290 ## ------------------------------------------------------ ##
86291 ## Report this to http://www.open-mpi.org/community/help/ ##
86292 ## ------------------------------------------------------ ##
86293 _ASBOX
86294 ) | sed "s/^/$as_me: WARNING: /" >&2
86296 esac
86297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
86298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
86299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
86300 echo $ECHO_N "(cached) $ECHO_C" >&6
86301 else
86302 eval "$as_ac_Header=\$ac_header_preproc"
86304 ac_res=`eval echo '${'$as_ac_Header'}'`
86305 { echo "$as_me:$LINENO: result: $ac_res" >&5
86306 echo "${ECHO_T}$ac_res" >&6; }
86309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
86310 cat >>confdefs.h <<_ACEOF
86311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
86312 _ACEOF
86313 { echo "$as_me:$LINENO: checking for bproc_numnodes in -lbproc" >&5
86314 echo $ECHO_N "checking for bproc_numnodes in -lbproc... $ECHO_C" >&6; }
86315 if test "${ac_cv_lib_bproc_bproc_numnodes+set}" = set; then
86316 echo $ECHO_N "(cached) $ECHO_C" >&6
86317 else
86318 ac_check_lib_save_LIBS=$LIBS
86319 LIBS="-lbproc $LIBS"
86320 cat >conftest.$ac_ext <<_ACEOF
86321 /* confdefs.h. */
86322 _ACEOF
86323 cat confdefs.h >>conftest.$ac_ext
86324 cat >>conftest.$ac_ext <<_ACEOF
86325 /* end confdefs.h. */
86327 /* Override any GCC internal prototype to avoid an error.
86328 Use char because int might match the return type of a GCC
86329 builtin and then its argument prototype would still apply. */
86330 #ifdef __cplusplus
86331 extern "C"
86332 #endif
86333 char bproc_numnodes ();
86335 main ()
86337 return bproc_numnodes ();
86339 return 0;
86341 _ACEOF
86342 rm -f conftest.$ac_objext conftest$ac_exeext
86343 if { (ac_try="$ac_link"
86344 case "(($ac_try" in
86345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
86346 *) ac_try_echo=$ac_try;;
86347 esac
86348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
86349 (eval "$ac_link") 2>conftest.er1
86350 ac_status=$?
86351 grep -v '^ *+' conftest.er1 >conftest.err
86352 rm -f conftest.er1
86353 cat conftest.err >&5
86354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86355 (exit $ac_status); } && {
86356 test -z "$ac_c_werror_flag" ||
86357 test ! -s conftest.err
86358 } && test -s conftest$ac_exeext &&
86359 $as_test_x conftest$ac_exeext; then
86360 ac_cv_lib_bproc_bproc_numnodes=yes
86361 else
86362 echo "$as_me: failed program was:" >&5
86363 sed 's/^/| /' conftest.$ac_ext >&5
86365 ac_cv_lib_bproc_bproc_numnodes=no
86368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
86369 conftest$ac_exeext conftest.$ac_ext
86370 LIBS=$ac_check_lib_save_LIBS
86372 { echo "$as_me:$LINENO: result: $ac_cv_lib_bproc_bproc_numnodes" >&5
86373 echo "${ECHO_T}$ac_cv_lib_bproc_bproc_numnodes" >&6; }
86374 if test $ac_cv_lib_bproc_bproc_numnodes = yes; then
86375 ompi_check_bproc_happy="yes"
86376 else
86377 ompi_check_bproc_happy="no"
86380 else
86381 ompi_check_bproc_happy="no"
86384 done
86387 # Check for Scyld bproc or an old version of LANL Bproc (pre 3.2.0)
86388 if test "$ompi_check_bproc_happy" = "yes"; then
86390 for ac_header in sys/bproc_common.h
86392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
86393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
86394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
86395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
86396 echo $ECHO_N "(cached) $ECHO_C" >&6
86397 else
86398 cat >conftest.$ac_ext <<_ACEOF
86399 /* confdefs.h. */
86400 _ACEOF
86401 cat confdefs.h >>conftest.$ac_ext
86402 cat >>conftest.$ac_ext <<_ACEOF
86403 /* end confdefs.h. */
86404 #include <stdint.h>
86405 #include <sys/socket.h>
86407 #include <$ac_header>
86408 _ACEOF
86409 rm -f conftest.$ac_objext
86410 if { (ac_try="$ac_compile"
86411 case "(($ac_try" in
86412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
86413 *) ac_try_echo=$ac_try;;
86414 esac
86415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
86416 (eval "$ac_compile") 2>conftest.er1
86417 ac_status=$?
86418 grep -v '^ *+' conftest.er1 >conftest.err
86419 rm -f conftest.er1
86420 cat conftest.err >&5
86421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86422 (exit $ac_status); } && {
86423 test -z "$ac_c_werror_flag" ||
86424 test ! -s conftest.err
86425 } && test -s conftest.$ac_objext; then
86426 eval "$as_ac_Header=yes"
86427 else
86428 echo "$as_me: failed program was:" >&5
86429 sed 's/^/| /' conftest.$ac_ext >&5
86431 eval "$as_ac_Header=no"
86434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86436 ac_res=`eval echo '${'$as_ac_Header'}'`
86437 { echo "$as_me:$LINENO: result: $ac_res" >&5
86438 echo "${ECHO_T}$ac_res" >&6; }
86439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
86440 cat >>confdefs.h <<_ACEOF
86441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
86442 _ACEOF
86443 ompi_check_bproc_happy="new"
86444 else
86445 ompi_check_bproc_happy="old"
86448 done
86453 CPPFLAGS="$ompi_check_bproc_save_CPPFLAGS"
86454 LDFLAGS="$ompi_check_bproc_save_LDFLAGS"
86455 LIBS="$ompi_check_bproc_save_LIBS"
86457 if test "$ompi_check_bproc_happy" != "no"; then
86458 if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
86459 sds_bproc_CPPFLAGS="$sds_bproc_CPPFLAGS -I$with_bproc/include"
86460 sds_bproc_LDFLAGS="$sds_bproc_LDFLAGS -L$with_bproc/lib"
86463 sds_bproc_LIBS="$sds_bproc_LIBS -lbproc"
86464 if test "$ompi_check_bproc_happy" = "new"; then
86465 sds_bproc_good=1
86466 else
86467 sds_bproc_good=1
86470 else
86471 if test ! -z "$with_bproc"; then
86472 { { echo "$as_me:$LINENO: error: BProc support request but not found. Perhaps
86473 you need to specify the location of the BProc libraries." >&5
86474 echo "$as_me: error: BProc support request but not found. Perhaps
86475 you need to specify the location of the BProc libraries." >&2;}
86476 { (exit 1); exit 1; }; }
86479 sds_bproc_good=0
86486 # if check worked, set wrapper flags if so.
86487 # Evaluate succeed / fail
86488 if test "$sds_bproc_good" = "1"; then
86489 sds_bproc_WRAPPER_EXTRA_LDFLAGS="$sds_bproc_LDFLAGS"
86490 sds_bproc_WRAPPER_EXTRA_LIBS="$sds_bproc_LIBS"
86491 should_build=1
86492 else
86493 should_build=0
86496 # set build flags to use in makefile
86504 if test "$should_build" = "1"; then
86506 project=orte
86507 framework=sds
86508 component=bproc
86510 # See if it dropped an output file for us to pick up some
86511 # shell variables in.
86512 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
86514 # Add this subdir to the mast list of all MCA component subdirs
86515 all_components="$all_components $component"
86517 if test "$compile_mode" = "dso" ; then
86518 dso_components="$dso_components $component"
86519 else
86520 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
86521 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
86522 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
86523 static_components="$static_components $component"
86526 # Output pretty results
86527 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
86528 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
86529 { echo "$as_me:$LINENO: result: yes" >&5
86530 echo "${ECHO_T}yes" >&6; }
86532 # If there's an output file, add the values to
86533 # scope_EXTRA_flags.
86534 if test -f $infile; then
86536 # First check for the ABORT tag
86537 line="`grep ABORT= $infile | cut -d= -f2-`"
86538 if test -n "$line" -a "$line" != "no"; then
86539 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
86540 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
86541 { { echo "$as_me:$LINENO: error: cannot continue" >&5
86542 echo "$as_me: error: cannot continue" >&2;}
86543 { (exit 1); exit 1; }; }
86546 # Check for flags passed up from the component. If we're
86547 # compiling statically, then take all flags passed up from the
86548 # component.
86549 if test "$compile_mode" = "static"; then
86550 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
86551 eval "line=$line"
86552 if test -n "$line"; then
86553 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
86555 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
86556 eval "line=$line"
86557 if test -n "$line"; then
86558 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
86562 if test "$DIRECT_sds" = "$component" ; then
86563 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
86564 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
86565 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
86566 eval $str
86567 else
86568 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
86569 *** does not appear to support direct calling.
86570 *** Aborting" >&5
86571 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
86572 *** does not appear to support direct calling.
86573 *** Aborting" >&2;}
86574 { (exit 1); exit 1; }; }
86577 else
86578 # were we supposed to have found something in the
86579 # post_configure.sh, but the file didn't exist?
86580 if test "$DIRECT_sds" = "$component" ; then
86581 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
86582 *** does not appear to support direct calling.
86583 *** Aborting" >&5
86584 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
86585 *** does not appear to support direct calling.
86586 *** Aborting" >&2;}
86587 { (exit 1); exit 1; }; }
86591 # now add the flags that were set in the environment variables
86592 # framework_component_FOO (for example, the flags set by
86593 # m4_configure components)
86595 # Check for flags passed up from the component. If we're
86596 # compiling statically, then take all flags passed up from the
86597 # component.
86598 if test "$compile_mode" = "static"; then
86599 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
86600 eval "$str"
86601 if test -n "$line" ; then
86602 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
86604 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
86605 eval "$str"
86606 if test -n "$line" ; then
86607 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
86611 else
86613 { echo "$as_me:$LINENO: checking if MCA component sds:bproc can compile" >&5
86614 echo $ECHO_N "checking if MCA component sds:bproc can compile... $ECHO_C" >&6; }
86615 { echo "$as_me:$LINENO: result: no" >&5
86616 echo "${ECHO_T}no" >&6; }
86618 # If this component was requested as the default for this
86619 # type, then abort.
86620 if test "$with_sds" = "bproc" ; then
86621 { echo "$as_me:$LINENO: WARNING: MCA component \"bproc\" failed to configure properly" >&5
86622 echo "$as_me: WARNING: MCA component \"bproc\" failed to configure properly" >&2;}
86623 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
86624 echo "$as_me: WARNING: This component was selected as the default" >&2;}
86625 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
86626 echo "$as_me: error: Cannot continue" >&2;}
86627 { (exit 1); exit 1; }; }
86628 exit 1
86631 if test ! -z "$DIRECT_sds" ; then
86632 if test "$DIRECT_sds" = "bproc" ; then
86633 { echo "$as_me:$LINENO: WARNING: MCA component \"bproc\" failed to configure properly" >&5
86634 echo "$as_me: WARNING: MCA component \"bproc\" failed to configure properly" >&2;}
86635 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
86636 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
86637 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
86638 echo "$as_me: error: Cannot continue" >&2;}
86639 { (exit 1); exit 1; }; }
86640 exit 1
86644 # add component to all component list
86645 all_components="$all_components bproc"
86649 # set the AM_CONDITIONAL on how we should build
86650 if test "$compile_mode" = "dso"; then
86651 BUILD_sds_bproc_DSO=1
86652 else
86653 BUILD_sds_bproc_DSO=0
86658 if test "$BUILD_sds_bproc_DSO" = "1"; then
86659 OMPI_BUILD_sds_bproc_DSO_TRUE=
86660 OMPI_BUILD_sds_bproc_DSO_FALSE='#'
86661 else
86662 OMPI_BUILD_sds_bproc_DSO_TRUE='#'
86663 OMPI_BUILD_sds_bproc_DSO_FALSE=
86667 if test "$should_build" = "1"; then
86668 components_looking_for_succeed="$happy_value"
86672 unset compile_mode
86674 ompi_show_subsubsubtitle "MCA component sds:cnos (m4 configuration macro)"
86677 project=orte
86678 framework=sds
86679 component=cnos
86680 component_path="$srcdir/$project/mca/$framework/$component"
86681 want_component=0
86683 # build if:
86684 # - the component type is direct and we are that component
86685 # - there is no ompi_ignore file
86686 # - there is an ompi_ignore, but there is an empty ompi_unignore
86687 # - there is an ompi_ignore, but username is in ompi_unignore
86688 if test -d $component_path ; then
86689 # decide if we want the component to be built or not. This
86690 # is spread out because some of the logic is a little complex
86691 # and test's syntax isn't exactly the greatest. We want to
86692 # build the component by default.
86693 want_component=1
86694 if test -f $component_path/.ompi_ignore ; then
86695 # If there is an ompi_ignore file, don't build
86696 # the component. Note that this decision can be
86697 # overriden by the unignore logic below.
86698 want_component=0
86700 if test -f $component_path/.ompi_unignore ; then
86701 # if there is an empty ompi_unignore, that is
86702 # equivalent to having your userid in the unignore file.
86703 # If userid is in the file, unignore the ignore file.
86704 if test ! -s $component_path/.ompi_unignore ; then
86705 want_component=1
86706 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
86707 want_component=1
86710 # if this component type is direct and we are not it, we don't want
86711 # to be built. Otherwise, we do want to be built.
86712 if test ! -z "$DIRECT_sds" ; then
86713 if test "$DIRECT_sds" = "$component" ; then
86714 want_component=1
86715 else
86716 want_component=0
86721 # if we were explicitly disabled, don't build :)
86722 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
86723 eval $str
86724 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
86725 want_component=0
86728 if test "$want_component" = "1"; then
86729 should_build=$components_looking_for_succeed
86730 else
86731 should_build=0
86735 # Allow the component to override the build mode if it really wants to.
86736 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
86738 project=orte
86739 framework=sds
86740 component=cnos
86742 # Is this component going to built staic or shared? $component
86743 # might not be known until configure time, so have to use eval
86744 # tricks - can't set variable names at autogen time.
86745 str="SHARED_FRAMEWORK=\$DSO_$framework"
86746 eval $str
86747 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
86748 eval $str
86750 str="STATIC_FRAMEWORK=\$STATIC_$framework"
86751 eval $str
86752 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
86753 eval $str
86755 shared_mode_override=static
86757 # Setup for either shared or static
86758 if test "$STATIC_FRAMEWORK" = "1" -o \
86759 "$STATIC_COMPONENT" = "1" -o \
86760 "$STATIC_all" = "1" ; then
86761 compile_mode="static"
86762 elif test "$shared_mode_override" = "dso" -o \
86763 "$SHARED_FRAMEWORK" = "1" -o \
86764 "$SHARED_COMPONENT" = "1" -o \
86765 "$DSO_all" = "1"; then
86766 compile_mode="dso"
86767 else
86768 compile_mode="static"
86771 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
86772 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
86773 if test "$DIRECT_sds" = "$component" ; then
86774 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
86775 echo "${ECHO_T}$compile_mode - direct" >&6; }
86776 else
86777 { echo "$as_me:$LINENO: result: $compile_mode" >&5
86778 echo "${ECHO_T}$compile_mode" >&6; }
86782 # try to configure the component. pay no attention to
86783 # --enable-dist, since we'll always have makefiles.
86784 if test "$should_build" = "1"; then
86786 # check for cnos functions
86787 { echo "$as_me:$LINENO: checking for cnos_get_rank" >&5
86788 echo $ECHO_N "checking for cnos_get_rank... $ECHO_C" >&6; }
86789 if test "${ac_cv_func_cnos_get_rank+set}" = set; then
86790 echo $ECHO_N "(cached) $ECHO_C" >&6
86791 else
86792 cat >conftest.$ac_ext <<_ACEOF
86793 /* confdefs.h. */
86794 _ACEOF
86795 cat confdefs.h >>conftest.$ac_ext
86796 cat >>conftest.$ac_ext <<_ACEOF
86797 /* end confdefs.h. */
86798 /* Define cnos_get_rank to an innocuous variant, in case <limits.h> declares cnos_get_rank.
86799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
86800 #define cnos_get_rank innocuous_cnos_get_rank
86802 /* System header to define __stub macros and hopefully few prototypes,
86803 which can conflict with char cnos_get_rank (); below.
86804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
86805 <limits.h> exists even on freestanding compilers. */
86807 #ifdef __STDC__
86808 # include <limits.h>
86809 #else
86810 # include <assert.h>
86811 #endif
86813 #undef cnos_get_rank
86815 /* Override any GCC internal prototype to avoid an error.
86816 Use char because int might match the return type of a GCC
86817 builtin and then its argument prototype would still apply. */
86818 #ifdef __cplusplus
86819 extern "C"
86820 #endif
86821 char cnos_get_rank ();
86822 /* The GNU C library defines this for functions which it implements
86823 to always fail with ENOSYS. Some functions are actually named
86824 something starting with __ and the normal name is an alias. */
86825 #if defined __stub_cnos_get_rank || defined __stub___cnos_get_rank
86826 choke me
86827 #endif
86830 main ()
86832 return cnos_get_rank ();
86834 return 0;
86836 _ACEOF
86837 rm -f conftest.$ac_objext conftest$ac_exeext
86838 if { (ac_try="$ac_link"
86839 case "(($ac_try" in
86840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
86841 *) ac_try_echo=$ac_try;;
86842 esac
86843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
86844 (eval "$ac_link") 2>conftest.er1
86845 ac_status=$?
86846 grep -v '^ *+' conftest.er1 >conftest.err
86847 rm -f conftest.er1
86848 cat conftest.err >&5
86849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86850 (exit $ac_status); } && {
86851 test -z "$ac_c_werror_flag" ||
86852 test ! -s conftest.err
86853 } && test -s conftest$ac_exeext &&
86854 $as_test_x conftest$ac_exeext; then
86855 ac_cv_func_cnos_get_rank=yes
86856 else
86857 echo "$as_me: failed program was:" >&5
86858 sed 's/^/| /' conftest.$ac_ext >&5
86860 ac_cv_func_cnos_get_rank=no
86863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
86864 conftest$ac_exeext conftest.$ac_ext
86866 { echo "$as_me:$LINENO: result: $ac_cv_func_cnos_get_rank" >&5
86867 echo "${ECHO_T}$ac_cv_func_cnos_get_rank" >&6; }
86868 if test $ac_cv_func_cnos_get_rank = yes; then
86869 should_build=1
86870 else
86871 should_build=0
86878 if test "$should_build" = "1"; then
86880 project=orte
86881 framework=sds
86882 component=cnos
86884 # See if it dropped an output file for us to pick up some
86885 # shell variables in.
86886 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
86888 # Add this subdir to the mast list of all MCA component subdirs
86889 all_components="$all_components $component"
86891 if test "$compile_mode" = "dso" ; then
86892 dso_components="$dso_components $component"
86893 else
86894 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
86895 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
86896 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
86897 static_components="$static_components $component"
86900 # Output pretty results
86901 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
86902 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
86903 { echo "$as_me:$LINENO: result: yes" >&5
86904 echo "${ECHO_T}yes" >&6; }
86906 # If there's an output file, add the values to
86907 # scope_EXTRA_flags.
86908 if test -f $infile; then
86910 # First check for the ABORT tag
86911 line="`grep ABORT= $infile | cut -d= -f2-`"
86912 if test -n "$line" -a "$line" != "no"; then
86913 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
86914 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
86915 { { echo "$as_me:$LINENO: error: cannot continue" >&5
86916 echo "$as_me: error: cannot continue" >&2;}
86917 { (exit 1); exit 1; }; }
86920 # Check for flags passed up from the component. If we're
86921 # compiling statically, then take all flags passed up from the
86922 # component.
86923 if test "$compile_mode" = "static"; then
86924 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
86925 eval "line=$line"
86926 if test -n "$line"; then
86927 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
86929 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
86930 eval "line=$line"
86931 if test -n "$line"; then
86932 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
86936 if test "$DIRECT_sds" = "$component" ; then
86937 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
86938 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
86939 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
86940 eval $str
86941 else
86942 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
86943 *** does not appear to support direct calling.
86944 *** Aborting" >&5
86945 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
86946 *** does not appear to support direct calling.
86947 *** Aborting" >&2;}
86948 { (exit 1); exit 1; }; }
86951 else
86952 # were we supposed to have found something in the
86953 # post_configure.sh, but the file didn't exist?
86954 if test "$DIRECT_sds" = "$component" ; then
86955 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
86956 *** does not appear to support direct calling.
86957 *** Aborting" >&5
86958 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
86959 *** does not appear to support direct calling.
86960 *** Aborting" >&2;}
86961 { (exit 1); exit 1; }; }
86965 # now add the flags that were set in the environment variables
86966 # framework_component_FOO (for example, the flags set by
86967 # m4_configure components)
86969 # Check for flags passed up from the component. If we're
86970 # compiling statically, then take all flags passed up from the
86971 # component.
86972 if test "$compile_mode" = "static"; then
86973 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
86974 eval "$str"
86975 if test -n "$line" ; then
86976 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
86978 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
86979 eval "$str"
86980 if test -n "$line" ; then
86981 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
86985 else
86987 { echo "$as_me:$LINENO: checking if MCA component sds:cnos can compile" >&5
86988 echo $ECHO_N "checking if MCA component sds:cnos can compile... $ECHO_C" >&6; }
86989 { echo "$as_me:$LINENO: result: no" >&5
86990 echo "${ECHO_T}no" >&6; }
86992 # If this component was requested as the default for this
86993 # type, then abort.
86994 if test "$with_sds" = "cnos" ; then
86995 { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
86996 echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
86997 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
86998 echo "$as_me: WARNING: This component was selected as the default" >&2;}
86999 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
87000 echo "$as_me: error: Cannot continue" >&2;}
87001 { (exit 1); exit 1; }; }
87002 exit 1
87005 if test ! -z "$DIRECT_sds" ; then
87006 if test "$DIRECT_sds" = "cnos" ; then
87007 { echo "$as_me:$LINENO: WARNING: MCA component \"cnos\" failed to configure properly" >&5
87008 echo "$as_me: WARNING: MCA component \"cnos\" failed to configure properly" >&2;}
87009 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
87010 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
87011 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
87012 echo "$as_me: error: Cannot continue" >&2;}
87013 { (exit 1); exit 1; }; }
87014 exit 1
87018 # add component to all component list
87019 all_components="$all_components cnos"
87023 # set the AM_CONDITIONAL on how we should build
87024 if test "$compile_mode" = "dso"; then
87025 BUILD_sds_cnos_DSO=1
87026 else
87027 BUILD_sds_cnos_DSO=0
87032 if test "$BUILD_sds_cnos_DSO" = "1"; then
87033 OMPI_BUILD_sds_cnos_DSO_TRUE=
87034 OMPI_BUILD_sds_cnos_DSO_FALSE='#'
87035 else
87036 OMPI_BUILD_sds_cnos_DSO_TRUE='#'
87037 OMPI_BUILD_sds_cnos_DSO_FALSE=
87041 if test "$should_build" = "1"; then
87042 components_looking_for_succeed="$happy_value"
87046 unset compile_mode
87048 ompi_show_subsubsubtitle "MCA component sds:pipe (m4 configuration macro)"
87051 project=orte
87052 framework=sds
87053 component=pipe
87054 component_path="$srcdir/$project/mca/$framework/$component"
87055 want_component=0
87057 # build if:
87058 # - the component type is direct and we are that component
87059 # - there is no ompi_ignore file
87060 # - there is an ompi_ignore, but there is an empty ompi_unignore
87061 # - there is an ompi_ignore, but username is in ompi_unignore
87062 if test -d $component_path ; then
87063 # decide if we want the component to be built or not. This
87064 # is spread out because some of the logic is a little complex
87065 # and test's syntax isn't exactly the greatest. We want to
87066 # build the component by default.
87067 want_component=1
87068 if test -f $component_path/.ompi_ignore ; then
87069 # If there is an ompi_ignore file, don't build
87070 # the component. Note that this decision can be
87071 # overriden by the unignore logic below.
87072 want_component=0
87074 if test -f $component_path/.ompi_unignore ; then
87075 # if there is an empty ompi_unignore, that is
87076 # equivalent to having your userid in the unignore file.
87077 # If userid is in the file, unignore the ignore file.
87078 if test ! -s $component_path/.ompi_unignore ; then
87079 want_component=1
87080 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
87081 want_component=1
87084 # if this component type is direct and we are not it, we don't want
87085 # to be built. Otherwise, we do want to be built.
87086 if test ! -z "$DIRECT_sds" ; then
87087 if test "$DIRECT_sds" = "$component" ; then
87088 want_component=1
87089 else
87090 want_component=0
87095 # if we were explicitly disabled, don't build :)
87096 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
87097 eval $str
87098 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
87099 want_component=0
87102 if test "$want_component" = "1"; then
87103 should_build=$components_looking_for_succeed
87104 else
87105 should_build=0
87109 # Allow the component to override the build mode if it really wants to.
87110 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
87112 project=orte
87113 framework=sds
87114 component=pipe
87116 # Is this component going to built staic or shared? $component
87117 # might not be known until configure time, so have to use eval
87118 # tricks - can't set variable names at autogen time.
87119 str="SHARED_FRAMEWORK=\$DSO_$framework"
87120 eval $str
87121 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
87122 eval $str
87124 str="STATIC_FRAMEWORK=\$STATIC_$framework"
87125 eval $str
87126 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
87127 eval $str
87129 shared_mode_override=static
87131 # Setup for either shared or static
87132 if test "$STATIC_FRAMEWORK" = "1" -o \
87133 "$STATIC_COMPONENT" = "1" -o \
87134 "$STATIC_all" = "1" ; then
87135 compile_mode="static"
87136 elif test "$shared_mode_override" = "dso" -o \
87137 "$SHARED_FRAMEWORK" = "1" -o \
87138 "$SHARED_COMPONENT" = "1" -o \
87139 "$DSO_all" = "1"; then
87140 compile_mode="dso"
87141 else
87142 compile_mode="static"
87145 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
87146 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
87147 if test "$DIRECT_sds" = "$component" ; then
87148 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
87149 echo "${ECHO_T}$compile_mode - direct" >&6; }
87150 else
87151 { echo "$as_me:$LINENO: result: $compile_mode" >&5
87152 echo "${ECHO_T}$compile_mode" >&6; }
87156 # try to configure the component. pay no attention to
87157 # --enable-dist, since we'll always have makefiles.
87158 if test "$should_build" = "1"; then
87160 # check for pipe
87161 { echo "$as_me:$LINENO: checking for pipe" >&5
87162 echo $ECHO_N "checking for pipe... $ECHO_C" >&6; }
87163 if test "${ac_cv_func_pipe+set}" = set; then
87164 echo $ECHO_N "(cached) $ECHO_C" >&6
87165 else
87166 cat >conftest.$ac_ext <<_ACEOF
87167 /* confdefs.h. */
87168 _ACEOF
87169 cat confdefs.h >>conftest.$ac_ext
87170 cat >>conftest.$ac_ext <<_ACEOF
87171 /* end confdefs.h. */
87172 /* Define pipe to an innocuous variant, in case <limits.h> declares pipe.
87173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
87174 #define pipe innocuous_pipe
87176 /* System header to define __stub macros and hopefully few prototypes,
87177 which can conflict with char pipe (); below.
87178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
87179 <limits.h> exists even on freestanding compilers. */
87181 #ifdef __STDC__
87182 # include <limits.h>
87183 #else
87184 # include <assert.h>
87185 #endif
87187 #undef pipe
87189 /* Override any GCC internal prototype to avoid an error.
87190 Use char because int might match the return type of a GCC
87191 builtin and then its argument prototype would still apply. */
87192 #ifdef __cplusplus
87193 extern "C"
87194 #endif
87195 char pipe ();
87196 /* The GNU C library defines this for functions which it implements
87197 to always fail with ENOSYS. Some functions are actually named
87198 something starting with __ and the normal name is an alias. */
87199 #if defined __stub_pipe || defined __stub___pipe
87200 choke me
87201 #endif
87204 main ()
87206 return pipe ();
87208 return 0;
87210 _ACEOF
87211 rm -f conftest.$ac_objext conftest$ac_exeext
87212 if { (ac_try="$ac_link"
87213 case "(($ac_try" in
87214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
87215 *) ac_try_echo=$ac_try;;
87216 esac
87217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
87218 (eval "$ac_link") 2>conftest.er1
87219 ac_status=$?
87220 grep -v '^ *+' conftest.er1 >conftest.err
87221 rm -f conftest.er1
87222 cat conftest.err >&5
87223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
87224 (exit $ac_status); } && {
87225 test -z "$ac_c_werror_flag" ||
87226 test ! -s conftest.err
87227 } && test -s conftest$ac_exeext &&
87228 $as_test_x conftest$ac_exeext; then
87229 ac_cv_func_pipe=yes
87230 else
87231 echo "$as_me: failed program was:" >&5
87232 sed 's/^/| /' conftest.$ac_ext >&5
87234 ac_cv_func_pipe=no
87237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
87238 conftest$ac_exeext conftest.$ac_ext
87240 { echo "$as_me:$LINENO: result: $ac_cv_func_pipe" >&5
87241 echo "${ECHO_T}$ac_cv_func_pipe" >&6; }
87242 if test $ac_cv_func_pipe = yes; then
87243 should_build=1
87244 else
87245 should_build=0
87252 if test "$should_build" = "1"; then
87254 project=orte
87255 framework=sds
87256 component=pipe
87258 # See if it dropped an output file for us to pick up some
87259 # shell variables in.
87260 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
87262 # Add this subdir to the mast list of all MCA component subdirs
87263 all_components="$all_components $component"
87265 if test "$compile_mode" = "dso" ; then
87266 dso_components="$dso_components $component"
87267 else
87268 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
87269 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
87270 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
87271 static_components="$static_components $component"
87274 # Output pretty results
87275 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
87276 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
87277 { echo "$as_me:$LINENO: result: yes" >&5
87278 echo "${ECHO_T}yes" >&6; }
87280 # If there's an output file, add the values to
87281 # scope_EXTRA_flags.
87282 if test -f $infile; then
87284 # First check for the ABORT tag
87285 line="`grep ABORT= $infile | cut -d= -f2-`"
87286 if test -n "$line" -a "$line" != "no"; then
87287 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
87288 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
87289 { { echo "$as_me:$LINENO: error: cannot continue" >&5
87290 echo "$as_me: error: cannot continue" >&2;}
87291 { (exit 1); exit 1; }; }
87294 # Check for flags passed up from the component. If we're
87295 # compiling statically, then take all flags passed up from the
87296 # component.
87297 if test "$compile_mode" = "static"; then
87298 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
87299 eval "line=$line"
87300 if test -n "$line"; then
87301 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
87303 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
87304 eval "line=$line"
87305 if test -n "$line"; then
87306 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
87310 if test "$DIRECT_sds" = "$component" ; then
87311 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
87312 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
87313 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
87314 eval $str
87315 else
87316 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
87317 *** does not appear to support direct calling.
87318 *** Aborting" >&5
87319 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
87320 *** does not appear to support direct calling.
87321 *** Aborting" >&2;}
87322 { (exit 1); exit 1; }; }
87325 else
87326 # were we supposed to have found something in the
87327 # post_configure.sh, but the file didn't exist?
87328 if test "$DIRECT_sds" = "$component" ; then
87329 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
87330 *** does not appear to support direct calling.
87331 *** Aborting" >&5
87332 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
87333 *** does not appear to support direct calling.
87334 *** Aborting" >&2;}
87335 { (exit 1); exit 1; }; }
87339 # now add the flags that were set in the environment variables
87340 # framework_component_FOO (for example, the flags set by
87341 # m4_configure components)
87343 # Check for flags passed up from the component. If we're
87344 # compiling statically, then take all flags passed up from the
87345 # component.
87346 if test "$compile_mode" = "static"; then
87347 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
87348 eval "$str"
87349 if test -n "$line" ; then
87350 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
87352 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
87353 eval "$str"
87354 if test -n "$line" ; then
87355 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
87359 else
87361 { echo "$as_me:$LINENO: checking if MCA component sds:pipe can compile" >&5
87362 echo $ECHO_N "checking if MCA component sds:pipe can compile... $ECHO_C" >&6; }
87363 { echo "$as_me:$LINENO: result: no" >&5
87364 echo "${ECHO_T}no" >&6; }
87366 # If this component was requested as the default for this
87367 # type, then abort.
87368 if test "$with_sds" = "pipe" ; then
87369 { echo "$as_me:$LINENO: WARNING: MCA component \"pipe\" failed to configure properly" >&5
87370 echo "$as_me: WARNING: MCA component \"pipe\" failed to configure properly" >&2;}
87371 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
87372 echo "$as_me: WARNING: This component was selected as the default" >&2;}
87373 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
87374 echo "$as_me: error: Cannot continue" >&2;}
87375 { (exit 1); exit 1; }; }
87376 exit 1
87379 if test ! -z "$DIRECT_sds" ; then
87380 if test "$DIRECT_sds" = "pipe" ; then
87381 { echo "$as_me:$LINENO: WARNING: MCA component \"pipe\" failed to configure properly" >&5
87382 echo "$as_me: WARNING: MCA component \"pipe\" failed to configure properly" >&2;}
87383 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
87384 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
87385 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
87386 echo "$as_me: error: Cannot continue" >&2;}
87387 { (exit 1); exit 1; }; }
87388 exit 1
87392 # add component to all component list
87393 all_components="$all_components pipe"
87397 # set the AM_CONDITIONAL on how we should build
87398 if test "$compile_mode" = "dso"; then
87399 BUILD_sds_pipe_DSO=1
87400 else
87401 BUILD_sds_pipe_DSO=0
87406 if test "$BUILD_sds_pipe_DSO" = "1"; then
87407 OMPI_BUILD_sds_pipe_DSO_TRUE=
87408 OMPI_BUILD_sds_pipe_DSO_FALSE='#'
87409 else
87410 OMPI_BUILD_sds_pipe_DSO_TRUE='#'
87411 OMPI_BUILD_sds_pipe_DSO_FALSE=
87415 if test "$should_build" = "1"; then
87416 components_looking_for_succeed="$happy_value"
87420 unset compile_mode
87422 ompi_show_subsubsubtitle "MCA component sds:portals_utcp (m4 configuration macro)"
87425 project=orte
87426 framework=sds
87427 component=portals_utcp
87428 component_path="$srcdir/$project/mca/$framework/$component"
87429 want_component=0
87431 # build if:
87432 # - the component type is direct and we are that component
87433 # - there is no ompi_ignore file
87434 # - there is an ompi_ignore, but there is an empty ompi_unignore
87435 # - there is an ompi_ignore, but username is in ompi_unignore
87436 if test -d $component_path ; then
87437 # decide if we want the component to be built or not. This
87438 # is spread out because some of the logic is a little complex
87439 # and test's syntax isn't exactly the greatest. We want to
87440 # build the component by default.
87441 want_component=1
87442 if test -f $component_path/.ompi_ignore ; then
87443 # If there is an ompi_ignore file, don't build
87444 # the component. Note that this decision can be
87445 # overriden by the unignore logic below.
87446 want_component=0
87448 if test -f $component_path/.ompi_unignore ; then
87449 # if there is an empty ompi_unignore, that is
87450 # equivalent to having your userid in the unignore file.
87451 # If userid is in the file, unignore the ignore file.
87452 if test ! -s $component_path/.ompi_unignore ; then
87453 want_component=1
87454 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
87455 want_component=1
87458 # if this component type is direct and we are not it, we don't want
87459 # to be built. Otherwise, we do want to be built.
87460 if test ! -z "$DIRECT_sds" ; then
87461 if test "$DIRECT_sds" = "$component" ; then
87462 want_component=1
87463 else
87464 want_component=0
87469 # if we were explicitly disabled, don't build :)
87470 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
87471 eval $str
87472 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
87473 want_component=0
87476 if test "$want_component" = "1"; then
87477 should_build=$components_looking_for_succeed
87478 else
87479 should_build=0
87483 # Allow the component to override the build mode if it really wants to.
87484 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
87486 project=orte
87487 framework=sds
87488 component=portals_utcp
87490 # Is this component going to built staic or shared? $component
87491 # might not be known until configure time, so have to use eval
87492 # tricks - can't set variable names at autogen time.
87493 str="SHARED_FRAMEWORK=\$DSO_$framework"
87494 eval $str
87495 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
87496 eval $str
87498 str="STATIC_FRAMEWORK=\$STATIC_$framework"
87499 eval $str
87500 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
87501 eval $str
87503 shared_mode_override=static
87505 # Setup for either shared or static
87506 if test "$STATIC_FRAMEWORK" = "1" -o \
87507 "$STATIC_COMPONENT" = "1" -o \
87508 "$STATIC_all" = "1" ; then
87509 compile_mode="static"
87510 elif test "$shared_mode_override" = "dso" -o \
87511 "$SHARED_FRAMEWORK" = "1" -o \
87512 "$SHARED_COMPONENT" = "1" -o \
87513 "$DSO_all" = "1"; then
87514 compile_mode="dso"
87515 else
87516 compile_mode="static"
87519 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
87520 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
87521 if test "$DIRECT_sds" = "$component" ; then
87522 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
87523 echo "${ECHO_T}$compile_mode - direct" >&6; }
87524 else
87525 { echo "$as_me:$LINENO: result: $compile_mode" >&5
87526 echo "${ECHO_T}$compile_mode" >&6; }
87530 # try to configure the component. pay no attention to
87531 # --enable-dist, since we'll always have makefiles.
87532 if test "$should_build" = "1"; then
87534 # save compiler flags so that we don't alter them for later
87535 # components.
87536 sds_portals_utcp_save_CPPFLAGS="$CPPFLAGS"
87537 sds_portals_utcp_save_LDFLAGS="$LDFLAGS"
87538 sds_portals_utcp_save_LIBS="$LIBS"
87540 # allow user a way to say where the Portals installation is
87542 # Check whether --with-portals was given.
87543 if test "${with_portals+set}" = set; then
87544 withval=$with_portals;
87548 if test -n "$with_portals"; then
87549 if test -d "$with_portals/include"; then
87550 sds_portals_utcp_CPPFLAGS="-I$with_portals/include"
87551 CPPFLAGS="$CPPFLAGS $sds_portals_utcp_CPPFLAGS"
87554 if test -d "$with_portals/lib"; then
87555 sds_portals_utcp_LDFLAGS="-L$with_portals/lib"
87556 LDFLAGS="$LDFLAGS $sds_portals_utcp_LDFLAGS"
87562 # Try to find all the portals libraries (this is not fun!)
87564 # Check whether --with-portals-libs was given.
87565 if test "${with_portals_libs+set}" = set; then
87566 withval=$with_portals_libs;
87569 if test -n "$with_portals_libs" ; then
87570 sds_portals_utcp_LIBS=""
87571 for lib in $with_portals_libs ; do
87572 sds_portals_utcp_LIBS="$sds_portals_utcp_LIBS -l$lib"
87573 done
87576 sds_portals_utcp_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp"
87578 # check for portals
87579 LIBS="$LIBS $sds_portals_utcp_LIBS"
87580 { echo "$as_me:$LINENO: checking for PtlGetRank" >&5
87581 echo $ECHO_N "checking for PtlGetRank... $ECHO_C" >&6; }
87582 cat >conftest.$ac_ext <<_ACEOF
87583 /* confdefs.h. */
87584 _ACEOF
87585 cat confdefs.h >>conftest.$ac_ext
87586 cat >>conftest.$ac_ext <<_ACEOF
87587 /* end confdefs.h. */
87588 #include <portals3.h>
87589 #include <stdio.h>
87590 #include <p3nal_utcp.h>
87591 #include <p3rt/p3rt.h>
87592 #include <p3api/debug.h>
87593 FILE *utcp_api_out;
87594 FILE *utcp_lib_out;
87596 main ()
87598 unsigned int nprocs, rank;
87599 int dummy;
87600 PtlInit(&dummy);
87601 PtlNIInit(PTL_IFACE_DEFAULT, PTL_PID_ANY, NULL, NULL, NULL);
87602 PtlGetRank(PTL_INVALID_HANDLE, &rank, &nprocs);
87604 return 0;
87606 _ACEOF
87607 rm -f conftest.$ac_objext conftest$ac_exeext
87608 if { (ac_try="$ac_link"
87609 case "(($ac_try" in
87610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
87611 *) ac_try_echo=$ac_try;;
87612 esac
87613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
87614 (eval "$ac_link") 2>conftest.er1
87615 ac_status=$?
87616 grep -v '^ *+' conftest.er1 >conftest.err
87617 rm -f conftest.er1
87618 cat conftest.err >&5
87619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
87620 (exit $ac_status); } && {
87621 test -z "$ac_c_werror_flag" ||
87622 test ! -s conftest.err
87623 } && test -s conftest$ac_exeext &&
87624 $as_test_x conftest$ac_exeext; then
87625 { echo "$as_me:$LINENO: result: yes" >&5
87626 echo "${ECHO_T}yes" >&6; }
87627 should_build=1
87628 else
87629 echo "$as_me: failed program was:" >&5
87630 sed 's/^/| /' conftest.$ac_ext >&5
87632 { echo "$as_me:$LINENO: result: no" >&5
87633 echo "${ECHO_T}no" >&6; }
87634 should_build=0
87637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
87638 conftest$ac_exeext conftest.$ac_ext
87640 # substitute in the things needed to build Portals
87645 # reset the flags for the next test
87646 CPPFLAGS="$sds_portals_utcp_save_CPPFLAGS"
87647 LDFLAGS="$sds_portals_utcp_save_LDFLAGS"
87648 LIBS="$sds_portals_utcp_save_LIBS"
87653 if test "$should_build" = "1"; then
87655 project=orte
87656 framework=sds
87657 component=portals_utcp
87659 # See if it dropped an output file for us to pick up some
87660 # shell variables in.
87661 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
87663 # Add this subdir to the mast list of all MCA component subdirs
87664 all_components="$all_components $component"
87666 if test "$compile_mode" = "dso" ; then
87667 dso_components="$dso_components $component"
87668 else
87669 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
87670 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
87671 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
87672 static_components="$static_components $component"
87675 # Output pretty results
87676 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
87677 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
87678 { echo "$as_me:$LINENO: result: yes" >&5
87679 echo "${ECHO_T}yes" >&6; }
87681 # If there's an output file, add the values to
87682 # scope_EXTRA_flags.
87683 if test -f $infile; then
87685 # First check for the ABORT tag
87686 line="`grep ABORT= $infile | cut -d= -f2-`"
87687 if test -n "$line" -a "$line" != "no"; then
87688 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
87689 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
87690 { { echo "$as_me:$LINENO: error: cannot continue" >&5
87691 echo "$as_me: error: cannot continue" >&2;}
87692 { (exit 1); exit 1; }; }
87695 # Check for flags passed up from the component. If we're
87696 # compiling statically, then take all flags passed up from the
87697 # component.
87698 if test "$compile_mode" = "static"; then
87699 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
87700 eval "line=$line"
87701 if test -n "$line"; then
87702 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
87704 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
87705 eval "line=$line"
87706 if test -n "$line"; then
87707 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
87711 if test "$DIRECT_sds" = "$component" ; then
87712 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
87713 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
87714 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
87715 eval $str
87716 else
87717 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
87718 *** does not appear to support direct calling.
87719 *** Aborting" >&5
87720 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
87721 *** does not appear to support direct calling.
87722 *** Aborting" >&2;}
87723 { (exit 1); exit 1; }; }
87726 else
87727 # were we supposed to have found something in the
87728 # post_configure.sh, but the file didn't exist?
87729 if test "$DIRECT_sds" = "$component" ; then
87730 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
87731 *** does not appear to support direct calling.
87732 *** Aborting" >&5
87733 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
87734 *** does not appear to support direct calling.
87735 *** Aborting" >&2;}
87736 { (exit 1); exit 1; }; }
87740 # now add the flags that were set in the environment variables
87741 # framework_component_FOO (for example, the flags set by
87742 # m4_configure components)
87744 # Check for flags passed up from the component. If we're
87745 # compiling statically, then take all flags passed up from the
87746 # component.
87747 if test "$compile_mode" = "static"; then
87748 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
87749 eval "$str"
87750 if test -n "$line" ; then
87751 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
87753 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
87754 eval "$str"
87755 if test -n "$line" ; then
87756 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
87760 else
87762 { echo "$as_me:$LINENO: checking if MCA component sds:portals_utcp can compile" >&5
87763 echo $ECHO_N "checking if MCA component sds:portals_utcp can compile... $ECHO_C" >&6; }
87764 { echo "$as_me:$LINENO: result: no" >&5
87765 echo "${ECHO_T}no" >&6; }
87767 # If this component was requested as the default for this
87768 # type, then abort.
87769 if test "$with_sds" = "portals_utcp" ; then
87770 { echo "$as_me:$LINENO: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&5
87771 echo "$as_me: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&2;}
87772 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
87773 echo "$as_me: WARNING: This component was selected as the default" >&2;}
87774 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
87775 echo "$as_me: error: Cannot continue" >&2;}
87776 { (exit 1); exit 1; }; }
87777 exit 1
87780 if test ! -z "$DIRECT_sds" ; then
87781 if test "$DIRECT_sds" = "portals_utcp" ; then
87782 { echo "$as_me:$LINENO: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&5
87783 echo "$as_me: WARNING: MCA component \"portals_utcp\" failed to configure properly" >&2;}
87784 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
87785 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
87786 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
87787 echo "$as_me: error: Cannot continue" >&2;}
87788 { (exit 1); exit 1; }; }
87789 exit 1
87793 # add component to all component list
87794 all_components="$all_components portals_utcp"
87798 # set the AM_CONDITIONAL on how we should build
87799 if test "$compile_mode" = "dso"; then
87800 BUILD_sds_portals_utcp_DSO=1
87801 else
87802 BUILD_sds_portals_utcp_DSO=0
87807 if test "$BUILD_sds_portals_utcp_DSO" = "1"; then
87808 OMPI_BUILD_sds_portals_utcp_DSO_TRUE=
87809 OMPI_BUILD_sds_portals_utcp_DSO_FALSE='#'
87810 else
87811 OMPI_BUILD_sds_portals_utcp_DSO_TRUE='#'
87812 OMPI_BUILD_sds_portals_utcp_DSO_FALSE=
87816 if test "$should_build" = "1"; then
87817 components_looking_for_succeed="$happy_value"
87821 unset compile_mode
87823 ompi_show_subsubsubtitle "MCA component sds:slurm (m4 configuration macro)"
87826 project=orte
87827 framework=sds
87828 component=slurm
87829 component_path="$srcdir/$project/mca/$framework/$component"
87830 want_component=0
87832 # build if:
87833 # - the component type is direct and we are that component
87834 # - there is no ompi_ignore file
87835 # - there is an ompi_ignore, but there is an empty ompi_unignore
87836 # - there is an ompi_ignore, but username is in ompi_unignore
87837 if test -d $component_path ; then
87838 # decide if we want the component to be built or not. This
87839 # is spread out because some of the logic is a little complex
87840 # and test's syntax isn't exactly the greatest. We want to
87841 # build the component by default.
87842 want_component=1
87843 if test -f $component_path/.ompi_ignore ; then
87844 # If there is an ompi_ignore file, don't build
87845 # the component. Note that this decision can be
87846 # overriden by the unignore logic below.
87847 want_component=0
87849 if test -f $component_path/.ompi_unignore ; then
87850 # if there is an empty ompi_unignore, that is
87851 # equivalent to having your userid in the unignore file.
87852 # If userid is in the file, unignore the ignore file.
87853 if test ! -s $component_path/.ompi_unignore ; then
87854 want_component=1
87855 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
87856 want_component=1
87859 # if this component type is direct and we are not it, we don't want
87860 # to be built. Otherwise, we do want to be built.
87861 if test ! -z "$DIRECT_sds" ; then
87862 if test "$DIRECT_sds" = "$component" ; then
87863 want_component=1
87864 else
87865 want_component=0
87870 # if we were explicitly disabled, don't build :)
87871 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
87872 eval $str
87873 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
87874 want_component=0
87877 if test "$want_component" = "1"; then
87878 should_build=$components_looking_for_succeed
87879 else
87880 should_build=0
87884 # Allow the component to override the build mode if it really wants to.
87885 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
87887 project=orte
87888 framework=sds
87889 component=slurm
87891 # Is this component going to built staic or shared? $component
87892 # might not be known until configure time, so have to use eval
87893 # tricks - can't set variable names at autogen time.
87894 str="SHARED_FRAMEWORK=\$DSO_$framework"
87895 eval $str
87896 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
87897 eval $str
87899 str="STATIC_FRAMEWORK=\$STATIC_$framework"
87900 eval $str
87901 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
87902 eval $str
87904 shared_mode_override=static
87906 # Setup for either shared or static
87907 if test "$STATIC_FRAMEWORK" = "1" -o \
87908 "$STATIC_COMPONENT" = "1" -o \
87909 "$STATIC_all" = "1" ; then
87910 compile_mode="static"
87911 elif test "$shared_mode_override" = "dso" -o \
87912 "$SHARED_FRAMEWORK" = "1" -o \
87913 "$SHARED_COMPONENT" = "1" -o \
87914 "$DSO_all" = "1"; then
87915 compile_mode="dso"
87916 else
87917 compile_mode="static"
87920 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
87921 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
87922 if test "$DIRECT_sds" = "$component" ; then
87923 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
87924 echo "${ECHO_T}$compile_mode - direct" >&6; }
87925 else
87926 { echo "$as_me:$LINENO: result: $compile_mode" >&5
87927 echo "${ECHO_T}$compile_mode" >&6; }
87931 # try to configure the component. pay no attention to
87932 # --enable-dist, since we'll always have makefiles.
87933 if test "$should_build" = "1"; then
87937 # Check whether --with-slurm was given.
87938 if test "${with_slurm+set}" = set; then
87939 withval=$with_slurm;
87943 if test "$with_slurm" = "no" ; then
87944 ompi_check_slurm_happy="no"
87945 elif test "$with_slurm" = "" ; then
87946 # unless user asked, only build slurm component on
87947 # linux systems.
87948 case $host in
87949 *-linux*|*-aix*)
87950 ompi_check_slurm_happy="yes"
87953 ompi_check_slurm_happy="no"
87955 esac
87956 else
87957 ompi_check_slurm_happy="yes"
87960 if test "$ompi_check_slurm_happy" = "yes"; then
87961 { echo "$as_me:$LINENO: checking for fork" >&5
87962 echo $ECHO_N "checking for fork... $ECHO_C" >&6; }
87963 if test "${ac_cv_func_fork+set}" = set; then
87964 echo $ECHO_N "(cached) $ECHO_C" >&6
87965 else
87966 cat >conftest.$ac_ext <<_ACEOF
87967 /* confdefs.h. */
87968 _ACEOF
87969 cat confdefs.h >>conftest.$ac_ext
87970 cat >>conftest.$ac_ext <<_ACEOF
87971 /* end confdefs.h. */
87972 /* Define fork to an innocuous variant, in case <limits.h> declares fork.
87973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
87974 #define fork innocuous_fork
87976 /* System header to define __stub macros and hopefully few prototypes,
87977 which can conflict with char fork (); below.
87978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
87979 <limits.h> exists even on freestanding compilers. */
87981 #ifdef __STDC__
87982 # include <limits.h>
87983 #else
87984 # include <assert.h>
87985 #endif
87987 #undef fork
87989 /* Override any GCC internal prototype to avoid an error.
87990 Use char because int might match the return type of a GCC
87991 builtin and then its argument prototype would still apply. */
87992 #ifdef __cplusplus
87993 extern "C"
87994 #endif
87995 char fork ();
87996 /* The GNU C library defines this for functions which it implements
87997 to always fail with ENOSYS. Some functions are actually named
87998 something starting with __ and the normal name is an alias. */
87999 #if defined __stub_fork || defined __stub___fork
88000 choke me
88001 #endif
88004 main ()
88006 return fork ();
88008 return 0;
88010 _ACEOF
88011 rm -f conftest.$ac_objext conftest$ac_exeext
88012 if { (ac_try="$ac_link"
88013 case "(($ac_try" in
88014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88015 *) ac_try_echo=$ac_try;;
88016 esac
88017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
88018 (eval "$ac_link") 2>conftest.er1
88019 ac_status=$?
88020 grep -v '^ *+' conftest.er1 >conftest.err
88021 rm -f conftest.er1
88022 cat conftest.err >&5
88023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
88024 (exit $ac_status); } && {
88025 test -z "$ac_c_werror_flag" ||
88026 test ! -s conftest.err
88027 } && test -s conftest$ac_exeext &&
88028 $as_test_x conftest$ac_exeext; then
88029 ac_cv_func_fork=yes
88030 else
88031 echo "$as_me: failed program was:" >&5
88032 sed 's/^/| /' conftest.$ac_ext >&5
88034 ac_cv_func_fork=no
88037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
88038 conftest$ac_exeext conftest.$ac_ext
88040 { echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
88041 echo "${ECHO_T}$ac_cv_func_fork" >&6; }
88042 if test $ac_cv_func_fork = yes; then
88043 ompi_check_slurm_happy="yes"
88044 else
88045 ompi_check_slurm_happy="no"
88051 if test "$ompi_check_slurm_happy" = "yes"; then
88052 { echo "$as_me:$LINENO: checking for execve" >&5
88053 echo $ECHO_N "checking for execve... $ECHO_C" >&6; }
88054 if test "${ac_cv_func_execve+set}" = set; then
88055 echo $ECHO_N "(cached) $ECHO_C" >&6
88056 else
88057 cat >conftest.$ac_ext <<_ACEOF
88058 /* confdefs.h. */
88059 _ACEOF
88060 cat confdefs.h >>conftest.$ac_ext
88061 cat >>conftest.$ac_ext <<_ACEOF
88062 /* end confdefs.h. */
88063 /* Define execve to an innocuous variant, in case <limits.h> declares execve.
88064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
88065 #define execve innocuous_execve
88067 /* System header to define __stub macros and hopefully few prototypes,
88068 which can conflict with char execve (); below.
88069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
88070 <limits.h> exists even on freestanding compilers. */
88072 #ifdef __STDC__
88073 # include <limits.h>
88074 #else
88075 # include <assert.h>
88076 #endif
88078 #undef execve
88080 /* Override any GCC internal prototype to avoid an error.
88081 Use char because int might match the return type of a GCC
88082 builtin and then its argument prototype would still apply. */
88083 #ifdef __cplusplus
88084 extern "C"
88085 #endif
88086 char execve ();
88087 /* The GNU C library defines this for functions which it implements
88088 to always fail with ENOSYS. Some functions are actually named
88089 something starting with __ and the normal name is an alias. */
88090 #if defined __stub_execve || defined __stub___execve
88091 choke me
88092 #endif
88095 main ()
88097 return execve ();
88099 return 0;
88101 _ACEOF
88102 rm -f conftest.$ac_objext conftest$ac_exeext
88103 if { (ac_try="$ac_link"
88104 case "(($ac_try" in
88105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88106 *) ac_try_echo=$ac_try;;
88107 esac
88108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
88109 (eval "$ac_link") 2>conftest.er1
88110 ac_status=$?
88111 grep -v '^ *+' conftest.er1 >conftest.err
88112 rm -f conftest.er1
88113 cat conftest.err >&5
88114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
88115 (exit $ac_status); } && {
88116 test -z "$ac_c_werror_flag" ||
88117 test ! -s conftest.err
88118 } && test -s conftest$ac_exeext &&
88119 $as_test_x conftest$ac_exeext; then
88120 ac_cv_func_execve=yes
88121 else
88122 echo "$as_me: failed program was:" >&5
88123 sed 's/^/| /' conftest.$ac_ext >&5
88125 ac_cv_func_execve=no
88128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
88129 conftest$ac_exeext conftest.$ac_ext
88131 { echo "$as_me:$LINENO: result: $ac_cv_func_execve" >&5
88132 echo "${ECHO_T}$ac_cv_func_execve" >&6; }
88133 if test $ac_cv_func_execve = yes; then
88134 ompi_check_slurm_happy="yes"
88135 else
88136 ompi_check_slurm_happy="no"
88142 if test "$ompi_check_slurm_happy" = "yes"; then
88143 { echo "$as_me:$LINENO: checking for setpgid" >&5
88144 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; }
88145 if test "${ac_cv_func_setpgid+set}" = set; then
88146 echo $ECHO_N "(cached) $ECHO_C" >&6
88147 else
88148 cat >conftest.$ac_ext <<_ACEOF
88149 /* confdefs.h. */
88150 _ACEOF
88151 cat confdefs.h >>conftest.$ac_ext
88152 cat >>conftest.$ac_ext <<_ACEOF
88153 /* end confdefs.h. */
88154 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
88155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
88156 #define setpgid innocuous_setpgid
88158 /* System header to define __stub macros and hopefully few prototypes,
88159 which can conflict with char setpgid (); below.
88160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
88161 <limits.h> exists even on freestanding compilers. */
88163 #ifdef __STDC__
88164 # include <limits.h>
88165 #else
88166 # include <assert.h>
88167 #endif
88169 #undef setpgid
88171 /* Override any GCC internal prototype to avoid an error.
88172 Use char because int might match the return type of a GCC
88173 builtin and then its argument prototype would still apply. */
88174 #ifdef __cplusplus
88175 extern "C"
88176 #endif
88177 char setpgid ();
88178 /* The GNU C library defines this for functions which it implements
88179 to always fail with ENOSYS. Some functions are actually named
88180 something starting with __ and the normal name is an alias. */
88181 #if defined __stub_setpgid || defined __stub___setpgid
88182 choke me
88183 #endif
88186 main ()
88188 return setpgid ();
88190 return 0;
88192 _ACEOF
88193 rm -f conftest.$ac_objext conftest$ac_exeext
88194 if { (ac_try="$ac_link"
88195 case "(($ac_try" in
88196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88197 *) ac_try_echo=$ac_try;;
88198 esac
88199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
88200 (eval "$ac_link") 2>conftest.er1
88201 ac_status=$?
88202 grep -v '^ *+' conftest.er1 >conftest.err
88203 rm -f conftest.er1
88204 cat conftest.err >&5
88205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
88206 (exit $ac_status); } && {
88207 test -z "$ac_c_werror_flag" ||
88208 test ! -s conftest.err
88209 } && test -s conftest$ac_exeext &&
88210 $as_test_x conftest$ac_exeext; then
88211 ac_cv_func_setpgid=yes
88212 else
88213 echo "$as_me: failed program was:" >&5
88214 sed 's/^/| /' conftest.$ac_ext >&5
88216 ac_cv_func_setpgid=no
88219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
88220 conftest$ac_exeext conftest.$ac_ext
88222 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
88223 echo "${ECHO_T}$ac_cv_func_setpgid" >&6; }
88224 if test $ac_cv_func_setpgid = yes; then
88225 ompi_check_slurm_happy="yes"
88226 else
88227 ompi_check_slurm_happy="no"
88233 if test "$ompi_check_slurm_happy" = "yes"; then
88234 sds_slurm_good=1
88235 else
88236 sds_slurm_good=0
88241 # if check worked, set wrapper flags if so.
88242 # Evaluate succeed / fail
88243 if test "$sds_slurm_good" = "1"; then
88244 sds_slurm_WRAPPER_EXTRA_LDFLAGS="$sds_slurm_LDFLAGS"
88245 sds_slurm_WRAPPER_EXTRA_LIBS="$sds_slurm_LIBS"
88246 should_build=1
88247 else
88248 should_build=0
88252 # set build flags to use in makefile
88260 if test "$should_build" = "1"; then
88262 project=orte
88263 framework=sds
88264 component=slurm
88266 # See if it dropped an output file for us to pick up some
88267 # shell variables in.
88268 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
88270 # Add this subdir to the mast list of all MCA component subdirs
88271 all_components="$all_components $component"
88273 if test "$compile_mode" = "dso" ; then
88274 dso_components="$dso_components $component"
88275 else
88276 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
88277 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
88278 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
88279 static_components="$static_components $component"
88282 # Output pretty results
88283 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
88284 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
88285 { echo "$as_me:$LINENO: result: yes" >&5
88286 echo "${ECHO_T}yes" >&6; }
88288 # If there's an output file, add the values to
88289 # scope_EXTRA_flags.
88290 if test -f $infile; then
88292 # First check for the ABORT tag
88293 line="`grep ABORT= $infile | cut -d= -f2-`"
88294 if test -n "$line" -a "$line" != "no"; then
88295 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
88296 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
88297 { { echo "$as_me:$LINENO: error: cannot continue" >&5
88298 echo "$as_me: error: cannot continue" >&2;}
88299 { (exit 1); exit 1; }; }
88302 # Check for flags passed up from the component. If we're
88303 # compiling statically, then take all flags passed up from the
88304 # component.
88305 if test "$compile_mode" = "static"; then
88306 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
88307 eval "line=$line"
88308 if test -n "$line"; then
88309 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
88311 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
88312 eval "line=$line"
88313 if test -n "$line"; then
88314 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
88318 if test "$DIRECT_sds" = "$component" ; then
88319 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
88320 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
88321 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
88322 eval $str
88323 else
88324 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
88325 *** does not appear to support direct calling.
88326 *** Aborting" >&5
88327 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
88328 *** does not appear to support direct calling.
88329 *** Aborting" >&2;}
88330 { (exit 1); exit 1; }; }
88333 else
88334 # were we supposed to have found something in the
88335 # post_configure.sh, but the file didn't exist?
88336 if test "$DIRECT_sds" = "$component" ; then
88337 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
88338 *** does not appear to support direct calling.
88339 *** Aborting" >&5
88340 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
88341 *** does not appear to support direct calling.
88342 *** Aborting" >&2;}
88343 { (exit 1); exit 1; }; }
88347 # now add the flags that were set in the environment variables
88348 # framework_component_FOO (for example, the flags set by
88349 # m4_configure components)
88351 # Check for flags passed up from the component. If we're
88352 # compiling statically, then take all flags passed up from the
88353 # component.
88354 if test "$compile_mode" = "static"; then
88355 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
88356 eval "$str"
88357 if test -n "$line" ; then
88358 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
88360 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
88361 eval "$str"
88362 if test -n "$line" ; then
88363 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
88367 else
88369 { echo "$as_me:$LINENO: checking if MCA component sds:slurm can compile" >&5
88370 echo $ECHO_N "checking if MCA component sds:slurm can compile... $ECHO_C" >&6; }
88371 { echo "$as_me:$LINENO: result: no" >&5
88372 echo "${ECHO_T}no" >&6; }
88374 # If this component was requested as the default for this
88375 # type, then abort.
88376 if test "$with_sds" = "slurm" ; then
88377 { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
88378 echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
88379 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
88380 echo "$as_me: WARNING: This component was selected as the default" >&2;}
88381 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
88382 echo "$as_me: error: Cannot continue" >&2;}
88383 { (exit 1); exit 1; }; }
88384 exit 1
88387 if test ! -z "$DIRECT_sds" ; then
88388 if test "$DIRECT_sds" = "slurm" ; then
88389 { echo "$as_me:$LINENO: WARNING: MCA component \"slurm\" failed to configure properly" >&5
88390 echo "$as_me: WARNING: MCA component \"slurm\" failed to configure properly" >&2;}
88391 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
88392 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
88393 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
88394 echo "$as_me: error: Cannot continue" >&2;}
88395 { (exit 1); exit 1; }; }
88396 exit 1
88400 # add component to all component list
88401 all_components="$all_components slurm"
88405 # set the AM_CONDITIONAL on how we should build
88406 if test "$compile_mode" = "dso"; then
88407 BUILD_sds_slurm_DSO=1
88408 else
88409 BUILD_sds_slurm_DSO=0
88414 if test "$BUILD_sds_slurm_DSO" = "1"; then
88415 OMPI_BUILD_sds_slurm_DSO_TRUE=
88416 OMPI_BUILD_sds_slurm_DSO_FALSE='#'
88417 else
88418 OMPI_BUILD_sds_slurm_DSO_TRUE='#'
88419 OMPI_BUILD_sds_slurm_DSO_FALSE=
88423 if test "$should_build" = "1"; then
88424 components_looking_for_succeed="$happy_value"
88428 unset compile_mode
88431 # configure components that provide their own configure script.
88432 # It would be really hard to run these for "find first that
88433 # works", so we don't :)
88434 if test "$happy_value" = "1"; then
88436 for component_path in $srcdir/orte/mca/sds/* ; do
88437 component="`basename $component_path`"
88438 if test -d $component_path -a -x $component_path/configure ; then
88439 ompi_show_subsubsubtitle "MCA component sds:$component (need to configure)"
88442 project=orte
88443 framework=sds
88444 component=$component
88445 component_path="$srcdir/$project/mca/$framework/$component"
88446 want_component=0
88448 # build if:
88449 # - the component type is direct and we are that component
88450 # - there is no ompi_ignore file
88451 # - there is an ompi_ignore, but there is an empty ompi_unignore
88452 # - there is an ompi_ignore, but username is in ompi_unignore
88453 if test -d $component_path ; then
88454 # decide if we want the component to be built or not. This
88455 # is spread out because some of the logic is a little complex
88456 # and test's syntax isn't exactly the greatest. We want to
88457 # build the component by default.
88458 want_component=1
88459 if test -f $component_path/.ompi_ignore ; then
88460 # If there is an ompi_ignore file, don't build
88461 # the component. Note that this decision can be
88462 # overriden by the unignore logic below.
88463 want_component=0
88465 if test -f $component_path/.ompi_unignore ; then
88466 # if there is an empty ompi_unignore, that is
88467 # equivalent to having your userid in the unignore file.
88468 # If userid is in the file, unignore the ignore file.
88469 if test ! -s $component_path/.ompi_unignore ; then
88470 want_component=1
88471 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
88472 want_component=1
88475 # if this component type is direct and we are not it, we don't want
88476 # to be built. Otherwise, we do want to be built.
88477 if test ! -z "$DIRECT_sds" ; then
88478 if test "$DIRECT_sds" = "$component" ; then
88479 want_component=1
88480 else
88481 want_component=0
88486 # if we were explicitly disabled, don't build :)
88487 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
88488 eval $str
88489 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
88490 want_component=0
88493 if test "$want_component" = "1"; then
88494 should_build=1
88495 else
88496 should_build=0
88501 project=orte
88502 framework=sds
88503 component=$component
88505 # Is this component going to built staic or shared? $component
88506 # might not be known until configure time, so have to use eval
88507 # tricks - can't set variable names at autogen time.
88508 str="SHARED_FRAMEWORK=\$DSO_$framework"
88509 eval $str
88510 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
88511 eval $str
88513 str="STATIC_FRAMEWORK=\$STATIC_$framework"
88514 eval $str
88515 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
88516 eval $str
88518 shared_mode_override=static
88520 # Setup for either shared or static
88521 if test "$STATIC_FRAMEWORK" = "1" -o \
88522 "$STATIC_COMPONENT" = "1" -o \
88523 "$STATIC_all" = "1" ; then
88524 compile_mode="static"
88525 elif test "$shared_mode_override" = "dso" -o \
88526 "$SHARED_FRAMEWORK" = "1" -o \
88527 "$SHARED_COMPONENT" = "1" -o \
88528 "$DSO_all" = "1"; then
88529 compile_mode="dso"
88530 else
88531 compile_mode="static"
88534 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
88535 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
88536 if test "$DIRECT_sds" = "$component" ; then
88537 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
88538 echo "${ECHO_T}$compile_mode - direct" >&6; }
88539 else
88540 { echo "$as_me:$LINENO: result: $compile_mode" >&5
88541 echo "${ECHO_T}$compile_mode" >&6; }
88545 if test "$should_build" = "1" ; then
88548 # Invoke configure in a specific subdirectory.
88550 # orte/mca/sds/$component is the directory to invoke in
88551 # $ompi_subdir_args is the list of arguments to pass
88552 # should_build=1 is actions to execute upon success
88553 # should_build=2 is actions to execute upon failure
88555 subdir_dir="orte/mca/sds/$component"
88556 subdir_args="$ompi_subdir_args"
88557 subdir_success="should_build=1"
88558 subdir_failure="should_build=2"
88561 # Sanity checks
88564 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
88565 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
88566 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
88569 # Gotta check where srcdir is for VPATH builds. If srcdir is not
88570 # ., then we need to mkdir the subdir. Otherwise, we can just cd
88571 # into it.
88574 case $srcdir in
88578 { case $subdir_dir in
88579 [\\/]* | ?:[\\/]* ) total_dir=;;
88580 *) total_dir=.;;
88581 esac
88582 temp=$subdir_dir
88583 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
88584 case $dir_part in
88585 # Skip DOS drivespec
88586 ?:) total_dir=$dir_part ;;
88587 *) total_dir=$total_dir/$dir_part
88588 test -d "$total_dir" ||
88589 mkdir "$total_dir" ||
88590 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
88591 echo "$as_me: error: cannot create $subdir_dir" >&2;}
88592 { (exit 1); exit 1; }; }
88594 esac
88595 done; }
88597 if test -d ./$subdir_dir; then :;
88598 else
88599 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
88600 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
88601 { (exit 1); exit 1; }; }
88604 esac
88607 # Move into the target directory
88610 subdir_parent=`pwd`
88611 cd $subdir_dir
88614 # Make a "../" for each directory in $subdir_dir.
88617 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
88619 # Construct the --srcdir argument
88622 case $srcdir in
88624 # In place
88625 subdir_srcdir="$srcdir"
88627 [\\/]* | ?:[\\/]* )
88628 # Absolute path
88629 subdir_srcdir="$srcdir/$subdir_dir"
88632 # Relative path
88633 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
88635 esac
88638 # Construct the --cache-file argument
88641 # BWB - subdir caching is a pain since we change CFLAGS and all that.
88642 # Just disable it for now
88643 subdir_cache_file="/dev/null"
88646 # Invoke the configure script in the subdirectory
88649 export CFLAGS CPPFLAGS
88650 export CXXFLAGS CXXCPPFLAGS
88651 export FFLAGS
88652 export LDFLAGS LIBS
88653 sub_configure="$SHELL '$subdir_srcdir/configure'"
88654 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
88655 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
88656 eval "$sub_configure $subdir_args \
88657 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
88658 if test "$?" = "0"; then
88659 eval $subdir_success
88660 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
88661 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
88662 else
88663 eval $subdir_failure
88664 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
88665 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
88669 # Go back to the topdir
88672 cd $subdir_parent
88676 # Clean up
88679 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
88680 unset subdir_args subdir_dots total_dir dir_part temp
88683 if test "$should_build" = "1" ; then
88685 project=orte
88686 framework=sds
88687 component=$component
88689 # See if it dropped an output file for us to pick up some
88690 # shell variables in.
88691 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
88693 # Add this subdir to the mast list of all MCA component subdirs
88694 all_components="$all_components $component"
88696 if test "$compile_mode" = "dso" ; then
88697 dso_components="$dso_components $component"
88698 else
88699 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
88700 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
88701 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
88702 static_components="$static_components $component"
88705 # Output pretty results
88706 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
88707 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
88708 { echo "$as_me:$LINENO: result: yes" >&5
88709 echo "${ECHO_T}yes" >&6; }
88711 # If there's an output file, add the values to
88712 # scope_EXTRA_flags.
88713 if test -f $infile; then
88715 # First check for the ABORT tag
88716 line="`grep ABORT= $infile | cut -d= -f2-`"
88717 if test -n "$line" -a "$line" != "no"; then
88718 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
88719 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
88720 { { echo "$as_me:$LINENO: error: cannot continue" >&5
88721 echo "$as_me: error: cannot continue" >&2;}
88722 { (exit 1); exit 1; }; }
88725 # Check for flags passed up from the component. If we're
88726 # compiling statically, then take all flags passed up from the
88727 # component.
88728 if test "$compile_mode" = "static"; then
88729 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
88730 eval "line=$line"
88731 if test -n "$line"; then
88732 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
88734 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
88735 eval "line=$line"
88736 if test -n "$line"; then
88737 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
88741 if test "$DIRECT_sds" = "$component" ; then
88742 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
88743 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
88744 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
88745 eval $str
88746 else
88747 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
88748 *** does not appear to support direct calling.
88749 *** Aborting" >&5
88750 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
88751 *** does not appear to support direct calling.
88752 *** Aborting" >&2;}
88753 { (exit 1); exit 1; }; }
88756 else
88757 # were we supposed to have found something in the
88758 # post_configure.sh, but the file didn't exist?
88759 if test "$DIRECT_sds" = "$component" ; then
88760 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
88761 *** does not appear to support direct calling.
88762 *** Aborting" >&5
88763 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
88764 *** does not appear to support direct calling.
88765 *** Aborting" >&2;}
88766 { (exit 1); exit 1; }; }
88770 # now add the flags that were set in the environment variables
88771 # framework_component_FOO (for example, the flags set by
88772 # m4_configure components)
88774 # Check for flags passed up from the component. If we're
88775 # compiling statically, then take all flags passed up from the
88776 # component.
88777 if test "$compile_mode" = "static"; then
88778 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
88779 eval "$str"
88780 if test -n "$line" ; then
88781 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
88783 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
88784 eval "$str"
88785 if test -n "$line" ; then
88786 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
88790 else
88792 { echo "$as_me:$LINENO: checking if MCA component sds:$component can compile" >&5
88793 echo $ECHO_N "checking if MCA component sds:$component can compile... $ECHO_C" >&6; }
88794 { echo "$as_me:$LINENO: result: no" >&5
88795 echo "${ECHO_T}no" >&6; }
88797 # If this component was requested as the default for this
88798 # type, then abort.
88799 if test "$with_sds" = "$component" ; then
88800 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
88801 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
88802 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
88803 echo "$as_me: WARNING: This component was selected as the default" >&2;}
88804 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
88805 echo "$as_me: error: Cannot continue" >&2;}
88806 { (exit 1); exit 1; }; }
88807 exit 1
88810 if test ! -z "$DIRECT_sds" ; then
88811 if test "$DIRECT_sds" = "$component" ; then
88812 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
88813 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
88814 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
88815 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
88816 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
88817 echo "$as_me: error: Cannot continue" >&2;}
88818 { (exit 1); exit 1; }; }
88819 exit 1
88825 done
88830 MCA_sds_ALL_COMPONENTS="$all_components"
88831 MCA_sds_STATIC_COMPONENTS="$static_components"
88832 MCA_sds_DSO_COMPONENTS="$dso_components"
88833 MCA_sds_STATIC_LTLIBS="$static_ltlibs"
88841 MCA_sds_ALL_SUBDIRS=
88842 for item in $all_components ; do
88843 MCA_sds_ALL_SUBDIRS="$MCA_sds_ALL_SUBDIRS mca/sds/$item"
88844 done
88848 MCA_sds_STATIC_SUBDIRS=
88849 for item in $static_components ; do
88850 MCA_sds_STATIC_SUBDIRS="$MCA_sds_STATIC_SUBDIRS mca/sds/$item"
88851 done
88855 MCA_sds_DSO_SUBDIRS=
88856 for item in $dso_components ; do
88857 MCA_sds_DSO_SUBDIRS="$MCA_sds_DSO_SUBDIRS mca/sds/$item"
88858 done
88862 # add all the makefiles for the framework to the CONFIG_FILES.
88863 # Don't add common/base, since it doesn't exist
88864 ac_config_files="$ac_config_files orte/mca/sds/Makefile"
88867 # Create the final .h file that will be included in the type's
88868 # top-level glue. This lists all the static components. We don't
88869 # need to do this for "common".
88870 if test "sds" != "common"; then
88871 cat > $outfile <<EOF
88873 * \$HEADER\$
88876 `cat $outfile.extern`
88878 const mca_base_component_t *mca_sds_base_static_components[] = {
88879 `cat $outfile.struct`
88880 NULL
88883 # Only replace the header file if a) it doesn't previously
88884 # exist, or b) the contents are different. Do this to not
88885 # trigger recompilation of certain .c files just because the
88886 # timestamp changed on $outfile_real (similar to the way AC
88887 # handles AC_CONFIG_HEADER files).
88888 diff $outfile $outfile_real > /dev/null 2>&1
88889 if test "$?" != "0"; then
88890 mv $outfile $outfile_real
88891 else
88892 rm -f $outfile
88895 rm -f $outfile.struct $outfile.extern
88897 unset all_components static_components dso_components outfile outfile_real
88898 # common has to go up front
88899 if test "soh" = "common" ; then
88900 MCA_orte_FRAMEWORKS="soh $MCA_orte_FRAMEWORKS"
88901 MCA_orte_FRAMEWORKS_SUBDIRS="mca/soh $MCA_orte_FRAMEWORKS_SUBDIRS"
88902 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_soh_ALL_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
88903 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_soh_DSO_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
88904 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_soh_STATIC_SUBDIRS) $MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
88905 else
88906 MCA_orte_FRAMEWORKS="$MCA_orte_FRAMEWORKS soh"
88907 MCA_orte_FRAMEWORKS_SUBDIRS="$MCA_orte_FRAMEWORKS_SUBDIRS mca/soh"
88908 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_soh_ALL_SUBDIRS)"
88909 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_soh_DSO_SUBDIRS)"
88910 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_soh_STATIC_SUBDIRS)"
88912 if test "soh" != "common" ; then
88913 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS mca/soh/libmca_soh.la"
88915 MCA_orte_FRAMEWORK_LIBS="$MCA_orte_FRAMEWORK_LIBS \$(MCA_soh_STATIC_LTLIBS)"
88917 ompi_show_subsubtitle "Configuring MCA framework soh"
88919 # setup for framework
88920 all_components=
88921 static_components=
88922 dso_components=
88923 static_ltlibs=
88925 # Ensure that the directory where the #include file is to live
88926 # exists. Need to do this for VPATH builds, because the directory
88927 # may not exist yet. For the "common" type, it's not really a
88928 # component, so it doesn't have a base.
88929 if test "soh" = "common" ; then
88930 outdir=orte/mca/common
88931 else
88932 outdir=orte/mca/soh/base
88934 { as_dir=$outdir
88935 case $as_dir in #(
88936 -*) as_dir=./$as_dir;;
88937 esac
88938 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
88939 as_dirs=
88940 while :; do
88941 case $as_dir in #(
88942 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
88943 *) as_qdir=$as_dir;;
88944 esac
88945 as_dirs="'$as_qdir' $as_dirs"
88946 as_dir=`$as_dirname -- "$as_dir" ||
88947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
88948 X"$as_dir" : 'X\(//\)[^/]' \| \
88949 X"$as_dir" : 'X\(//\)$' \| \
88950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
88951 echo X"$as_dir" |
88952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
88953 s//\1/
88956 /^X\(\/\/\)[^/].*/{
88957 s//\1/
88960 /^X\(\/\/\)$/{
88961 s//\1/
88964 /^X\(\/\).*/{
88965 s//\1/
88968 s/.*/./; q'`
88969 test -d "$as_dir" && break
88970 done
88971 test -z "$as_dirs" || eval "mkdir $as_dirs"
88972 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
88973 echo "$as_me: error: cannot create directory $as_dir" >&2;}
88974 { (exit 1); exit 1; }; }; }
88976 # remove any previously generated #include files
88977 outfile_real=$outdir/static-components.h
88978 outfile=$outfile_real.new
88979 rm -f $outfile $outfile.struct $outfile.extern
88980 touch $outfile.struct $outfile.extern
88982 # print some nice messages about what we're about to do...
88983 { echo "$as_me:$LINENO: checking for no configure components in framework soh" >&5
88984 echo $ECHO_N "checking for no configure components in framework soh... $ECHO_C" >&6; }
88985 { echo "$as_me:$LINENO: result: " >&5
88986 echo "${ECHO_T}" >&6; }
88987 { echo "$as_me:$LINENO: checking for m4 configure components in framework soh" >&5
88988 echo $ECHO_N "checking for m4 configure components in framework soh... $ECHO_C" >&6; }
88989 { echo "$as_me:$LINENO: result: bproc" >&5
88990 echo "${ECHO_T}bproc" >&6; }
88992 # if we only want the first successful component, set the variable
88993 # happy_value to 0 so we stop on first assignment. Otherwise, set
88994 # it to zero so that components_looking_for_succeed is always 1
88995 happy_value=1
88997 components_looking_for_succeed=1
88999 # configure components that don't have any component-specific
89000 # configuration. See comment in CONFIGURE_PROJECT about the
89001 # m4_ifval
89002 # if there isn't a component list, abort
89006 # configure components that use built-in configuration scripts
89007 # see comment in CONFIGURE_PROJECT about the m4_ifval
89008 # if there isn't a component list, abort
89011 ompi_show_subsubsubtitle "MCA component soh:bproc (m4 configuration macro)"
89014 project=orte
89015 framework=soh
89016 component=bproc
89017 component_path="$srcdir/$project/mca/$framework/$component"
89018 want_component=0
89020 # build if:
89021 # - the component type is direct and we are that component
89022 # - there is no ompi_ignore file
89023 # - there is an ompi_ignore, but there is an empty ompi_unignore
89024 # - there is an ompi_ignore, but username is in ompi_unignore
89025 if test -d $component_path ; then
89026 # decide if we want the component to be built or not. This
89027 # is spread out because some of the logic is a little complex
89028 # and test's syntax isn't exactly the greatest. We want to
89029 # build the component by default.
89030 want_component=1
89031 if test -f $component_path/.ompi_ignore ; then
89032 # If there is an ompi_ignore file, don't build
89033 # the component. Note that this decision can be
89034 # overriden by the unignore logic below.
89035 want_component=0
89037 if test -f $component_path/.ompi_unignore ; then
89038 # if there is an empty ompi_unignore, that is
89039 # equivalent to having your userid in the unignore file.
89040 # If userid is in the file, unignore the ignore file.
89041 if test ! -s $component_path/.ompi_unignore ; then
89042 want_component=1
89043 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
89044 want_component=1
89047 # if this component type is direct and we are not it, we don't want
89048 # to be built. Otherwise, we do want to be built.
89049 if test ! -z "$DIRECT_soh" ; then
89050 if test "$DIRECT_soh" = "$component" ; then
89051 want_component=1
89052 else
89053 want_component=0
89058 # if we were explicitly disabled, don't build :)
89059 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
89060 eval $str
89061 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
89062 want_component=0
89065 if test "$want_component" = "1"; then
89066 should_build=$components_looking_for_succeed
89067 else
89068 should_build=0
89072 # Allow the component to override the build mode if it really wants to.
89073 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
89075 project=orte
89076 framework=soh
89077 component=bproc
89079 # Is this component going to built staic or shared? $component
89080 # might not be known until configure time, so have to use eval
89081 # tricks - can't set variable names at autogen time.
89082 str="SHARED_FRAMEWORK=\$DSO_$framework"
89083 eval $str
89084 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
89085 eval $str
89087 str="STATIC_FRAMEWORK=\$STATIC_$framework"
89088 eval $str
89089 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
89090 eval $str
89092 shared_mode_override=static
89094 # Setup for either shared or static
89095 if test "$STATIC_FRAMEWORK" = "1" -o \
89096 "$STATIC_COMPONENT" = "1" -o \
89097 "$STATIC_all" = "1" ; then
89098 compile_mode="static"
89099 elif test "$shared_mode_override" = "dso" -o \
89100 "$SHARED_FRAMEWORK" = "1" -o \
89101 "$SHARED_COMPONENT" = "1" -o \
89102 "$DSO_all" = "1"; then
89103 compile_mode="dso"
89104 else
89105 compile_mode="static"
89108 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
89109 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
89110 if test "$DIRECT_soh" = "$component" ; then
89111 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
89112 echo "${ECHO_T}$compile_mode - direct" >&6; }
89113 else
89114 { echo "$as_me:$LINENO: result: $compile_mode" >&5
89115 echo "${ECHO_T}$compile_mode" >&6; }
89119 # try to configure the component. pay no attention to
89120 # --enable-dist, since we'll always have makefiles.
89121 if test "$should_build" = "1"; then
89125 # Check whether --with-bproc was given.
89126 if test "${with_bproc+set}" = set; then
89127 withval=$with_bproc;
89131 if test ! -z "$with_bproc" -a "$with_bproc" = "no"; then
89132 soh_bproc_good=0
89133 else
89135 ompi_check_bproc_save_CPPFLAGS="$CPPFLAGS"
89136 ompi_check_bproc_save_LDFLAGS="$LDFLAGS"
89137 ompi_check_bproc_save_LIBS="$LIBS"
89139 if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
89140 CPPFLAGS="$CPPFLAGS -I$with_bproc/include"
89141 LDFLAGS="$LDFLAGS -L$with_bproc/lib"
89145 for ac_header in sys/bproc.h
89147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
89148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
89150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
89151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89152 echo $ECHO_N "(cached) $ECHO_C" >&6
89154 ac_res=`eval echo '${'$as_ac_Header'}'`
89155 { echo "$as_me:$LINENO: result: $ac_res" >&5
89156 echo "${ECHO_T}$ac_res" >&6; }
89157 else
89158 # Is the header compilable?
89159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
89160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
89161 cat >conftest.$ac_ext <<_ACEOF
89162 /* confdefs.h. */
89163 _ACEOF
89164 cat confdefs.h >>conftest.$ac_ext
89165 cat >>conftest.$ac_ext <<_ACEOF
89166 /* end confdefs.h. */
89167 $ac_includes_default
89168 #include <$ac_header>
89169 _ACEOF
89170 rm -f conftest.$ac_objext
89171 if { (ac_try="$ac_compile"
89172 case "(($ac_try" in
89173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89174 *) ac_try_echo=$ac_try;;
89175 esac
89176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
89177 (eval "$ac_compile") 2>conftest.er1
89178 ac_status=$?
89179 grep -v '^ *+' conftest.er1 >conftest.err
89180 rm -f conftest.er1
89181 cat conftest.err >&5
89182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
89183 (exit $ac_status); } && {
89184 test -z "$ac_c_werror_flag" ||
89185 test ! -s conftest.err
89186 } && test -s conftest.$ac_objext; then
89187 ac_header_compiler=yes
89188 else
89189 echo "$as_me: failed program was:" >&5
89190 sed 's/^/| /' conftest.$ac_ext >&5
89192 ac_header_compiler=no
89195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
89197 echo "${ECHO_T}$ac_header_compiler" >&6; }
89199 # Is the header present?
89200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
89201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
89202 cat >conftest.$ac_ext <<_ACEOF
89203 /* confdefs.h. */
89204 _ACEOF
89205 cat confdefs.h >>conftest.$ac_ext
89206 cat >>conftest.$ac_ext <<_ACEOF
89207 /* end confdefs.h. */
89208 #include <$ac_header>
89209 _ACEOF
89210 if { (ac_try="$ac_cpp conftest.$ac_ext"
89211 case "(($ac_try" in
89212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89213 *) ac_try_echo=$ac_try;;
89214 esac
89215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
89216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
89217 ac_status=$?
89218 grep -v '^ *+' conftest.er1 >conftest.err
89219 rm -f conftest.er1
89220 cat conftest.err >&5
89221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
89222 (exit $ac_status); } >/dev/null && {
89223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
89224 test ! -s conftest.err
89225 }; then
89226 ac_header_preproc=yes
89227 else
89228 echo "$as_me: failed program was:" >&5
89229 sed 's/^/| /' conftest.$ac_ext >&5
89231 ac_header_preproc=no
89234 rm -f conftest.err conftest.$ac_ext
89235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
89236 echo "${ECHO_T}$ac_header_preproc" >&6; }
89238 # So? What about this header?
89239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
89240 yes:no: )
89241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
89242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
89243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
89244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
89245 ac_header_preproc=yes
89247 no:yes:* )
89248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
89249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
89250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
89251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
89252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
89253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
89254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
89255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
89256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
89257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
89258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
89259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
89260 ( cat <<\_ASBOX
89261 ## ------------------------------------------------------ ##
89262 ## Report this to http://www.open-mpi.org/community/help/ ##
89263 ## ------------------------------------------------------ ##
89264 _ASBOX
89265 ) | sed "s/^/$as_me: WARNING: /" >&2
89267 esac
89268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
89269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
89270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89271 echo $ECHO_N "(cached) $ECHO_C" >&6
89272 else
89273 eval "$as_ac_Header=\$ac_header_preproc"
89275 ac_res=`eval echo '${'$as_ac_Header'}'`
89276 { echo "$as_me:$LINENO: result: $ac_res" >&5
89277 echo "${ECHO_T}$ac_res" >&6; }
89280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
89281 cat >>confdefs.h <<_ACEOF
89282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
89283 _ACEOF
89284 { echo "$as_me:$LINENO: checking for bproc_numnodes in -lbproc" >&5
89285 echo $ECHO_N "checking for bproc_numnodes in -lbproc... $ECHO_C" >&6; }
89286 if test "${ac_cv_lib_bproc_bproc_numnodes+set}" = set; then
89287 echo $ECHO_N "(cached) $ECHO_C" >&6
89288 else
89289 ac_check_lib_save_LIBS=$LIBS
89290 LIBS="-lbproc $LIBS"
89291 cat >conftest.$ac_ext <<_ACEOF
89292 /* confdefs.h. */
89293 _ACEOF
89294 cat confdefs.h >>conftest.$ac_ext
89295 cat >>conftest.$ac_ext <<_ACEOF
89296 /* end confdefs.h. */
89298 /* Override any GCC internal prototype to avoid an error.
89299 Use char because int might match the return type of a GCC
89300 builtin and then its argument prototype would still apply. */
89301 #ifdef __cplusplus
89302 extern "C"
89303 #endif
89304 char bproc_numnodes ();
89306 main ()
89308 return bproc_numnodes ();
89310 return 0;
89312 _ACEOF
89313 rm -f conftest.$ac_objext conftest$ac_exeext
89314 if { (ac_try="$ac_link"
89315 case "(($ac_try" in
89316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89317 *) ac_try_echo=$ac_try;;
89318 esac
89319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
89320 (eval "$ac_link") 2>conftest.er1
89321 ac_status=$?
89322 grep -v '^ *+' conftest.er1 >conftest.err
89323 rm -f conftest.er1
89324 cat conftest.err >&5
89325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
89326 (exit $ac_status); } && {
89327 test -z "$ac_c_werror_flag" ||
89328 test ! -s conftest.err
89329 } && test -s conftest$ac_exeext &&
89330 $as_test_x conftest$ac_exeext; then
89331 ac_cv_lib_bproc_bproc_numnodes=yes
89332 else
89333 echo "$as_me: failed program was:" >&5
89334 sed 's/^/| /' conftest.$ac_ext >&5
89336 ac_cv_lib_bproc_bproc_numnodes=no
89339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
89340 conftest$ac_exeext conftest.$ac_ext
89341 LIBS=$ac_check_lib_save_LIBS
89343 { echo "$as_me:$LINENO: result: $ac_cv_lib_bproc_bproc_numnodes" >&5
89344 echo "${ECHO_T}$ac_cv_lib_bproc_bproc_numnodes" >&6; }
89345 if test $ac_cv_lib_bproc_bproc_numnodes = yes; then
89346 ompi_check_bproc_happy="yes"
89347 else
89348 ompi_check_bproc_happy="no"
89351 else
89352 ompi_check_bproc_happy="no"
89355 done
89358 # Check for Scyld bproc or an old version of LANL Bproc (pre 3.2.0)
89359 if test "$ompi_check_bproc_happy" = "yes"; then
89361 for ac_header in sys/bproc_common.h
89363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
89364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
89365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
89366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89367 echo $ECHO_N "(cached) $ECHO_C" >&6
89368 else
89369 cat >conftest.$ac_ext <<_ACEOF
89370 /* confdefs.h. */
89371 _ACEOF
89372 cat confdefs.h >>conftest.$ac_ext
89373 cat >>conftest.$ac_ext <<_ACEOF
89374 /* end confdefs.h. */
89375 #include <stdint.h>
89376 #include <sys/socket.h>
89378 #include <$ac_header>
89379 _ACEOF
89380 rm -f conftest.$ac_objext
89381 if { (ac_try="$ac_compile"
89382 case "(($ac_try" in
89383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89384 *) ac_try_echo=$ac_try;;
89385 esac
89386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
89387 (eval "$ac_compile") 2>conftest.er1
89388 ac_status=$?
89389 grep -v '^ *+' conftest.er1 >conftest.err
89390 rm -f conftest.er1
89391 cat conftest.err >&5
89392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
89393 (exit $ac_status); } && {
89394 test -z "$ac_c_werror_flag" ||
89395 test ! -s conftest.err
89396 } && test -s conftest.$ac_objext; then
89397 eval "$as_ac_Header=yes"
89398 else
89399 echo "$as_me: failed program was:" >&5
89400 sed 's/^/| /' conftest.$ac_ext >&5
89402 eval "$as_ac_Header=no"
89405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89407 ac_res=`eval echo '${'$as_ac_Header'}'`
89408 { echo "$as_me:$LINENO: result: $ac_res" >&5
89409 echo "${ECHO_T}$ac_res" >&6; }
89410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
89411 cat >>confdefs.h <<_ACEOF
89412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
89413 _ACEOF
89414 ompi_check_bproc_happy="new"
89415 else
89416 ompi_check_bproc_happy="old"
89419 done
89424 CPPFLAGS="$ompi_check_bproc_save_CPPFLAGS"
89425 LDFLAGS="$ompi_check_bproc_save_LDFLAGS"
89426 LIBS="$ompi_check_bproc_save_LIBS"
89428 if test "$ompi_check_bproc_happy" != "no"; then
89429 if test ! -z "$with_bproc" -a "$with_bproc" != "yes"; then
89430 soh_bproc_CPPFLAGS="$soh_bproc_CPPFLAGS -I$with_bproc/include"
89431 soh_bproc_LDFLAGS="$soh_bproc_LDFLAGS -L$with_bproc/lib"
89434 soh_bproc_LIBS="$soh_bproc_LIBS -lbproc"
89435 if test "$ompi_check_bproc_happy" = "new"; then
89436 soh_bproc_good=1
89437 else
89438 soh_bproc_good=0
89441 else
89442 if test ! -z "$with_bproc"; then
89443 { { echo "$as_me:$LINENO: error: BProc support request but not found. Perhaps
89444 you need to specify the location of the BProc libraries." >&5
89445 echo "$as_me: error: BProc support request but not found. Perhaps
89446 you need to specify the location of the BProc libraries." >&2;}
89447 { (exit 1); exit 1; }; }
89450 soh_bproc_good=0
89458 #BPROC_API_VERSION was added in bproc 4.0.0, and this component
89459 #will only compile with >= bproc 4.0.0
89460 if test "$soh_bproc_good" = "1"; then
89461 { echo "$as_me:$LINENO: checking for BPROC_API_VERSION" >&5
89462 echo $ECHO_N "checking for BPROC_API_VERSION... $ECHO_C" >&6; }
89463 cat >conftest.$ac_ext <<_ACEOF
89464 /* confdefs.h. */
89465 _ACEOF
89466 cat confdefs.h >>conftest.$ac_ext
89467 cat >>conftest.$ac_ext <<_ACEOF
89468 /* end confdefs.h. */
89469 #include <sys/bproc.h>
89471 main ()
89473 int foo = BPROC_API_VERSION;
89475 return 0;
89477 _ACEOF
89478 rm -f conftest.$ac_objext
89479 if { (ac_try="$ac_compile"
89480 case "(($ac_try" in
89481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89482 *) ac_try_echo=$ac_try;;
89483 esac
89484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
89485 (eval "$ac_compile") 2>conftest.er1
89486 ac_status=$?
89487 grep -v '^ *+' conftest.er1 >conftest.err
89488 rm -f conftest.er1
89489 cat conftest.err >&5
89490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
89491 (exit $ac_status); } && {
89492 test -z "$ac_c_werror_flag" ||
89493 test ! -s conftest.err
89494 } && test -s conftest.$ac_objext; then
89495 have_bproc_api_ver_msg=yes soh_bproc_good=1
89496 else
89497 echo "$as_me: failed program was:" >&5
89498 sed 's/^/| /' conftest.$ac_ext >&5
89500 have_bproc_api_ver_msg=no soh_bproc_good=0
89503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89504 { echo "$as_me:$LINENO: result: $have_bproc_api_ver_msg" >&5
89505 echo "${ECHO_T}$have_bproc_api_ver_msg" >&6; }
89509 # if check worked, set wrapper flags if so.
89510 # Evaluate succeed / fail
89511 if test "$soh_bproc_good" = "1"; then
89512 soh_bproc_WRAPPER_EXTRA_LDFLAGS="$soh_bproc_LDFLAGS"
89513 soh_bproc_WRAPPER_EXTRA_LIBS="$soh_bproc_LIBS"
89514 should_build=1
89515 else
89516 should_build=0
89520 # set build flags to use in makefile
89528 if test "$should_build" = "1"; then
89530 project=orte
89531 framework=soh
89532 component=bproc
89534 # See if it dropped an output file for us to pick up some
89535 # shell variables in.
89536 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
89538 # Add this subdir to the mast list of all MCA component subdirs
89539 all_components="$all_components $component"
89541 if test "$compile_mode" = "dso" ; then
89542 dso_components="$dso_components $component"
89543 else
89544 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
89545 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
89546 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
89547 static_components="$static_components $component"
89550 # Output pretty results
89551 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
89552 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
89553 { echo "$as_me:$LINENO: result: yes" >&5
89554 echo "${ECHO_T}yes" >&6; }
89556 # If there's an output file, add the values to
89557 # scope_EXTRA_flags.
89558 if test -f $infile; then
89560 # First check for the ABORT tag
89561 line="`grep ABORT= $infile | cut -d= -f2-`"
89562 if test -n "$line" -a "$line" != "no"; then
89563 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
89564 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
89565 { { echo "$as_me:$LINENO: error: cannot continue" >&5
89566 echo "$as_me: error: cannot continue" >&2;}
89567 { (exit 1); exit 1; }; }
89570 # Check for flags passed up from the component. If we're
89571 # compiling statically, then take all flags passed up from the
89572 # component.
89573 if test "$compile_mode" = "static"; then
89574 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
89575 eval "line=$line"
89576 if test -n "$line"; then
89577 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
89579 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
89580 eval "line=$line"
89581 if test -n "$line"; then
89582 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
89586 if test "$DIRECT_soh" = "$component" ; then
89587 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
89588 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
89589 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
89590 eval $str
89591 else
89592 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
89593 *** does not appear to support direct calling.
89594 *** Aborting" >&5
89595 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
89596 *** does not appear to support direct calling.
89597 *** Aborting" >&2;}
89598 { (exit 1); exit 1; }; }
89601 else
89602 # were we supposed to have found something in the
89603 # post_configure.sh, but the file didn't exist?
89604 if test "$DIRECT_soh" = "$component" ; then
89605 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
89606 *** does not appear to support direct calling.
89607 *** Aborting" >&5
89608 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
89609 *** does not appear to support direct calling.
89610 *** Aborting" >&2;}
89611 { (exit 1); exit 1; }; }
89615 # now add the flags that were set in the environment variables
89616 # framework_component_FOO (for example, the flags set by
89617 # m4_configure components)
89619 # Check for flags passed up from the component. If we're
89620 # compiling statically, then take all flags passed up from the
89621 # component.
89622 if test "$compile_mode" = "static"; then
89623 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
89624 eval "$str"
89625 if test -n "$line" ; then
89626 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
89628 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
89629 eval "$str"
89630 if test -n "$line" ; then
89631 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
89635 else
89637 { echo "$as_me:$LINENO: checking if MCA component soh:bproc can compile" >&5
89638 echo $ECHO_N "checking if MCA component soh:bproc can compile... $ECHO_C" >&6; }
89639 { echo "$as_me:$LINENO: result: no" >&5
89640 echo "${ECHO_T}no" >&6; }
89642 # If this component was requested as the default for this
89643 # type, then abort.
89644 if test "$with_soh" = "bproc" ; then
89645 { echo "$as_me:$LINENO: WARNING: MCA component \"bproc\" failed to configure properly" >&5
89646 echo "$as_me: WARNING: MCA component \"bproc\" failed to configure properly" >&2;}
89647 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
89648 echo "$as_me: WARNING: This component was selected as the default" >&2;}
89649 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
89650 echo "$as_me: error: Cannot continue" >&2;}
89651 { (exit 1); exit 1; }; }
89652 exit 1
89655 if test ! -z "$DIRECT_soh" ; then
89656 if test "$DIRECT_soh" = "bproc" ; then
89657 { echo "$as_me:$LINENO: WARNING: MCA component \"bproc\" failed to configure properly" >&5
89658 echo "$as_me: WARNING: MCA component \"bproc\" failed to configure properly" >&2;}
89659 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
89660 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
89661 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
89662 echo "$as_me: error: Cannot continue" >&2;}
89663 { (exit 1); exit 1; }; }
89664 exit 1
89668 # add component to all component list
89669 all_components="$all_components bproc"
89673 # set the AM_CONDITIONAL on how we should build
89674 if test "$compile_mode" = "dso"; then
89675 BUILD_soh_bproc_DSO=1
89676 else
89677 BUILD_soh_bproc_DSO=0
89682 if test "$BUILD_soh_bproc_DSO" = "1"; then
89683 OMPI_BUILD_soh_bproc_DSO_TRUE=
89684 OMPI_BUILD_soh_bproc_DSO_FALSE='#'
89685 else
89686 OMPI_BUILD_soh_bproc_DSO_TRUE='#'
89687 OMPI_BUILD_soh_bproc_DSO_FALSE=
89691 if test "$should_build" = "1"; then
89692 components_looking_for_succeed="$happy_value"
89696 unset compile_mode
89699 # configure components that provide their own configure script.
89700 # It would be really hard to run these for "find first that
89701 # works", so we don't :)
89702 if test "$happy_value" = "1"; then
89704 for component_path in $srcdir/orte/mca/soh/* ; do
89705 component="`basename $component_path`"
89706 if test -d $component_path -a -x $component_path/configure ; then
89707 ompi_show_subsubsubtitle "MCA component soh:$component (need to configure)"
89710 project=orte
89711 framework=soh
89712 component=$component
89713 component_path="$srcdir/$project/mca/$framework/$component"
89714 want_component=0
89716 # build if:
89717 # - the component type is direct and we are that component
89718 # - there is no ompi_ignore file
89719 # - there is an ompi_ignore, but there is an empty ompi_unignore
89720 # - there is an ompi_ignore, but username is in ompi_unignore
89721 if test -d $component_path ; then
89722 # decide if we want the component to be built or not. This
89723 # is spread out because some of the logic is a little complex
89724 # and test's syntax isn't exactly the greatest. We want to
89725 # build the component by default.
89726 want_component=1
89727 if test -f $component_path/.ompi_ignore ; then
89728 # If there is an ompi_ignore file, don't build
89729 # the component. Note that this decision can be
89730 # overriden by the unignore logic below.
89731 want_component=0
89733 if test -f $component_path/.ompi_unignore ; then
89734 # if there is an empty ompi_unignore, that is
89735 # equivalent to having your userid in the unignore file.
89736 # If userid is in the file, unignore the ignore file.
89737 if test ! -s $component_path/.ompi_unignore ; then
89738 want_component=1
89739 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
89740 want_component=1
89743 # if this component type is direct and we are not it, we don't want
89744 # to be built. Otherwise, we do want to be built.
89745 if test ! -z "$DIRECT_soh" ; then
89746 if test "$DIRECT_soh" = "$component" ; then
89747 want_component=1
89748 else
89749 want_component=0
89754 # if we were explicitly disabled, don't build :)
89755 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
89756 eval $str
89757 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
89758 want_component=0
89761 if test "$want_component" = "1"; then
89762 should_build=1
89763 else
89764 should_build=0
89769 project=orte
89770 framework=soh
89771 component=$component
89773 # Is this component going to built staic or shared? $component
89774 # might not be known until configure time, so have to use eval
89775 # tricks - can't set variable names at autogen time.
89776 str="SHARED_FRAMEWORK=\$DSO_$framework"
89777 eval $str
89778 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
89779 eval $str
89781 str="STATIC_FRAMEWORK=\$STATIC_$framework"
89782 eval $str
89783 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
89784 eval $str
89786 shared_mode_override=static
89788 # Setup for either shared or static
89789 if test "$STATIC_FRAMEWORK" = "1" -o \
89790 "$STATIC_COMPONENT" = "1" -o \
89791 "$STATIC_all" = "1" ; then
89792 compile_mode="static"
89793 elif test "$shared_mode_override" = "dso" -o \
89794 "$SHARED_FRAMEWORK" = "1" -o \
89795 "$SHARED_COMPONENT" = "1" -o \
89796 "$DSO_all" = "1"; then
89797 compile_mode="dso"
89798 else
89799 compile_mode="static"
89802 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
89803 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
89804 if test "$DIRECT_soh" = "$component" ; then
89805 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
89806 echo "${ECHO_T}$compile_mode - direct" >&6; }
89807 else
89808 { echo "$as_me:$LINENO: result: $compile_mode" >&5
89809 echo "${ECHO_T}$compile_mode" >&6; }
89813 if test "$should_build" = "1" ; then
89816 # Invoke configure in a specific subdirectory.
89818 # orte/mca/soh/$component is the directory to invoke in
89819 # $ompi_subdir_args is the list of arguments to pass
89820 # should_build=1 is actions to execute upon success
89821 # should_build=2 is actions to execute upon failure
89823 subdir_dir="orte/mca/soh/$component"
89824 subdir_args="$ompi_subdir_args"
89825 subdir_success="should_build=1"
89826 subdir_failure="should_build=2"
89829 # Sanity checks
89832 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
89833 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
89834 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
89837 # Gotta check where srcdir is for VPATH builds. If srcdir is not
89838 # ., then we need to mkdir the subdir. Otherwise, we can just cd
89839 # into it.
89842 case $srcdir in
89846 { case $subdir_dir in
89847 [\\/]* | ?:[\\/]* ) total_dir=;;
89848 *) total_dir=.;;
89849 esac
89850 temp=$subdir_dir
89851 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
89852 case $dir_part in
89853 # Skip DOS drivespec
89854 ?:) total_dir=$dir_part ;;
89855 *) total_dir=$total_dir/$dir_part
89856 test -d "$total_dir" ||
89857 mkdir "$total_dir" ||
89858 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
89859 echo "$as_me: error: cannot create $subdir_dir" >&2;}
89860 { (exit 1); exit 1; }; }
89862 esac
89863 done; }
89865 if test -d ./$subdir_dir; then :;
89866 else
89867 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
89868 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
89869 { (exit 1); exit 1; }; }
89872 esac
89875 # Move into the target directory
89878 subdir_parent=`pwd`
89879 cd $subdir_dir
89882 # Make a "../" for each directory in $subdir_dir.
89885 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
89887 # Construct the --srcdir argument
89890 case $srcdir in
89892 # In place
89893 subdir_srcdir="$srcdir"
89895 [\\/]* | ?:[\\/]* )
89896 # Absolute path
89897 subdir_srcdir="$srcdir/$subdir_dir"
89900 # Relative path
89901 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
89903 esac
89906 # Construct the --cache-file argument
89909 # BWB - subdir caching is a pain since we change CFLAGS and all that.
89910 # Just disable it for now
89911 subdir_cache_file="/dev/null"
89914 # Invoke the configure script in the subdirectory
89917 export CFLAGS CPPFLAGS
89918 export CXXFLAGS CXXCPPFLAGS
89919 export FFLAGS
89920 export LDFLAGS LIBS
89921 sub_configure="$SHELL '$subdir_srcdir/configure'"
89922 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
89923 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
89924 eval "$sub_configure $subdir_args \
89925 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
89926 if test "$?" = "0"; then
89927 eval $subdir_success
89928 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
89929 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
89930 else
89931 eval $subdir_failure
89932 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
89933 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
89937 # Go back to the topdir
89940 cd $subdir_parent
89944 # Clean up
89947 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
89948 unset subdir_args subdir_dots total_dir dir_part temp
89951 if test "$should_build" = "1" ; then
89953 project=orte
89954 framework=soh
89955 component=$component
89957 # See if it dropped an output file for us to pick up some
89958 # shell variables in.
89959 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
89961 # Add this subdir to the mast list of all MCA component subdirs
89962 all_components="$all_components $component"
89964 if test "$compile_mode" = "dso" ; then
89965 dso_components="$dso_components $component"
89966 else
89967 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
89968 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
89969 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
89970 static_components="$static_components $component"
89973 # Output pretty results
89974 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
89975 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
89976 { echo "$as_me:$LINENO: result: yes" >&5
89977 echo "${ECHO_T}yes" >&6; }
89979 # If there's an output file, add the values to
89980 # scope_EXTRA_flags.
89981 if test -f $infile; then
89983 # First check for the ABORT tag
89984 line="`grep ABORT= $infile | cut -d= -f2-`"
89985 if test -n "$line" -a "$line" != "no"; then
89986 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
89987 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
89988 { { echo "$as_me:$LINENO: error: cannot continue" >&5
89989 echo "$as_me: error: cannot continue" >&2;}
89990 { (exit 1); exit 1; }; }
89993 # Check for flags passed up from the component. If we're
89994 # compiling statically, then take all flags passed up from the
89995 # component.
89996 if test "$compile_mode" = "static"; then
89997 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
89998 eval "line=$line"
89999 if test -n "$line"; then
90000 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
90002 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
90003 eval "line=$line"
90004 if test -n "$line"; then
90005 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
90009 if test "$DIRECT_soh" = "$component" ; then
90010 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
90011 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
90012 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
90013 eval $str
90014 else
90015 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
90016 *** does not appear to support direct calling.
90017 *** Aborting" >&5
90018 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
90019 *** does not appear to support direct calling.
90020 *** Aborting" >&2;}
90021 { (exit 1); exit 1; }; }
90024 else
90025 # were we supposed to have found something in the
90026 # post_configure.sh, but the file didn't exist?
90027 if test "$DIRECT_soh" = "$component" ; then
90028 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
90029 *** does not appear to support direct calling.
90030 *** Aborting" >&5
90031 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
90032 *** does not appear to support direct calling.
90033 *** Aborting" >&2;}
90034 { (exit 1); exit 1; }; }
90038 # now add the flags that were set in the environment variables
90039 # framework_component_FOO (for example, the flags set by
90040 # m4_configure components)
90042 # Check for flags passed up from the component. If we're
90043 # compiling statically, then take all flags passed up from the
90044 # component.
90045 if test "$compile_mode" = "static"; then
90046 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
90047 eval "$str"
90048 if test -n "$line" ; then
90049 orte_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $line"
90051 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
90052 eval "$str"
90053 if test -n "$line" ; then
90054 orte_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $line"
90058 else
90060 { echo "$as_me:$LINENO: checking if MCA component soh:$component can compile" >&5
90061 echo $ECHO_N "checking if MCA component soh:$component can compile... $ECHO_C" >&6; }
90062 { echo "$as_me:$LINENO: result: no" >&5
90063 echo "${ECHO_T}no" >&6; }
90065 # If this component was requested as the default for this
90066 # type, then abort.
90067 if test "$with_soh" = "$component" ; then
90068 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
90069 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
90070 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
90071 echo "$as_me: WARNING: This component was selected as the default" >&2;}
90072 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
90073 echo "$as_me: error: Cannot continue" >&2;}
90074 { (exit 1); exit 1; }; }
90075 exit 1
90078 if test ! -z "$DIRECT_soh" ; then
90079 if test "$DIRECT_soh" = "$component" ; then
90080 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
90081 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
90082 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
90083 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
90084 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
90085 echo "$as_me: error: Cannot continue" >&2;}
90086 { (exit 1); exit 1; }; }
90087 exit 1
90093 done
90098 MCA_soh_ALL_COMPONENTS="$all_components"
90099 MCA_soh_STATIC_COMPONENTS="$static_components"
90100 MCA_soh_DSO_COMPONENTS="$dso_components"
90101 MCA_soh_STATIC_LTLIBS="$static_ltlibs"
90109 MCA_soh_ALL_SUBDIRS=
90110 for item in $all_components ; do
90111 MCA_soh_ALL_SUBDIRS="$MCA_soh_ALL_SUBDIRS mca/soh/$item"
90112 done
90116 MCA_soh_STATIC_SUBDIRS=
90117 for item in $static_components ; do
90118 MCA_soh_STATIC_SUBDIRS="$MCA_soh_STATIC_SUBDIRS mca/soh/$item"
90119 done
90123 MCA_soh_DSO_SUBDIRS=
90124 for item in $dso_components ; do
90125 MCA_soh_DSO_SUBDIRS="$MCA_soh_DSO_SUBDIRS mca/soh/$item"
90126 done
90130 # add all the makefiles for the framework to the CONFIG_FILES.
90131 # Don't add common/base, since it doesn't exist
90132 ac_config_files="$ac_config_files orte/mca/soh/Makefile"
90135 # Create the final .h file that will be included in the type's
90136 # top-level glue. This lists all the static components. We don't
90137 # need to do this for "common".
90138 if test "soh" != "common"; then
90139 cat > $outfile <<EOF
90141 * \$HEADER\$
90144 `cat $outfile.extern`
90146 const mca_base_component_t *mca_soh_base_static_components[] = {
90147 `cat $outfile.struct`
90148 NULL
90151 # Only replace the header file if a) it doesn't previously
90152 # exist, or b) the contents are different. Do this to not
90153 # trigger recompilation of certain .c files just because the
90154 # timestamp changed on $outfile_real (similar to the way AC
90155 # handles AC_CONFIG_HEADER files).
90156 diff $outfile $outfile_real > /dev/null 2>&1
90157 if test "$?" != "0"; then
90158 mv $outfile $outfile_real
90159 else
90160 rm -f $outfile
90163 rm -f $outfile.struct $outfile.extern
90165 unset all_components static_components dso_components outfile outfile_real
90174 MCA_PROJECT_SUBDIRS="$MCA_PROJECT_SUBDIRS ompi"
90176 # can't use a variable rename here because these need to be evaled
90177 # at auto* time.
90179 ompi_show_subtitle "Configuring MCA for ompi"
90181 { echo "$as_me:$LINENO: checking for frameworks for ompi" >&5
90182 echo $ECHO_N "checking for frameworks for ompi... $ECHO_C" >&6; }
90183 { echo "$as_me:$LINENO: result: allocator, bml, btl, coll, common, io, mpool, osc, pml, rcache, topo" >&5
90184 echo "${ECHO_T}allocator, bml, btl, coll, common, io, mpool, osc, pml, rcache, topo" >&6; }
90186 # iterate through the list of frameworks. There is something
90187 # funky with m4 foreach if the list is defined, but empty. It
90188 # will call the 3rd argument once with an empty value for the
90189 # first argument. Protect against calling MCA_CONFIGURE_FRAMEWORK
90190 # with an empty second argument. Grrr....
90191 # if there isn't a project list, abort
90193 # Also setup two variables for Makefiles:
90194 # MCA_project_FRAMEWORKS - list of frameworks in that project
90195 # MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing
90196 # to more libraries) that must be included
90197 # in the project's main library
90200 MCA_ompi_FRAMEWORKS=
90201 MCA_ompi_FRAMEWORKS_SUBDIRS=
90202 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS=
90203 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS=
90204 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS=
90205 MCA_ompi_FRAMEWORK_LIBS=
90207 # common has to go up front
90208 if test "allocator" = "common" ; then
90209 MCA_ompi_FRAMEWORKS="allocator $MCA_ompi_FRAMEWORKS"
90210 MCA_ompi_FRAMEWORKS_SUBDIRS="mca/allocator $MCA_ompi_FRAMEWORKS_SUBDIRS"
90211 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_allocator_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
90212 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_allocator_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
90213 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_allocator_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
90214 else
90215 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS allocator"
90216 MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/allocator"
90217 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_allocator_ALL_SUBDIRS)"
90218 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_allocator_DSO_SUBDIRS)"
90219 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_allocator_STATIC_SUBDIRS)"
90221 if test "allocator" != "common" ; then
90222 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/allocator/libmca_allocator.la"
90224 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_allocator_STATIC_LTLIBS)"
90226 ompi_show_subsubtitle "Configuring MCA framework allocator"
90228 # setup for framework
90229 all_components=
90230 static_components=
90231 dso_components=
90232 static_ltlibs=
90234 # Ensure that the directory where the #include file is to live
90235 # exists. Need to do this for VPATH builds, because the directory
90236 # may not exist yet. For the "common" type, it's not really a
90237 # component, so it doesn't have a base.
90238 if test "allocator" = "common" ; then
90239 outdir=ompi/mca/common
90240 else
90241 outdir=ompi/mca/allocator/base
90243 { as_dir=$outdir
90244 case $as_dir in #(
90245 -*) as_dir=./$as_dir;;
90246 esac
90247 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
90248 as_dirs=
90249 while :; do
90250 case $as_dir in #(
90251 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
90252 *) as_qdir=$as_dir;;
90253 esac
90254 as_dirs="'$as_qdir' $as_dirs"
90255 as_dir=`$as_dirname -- "$as_dir" ||
90256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
90257 X"$as_dir" : 'X\(//\)[^/]' \| \
90258 X"$as_dir" : 'X\(//\)$' \| \
90259 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
90260 echo X"$as_dir" |
90261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
90262 s//\1/
90265 /^X\(\/\/\)[^/].*/{
90266 s//\1/
90269 /^X\(\/\/\)$/{
90270 s//\1/
90273 /^X\(\/\).*/{
90274 s//\1/
90277 s/.*/./; q'`
90278 test -d "$as_dir" && break
90279 done
90280 test -z "$as_dirs" || eval "mkdir $as_dirs"
90281 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
90282 echo "$as_me: error: cannot create directory $as_dir" >&2;}
90283 { (exit 1); exit 1; }; }; }
90285 # remove any previously generated #include files
90286 outfile_real=$outdir/static-components.h
90287 outfile=$outfile_real.new
90288 rm -f $outfile $outfile.struct $outfile.extern
90289 touch $outfile.struct $outfile.extern
90291 # print some nice messages about what we're about to do...
90292 { echo "$as_me:$LINENO: checking for no configure components in framework allocator" >&5
90293 echo $ECHO_N "checking for no configure components in framework allocator... $ECHO_C" >&6; }
90294 { echo "$as_me:$LINENO: result: basic, bucket" >&5
90295 echo "${ECHO_T}basic, bucket" >&6; }
90296 { echo "$as_me:$LINENO: checking for m4 configure components in framework allocator" >&5
90297 echo $ECHO_N "checking for m4 configure components in framework allocator... $ECHO_C" >&6; }
90298 { echo "$as_me:$LINENO: result: " >&5
90299 echo "${ECHO_T}" >&6; }
90301 # if we only want the first successful component, set the variable
90302 # happy_value to 0 so we stop on first assignment. Otherwise, set
90303 # it to zero so that components_looking_for_succeed is always 1
90304 happy_value=1
90306 components_looking_for_succeed=1
90308 # configure components that don't have any component-specific
90309 # configuration. See comment in CONFIGURE_PROJECT about the
90310 # m4_ifval
90311 # if there isn't a component list, abort
90314 ompi_show_subsubsubtitle "MCA component allocator:basic (no configuration)"
90317 project=ompi
90318 framework=allocator
90319 component=basic
90320 component_path="$srcdir/$project/mca/$framework/$component"
90321 want_component=0
90323 # build if:
90324 # - the component type is direct and we are that component
90325 # - there is no ompi_ignore file
90326 # - there is an ompi_ignore, but there is an empty ompi_unignore
90327 # - there is an ompi_ignore, but username is in ompi_unignore
90328 if test -d $component_path ; then
90329 # decide if we want the component to be built or not. This
90330 # is spread out because some of the logic is a little complex
90331 # and test's syntax isn't exactly the greatest. We want to
90332 # build the component by default.
90333 want_component=1
90334 if test -f $component_path/.ompi_ignore ; then
90335 # If there is an ompi_ignore file, don't build
90336 # the component. Note that this decision can be
90337 # overriden by the unignore logic below.
90338 want_component=0
90340 if test -f $component_path/.ompi_unignore ; then
90341 # if there is an empty ompi_unignore, that is
90342 # equivalent to having your userid in the unignore file.
90343 # If userid is in the file, unignore the ignore file.
90344 if test ! -s $component_path/.ompi_unignore ; then
90345 want_component=1
90346 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
90347 want_component=1
90350 # if this component type is direct and we are not it, we don't want
90351 # to be built. Otherwise, we do want to be built.
90352 if test ! -z "$DIRECT_allocator" ; then
90353 if test "$DIRECT_allocator" = "$component" ; then
90354 want_component=1
90355 else
90356 want_component=0
90361 # if we were explicitly disabled, don't build :)
90362 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
90363 eval $str
90364 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
90365 want_component=0
90368 if test "$want_component" = "1"; then
90369 should_build=$components_looking_for_succeed
90370 else
90371 should_build=0
90376 project=ompi
90377 framework=allocator
90378 component=basic
90380 # Is this component going to built staic or shared? $component
90381 # might not be known until configure time, so have to use eval
90382 # tricks - can't set variable names at autogen time.
90383 str="SHARED_FRAMEWORK=\$DSO_$framework"
90384 eval $str
90385 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
90386 eval $str
90388 str="STATIC_FRAMEWORK=\$STATIC_$framework"
90389 eval $str
90390 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
90391 eval $str
90393 shared_mode_override=static
90395 # Setup for either shared or static
90396 if test "$STATIC_FRAMEWORK" = "1" -o \
90397 "$STATIC_COMPONENT" = "1" -o \
90398 "$STATIC_all" = "1" ; then
90399 compile_mode="static"
90400 elif test "$shared_mode_override" = "dso" -o \
90401 "$SHARED_FRAMEWORK" = "1" -o \
90402 "$SHARED_COMPONENT" = "1" -o \
90403 "$DSO_all" = "1"; then
90404 compile_mode="dso"
90405 else
90406 compile_mode="static"
90409 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
90410 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
90411 if test "$DIRECT_allocator" = "$component" ; then
90412 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
90413 echo "${ECHO_T}$compile_mode - direct" >&6; }
90414 else
90415 { echo "$as_me:$LINENO: result: $compile_mode" >&5
90416 echo "${ECHO_T}$compile_mode" >&6; }
90420 if test "$should_build" = "1" ; then
90422 project=ompi
90423 framework=allocator
90424 component=basic
90426 # See if it dropped an output file for us to pick up some
90427 # shell variables in.
90428 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
90430 # Add this subdir to the mast list of all MCA component subdirs
90431 all_components="$all_components $component"
90433 if test "$compile_mode" = "dso" ; then
90434 dso_components="$dso_components $component"
90435 else
90436 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
90437 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
90438 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
90439 static_components="$static_components $component"
90442 # Output pretty results
90443 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
90444 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
90445 { echo "$as_me:$LINENO: result: yes" >&5
90446 echo "${ECHO_T}yes" >&6; }
90448 # If there's an output file, add the values to
90449 # scope_EXTRA_flags.
90450 if test -f $infile; then
90452 # First check for the ABORT tag
90453 line="`grep ABORT= $infile | cut -d= -f2-`"
90454 if test -n "$line" -a "$line" != "no"; then
90455 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
90456 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
90457 { { echo "$as_me:$LINENO: error: cannot continue" >&5
90458 echo "$as_me: error: cannot continue" >&2;}
90459 { (exit 1); exit 1; }; }
90462 # Check for flags passed up from the component. If we're
90463 # compiling statically, then take all flags passed up from the
90464 # component.
90465 if test "$compile_mode" = "static"; then
90466 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
90467 eval "line=$line"
90468 if test -n "$line"; then
90469 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
90471 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
90472 eval "line=$line"
90473 if test -n "$line"; then
90474 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
90478 if test "$DIRECT_allocator" = "$component" ; then
90479 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
90480 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
90481 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
90482 eval $str
90483 else
90484 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
90485 *** does not appear to support direct calling.
90486 *** Aborting" >&5
90487 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
90488 *** does not appear to support direct calling.
90489 *** Aborting" >&2;}
90490 { (exit 1); exit 1; }; }
90493 else
90494 # were we supposed to have found something in the
90495 # post_configure.sh, but the file didn't exist?
90496 if test "$DIRECT_allocator" = "$component" ; then
90497 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
90498 *** does not appear to support direct calling.
90499 *** Aborting" >&5
90500 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
90501 *** does not appear to support direct calling.
90502 *** Aborting" >&2;}
90503 { (exit 1); exit 1; }; }
90507 # now add the flags that were set in the environment variables
90508 # framework_component_FOO (for example, the flags set by
90509 # m4_configure components)
90511 # Check for flags passed up from the component. If we're
90512 # compiling statically, then take all flags passed up from the
90513 # component.
90514 if test "$compile_mode" = "static"; then
90515 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
90516 eval "$str"
90517 if test -n "$line" ; then
90518 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
90520 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
90521 eval "$str"
90522 if test -n "$line" ; then
90523 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
90527 else
90529 { echo "$as_me:$LINENO: checking if MCA component allocator:basic can compile" >&5
90530 echo $ECHO_N "checking if MCA component allocator:basic can compile... $ECHO_C" >&6; }
90531 { echo "$as_me:$LINENO: result: no" >&5
90532 echo "${ECHO_T}no" >&6; }
90534 # If this component was requested as the default for this
90535 # type, then abort.
90536 if test "$with_allocator" = "basic" ; then
90537 { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
90538 echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
90539 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
90540 echo "$as_me: WARNING: This component was selected as the default" >&2;}
90541 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
90542 echo "$as_me: error: Cannot continue" >&2;}
90543 { (exit 1); exit 1; }; }
90544 exit 1
90547 if test ! -z "$DIRECT_allocator" ; then
90548 if test "$DIRECT_allocator" = "basic" ; then
90549 { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
90550 echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
90551 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
90552 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
90553 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
90554 echo "$as_me: error: Cannot continue" >&2;}
90555 { (exit 1); exit 1; }; }
90556 exit 1
90560 # add component to all component list
90561 all_components="$all_components basic"
90564 # set the AM_CONDITIONAL on how we should build
90565 if test "$compile_mode" = "dso" ; then
90566 BUILD_allocator_basic_DSO=1
90567 else
90568 BUILD_allocator_basic_DSO=0
90572 if test "$BUILD_allocator_basic_DSO" = "1"; then
90573 OMPI_BUILD_allocator_basic_DSO_TRUE=
90574 OMPI_BUILD_allocator_basic_DSO_FALSE='#'
90575 else
90576 OMPI_BUILD_allocator_basic_DSO_TRUE='#'
90577 OMPI_BUILD_allocator_basic_DSO_FALSE=
90581 unset compile_mode
90583 ompi_show_subsubsubtitle "MCA component allocator:bucket (no configuration)"
90586 project=ompi
90587 framework=allocator
90588 component=bucket
90589 component_path="$srcdir/$project/mca/$framework/$component"
90590 want_component=0
90592 # build if:
90593 # - the component type is direct and we are that component
90594 # - there is no ompi_ignore file
90595 # - there is an ompi_ignore, but there is an empty ompi_unignore
90596 # - there is an ompi_ignore, but username is in ompi_unignore
90597 if test -d $component_path ; then
90598 # decide if we want the component to be built or not. This
90599 # is spread out because some of the logic is a little complex
90600 # and test's syntax isn't exactly the greatest. We want to
90601 # build the component by default.
90602 want_component=1
90603 if test -f $component_path/.ompi_ignore ; then
90604 # If there is an ompi_ignore file, don't build
90605 # the component. Note that this decision can be
90606 # overriden by the unignore logic below.
90607 want_component=0
90609 if test -f $component_path/.ompi_unignore ; then
90610 # if there is an empty ompi_unignore, that is
90611 # equivalent to having your userid in the unignore file.
90612 # If userid is in the file, unignore the ignore file.
90613 if test ! -s $component_path/.ompi_unignore ; then
90614 want_component=1
90615 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
90616 want_component=1
90619 # if this component type is direct and we are not it, we don't want
90620 # to be built. Otherwise, we do want to be built.
90621 if test ! -z "$DIRECT_allocator" ; then
90622 if test "$DIRECT_allocator" = "$component" ; then
90623 want_component=1
90624 else
90625 want_component=0
90630 # if we were explicitly disabled, don't build :)
90631 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
90632 eval $str
90633 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
90634 want_component=0
90637 if test "$want_component" = "1"; then
90638 should_build=$components_looking_for_succeed
90639 else
90640 should_build=0
90645 project=ompi
90646 framework=allocator
90647 component=bucket
90649 # Is this component going to built staic or shared? $component
90650 # might not be known until configure time, so have to use eval
90651 # tricks - can't set variable names at autogen time.
90652 str="SHARED_FRAMEWORK=\$DSO_$framework"
90653 eval $str
90654 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
90655 eval $str
90657 str="STATIC_FRAMEWORK=\$STATIC_$framework"
90658 eval $str
90659 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
90660 eval $str
90662 shared_mode_override=static
90664 # Setup for either shared or static
90665 if test "$STATIC_FRAMEWORK" = "1" -o \
90666 "$STATIC_COMPONENT" = "1" -o \
90667 "$STATIC_all" = "1" ; then
90668 compile_mode="static"
90669 elif test "$shared_mode_override" = "dso" -o \
90670 "$SHARED_FRAMEWORK" = "1" -o \
90671 "$SHARED_COMPONENT" = "1" -o \
90672 "$DSO_all" = "1"; then
90673 compile_mode="dso"
90674 else
90675 compile_mode="static"
90678 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
90679 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
90680 if test "$DIRECT_allocator" = "$component" ; then
90681 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
90682 echo "${ECHO_T}$compile_mode - direct" >&6; }
90683 else
90684 { echo "$as_me:$LINENO: result: $compile_mode" >&5
90685 echo "${ECHO_T}$compile_mode" >&6; }
90689 if test "$should_build" = "1" ; then
90691 project=ompi
90692 framework=allocator
90693 component=bucket
90695 # See if it dropped an output file for us to pick up some
90696 # shell variables in.
90697 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
90699 # Add this subdir to the mast list of all MCA component subdirs
90700 all_components="$all_components $component"
90702 if test "$compile_mode" = "dso" ; then
90703 dso_components="$dso_components $component"
90704 else
90705 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
90706 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
90707 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
90708 static_components="$static_components $component"
90711 # Output pretty results
90712 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
90713 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
90714 { echo "$as_me:$LINENO: result: yes" >&5
90715 echo "${ECHO_T}yes" >&6; }
90717 # If there's an output file, add the values to
90718 # scope_EXTRA_flags.
90719 if test -f $infile; then
90721 # First check for the ABORT tag
90722 line="`grep ABORT= $infile | cut -d= -f2-`"
90723 if test -n "$line" -a "$line" != "no"; then
90724 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
90725 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
90726 { { echo "$as_me:$LINENO: error: cannot continue" >&5
90727 echo "$as_me: error: cannot continue" >&2;}
90728 { (exit 1); exit 1; }; }
90731 # Check for flags passed up from the component. If we're
90732 # compiling statically, then take all flags passed up from the
90733 # component.
90734 if test "$compile_mode" = "static"; then
90735 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
90736 eval "line=$line"
90737 if test -n "$line"; then
90738 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
90740 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
90741 eval "line=$line"
90742 if test -n "$line"; then
90743 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
90747 if test "$DIRECT_allocator" = "$component" ; then
90748 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
90749 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
90750 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
90751 eval $str
90752 else
90753 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
90754 *** does not appear to support direct calling.
90755 *** Aborting" >&5
90756 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
90757 *** does not appear to support direct calling.
90758 *** Aborting" >&2;}
90759 { (exit 1); exit 1; }; }
90762 else
90763 # were we supposed to have found something in the
90764 # post_configure.sh, but the file didn't exist?
90765 if test "$DIRECT_allocator" = "$component" ; then
90766 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
90767 *** does not appear to support direct calling.
90768 *** Aborting" >&5
90769 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
90770 *** does not appear to support direct calling.
90771 *** Aborting" >&2;}
90772 { (exit 1); exit 1; }; }
90776 # now add the flags that were set in the environment variables
90777 # framework_component_FOO (for example, the flags set by
90778 # m4_configure components)
90780 # Check for flags passed up from the component. If we're
90781 # compiling statically, then take all flags passed up from the
90782 # component.
90783 if test "$compile_mode" = "static"; then
90784 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
90785 eval "$str"
90786 if test -n "$line" ; then
90787 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
90789 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
90790 eval "$str"
90791 if test -n "$line" ; then
90792 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
90796 else
90798 { echo "$as_me:$LINENO: checking if MCA component allocator:bucket can compile" >&5
90799 echo $ECHO_N "checking if MCA component allocator:bucket can compile... $ECHO_C" >&6; }
90800 { echo "$as_me:$LINENO: result: no" >&5
90801 echo "${ECHO_T}no" >&6; }
90803 # If this component was requested as the default for this
90804 # type, then abort.
90805 if test "$with_allocator" = "bucket" ; then
90806 { echo "$as_me:$LINENO: WARNING: MCA component \"bucket\" failed to configure properly" >&5
90807 echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;}
90808 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
90809 echo "$as_me: WARNING: This component was selected as the default" >&2;}
90810 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
90811 echo "$as_me: error: Cannot continue" >&2;}
90812 { (exit 1); exit 1; }; }
90813 exit 1
90816 if test ! -z "$DIRECT_allocator" ; then
90817 if test "$DIRECT_allocator" = "bucket" ; then
90818 { echo "$as_me:$LINENO: WARNING: MCA component \"bucket\" failed to configure properly" >&5
90819 echo "$as_me: WARNING: MCA component \"bucket\" failed to configure properly" >&2;}
90820 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
90821 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
90822 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
90823 echo "$as_me: error: Cannot continue" >&2;}
90824 { (exit 1); exit 1; }; }
90825 exit 1
90829 # add component to all component list
90830 all_components="$all_components bucket"
90833 # set the AM_CONDITIONAL on how we should build
90834 if test "$compile_mode" = "dso" ; then
90835 BUILD_allocator_bucket_DSO=1
90836 else
90837 BUILD_allocator_bucket_DSO=0
90841 if test "$BUILD_allocator_bucket_DSO" = "1"; then
90842 OMPI_BUILD_allocator_bucket_DSO_TRUE=
90843 OMPI_BUILD_allocator_bucket_DSO_FALSE='#'
90844 else
90845 OMPI_BUILD_allocator_bucket_DSO_TRUE='#'
90846 OMPI_BUILD_allocator_bucket_DSO_FALSE=
90850 unset compile_mode
90853 # configure components that use built-in configuration scripts
90854 # see comment in CONFIGURE_PROJECT about the m4_ifval
90855 # if there isn't a component list, abort
90859 # configure components that provide their own configure script.
90860 # It would be really hard to run these for "find first that
90861 # works", so we don't :)
90862 if test "$happy_value" = "1"; then
90864 for component_path in $srcdir/ompi/mca/allocator/* ; do
90865 component="`basename $component_path`"
90866 if test -d $component_path -a -x $component_path/configure ; then
90867 ompi_show_subsubsubtitle "MCA component allocator:$component (need to configure)"
90870 project=ompi
90871 framework=allocator
90872 component=$component
90873 component_path="$srcdir/$project/mca/$framework/$component"
90874 want_component=0
90876 # build if:
90877 # - the component type is direct and we are that component
90878 # - there is no ompi_ignore file
90879 # - there is an ompi_ignore, but there is an empty ompi_unignore
90880 # - there is an ompi_ignore, but username is in ompi_unignore
90881 if test -d $component_path ; then
90882 # decide if we want the component to be built or not. This
90883 # is spread out because some of the logic is a little complex
90884 # and test's syntax isn't exactly the greatest. We want to
90885 # build the component by default.
90886 want_component=1
90887 if test -f $component_path/.ompi_ignore ; then
90888 # If there is an ompi_ignore file, don't build
90889 # the component. Note that this decision can be
90890 # overriden by the unignore logic below.
90891 want_component=0
90893 if test -f $component_path/.ompi_unignore ; then
90894 # if there is an empty ompi_unignore, that is
90895 # equivalent to having your userid in the unignore file.
90896 # If userid is in the file, unignore the ignore file.
90897 if test ! -s $component_path/.ompi_unignore ; then
90898 want_component=1
90899 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
90900 want_component=1
90903 # if this component type is direct and we are not it, we don't want
90904 # to be built. Otherwise, we do want to be built.
90905 if test ! -z "$DIRECT_allocator" ; then
90906 if test "$DIRECT_allocator" = "$component" ; then
90907 want_component=1
90908 else
90909 want_component=0
90914 # if we were explicitly disabled, don't build :)
90915 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
90916 eval $str
90917 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
90918 want_component=0
90921 if test "$want_component" = "1"; then
90922 should_build=1
90923 else
90924 should_build=0
90929 project=ompi
90930 framework=allocator
90931 component=$component
90933 # Is this component going to built staic or shared? $component
90934 # might not be known until configure time, so have to use eval
90935 # tricks - can't set variable names at autogen time.
90936 str="SHARED_FRAMEWORK=\$DSO_$framework"
90937 eval $str
90938 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
90939 eval $str
90941 str="STATIC_FRAMEWORK=\$STATIC_$framework"
90942 eval $str
90943 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
90944 eval $str
90946 shared_mode_override=static
90948 # Setup for either shared or static
90949 if test "$STATIC_FRAMEWORK" = "1" -o \
90950 "$STATIC_COMPONENT" = "1" -o \
90951 "$STATIC_all" = "1" ; then
90952 compile_mode="static"
90953 elif test "$shared_mode_override" = "dso" -o \
90954 "$SHARED_FRAMEWORK" = "1" -o \
90955 "$SHARED_COMPONENT" = "1" -o \
90956 "$DSO_all" = "1"; then
90957 compile_mode="dso"
90958 else
90959 compile_mode="static"
90962 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
90963 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
90964 if test "$DIRECT_allocator" = "$component" ; then
90965 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
90966 echo "${ECHO_T}$compile_mode - direct" >&6; }
90967 else
90968 { echo "$as_me:$LINENO: result: $compile_mode" >&5
90969 echo "${ECHO_T}$compile_mode" >&6; }
90973 if test "$should_build" = "1" ; then
90976 # Invoke configure in a specific subdirectory.
90978 # ompi/mca/allocator/$component is the directory to invoke in
90979 # $ompi_subdir_args is the list of arguments to pass
90980 # should_build=1 is actions to execute upon success
90981 # should_build=2 is actions to execute upon failure
90983 subdir_dir="ompi/mca/allocator/$component"
90984 subdir_args="$ompi_subdir_args"
90985 subdir_success="should_build=1"
90986 subdir_failure="should_build=2"
90989 # Sanity checks
90992 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
90993 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
90994 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
90997 # Gotta check where srcdir is for VPATH builds. If srcdir is not
90998 # ., then we need to mkdir the subdir. Otherwise, we can just cd
90999 # into it.
91002 case $srcdir in
91006 { case $subdir_dir in
91007 [\\/]* | ?:[\\/]* ) total_dir=;;
91008 *) total_dir=.;;
91009 esac
91010 temp=$subdir_dir
91011 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
91012 case $dir_part in
91013 # Skip DOS drivespec
91014 ?:) total_dir=$dir_part ;;
91015 *) total_dir=$total_dir/$dir_part
91016 test -d "$total_dir" ||
91017 mkdir "$total_dir" ||
91018 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
91019 echo "$as_me: error: cannot create $subdir_dir" >&2;}
91020 { (exit 1); exit 1; }; }
91022 esac
91023 done; }
91025 if test -d ./$subdir_dir; then :;
91026 else
91027 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
91028 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
91029 { (exit 1); exit 1; }; }
91032 esac
91035 # Move into the target directory
91038 subdir_parent=`pwd`
91039 cd $subdir_dir
91042 # Make a "../" for each directory in $subdir_dir.
91045 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
91047 # Construct the --srcdir argument
91050 case $srcdir in
91052 # In place
91053 subdir_srcdir="$srcdir"
91055 [\\/]* | ?:[\\/]* )
91056 # Absolute path
91057 subdir_srcdir="$srcdir/$subdir_dir"
91060 # Relative path
91061 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
91063 esac
91066 # Construct the --cache-file argument
91069 # BWB - subdir caching is a pain since we change CFLAGS and all that.
91070 # Just disable it for now
91071 subdir_cache_file="/dev/null"
91074 # Invoke the configure script in the subdirectory
91077 export CFLAGS CPPFLAGS
91078 export CXXFLAGS CXXCPPFLAGS
91079 export FFLAGS
91080 export LDFLAGS LIBS
91081 sub_configure="$SHELL '$subdir_srcdir/configure'"
91082 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
91083 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
91084 eval "$sub_configure $subdir_args \
91085 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
91086 if test "$?" = "0"; then
91087 eval $subdir_success
91088 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
91089 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
91090 else
91091 eval $subdir_failure
91092 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
91093 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
91097 # Go back to the topdir
91100 cd $subdir_parent
91104 # Clean up
91107 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
91108 unset subdir_args subdir_dots total_dir dir_part temp
91111 if test "$should_build" = "1" ; then
91113 project=ompi
91114 framework=allocator
91115 component=$component
91117 # See if it dropped an output file for us to pick up some
91118 # shell variables in.
91119 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
91121 # Add this subdir to the mast list of all MCA component subdirs
91122 all_components="$all_components $component"
91124 if test "$compile_mode" = "dso" ; then
91125 dso_components="$dso_components $component"
91126 else
91127 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
91128 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
91129 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
91130 static_components="$static_components $component"
91133 # Output pretty results
91134 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
91135 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
91136 { echo "$as_me:$LINENO: result: yes" >&5
91137 echo "${ECHO_T}yes" >&6; }
91139 # If there's an output file, add the values to
91140 # scope_EXTRA_flags.
91141 if test -f $infile; then
91143 # First check for the ABORT tag
91144 line="`grep ABORT= $infile | cut -d= -f2-`"
91145 if test -n "$line" -a "$line" != "no"; then
91146 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
91147 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
91148 { { echo "$as_me:$LINENO: error: cannot continue" >&5
91149 echo "$as_me: error: cannot continue" >&2;}
91150 { (exit 1); exit 1; }; }
91153 # Check for flags passed up from the component. If we're
91154 # compiling statically, then take all flags passed up from the
91155 # component.
91156 if test "$compile_mode" = "static"; then
91157 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
91158 eval "line=$line"
91159 if test -n "$line"; then
91160 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
91162 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
91163 eval "line=$line"
91164 if test -n "$line"; then
91165 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
91169 if test "$DIRECT_allocator" = "$component" ; then
91170 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
91171 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
91172 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
91173 eval $str
91174 else
91175 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
91176 *** does not appear to support direct calling.
91177 *** Aborting" >&5
91178 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
91179 *** does not appear to support direct calling.
91180 *** Aborting" >&2;}
91181 { (exit 1); exit 1; }; }
91184 else
91185 # were we supposed to have found something in the
91186 # post_configure.sh, but the file didn't exist?
91187 if test "$DIRECT_allocator" = "$component" ; then
91188 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
91189 *** does not appear to support direct calling.
91190 *** Aborting" >&5
91191 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
91192 *** does not appear to support direct calling.
91193 *** Aborting" >&2;}
91194 { (exit 1); exit 1; }; }
91198 # now add the flags that were set in the environment variables
91199 # framework_component_FOO (for example, the flags set by
91200 # m4_configure components)
91202 # Check for flags passed up from the component. If we're
91203 # compiling statically, then take all flags passed up from the
91204 # component.
91205 if test "$compile_mode" = "static"; then
91206 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
91207 eval "$str"
91208 if test -n "$line" ; then
91209 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
91211 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
91212 eval "$str"
91213 if test -n "$line" ; then
91214 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
91218 else
91220 { echo "$as_me:$LINENO: checking if MCA component allocator:$component can compile" >&5
91221 echo $ECHO_N "checking if MCA component allocator:$component can compile... $ECHO_C" >&6; }
91222 { echo "$as_me:$LINENO: result: no" >&5
91223 echo "${ECHO_T}no" >&6; }
91225 # If this component was requested as the default for this
91226 # type, then abort.
91227 if test "$with_allocator" = "$component" ; then
91228 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
91229 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
91230 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
91231 echo "$as_me: WARNING: This component was selected as the default" >&2;}
91232 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
91233 echo "$as_me: error: Cannot continue" >&2;}
91234 { (exit 1); exit 1; }; }
91235 exit 1
91238 if test ! -z "$DIRECT_allocator" ; then
91239 if test "$DIRECT_allocator" = "$component" ; then
91240 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
91241 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
91242 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
91243 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
91244 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
91245 echo "$as_me: error: Cannot continue" >&2;}
91246 { (exit 1); exit 1; }; }
91247 exit 1
91253 done
91258 MCA_allocator_ALL_COMPONENTS="$all_components"
91259 MCA_allocator_STATIC_COMPONENTS="$static_components"
91260 MCA_allocator_DSO_COMPONENTS="$dso_components"
91261 MCA_allocator_STATIC_LTLIBS="$static_ltlibs"
91269 MCA_allocator_ALL_SUBDIRS=
91270 for item in $all_components ; do
91271 MCA_allocator_ALL_SUBDIRS="$MCA_allocator_ALL_SUBDIRS mca/allocator/$item"
91272 done
91276 MCA_allocator_STATIC_SUBDIRS=
91277 for item in $static_components ; do
91278 MCA_allocator_STATIC_SUBDIRS="$MCA_allocator_STATIC_SUBDIRS mca/allocator/$item"
91279 done
91283 MCA_allocator_DSO_SUBDIRS=
91284 for item in $dso_components ; do
91285 MCA_allocator_DSO_SUBDIRS="$MCA_allocator_DSO_SUBDIRS mca/allocator/$item"
91286 done
91290 # add all the makefiles for the framework to the CONFIG_FILES.
91291 # Don't add common/base, since it doesn't exist
91292 ac_config_files="$ac_config_files ompi/mca/allocator/Makefile"
91295 # Create the final .h file that will be included in the type's
91296 # top-level glue. This lists all the static components. We don't
91297 # need to do this for "common".
91298 if test "allocator" != "common"; then
91299 cat > $outfile <<EOF
91301 * \$HEADER\$
91304 `cat $outfile.extern`
91306 const mca_base_component_t *mca_allocator_base_static_components[] = {
91307 `cat $outfile.struct`
91308 NULL
91311 # Only replace the header file if a) it doesn't previously
91312 # exist, or b) the contents are different. Do this to not
91313 # trigger recompilation of certain .c files just because the
91314 # timestamp changed on $outfile_real (similar to the way AC
91315 # handles AC_CONFIG_HEADER files).
91316 diff $outfile $outfile_real > /dev/null 2>&1
91317 if test "$?" != "0"; then
91318 mv $outfile $outfile_real
91319 else
91320 rm -f $outfile
91323 rm -f $outfile.struct $outfile.extern
91325 unset all_components static_components dso_components outfile outfile_real
91326 # common has to go up front
91327 if test "bml" = "common" ; then
91328 MCA_ompi_FRAMEWORKS="bml $MCA_ompi_FRAMEWORKS"
91329 MCA_ompi_FRAMEWORKS_SUBDIRS="mca/bml $MCA_ompi_FRAMEWORKS_SUBDIRS"
91330 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_bml_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
91331 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_bml_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
91332 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_bml_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
91333 else
91334 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS bml"
91335 MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/bml"
91336 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_bml_ALL_SUBDIRS)"
91337 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_bml_DSO_SUBDIRS)"
91338 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_bml_STATIC_SUBDIRS)"
91340 if test "bml" != "common" ; then
91341 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/bml/libmca_bml.la"
91343 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_bml_STATIC_LTLIBS)"
91345 ompi_show_subsubtitle "Configuring MCA framework bml"
91347 # setup for framework
91348 all_components=
91349 static_components=
91350 dso_components=
91351 static_ltlibs=
91353 # Ensure that the directory where the #include file is to live
91354 # exists. Need to do this for VPATH builds, because the directory
91355 # may not exist yet. For the "common" type, it's not really a
91356 # component, so it doesn't have a base.
91357 if test "bml" = "common" ; then
91358 outdir=ompi/mca/common
91359 else
91360 outdir=ompi/mca/bml/base
91362 { as_dir=$outdir
91363 case $as_dir in #(
91364 -*) as_dir=./$as_dir;;
91365 esac
91366 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
91367 as_dirs=
91368 while :; do
91369 case $as_dir in #(
91370 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
91371 *) as_qdir=$as_dir;;
91372 esac
91373 as_dirs="'$as_qdir' $as_dirs"
91374 as_dir=`$as_dirname -- "$as_dir" ||
91375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
91376 X"$as_dir" : 'X\(//\)[^/]' \| \
91377 X"$as_dir" : 'X\(//\)$' \| \
91378 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
91379 echo X"$as_dir" |
91380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
91381 s//\1/
91384 /^X\(\/\/\)[^/].*/{
91385 s//\1/
91388 /^X\(\/\/\)$/{
91389 s//\1/
91392 /^X\(\/\).*/{
91393 s//\1/
91396 s/.*/./; q'`
91397 test -d "$as_dir" && break
91398 done
91399 test -z "$as_dirs" || eval "mkdir $as_dirs"
91400 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
91401 echo "$as_me: error: cannot create directory $as_dir" >&2;}
91402 { (exit 1); exit 1; }; }; }
91404 # remove any previously generated #include files
91405 outfile_real=$outdir/static-components.h
91406 outfile=$outfile_real.new
91407 rm -f $outfile $outfile.struct $outfile.extern
91408 touch $outfile.struct $outfile.extern
91410 # print some nice messages about what we're about to do...
91411 { echo "$as_me:$LINENO: checking for no configure components in framework bml" >&5
91412 echo $ECHO_N "checking for no configure components in framework bml... $ECHO_C" >&6; }
91413 { echo "$as_me:$LINENO: result: r2" >&5
91414 echo "${ECHO_T}r2" >&6; }
91415 { echo "$as_me:$LINENO: checking for m4 configure components in framework bml" >&5
91416 echo $ECHO_N "checking for m4 configure components in framework bml... $ECHO_C" >&6; }
91417 { echo "$as_me:$LINENO: result: " >&5
91418 echo "${ECHO_T}" >&6; }
91420 # if we only want the first successful component, set the variable
91421 # happy_value to 0 so we stop on first assignment. Otherwise, set
91422 # it to zero so that components_looking_for_succeed is always 1
91423 happy_value=1
91425 components_looking_for_succeed=1
91427 # configure components that don't have any component-specific
91428 # configuration. See comment in CONFIGURE_PROJECT about the
91429 # m4_ifval
91430 # if there isn't a component list, abort
91433 ompi_show_subsubsubtitle "MCA component bml:r2 (no configuration)"
91436 project=ompi
91437 framework=bml
91438 component=r2
91439 component_path="$srcdir/$project/mca/$framework/$component"
91440 want_component=0
91442 # build if:
91443 # - the component type is direct and we are that component
91444 # - there is no ompi_ignore file
91445 # - there is an ompi_ignore, but there is an empty ompi_unignore
91446 # - there is an ompi_ignore, but username is in ompi_unignore
91447 if test -d $component_path ; then
91448 # decide if we want the component to be built or not. This
91449 # is spread out because some of the logic is a little complex
91450 # and test's syntax isn't exactly the greatest. We want to
91451 # build the component by default.
91452 want_component=1
91453 if test -f $component_path/.ompi_ignore ; then
91454 # If there is an ompi_ignore file, don't build
91455 # the component. Note that this decision can be
91456 # overriden by the unignore logic below.
91457 want_component=0
91459 if test -f $component_path/.ompi_unignore ; then
91460 # if there is an empty ompi_unignore, that is
91461 # equivalent to having your userid in the unignore file.
91462 # If userid is in the file, unignore the ignore file.
91463 if test ! -s $component_path/.ompi_unignore ; then
91464 want_component=1
91465 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
91466 want_component=1
91469 # if this component type is direct and we are not it, we don't want
91470 # to be built. Otherwise, we do want to be built.
91471 if test ! -z "$DIRECT_bml" ; then
91472 if test "$DIRECT_bml" = "$component" ; then
91473 want_component=1
91474 else
91475 want_component=0
91480 # if we were explicitly disabled, don't build :)
91481 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
91482 eval $str
91483 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
91484 want_component=0
91487 if test "$want_component" = "1"; then
91488 should_build=$components_looking_for_succeed
91489 else
91490 should_build=0
91495 project=ompi
91496 framework=bml
91497 component=r2
91499 # Is this component going to built staic or shared? $component
91500 # might not be known until configure time, so have to use eval
91501 # tricks - can't set variable names at autogen time.
91502 str="SHARED_FRAMEWORK=\$DSO_$framework"
91503 eval $str
91504 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
91505 eval $str
91507 str="STATIC_FRAMEWORK=\$STATIC_$framework"
91508 eval $str
91509 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
91510 eval $str
91512 shared_mode_override=static
91514 # Setup for either shared or static
91515 if test "$STATIC_FRAMEWORK" = "1" -o \
91516 "$STATIC_COMPONENT" = "1" -o \
91517 "$STATIC_all" = "1" ; then
91518 compile_mode="static"
91519 elif test "$shared_mode_override" = "dso" -o \
91520 "$SHARED_FRAMEWORK" = "1" -o \
91521 "$SHARED_COMPONENT" = "1" -o \
91522 "$DSO_all" = "1"; then
91523 compile_mode="dso"
91524 else
91525 compile_mode="static"
91528 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
91529 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
91530 if test "$DIRECT_bml" = "$component" ; then
91531 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
91532 echo "${ECHO_T}$compile_mode - direct" >&6; }
91533 else
91534 { echo "$as_me:$LINENO: result: $compile_mode" >&5
91535 echo "${ECHO_T}$compile_mode" >&6; }
91539 if test "$should_build" = "1" ; then
91541 project=ompi
91542 framework=bml
91543 component=r2
91545 # See if it dropped an output file for us to pick up some
91546 # shell variables in.
91547 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
91549 # Add this subdir to the mast list of all MCA component subdirs
91550 all_components="$all_components $component"
91552 if test "$compile_mode" = "dso" ; then
91553 dso_components="$dso_components $component"
91554 else
91555 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
91556 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
91557 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
91558 static_components="$static_components $component"
91561 # Output pretty results
91562 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
91563 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
91564 { echo "$as_me:$LINENO: result: yes" >&5
91565 echo "${ECHO_T}yes" >&6; }
91567 # If there's an output file, add the values to
91568 # scope_EXTRA_flags.
91569 if test -f $infile; then
91571 # First check for the ABORT tag
91572 line="`grep ABORT= $infile | cut -d= -f2-`"
91573 if test -n "$line" -a "$line" != "no"; then
91574 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
91575 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
91576 { { echo "$as_me:$LINENO: error: cannot continue" >&5
91577 echo "$as_me: error: cannot continue" >&2;}
91578 { (exit 1); exit 1; }; }
91581 # Check for flags passed up from the component. If we're
91582 # compiling statically, then take all flags passed up from the
91583 # component.
91584 if test "$compile_mode" = "static"; then
91585 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
91586 eval "line=$line"
91587 if test -n "$line"; then
91588 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
91590 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
91591 eval "line=$line"
91592 if test -n "$line"; then
91593 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
91597 if test "$DIRECT_bml" = "$component" ; then
91598 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
91599 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
91600 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
91601 eval $str
91602 else
91603 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
91604 *** does not appear to support direct calling.
91605 *** Aborting" >&5
91606 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
91607 *** does not appear to support direct calling.
91608 *** Aborting" >&2;}
91609 { (exit 1); exit 1; }; }
91612 else
91613 # were we supposed to have found something in the
91614 # post_configure.sh, but the file didn't exist?
91615 if test "$DIRECT_bml" = "$component" ; then
91616 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
91617 *** does not appear to support direct calling.
91618 *** Aborting" >&5
91619 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
91620 *** does not appear to support direct calling.
91621 *** Aborting" >&2;}
91622 { (exit 1); exit 1; }; }
91626 # now add the flags that were set in the environment variables
91627 # framework_component_FOO (for example, the flags set by
91628 # m4_configure components)
91630 # Check for flags passed up from the component. If we're
91631 # compiling statically, then take all flags passed up from the
91632 # component.
91633 if test "$compile_mode" = "static"; then
91634 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
91635 eval "$str"
91636 if test -n "$line" ; then
91637 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
91639 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
91640 eval "$str"
91641 if test -n "$line" ; then
91642 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
91646 else
91648 { echo "$as_me:$LINENO: checking if MCA component bml:r2 can compile" >&5
91649 echo $ECHO_N "checking if MCA component bml:r2 can compile... $ECHO_C" >&6; }
91650 { echo "$as_me:$LINENO: result: no" >&5
91651 echo "${ECHO_T}no" >&6; }
91653 # If this component was requested as the default for this
91654 # type, then abort.
91655 if test "$with_bml" = "r2" ; then
91656 { echo "$as_me:$LINENO: WARNING: MCA component \"r2\" failed to configure properly" >&5
91657 echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;}
91658 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
91659 echo "$as_me: WARNING: This component was selected as the default" >&2;}
91660 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
91661 echo "$as_me: error: Cannot continue" >&2;}
91662 { (exit 1); exit 1; }; }
91663 exit 1
91666 if test ! -z "$DIRECT_bml" ; then
91667 if test "$DIRECT_bml" = "r2" ; then
91668 { echo "$as_me:$LINENO: WARNING: MCA component \"r2\" failed to configure properly" >&5
91669 echo "$as_me: WARNING: MCA component \"r2\" failed to configure properly" >&2;}
91670 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
91671 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
91672 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
91673 echo "$as_me: error: Cannot continue" >&2;}
91674 { (exit 1); exit 1; }; }
91675 exit 1
91679 # add component to all component list
91680 all_components="$all_components r2"
91683 # set the AM_CONDITIONAL on how we should build
91684 if test "$compile_mode" = "dso" ; then
91685 BUILD_bml_r2_DSO=1
91686 else
91687 BUILD_bml_r2_DSO=0
91691 if test "$BUILD_bml_r2_DSO" = "1"; then
91692 OMPI_BUILD_bml_r2_DSO_TRUE=
91693 OMPI_BUILD_bml_r2_DSO_FALSE='#'
91694 else
91695 OMPI_BUILD_bml_r2_DSO_TRUE='#'
91696 OMPI_BUILD_bml_r2_DSO_FALSE=
91700 unset compile_mode
91703 # configure components that use built-in configuration scripts
91704 # see comment in CONFIGURE_PROJECT about the m4_ifval
91705 # if there isn't a component list, abort
91709 # configure components that provide their own configure script.
91710 # It would be really hard to run these for "find first that
91711 # works", so we don't :)
91712 if test "$happy_value" = "1"; then
91714 for component_path in $srcdir/ompi/mca/bml/* ; do
91715 component="`basename $component_path`"
91716 if test -d $component_path -a -x $component_path/configure ; then
91717 ompi_show_subsubsubtitle "MCA component bml:$component (need to configure)"
91720 project=ompi
91721 framework=bml
91722 component=$component
91723 component_path="$srcdir/$project/mca/$framework/$component"
91724 want_component=0
91726 # build if:
91727 # - the component type is direct and we are that component
91728 # - there is no ompi_ignore file
91729 # - there is an ompi_ignore, but there is an empty ompi_unignore
91730 # - there is an ompi_ignore, but username is in ompi_unignore
91731 if test -d $component_path ; then
91732 # decide if we want the component to be built or not. This
91733 # is spread out because some of the logic is a little complex
91734 # and test's syntax isn't exactly the greatest. We want to
91735 # build the component by default.
91736 want_component=1
91737 if test -f $component_path/.ompi_ignore ; then
91738 # If there is an ompi_ignore file, don't build
91739 # the component. Note that this decision can be
91740 # overriden by the unignore logic below.
91741 want_component=0
91743 if test -f $component_path/.ompi_unignore ; then
91744 # if there is an empty ompi_unignore, that is
91745 # equivalent to having your userid in the unignore file.
91746 # If userid is in the file, unignore the ignore file.
91747 if test ! -s $component_path/.ompi_unignore ; then
91748 want_component=1
91749 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
91750 want_component=1
91753 # if this component type is direct and we are not it, we don't want
91754 # to be built. Otherwise, we do want to be built.
91755 if test ! -z "$DIRECT_bml" ; then
91756 if test "$DIRECT_bml" = "$component" ; then
91757 want_component=1
91758 else
91759 want_component=0
91764 # if we were explicitly disabled, don't build :)
91765 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
91766 eval $str
91767 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
91768 want_component=0
91771 if test "$want_component" = "1"; then
91772 should_build=1
91773 else
91774 should_build=0
91779 project=ompi
91780 framework=bml
91781 component=$component
91783 # Is this component going to built staic or shared? $component
91784 # might not be known until configure time, so have to use eval
91785 # tricks - can't set variable names at autogen time.
91786 str="SHARED_FRAMEWORK=\$DSO_$framework"
91787 eval $str
91788 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
91789 eval $str
91791 str="STATIC_FRAMEWORK=\$STATIC_$framework"
91792 eval $str
91793 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
91794 eval $str
91796 shared_mode_override=static
91798 # Setup for either shared or static
91799 if test "$STATIC_FRAMEWORK" = "1" -o \
91800 "$STATIC_COMPONENT" = "1" -o \
91801 "$STATIC_all" = "1" ; then
91802 compile_mode="static"
91803 elif test "$shared_mode_override" = "dso" -o \
91804 "$SHARED_FRAMEWORK" = "1" -o \
91805 "$SHARED_COMPONENT" = "1" -o \
91806 "$DSO_all" = "1"; then
91807 compile_mode="dso"
91808 else
91809 compile_mode="static"
91812 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
91813 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
91814 if test "$DIRECT_bml" = "$component" ; then
91815 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
91816 echo "${ECHO_T}$compile_mode - direct" >&6; }
91817 else
91818 { echo "$as_me:$LINENO: result: $compile_mode" >&5
91819 echo "${ECHO_T}$compile_mode" >&6; }
91823 if test "$should_build" = "1" ; then
91826 # Invoke configure in a specific subdirectory.
91828 # ompi/mca/bml/$component is the directory to invoke in
91829 # $ompi_subdir_args is the list of arguments to pass
91830 # should_build=1 is actions to execute upon success
91831 # should_build=2 is actions to execute upon failure
91833 subdir_dir="ompi/mca/bml/$component"
91834 subdir_args="$ompi_subdir_args"
91835 subdir_success="should_build=1"
91836 subdir_failure="should_build=2"
91839 # Sanity checks
91842 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
91843 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
91844 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
91847 # Gotta check where srcdir is for VPATH builds. If srcdir is not
91848 # ., then we need to mkdir the subdir. Otherwise, we can just cd
91849 # into it.
91852 case $srcdir in
91856 { case $subdir_dir in
91857 [\\/]* | ?:[\\/]* ) total_dir=;;
91858 *) total_dir=.;;
91859 esac
91860 temp=$subdir_dir
91861 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
91862 case $dir_part in
91863 # Skip DOS drivespec
91864 ?:) total_dir=$dir_part ;;
91865 *) total_dir=$total_dir/$dir_part
91866 test -d "$total_dir" ||
91867 mkdir "$total_dir" ||
91868 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
91869 echo "$as_me: error: cannot create $subdir_dir" >&2;}
91870 { (exit 1); exit 1; }; }
91872 esac
91873 done; }
91875 if test -d ./$subdir_dir; then :;
91876 else
91877 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
91878 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
91879 { (exit 1); exit 1; }; }
91882 esac
91885 # Move into the target directory
91888 subdir_parent=`pwd`
91889 cd $subdir_dir
91892 # Make a "../" for each directory in $subdir_dir.
91895 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
91897 # Construct the --srcdir argument
91900 case $srcdir in
91902 # In place
91903 subdir_srcdir="$srcdir"
91905 [\\/]* | ?:[\\/]* )
91906 # Absolute path
91907 subdir_srcdir="$srcdir/$subdir_dir"
91910 # Relative path
91911 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
91913 esac
91916 # Construct the --cache-file argument
91919 # BWB - subdir caching is a pain since we change CFLAGS and all that.
91920 # Just disable it for now
91921 subdir_cache_file="/dev/null"
91924 # Invoke the configure script in the subdirectory
91927 export CFLAGS CPPFLAGS
91928 export CXXFLAGS CXXCPPFLAGS
91929 export FFLAGS
91930 export LDFLAGS LIBS
91931 sub_configure="$SHELL '$subdir_srcdir/configure'"
91932 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
91933 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
91934 eval "$sub_configure $subdir_args \
91935 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
91936 if test "$?" = "0"; then
91937 eval $subdir_success
91938 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
91939 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
91940 else
91941 eval $subdir_failure
91942 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
91943 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
91947 # Go back to the topdir
91950 cd $subdir_parent
91954 # Clean up
91957 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
91958 unset subdir_args subdir_dots total_dir dir_part temp
91961 if test "$should_build" = "1" ; then
91963 project=ompi
91964 framework=bml
91965 component=$component
91967 # See if it dropped an output file for us to pick up some
91968 # shell variables in.
91969 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
91971 # Add this subdir to the mast list of all MCA component subdirs
91972 all_components="$all_components $component"
91974 if test "$compile_mode" = "dso" ; then
91975 dso_components="$dso_components $component"
91976 else
91977 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
91978 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
91979 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
91980 static_components="$static_components $component"
91983 # Output pretty results
91984 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
91985 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
91986 { echo "$as_me:$LINENO: result: yes" >&5
91987 echo "${ECHO_T}yes" >&6; }
91989 # If there's an output file, add the values to
91990 # scope_EXTRA_flags.
91991 if test -f $infile; then
91993 # First check for the ABORT tag
91994 line="`grep ABORT= $infile | cut -d= -f2-`"
91995 if test -n "$line" -a "$line" != "no"; then
91996 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
91997 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
91998 { { echo "$as_me:$LINENO: error: cannot continue" >&5
91999 echo "$as_me: error: cannot continue" >&2;}
92000 { (exit 1); exit 1; }; }
92003 # Check for flags passed up from the component. If we're
92004 # compiling statically, then take all flags passed up from the
92005 # component.
92006 if test "$compile_mode" = "static"; then
92007 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
92008 eval "line=$line"
92009 if test -n "$line"; then
92010 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
92012 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
92013 eval "line=$line"
92014 if test -n "$line"; then
92015 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
92019 if test "$DIRECT_bml" = "$component" ; then
92020 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
92021 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
92022 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
92023 eval $str
92024 else
92025 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
92026 *** does not appear to support direct calling.
92027 *** Aborting" >&5
92028 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
92029 *** does not appear to support direct calling.
92030 *** Aborting" >&2;}
92031 { (exit 1); exit 1; }; }
92034 else
92035 # were we supposed to have found something in the
92036 # post_configure.sh, but the file didn't exist?
92037 if test "$DIRECT_bml" = "$component" ; then
92038 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
92039 *** does not appear to support direct calling.
92040 *** Aborting" >&5
92041 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
92042 *** does not appear to support direct calling.
92043 *** Aborting" >&2;}
92044 { (exit 1); exit 1; }; }
92048 # now add the flags that were set in the environment variables
92049 # framework_component_FOO (for example, the flags set by
92050 # m4_configure components)
92052 # Check for flags passed up from the component. If we're
92053 # compiling statically, then take all flags passed up from the
92054 # component.
92055 if test "$compile_mode" = "static"; then
92056 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
92057 eval "$str"
92058 if test -n "$line" ; then
92059 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
92061 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
92062 eval "$str"
92063 if test -n "$line" ; then
92064 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
92068 else
92070 { echo "$as_me:$LINENO: checking if MCA component bml:$component can compile" >&5
92071 echo $ECHO_N "checking if MCA component bml:$component can compile... $ECHO_C" >&6; }
92072 { echo "$as_me:$LINENO: result: no" >&5
92073 echo "${ECHO_T}no" >&6; }
92075 # If this component was requested as the default for this
92076 # type, then abort.
92077 if test "$with_bml" = "$component" ; then
92078 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
92079 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
92080 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
92081 echo "$as_me: WARNING: This component was selected as the default" >&2;}
92082 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
92083 echo "$as_me: error: Cannot continue" >&2;}
92084 { (exit 1); exit 1; }; }
92085 exit 1
92088 if test ! -z "$DIRECT_bml" ; then
92089 if test "$DIRECT_bml" = "$component" ; then
92090 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
92091 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
92092 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
92093 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
92094 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
92095 echo "$as_me: error: Cannot continue" >&2;}
92096 { (exit 1); exit 1; }; }
92097 exit 1
92103 done
92108 MCA_bml_ALL_COMPONENTS="$all_components"
92109 MCA_bml_STATIC_COMPONENTS="$static_components"
92110 MCA_bml_DSO_COMPONENTS="$dso_components"
92111 MCA_bml_STATIC_LTLIBS="$static_ltlibs"
92119 MCA_bml_ALL_SUBDIRS=
92120 for item in $all_components ; do
92121 MCA_bml_ALL_SUBDIRS="$MCA_bml_ALL_SUBDIRS mca/bml/$item"
92122 done
92126 MCA_bml_STATIC_SUBDIRS=
92127 for item in $static_components ; do
92128 MCA_bml_STATIC_SUBDIRS="$MCA_bml_STATIC_SUBDIRS mca/bml/$item"
92129 done
92133 MCA_bml_DSO_SUBDIRS=
92134 for item in $dso_components ; do
92135 MCA_bml_DSO_SUBDIRS="$MCA_bml_DSO_SUBDIRS mca/bml/$item"
92136 done
92140 # add all the makefiles for the framework to the CONFIG_FILES.
92141 # Don't add common/base, since it doesn't exist
92142 ac_config_files="$ac_config_files ompi/mca/bml/Makefile"
92145 # Create the final .h file that will be included in the type's
92146 # top-level glue. This lists all the static components. We don't
92147 # need to do this for "common".
92148 if test "bml" != "common"; then
92149 cat > $outfile <<EOF
92151 * \$HEADER\$
92154 `cat $outfile.extern`
92156 const mca_base_component_t *mca_bml_base_static_components[] = {
92157 `cat $outfile.struct`
92158 NULL
92161 # Only replace the header file if a) it doesn't previously
92162 # exist, or b) the contents are different. Do this to not
92163 # trigger recompilation of certain .c files just because the
92164 # timestamp changed on $outfile_real (similar to the way AC
92165 # handles AC_CONFIG_HEADER files).
92166 diff $outfile $outfile_real > /dev/null 2>&1
92167 if test "$?" != "0"; then
92168 mv $outfile $outfile_real
92169 else
92170 rm -f $outfile
92173 rm -f $outfile.struct $outfile.extern
92175 unset all_components static_components dso_components outfile outfile_real
92176 # common has to go up front
92177 if test "btl" = "common" ; then
92178 MCA_ompi_FRAMEWORKS="btl $MCA_ompi_FRAMEWORKS"
92179 MCA_ompi_FRAMEWORKS_SUBDIRS="mca/btl $MCA_ompi_FRAMEWORKS_SUBDIRS"
92180 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_btl_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
92181 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_btl_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
92182 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_btl_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
92183 else
92184 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS btl"
92185 MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/btl"
92186 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_btl_ALL_SUBDIRS)"
92187 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_btl_DSO_SUBDIRS)"
92188 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_btl_STATIC_SUBDIRS)"
92190 if test "btl" != "common" ; then
92191 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/btl/libmca_btl.la"
92193 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_btl_STATIC_LTLIBS)"
92195 ompi_show_subsubtitle "Configuring MCA framework btl"
92197 # setup for framework
92198 all_components=
92199 static_components=
92200 dso_components=
92201 static_ltlibs=
92203 # Ensure that the directory where the #include file is to live
92204 # exists. Need to do this for VPATH builds, because the directory
92205 # may not exist yet. For the "common" type, it's not really a
92206 # component, so it doesn't have a base.
92207 if test "btl" = "common" ; then
92208 outdir=ompi/mca/common
92209 else
92210 outdir=ompi/mca/btl/base
92212 { as_dir=$outdir
92213 case $as_dir in #(
92214 -*) as_dir=./$as_dir;;
92215 esac
92216 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
92217 as_dirs=
92218 while :; do
92219 case $as_dir in #(
92220 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
92221 *) as_qdir=$as_dir;;
92222 esac
92223 as_dirs="'$as_qdir' $as_dirs"
92224 as_dir=`$as_dirname -- "$as_dir" ||
92225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
92226 X"$as_dir" : 'X\(//\)[^/]' \| \
92227 X"$as_dir" : 'X\(//\)$' \| \
92228 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
92229 echo X"$as_dir" |
92230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
92231 s//\1/
92234 /^X\(\/\/\)[^/].*/{
92235 s//\1/
92238 /^X\(\/\/\)$/{
92239 s//\1/
92242 /^X\(\/\).*/{
92243 s//\1/
92246 s/.*/./; q'`
92247 test -d "$as_dir" && break
92248 done
92249 test -z "$as_dirs" || eval "mkdir $as_dirs"
92250 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
92251 echo "$as_me: error: cannot create directory $as_dir" >&2;}
92252 { (exit 1); exit 1; }; }; }
92254 # remove any previously generated #include files
92255 outfile_real=$outdir/static-components.h
92256 outfile=$outfile_real.new
92257 rm -f $outfile $outfile.struct $outfile.extern
92258 touch $outfile.struct $outfile.extern
92260 # print some nice messages about what we're about to do...
92261 { echo "$as_me:$LINENO: checking for no configure components in framework btl" >&5
92262 echo $ECHO_N "checking for no configure components in framework btl... $ECHO_C" >&6; }
92263 { echo "$as_me:$LINENO: result: self, sm" >&5
92264 echo "${ECHO_T}self, sm" >&6; }
92265 { echo "$as_me:$LINENO: checking for m4 configure components in framework btl" >&5
92266 echo $ECHO_N "checking for m4 configure components in framework btl... $ECHO_C" >&6; }
92267 { echo "$as_me:$LINENO: result: gm, mvapi, mx, openib, portals, tcp" >&5
92268 echo "${ECHO_T}gm, mvapi, mx, openib, portals, tcp" >&6; }
92270 # if we only want the first successful component, set the variable
92271 # happy_value to 0 so we stop on first assignment. Otherwise, set
92272 # it to zero so that components_looking_for_succeed is always 1
92273 happy_value=1
92275 components_looking_for_succeed=1
92277 # configure components that don't have any component-specific
92278 # configuration. See comment in CONFIGURE_PROJECT about the
92279 # m4_ifval
92280 # if there isn't a component list, abort
92283 ompi_show_subsubsubtitle "MCA component btl:self (no configuration)"
92286 project=ompi
92287 framework=btl
92288 component=self
92289 component_path="$srcdir/$project/mca/$framework/$component"
92290 want_component=0
92292 # build if:
92293 # - the component type is direct and we are that component
92294 # - there is no ompi_ignore file
92295 # - there is an ompi_ignore, but there is an empty ompi_unignore
92296 # - there is an ompi_ignore, but username is in ompi_unignore
92297 if test -d $component_path ; then
92298 # decide if we want the component to be built or not. This
92299 # is spread out because some of the logic is a little complex
92300 # and test's syntax isn't exactly the greatest. We want to
92301 # build the component by default.
92302 want_component=1
92303 if test -f $component_path/.ompi_ignore ; then
92304 # If there is an ompi_ignore file, don't build
92305 # the component. Note that this decision can be
92306 # overriden by the unignore logic below.
92307 want_component=0
92309 if test -f $component_path/.ompi_unignore ; then
92310 # if there is an empty ompi_unignore, that is
92311 # equivalent to having your userid in the unignore file.
92312 # If userid is in the file, unignore the ignore file.
92313 if test ! -s $component_path/.ompi_unignore ; then
92314 want_component=1
92315 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
92316 want_component=1
92319 # if this component type is direct and we are not it, we don't want
92320 # to be built. Otherwise, we do want to be built.
92321 if test ! -z "$DIRECT_btl" ; then
92322 if test "$DIRECT_btl" = "$component" ; then
92323 want_component=1
92324 else
92325 want_component=0
92330 # if we were explicitly disabled, don't build :)
92331 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
92332 eval $str
92333 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
92334 want_component=0
92337 if test "$want_component" = "1"; then
92338 should_build=$components_looking_for_succeed
92339 else
92340 should_build=0
92345 project=ompi
92346 framework=btl
92347 component=self
92349 # Is this component going to built staic or shared? $component
92350 # might not be known until configure time, so have to use eval
92351 # tricks - can't set variable names at autogen time.
92352 str="SHARED_FRAMEWORK=\$DSO_$framework"
92353 eval $str
92354 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
92355 eval $str
92357 str="STATIC_FRAMEWORK=\$STATIC_$framework"
92358 eval $str
92359 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
92360 eval $str
92362 shared_mode_override=static
92364 # Setup for either shared or static
92365 if test "$STATIC_FRAMEWORK" = "1" -o \
92366 "$STATIC_COMPONENT" = "1" -o \
92367 "$STATIC_all" = "1" ; then
92368 compile_mode="static"
92369 elif test "$shared_mode_override" = "dso" -o \
92370 "$SHARED_FRAMEWORK" = "1" -o \
92371 "$SHARED_COMPONENT" = "1" -o \
92372 "$DSO_all" = "1"; then
92373 compile_mode="dso"
92374 else
92375 compile_mode="static"
92378 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
92379 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
92380 if test "$DIRECT_btl" = "$component" ; then
92381 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
92382 echo "${ECHO_T}$compile_mode - direct" >&6; }
92383 else
92384 { echo "$as_me:$LINENO: result: $compile_mode" >&5
92385 echo "${ECHO_T}$compile_mode" >&6; }
92389 if test "$should_build" = "1" ; then
92391 project=ompi
92392 framework=btl
92393 component=self
92395 # See if it dropped an output file for us to pick up some
92396 # shell variables in.
92397 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
92399 # Add this subdir to the mast list of all MCA component subdirs
92400 all_components="$all_components $component"
92402 if test "$compile_mode" = "dso" ; then
92403 dso_components="$dso_components $component"
92404 else
92405 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
92406 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
92407 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
92408 static_components="$static_components $component"
92411 # Output pretty results
92412 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
92413 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
92414 { echo "$as_me:$LINENO: result: yes" >&5
92415 echo "${ECHO_T}yes" >&6; }
92417 # If there's an output file, add the values to
92418 # scope_EXTRA_flags.
92419 if test -f $infile; then
92421 # First check for the ABORT tag
92422 line="`grep ABORT= $infile | cut -d= -f2-`"
92423 if test -n "$line" -a "$line" != "no"; then
92424 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
92425 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
92426 { { echo "$as_me:$LINENO: error: cannot continue" >&5
92427 echo "$as_me: error: cannot continue" >&2;}
92428 { (exit 1); exit 1; }; }
92431 # Check for flags passed up from the component. If we're
92432 # compiling statically, then take all flags passed up from the
92433 # component.
92434 if test "$compile_mode" = "static"; then
92435 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
92436 eval "line=$line"
92437 if test -n "$line"; then
92438 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
92440 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
92441 eval "line=$line"
92442 if test -n "$line"; then
92443 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
92447 if test "$DIRECT_btl" = "$component" ; then
92448 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
92449 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
92450 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
92451 eval $str
92452 else
92453 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
92454 *** does not appear to support direct calling.
92455 *** Aborting" >&5
92456 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
92457 *** does not appear to support direct calling.
92458 *** Aborting" >&2;}
92459 { (exit 1); exit 1; }; }
92462 else
92463 # were we supposed to have found something in the
92464 # post_configure.sh, but the file didn't exist?
92465 if test "$DIRECT_btl" = "$component" ; then
92466 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
92467 *** does not appear to support direct calling.
92468 *** Aborting" >&5
92469 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
92470 *** does not appear to support direct calling.
92471 *** Aborting" >&2;}
92472 { (exit 1); exit 1; }; }
92476 # now add the flags that were set in the environment variables
92477 # framework_component_FOO (for example, the flags set by
92478 # m4_configure components)
92480 # Check for flags passed up from the component. If we're
92481 # compiling statically, then take all flags passed up from the
92482 # component.
92483 if test "$compile_mode" = "static"; then
92484 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
92485 eval "$str"
92486 if test -n "$line" ; then
92487 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
92489 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
92490 eval "$str"
92491 if test -n "$line" ; then
92492 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
92496 else
92498 { echo "$as_me:$LINENO: checking if MCA component btl:self can compile" >&5
92499 echo $ECHO_N "checking if MCA component btl:self can compile... $ECHO_C" >&6; }
92500 { echo "$as_me:$LINENO: result: no" >&5
92501 echo "${ECHO_T}no" >&6; }
92503 # If this component was requested as the default for this
92504 # type, then abort.
92505 if test "$with_btl" = "self" ; then
92506 { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
92507 echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
92508 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
92509 echo "$as_me: WARNING: This component was selected as the default" >&2;}
92510 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
92511 echo "$as_me: error: Cannot continue" >&2;}
92512 { (exit 1); exit 1; }; }
92513 exit 1
92516 if test ! -z "$DIRECT_btl" ; then
92517 if test "$DIRECT_btl" = "self" ; then
92518 { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
92519 echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
92520 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
92521 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
92522 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
92523 echo "$as_me: error: Cannot continue" >&2;}
92524 { (exit 1); exit 1; }; }
92525 exit 1
92529 # add component to all component list
92530 all_components="$all_components self"
92533 # set the AM_CONDITIONAL on how we should build
92534 if test "$compile_mode" = "dso" ; then
92535 BUILD_btl_self_DSO=1
92536 else
92537 BUILD_btl_self_DSO=0
92541 if test "$BUILD_btl_self_DSO" = "1"; then
92542 OMPI_BUILD_btl_self_DSO_TRUE=
92543 OMPI_BUILD_btl_self_DSO_FALSE='#'
92544 else
92545 OMPI_BUILD_btl_self_DSO_TRUE='#'
92546 OMPI_BUILD_btl_self_DSO_FALSE=
92550 unset compile_mode
92552 ompi_show_subsubsubtitle "MCA component btl:sm (no configuration)"
92555 project=ompi
92556 framework=btl
92557 component=sm
92558 component_path="$srcdir/$project/mca/$framework/$component"
92559 want_component=0
92561 # build if:
92562 # - the component type is direct and we are that component
92563 # - there is no ompi_ignore file
92564 # - there is an ompi_ignore, but there is an empty ompi_unignore
92565 # - there is an ompi_ignore, but username is in ompi_unignore
92566 if test -d $component_path ; then
92567 # decide if we want the component to be built or not. This
92568 # is spread out because some of the logic is a little complex
92569 # and test's syntax isn't exactly the greatest. We want to
92570 # build the component by default.
92571 want_component=1
92572 if test -f $component_path/.ompi_ignore ; then
92573 # If there is an ompi_ignore file, don't build
92574 # the component. Note that this decision can be
92575 # overriden by the unignore logic below.
92576 want_component=0
92578 if test -f $component_path/.ompi_unignore ; then
92579 # if there is an empty ompi_unignore, that is
92580 # equivalent to having your userid in the unignore file.
92581 # If userid is in the file, unignore the ignore file.
92582 if test ! -s $component_path/.ompi_unignore ; then
92583 want_component=1
92584 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
92585 want_component=1
92588 # if this component type is direct and we are not it, we don't want
92589 # to be built. Otherwise, we do want to be built.
92590 if test ! -z "$DIRECT_btl" ; then
92591 if test "$DIRECT_btl" = "$component" ; then
92592 want_component=1
92593 else
92594 want_component=0
92599 # if we were explicitly disabled, don't build :)
92600 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
92601 eval $str
92602 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
92603 want_component=0
92606 if test "$want_component" = "1"; then
92607 should_build=$components_looking_for_succeed
92608 else
92609 should_build=0
92614 project=ompi
92615 framework=btl
92616 component=sm
92618 # Is this component going to built staic or shared? $component
92619 # might not be known until configure time, so have to use eval
92620 # tricks - can't set variable names at autogen time.
92621 str="SHARED_FRAMEWORK=\$DSO_$framework"
92622 eval $str
92623 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
92624 eval $str
92626 str="STATIC_FRAMEWORK=\$STATIC_$framework"
92627 eval $str
92628 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
92629 eval $str
92631 shared_mode_override=static
92633 # Setup for either shared or static
92634 if test "$STATIC_FRAMEWORK" = "1" -o \
92635 "$STATIC_COMPONENT" = "1" -o \
92636 "$STATIC_all" = "1" ; then
92637 compile_mode="static"
92638 elif test "$shared_mode_override" = "dso" -o \
92639 "$SHARED_FRAMEWORK" = "1" -o \
92640 "$SHARED_COMPONENT" = "1" -o \
92641 "$DSO_all" = "1"; then
92642 compile_mode="dso"
92643 else
92644 compile_mode="static"
92647 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
92648 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
92649 if test "$DIRECT_btl" = "$component" ; then
92650 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
92651 echo "${ECHO_T}$compile_mode - direct" >&6; }
92652 else
92653 { echo "$as_me:$LINENO: result: $compile_mode" >&5
92654 echo "${ECHO_T}$compile_mode" >&6; }
92658 if test "$should_build" = "1" ; then
92660 project=ompi
92661 framework=btl
92662 component=sm
92664 # See if it dropped an output file for us to pick up some
92665 # shell variables in.
92666 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
92668 # Add this subdir to the mast list of all MCA component subdirs
92669 all_components="$all_components $component"
92671 if test "$compile_mode" = "dso" ; then
92672 dso_components="$dso_components $component"
92673 else
92674 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
92675 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
92676 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
92677 static_components="$static_components $component"
92680 # Output pretty results
92681 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
92682 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
92683 { echo "$as_me:$LINENO: result: yes" >&5
92684 echo "${ECHO_T}yes" >&6; }
92686 # If there's an output file, add the values to
92687 # scope_EXTRA_flags.
92688 if test -f $infile; then
92690 # First check for the ABORT tag
92691 line="`grep ABORT= $infile | cut -d= -f2-`"
92692 if test -n "$line" -a "$line" != "no"; then
92693 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
92694 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
92695 { { echo "$as_me:$LINENO: error: cannot continue" >&5
92696 echo "$as_me: error: cannot continue" >&2;}
92697 { (exit 1); exit 1; }; }
92700 # Check for flags passed up from the component. If we're
92701 # compiling statically, then take all flags passed up from the
92702 # component.
92703 if test "$compile_mode" = "static"; then
92704 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
92705 eval "line=$line"
92706 if test -n "$line"; then
92707 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
92709 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
92710 eval "line=$line"
92711 if test -n "$line"; then
92712 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
92716 if test "$DIRECT_btl" = "$component" ; then
92717 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
92718 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
92719 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
92720 eval $str
92721 else
92722 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
92723 *** does not appear to support direct calling.
92724 *** Aborting" >&5
92725 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
92726 *** does not appear to support direct calling.
92727 *** Aborting" >&2;}
92728 { (exit 1); exit 1; }; }
92731 else
92732 # were we supposed to have found something in the
92733 # post_configure.sh, but the file didn't exist?
92734 if test "$DIRECT_btl" = "$component" ; then
92735 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
92736 *** does not appear to support direct calling.
92737 *** Aborting" >&5
92738 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
92739 *** does not appear to support direct calling.
92740 *** Aborting" >&2;}
92741 { (exit 1); exit 1; }; }
92745 # now add the flags that were set in the environment variables
92746 # framework_component_FOO (for example, the flags set by
92747 # m4_configure components)
92749 # Check for flags passed up from the component. If we're
92750 # compiling statically, then take all flags passed up from the
92751 # component.
92752 if test "$compile_mode" = "static"; then
92753 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
92754 eval "$str"
92755 if test -n "$line" ; then
92756 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
92758 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
92759 eval "$str"
92760 if test -n "$line" ; then
92761 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
92765 else
92767 { echo "$as_me:$LINENO: checking if MCA component btl:sm can compile" >&5
92768 echo $ECHO_N "checking if MCA component btl:sm can compile... $ECHO_C" >&6; }
92769 { echo "$as_me:$LINENO: result: no" >&5
92770 echo "${ECHO_T}no" >&6; }
92772 # If this component was requested as the default for this
92773 # type, then abort.
92774 if test "$with_btl" = "sm" ; then
92775 { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
92776 echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
92777 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
92778 echo "$as_me: WARNING: This component was selected as the default" >&2;}
92779 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
92780 echo "$as_me: error: Cannot continue" >&2;}
92781 { (exit 1); exit 1; }; }
92782 exit 1
92785 if test ! -z "$DIRECT_btl" ; then
92786 if test "$DIRECT_btl" = "sm" ; then
92787 { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
92788 echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
92789 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
92790 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
92791 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
92792 echo "$as_me: error: Cannot continue" >&2;}
92793 { (exit 1); exit 1; }; }
92794 exit 1
92798 # add component to all component list
92799 all_components="$all_components sm"
92802 # set the AM_CONDITIONAL on how we should build
92803 if test "$compile_mode" = "dso" ; then
92804 BUILD_btl_sm_DSO=1
92805 else
92806 BUILD_btl_sm_DSO=0
92810 if test "$BUILD_btl_sm_DSO" = "1"; then
92811 OMPI_BUILD_btl_sm_DSO_TRUE=
92812 OMPI_BUILD_btl_sm_DSO_FALSE='#'
92813 else
92814 OMPI_BUILD_btl_sm_DSO_TRUE='#'
92815 OMPI_BUILD_btl_sm_DSO_FALSE=
92819 unset compile_mode
92822 # configure components that use built-in configuration scripts
92823 # see comment in CONFIGURE_PROJECT about the m4_ifval
92824 # if there isn't a component list, abort
92827 ompi_show_subsubsubtitle "MCA component btl:gm (m4 configuration macro)"
92830 project=ompi
92831 framework=btl
92832 component=gm
92833 component_path="$srcdir/$project/mca/$framework/$component"
92834 want_component=0
92836 # build if:
92837 # - the component type is direct and we are that component
92838 # - there is no ompi_ignore file
92839 # - there is an ompi_ignore, but there is an empty ompi_unignore
92840 # - there is an ompi_ignore, but username is in ompi_unignore
92841 if test -d $component_path ; then
92842 # decide if we want the component to be built or not. This
92843 # is spread out because some of the logic is a little complex
92844 # and test's syntax isn't exactly the greatest. We want to
92845 # build the component by default.
92846 want_component=1
92847 if test -f $component_path/.ompi_ignore ; then
92848 # If there is an ompi_ignore file, don't build
92849 # the component. Note that this decision can be
92850 # overriden by the unignore logic below.
92851 want_component=0
92853 if test -f $component_path/.ompi_unignore ; then
92854 # if there is an empty ompi_unignore, that is
92855 # equivalent to having your userid in the unignore file.
92856 # If userid is in the file, unignore the ignore file.
92857 if test ! -s $component_path/.ompi_unignore ; then
92858 want_component=1
92859 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
92860 want_component=1
92863 # if this component type is direct and we are not it, we don't want
92864 # to be built. Otherwise, we do want to be built.
92865 if test ! -z "$DIRECT_btl" ; then
92866 if test "$DIRECT_btl" = "$component" ; then
92867 want_component=1
92868 else
92869 want_component=0
92874 # if we were explicitly disabled, don't build :)
92875 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
92876 eval $str
92877 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
92878 want_component=0
92881 if test "$want_component" = "1"; then
92882 should_build=$components_looking_for_succeed
92883 else
92884 should_build=0
92888 # Allow the component to override the build mode if it really wants to.
92889 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
92891 project=ompi
92892 framework=btl
92893 component=gm
92895 # Is this component going to built staic or shared? $component
92896 # might not be known until configure time, so have to use eval
92897 # tricks - can't set variable names at autogen time.
92898 str="SHARED_FRAMEWORK=\$DSO_$framework"
92899 eval $str
92900 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
92901 eval $str
92903 str="STATIC_FRAMEWORK=\$STATIC_$framework"
92904 eval $str
92905 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
92906 eval $str
92908 shared_mode_override=static
92910 # Setup for either shared or static
92911 if test "$STATIC_FRAMEWORK" = "1" -o \
92912 "$STATIC_COMPONENT" = "1" -o \
92913 "$STATIC_all" = "1" ; then
92914 compile_mode="static"
92915 elif test "$shared_mode_override" = "dso" -o \
92916 "$SHARED_FRAMEWORK" = "1" -o \
92917 "$SHARED_COMPONENT" = "1" -o \
92918 "$DSO_all" = "1"; then
92919 compile_mode="dso"
92920 else
92921 compile_mode="static"
92924 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
92925 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
92926 if test "$DIRECT_btl" = "$component" ; then
92927 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
92928 echo "${ECHO_T}$compile_mode - direct" >&6; }
92929 else
92930 { echo "$as_me:$LINENO: result: $compile_mode" >&5
92931 echo "${ECHO_T}$compile_mode" >&6; }
92935 # try to configure the component. pay no attention to
92936 # --enable-dist, since we'll always have makefiles.
92937 if test "$should_build" = "1"; then
92941 # Check whether --with-gm was given.
92942 if test "${with_gm+set}" = set; then
92943 withval=$with_gm;
92947 # Check whether --with-gm-libdir was given.
92948 if test "${with_gm_libdir+set}" = set; then
92949 withval=$with_gm_libdir;
92953 if test "$with_gm" != "no"; then
92954 if test ! -z "$with_gm" -a "$with_gm" != "yes"; then
92955 ompi_check_gm_dir="$with_gm"
92958 if test ! -z "$with_gm_libdir" -a "$with_gm_libdir" != "yes"; then
92959 ompi_check_gm_libdir="$with_gm_libdir"
92964 ompi_check_package_btl_gm_save_CPPFLAGS="$CPPFLAGS"
92965 ompi_check_package_btl_gm_save_LDFLAGS="$LDFLAGS"
92966 ompi_check_package_btl_gm_save_LIBS="$LIBS"
92968 ompi_check_package_btl_gm_orig_CPPFLAGS="$btl_gm_CPPFLAGS"
92969 ompi_check_package_btl_gm_orig_LDFLAGS="$btl_gm_LDFLAGS"
92970 ompi_check_package_btl_gm_orig_LIBS="$btl_gm_LIBS"
92973 # This is stolen from autoconf to peek under the covers to get the
92974 # cache variable for the library check. one should not copy this
92975 # code into other places unless you want much pain and suffering
92978 # so this sucks, but there's no way to get through the progression
92979 # of header includes without killing off the cache variable and trying
92980 # again...
92981 unset ac_cv_header_gm_h
92983 ompi_check_package_header_happy="no"
92984 if test "$ompi_check_gm_dir" = "/usr" -o "$ompi_check_gm_dir" = "/usr/local"; then
92985 # try as is...
92986 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
92987 echo "${ECHO_T}looking for header without includes" >&6; }
92988 if test "${ac_cv_header_gm_h+set}" = set; then
92989 { echo "$as_me:$LINENO: checking for gm.h" >&5
92990 echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; }
92991 if test "${ac_cv_header_gm_h+set}" = set; then
92992 echo $ECHO_N "(cached) $ECHO_C" >&6
92994 { echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
92995 echo "${ECHO_T}$ac_cv_header_gm_h" >&6; }
92996 else
92997 # Is the header compilable?
92998 { echo "$as_me:$LINENO: checking gm.h usability" >&5
92999 echo $ECHO_N "checking gm.h usability... $ECHO_C" >&6; }
93000 cat >conftest.$ac_ext <<_ACEOF
93001 /* confdefs.h. */
93002 _ACEOF
93003 cat confdefs.h >>conftest.$ac_ext
93004 cat >>conftest.$ac_ext <<_ACEOF
93005 /* end confdefs.h. */
93006 $ac_includes_default
93007 #include <gm.h>
93008 _ACEOF
93009 rm -f conftest.$ac_objext
93010 if { (ac_try="$ac_compile"
93011 case "(($ac_try" in
93012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93013 *) ac_try_echo=$ac_try;;
93014 esac
93015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
93016 (eval "$ac_compile") 2>conftest.er1
93017 ac_status=$?
93018 grep -v '^ *+' conftest.er1 >conftest.err
93019 rm -f conftest.er1
93020 cat conftest.err >&5
93021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
93022 (exit $ac_status); } && {
93023 test -z "$ac_c_werror_flag" ||
93024 test ! -s conftest.err
93025 } && test -s conftest.$ac_objext; then
93026 ac_header_compiler=yes
93027 else
93028 echo "$as_me: failed program was:" >&5
93029 sed 's/^/| /' conftest.$ac_ext >&5
93031 ac_header_compiler=no
93034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
93036 echo "${ECHO_T}$ac_header_compiler" >&6; }
93038 # Is the header present?
93039 { echo "$as_me:$LINENO: checking gm.h presence" >&5
93040 echo $ECHO_N "checking gm.h presence... $ECHO_C" >&6; }
93041 cat >conftest.$ac_ext <<_ACEOF
93042 /* confdefs.h. */
93043 _ACEOF
93044 cat confdefs.h >>conftest.$ac_ext
93045 cat >>conftest.$ac_ext <<_ACEOF
93046 /* end confdefs.h. */
93047 #include <gm.h>
93048 _ACEOF
93049 if { (ac_try="$ac_cpp conftest.$ac_ext"
93050 case "(($ac_try" in
93051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93052 *) ac_try_echo=$ac_try;;
93053 esac
93054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
93055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
93056 ac_status=$?
93057 grep -v '^ *+' conftest.er1 >conftest.err
93058 rm -f conftest.er1
93059 cat conftest.err >&5
93060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
93061 (exit $ac_status); } >/dev/null && {
93062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
93063 test ! -s conftest.err
93064 }; then
93065 ac_header_preproc=yes
93066 else
93067 echo "$as_me: failed program was:" >&5
93068 sed 's/^/| /' conftest.$ac_ext >&5
93070 ac_header_preproc=no
93073 rm -f conftest.err conftest.$ac_ext
93074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
93075 echo "${ECHO_T}$ac_header_preproc" >&6; }
93077 # So? What about this header?
93078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
93079 yes:no: )
93080 { echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5
93081 echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
93082 { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5
93083 echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;}
93084 ac_header_preproc=yes
93086 no:yes:* )
93087 { echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5
93088 echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;}
93089 { echo "$as_me:$LINENO: WARNING: gm.h: check for missing prerequisite headers?" >&5
93090 echo "$as_me: WARNING: gm.h: check for missing prerequisite headers?" >&2;}
93091 { echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5
93092 echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;}
93093 { echo "$as_me:$LINENO: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&5
93094 echo "$as_me: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&2;}
93095 { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5
93096 echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;}
93097 { echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5
93098 echo "$as_me: WARNING: gm.h: in the future, the compiler will take precedence" >&2;}
93099 ( cat <<\_ASBOX
93100 ## ------------------------------------------------------ ##
93101 ## Report this to http://www.open-mpi.org/community/help/ ##
93102 ## ------------------------------------------------------ ##
93103 _ASBOX
93104 ) | sed "s/^/$as_me: WARNING: /" >&2
93106 esac
93107 { echo "$as_me:$LINENO: checking for gm.h" >&5
93108 echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; }
93109 if test "${ac_cv_header_gm_h+set}" = set; then
93110 echo $ECHO_N "(cached) $ECHO_C" >&6
93111 else
93112 ac_cv_header_gm_h=$ac_header_preproc
93114 { echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
93115 echo "${ECHO_T}$ac_cv_header_gm_h" >&6; }
93118 if test $ac_cv_header_gm_h = yes; then
93119 ompi_check_package_header_happy="yes"
93120 else
93121 ompi_check_package_header_happy="no"
93125 if test "$ompi_check_package_header_happy" = "no"; then
93126 # no go on the as is - reset the cache and try again
93127 unset ac_cv_header_gm_h
93133 if test "$ompi_check_package_header_happy" = "no"; then
93134 if test "$ompi_check_gm_dir" != ""; then
93135 btl_gm_CPPFLAGS="$btl_gm_CPPFLAGS -I$ompi_check_gm_dir/include"
93136 CPPFLAGS="$CPPFLAGS -I$ompi_check_gm_dir/include"
93139 if test "${ac_cv_header_gm_h+set}" = set; then
93140 { echo "$as_me:$LINENO: checking for gm.h" >&5
93141 echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; }
93142 if test "${ac_cv_header_gm_h+set}" = set; then
93143 echo $ECHO_N "(cached) $ECHO_C" >&6
93145 { echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
93146 echo "${ECHO_T}$ac_cv_header_gm_h" >&6; }
93147 else
93148 # Is the header compilable?
93149 { echo "$as_me:$LINENO: checking gm.h usability" >&5
93150 echo $ECHO_N "checking gm.h usability... $ECHO_C" >&6; }
93151 cat >conftest.$ac_ext <<_ACEOF
93152 /* confdefs.h. */
93153 _ACEOF
93154 cat confdefs.h >>conftest.$ac_ext
93155 cat >>conftest.$ac_ext <<_ACEOF
93156 /* end confdefs.h. */
93157 $ac_includes_default
93158 #include <gm.h>
93159 _ACEOF
93160 rm -f conftest.$ac_objext
93161 if { (ac_try="$ac_compile"
93162 case "(($ac_try" in
93163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93164 *) ac_try_echo=$ac_try;;
93165 esac
93166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
93167 (eval "$ac_compile") 2>conftest.er1
93168 ac_status=$?
93169 grep -v '^ *+' conftest.er1 >conftest.err
93170 rm -f conftest.er1
93171 cat conftest.err >&5
93172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
93173 (exit $ac_status); } && {
93174 test -z "$ac_c_werror_flag" ||
93175 test ! -s conftest.err
93176 } && test -s conftest.$ac_objext; then
93177 ac_header_compiler=yes
93178 else
93179 echo "$as_me: failed program was:" >&5
93180 sed 's/^/| /' conftest.$ac_ext >&5
93182 ac_header_compiler=no
93185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
93187 echo "${ECHO_T}$ac_header_compiler" >&6; }
93189 # Is the header present?
93190 { echo "$as_me:$LINENO: checking gm.h presence" >&5
93191 echo $ECHO_N "checking gm.h presence... $ECHO_C" >&6; }
93192 cat >conftest.$ac_ext <<_ACEOF
93193 /* confdefs.h. */
93194 _ACEOF
93195 cat confdefs.h >>conftest.$ac_ext
93196 cat >>conftest.$ac_ext <<_ACEOF
93197 /* end confdefs.h. */
93198 #include <gm.h>
93199 _ACEOF
93200 if { (ac_try="$ac_cpp conftest.$ac_ext"
93201 case "(($ac_try" in
93202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93203 *) ac_try_echo=$ac_try;;
93204 esac
93205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
93206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
93207 ac_status=$?
93208 grep -v '^ *+' conftest.er1 >conftest.err
93209 rm -f conftest.er1
93210 cat conftest.err >&5
93211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
93212 (exit $ac_status); } >/dev/null && {
93213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
93214 test ! -s conftest.err
93215 }; then
93216 ac_header_preproc=yes
93217 else
93218 echo "$as_me: failed program was:" >&5
93219 sed 's/^/| /' conftest.$ac_ext >&5
93221 ac_header_preproc=no
93224 rm -f conftest.err conftest.$ac_ext
93225 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
93226 echo "${ECHO_T}$ac_header_preproc" >&6; }
93228 # So? What about this header?
93229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
93230 yes:no: )
93231 { echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5
93232 echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
93233 { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5
93234 echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;}
93235 ac_header_preproc=yes
93237 no:yes:* )
93238 { echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5
93239 echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;}
93240 { echo "$as_me:$LINENO: WARNING: gm.h: check for missing prerequisite headers?" >&5
93241 echo "$as_me: WARNING: gm.h: check for missing prerequisite headers?" >&2;}
93242 { echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5
93243 echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;}
93244 { echo "$as_me:$LINENO: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&5
93245 echo "$as_me: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&2;}
93246 { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5
93247 echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;}
93248 { echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5
93249 echo "$as_me: WARNING: gm.h: in the future, the compiler will take precedence" >&2;}
93250 ( cat <<\_ASBOX
93251 ## ------------------------------------------------------ ##
93252 ## Report this to http://www.open-mpi.org/community/help/ ##
93253 ## ------------------------------------------------------ ##
93254 _ASBOX
93255 ) | sed "s/^/$as_me: WARNING: /" >&2
93257 esac
93258 { echo "$as_me:$LINENO: checking for gm.h" >&5
93259 echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; }
93260 if test "${ac_cv_header_gm_h+set}" = set; then
93261 echo $ECHO_N "(cached) $ECHO_C" >&6
93262 else
93263 ac_cv_header_gm_h=$ac_header_preproc
93265 { echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
93266 echo "${ECHO_T}$ac_cv_header_gm_h" >&6; }
93269 if test $ac_cv_header_gm_h = yes; then
93271 # This is stolen from autoconf to peek under the covers to get the
93272 # cache variable for the library check. one should not copy this
93273 # code into other places unless you want much pain and suffering
93275 # see comment above
93276 unset ac_cv_lib_gm_gm_init
93277 ompi_check_package_lib_happy="no"
93278 if test "$ompi_check_gm_libdir" != ""; then
93279 # libdir was specified - search only there
93280 btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_gm_libdir"
93281 LDFLAGS="$LDFLAGS -L$ompi_check_gm_libdir"
93282 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
93283 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
93284 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
93285 echo $ECHO_N "(cached) $ECHO_C" >&6
93286 else
93287 ac_check_lib_save_LIBS=$LIBS
93288 LIBS="-lgm $LIBS"
93289 cat >conftest.$ac_ext <<_ACEOF
93290 /* confdefs.h. */
93291 _ACEOF
93292 cat confdefs.h >>conftest.$ac_ext
93293 cat >>conftest.$ac_ext <<_ACEOF
93294 /* end confdefs.h. */
93296 /* Override any GCC internal prototype to avoid an error.
93297 Use char because int might match the return type of a GCC
93298 builtin and then its argument prototype would still apply. */
93299 #ifdef __cplusplus
93300 extern "C"
93301 #endif
93302 char gm_init ();
93304 main ()
93306 return gm_init ();
93308 return 0;
93310 _ACEOF
93311 rm -f conftest.$ac_objext conftest$ac_exeext
93312 if { (ac_try="$ac_link"
93313 case "(($ac_try" in
93314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93315 *) ac_try_echo=$ac_try;;
93316 esac
93317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
93318 (eval "$ac_link") 2>conftest.er1
93319 ac_status=$?
93320 grep -v '^ *+' conftest.er1 >conftest.err
93321 rm -f conftest.er1
93322 cat conftest.err >&5
93323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
93324 (exit $ac_status); } && {
93325 test -z "$ac_c_werror_flag" ||
93326 test ! -s conftest.err
93327 } && test -s conftest$ac_exeext &&
93328 $as_test_x conftest$ac_exeext; then
93329 ac_cv_lib_gm_gm_init=yes
93330 else
93331 echo "$as_me: failed program was:" >&5
93332 sed 's/^/| /' conftest.$ac_ext >&5
93334 ac_cv_lib_gm_gm_init=no
93337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93338 conftest$ac_exeext conftest.$ac_ext
93339 LIBS=$ac_check_lib_save_LIBS
93341 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
93342 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
93343 if test $ac_cv_lib_gm_gm_init = yes; then
93344 ompi_check_package_lib_happy="yes"
93345 else
93346 ompi_check_package_lib_happy="no"
93349 if test "$ompi_check_package_lib_happy" = "no"; then
93350 LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
93351 btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
93352 unset ac_cv_lib_gm_gm_init
93355 else
93356 # libdir was not specified - go through search path
93357 ompi_check_package_libdir="$ompi_check_gm_dir"
93358 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
93359 # try as is...
93360 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
93361 echo "${ECHO_T}looking for library without search path" >&6; }
93362 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
93363 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
93364 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
93365 echo $ECHO_N "(cached) $ECHO_C" >&6
93366 else
93367 ac_check_lib_save_LIBS=$LIBS
93368 LIBS="-lgm $LIBS"
93369 cat >conftest.$ac_ext <<_ACEOF
93370 /* confdefs.h. */
93371 _ACEOF
93372 cat confdefs.h >>conftest.$ac_ext
93373 cat >>conftest.$ac_ext <<_ACEOF
93374 /* end confdefs.h. */
93376 /* Override any GCC internal prototype to avoid an error.
93377 Use char because int might match the return type of a GCC
93378 builtin and then its argument prototype would still apply. */
93379 #ifdef __cplusplus
93380 extern "C"
93381 #endif
93382 char gm_init ();
93384 main ()
93386 return gm_init ();
93388 return 0;
93390 _ACEOF
93391 rm -f conftest.$ac_objext conftest$ac_exeext
93392 if { (ac_try="$ac_link"
93393 case "(($ac_try" in
93394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93395 *) ac_try_echo=$ac_try;;
93396 esac
93397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
93398 (eval "$ac_link") 2>conftest.er1
93399 ac_status=$?
93400 grep -v '^ *+' conftest.er1 >conftest.err
93401 rm -f conftest.er1
93402 cat conftest.err >&5
93403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
93404 (exit $ac_status); } && {
93405 test -z "$ac_c_werror_flag" ||
93406 test ! -s conftest.err
93407 } && test -s conftest$ac_exeext &&
93408 $as_test_x conftest$ac_exeext; then
93409 ac_cv_lib_gm_gm_init=yes
93410 else
93411 echo "$as_me: failed program was:" >&5
93412 sed 's/^/| /' conftest.$ac_ext >&5
93414 ac_cv_lib_gm_gm_init=no
93417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93418 conftest$ac_exeext conftest.$ac_ext
93419 LIBS=$ac_check_lib_save_LIBS
93421 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
93422 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
93423 if test $ac_cv_lib_gm_gm_init = yes; then
93424 ompi_check_package_lib_happy="yes"
93425 else
93426 ompi_check_package_lib_happy="no"
93429 if test "$ompi_check_package_lib_happy" = "no"; then
93430 # no go on the as is.. see what happens later...
93431 LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
93432 btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
93433 unset ac_cv_lib_gm_gm_init
93439 if test "$ompi_check_package_lib_happy" = "no"; then
93440 if test "$ompi_check_package_libdir" != ""; then
93441 btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib"
93442 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
93443 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
93444 echo "${ECHO_T}looking for library in lib" >&6; }
93445 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
93446 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
93447 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
93448 echo $ECHO_N "(cached) $ECHO_C" >&6
93449 else
93450 ac_check_lib_save_LIBS=$LIBS
93451 LIBS="-lgm $LIBS"
93452 cat >conftest.$ac_ext <<_ACEOF
93453 /* confdefs.h. */
93454 _ACEOF
93455 cat confdefs.h >>conftest.$ac_ext
93456 cat >>conftest.$ac_ext <<_ACEOF
93457 /* end confdefs.h. */
93459 /* Override any GCC internal prototype to avoid an error.
93460 Use char because int might match the return type of a GCC
93461 builtin and then its argument prototype would still apply. */
93462 #ifdef __cplusplus
93463 extern "C"
93464 #endif
93465 char gm_init ();
93467 main ()
93469 return gm_init ();
93471 return 0;
93473 _ACEOF
93474 rm -f conftest.$ac_objext conftest$ac_exeext
93475 if { (ac_try="$ac_link"
93476 case "(($ac_try" in
93477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93478 *) ac_try_echo=$ac_try;;
93479 esac
93480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
93481 (eval "$ac_link") 2>conftest.er1
93482 ac_status=$?
93483 grep -v '^ *+' conftest.er1 >conftest.err
93484 rm -f conftest.er1
93485 cat conftest.err >&5
93486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
93487 (exit $ac_status); } && {
93488 test -z "$ac_c_werror_flag" ||
93489 test ! -s conftest.err
93490 } && test -s conftest$ac_exeext &&
93491 $as_test_x conftest$ac_exeext; then
93492 ac_cv_lib_gm_gm_init=yes
93493 else
93494 echo "$as_me: failed program was:" >&5
93495 sed 's/^/| /' conftest.$ac_ext >&5
93497 ac_cv_lib_gm_gm_init=no
93500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93501 conftest$ac_exeext conftest.$ac_ext
93502 LIBS=$ac_check_lib_save_LIBS
93504 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
93505 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
93506 if test $ac_cv_lib_gm_gm_init = yes; then
93507 ompi_check_package_lib_happy="yes"
93508 else
93509 ompi_check_package_lib_happy="no"
93512 if test "$ompi_check_package_lib_happy" = "no"; then
93513 # no go on the as is.. see what happens later...
93514 LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
93515 btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
93516 unset ac_cv_lib_gm_gm_init
93524 if test "$ompi_check_package_lib_happy" = "no"; then
93525 if test "$ompi_check_package_libdir" != ""; then
93526 btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib64"
93527 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
93528 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
93529 echo "${ECHO_T}looking for library in lib64" >&6; }
93530 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
93531 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
93532 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
93533 echo $ECHO_N "(cached) $ECHO_C" >&6
93534 else
93535 ac_check_lib_save_LIBS=$LIBS
93536 LIBS="-lgm $LIBS"
93537 cat >conftest.$ac_ext <<_ACEOF
93538 /* confdefs.h. */
93539 _ACEOF
93540 cat confdefs.h >>conftest.$ac_ext
93541 cat >>conftest.$ac_ext <<_ACEOF
93542 /* end confdefs.h. */
93544 /* Override any GCC internal prototype to avoid an error.
93545 Use char because int might match the return type of a GCC
93546 builtin and then its argument prototype would still apply. */
93547 #ifdef __cplusplus
93548 extern "C"
93549 #endif
93550 char gm_init ();
93552 main ()
93554 return gm_init ();
93556 return 0;
93558 _ACEOF
93559 rm -f conftest.$ac_objext conftest$ac_exeext
93560 if { (ac_try="$ac_link"
93561 case "(($ac_try" in
93562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93563 *) ac_try_echo=$ac_try;;
93564 esac
93565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
93566 (eval "$ac_link") 2>conftest.er1
93567 ac_status=$?
93568 grep -v '^ *+' conftest.er1 >conftest.err
93569 rm -f conftest.er1
93570 cat conftest.err >&5
93571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
93572 (exit $ac_status); } && {
93573 test -z "$ac_c_werror_flag" ||
93574 test ! -s conftest.err
93575 } && test -s conftest$ac_exeext &&
93576 $as_test_x conftest$ac_exeext; then
93577 ac_cv_lib_gm_gm_init=yes
93578 else
93579 echo "$as_me: failed program was:" >&5
93580 sed 's/^/| /' conftest.$ac_ext >&5
93582 ac_cv_lib_gm_gm_init=no
93585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93586 conftest$ac_exeext conftest.$ac_ext
93587 LIBS=$ac_check_lib_save_LIBS
93589 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
93590 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
93591 if test $ac_cv_lib_gm_gm_init = yes; then
93592 ompi_check_package_lib_happy="yes"
93593 else
93594 ompi_check_package_lib_happy="no"
93597 if test "$ompi_check_package_lib_happy" = "no"; then
93598 # no go on the as is.. see what happens later...
93599 LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
93600 btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
93601 unset ac_cv_lib_gm_gm_init
93611 if test "$ompi_check_package_lib_happy" = "yes"; then
93612 ompi_check_package_happy="yes"
93613 else
93614 ompi_check_package_happy="no"
93619 else
93620 ompi_check_package_happy="no"
93624 else
93626 # This is stolen from autoconf to peek under the covers to get the
93627 # cache variable for the library check. one should not copy this
93628 # code into other places unless you want much pain and suffering
93630 # see comment above
93631 unset ac_cv_lib_gm_gm_init
93632 ompi_check_package_lib_happy="no"
93633 if test "$ompi_check_gm_libdir" != ""; then
93634 # libdir was specified - search only there
93635 btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_gm_libdir"
93636 LDFLAGS="$LDFLAGS -L$ompi_check_gm_libdir"
93637 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
93638 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
93639 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
93640 echo $ECHO_N "(cached) $ECHO_C" >&6
93641 else
93642 ac_check_lib_save_LIBS=$LIBS
93643 LIBS="-lgm $LIBS"
93644 cat >conftest.$ac_ext <<_ACEOF
93645 /* confdefs.h. */
93646 _ACEOF
93647 cat confdefs.h >>conftest.$ac_ext
93648 cat >>conftest.$ac_ext <<_ACEOF
93649 /* end confdefs.h. */
93651 /* Override any GCC internal prototype to avoid an error.
93652 Use char because int might match the return type of a GCC
93653 builtin and then its argument prototype would still apply. */
93654 #ifdef __cplusplus
93655 extern "C"
93656 #endif
93657 char gm_init ();
93659 main ()
93661 return gm_init ();
93663 return 0;
93665 _ACEOF
93666 rm -f conftest.$ac_objext conftest$ac_exeext
93667 if { (ac_try="$ac_link"
93668 case "(($ac_try" in
93669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93670 *) ac_try_echo=$ac_try;;
93671 esac
93672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
93673 (eval "$ac_link") 2>conftest.er1
93674 ac_status=$?
93675 grep -v '^ *+' conftest.er1 >conftest.err
93676 rm -f conftest.er1
93677 cat conftest.err >&5
93678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
93679 (exit $ac_status); } && {
93680 test -z "$ac_c_werror_flag" ||
93681 test ! -s conftest.err
93682 } && test -s conftest$ac_exeext &&
93683 $as_test_x conftest$ac_exeext; then
93684 ac_cv_lib_gm_gm_init=yes
93685 else
93686 echo "$as_me: failed program was:" >&5
93687 sed 's/^/| /' conftest.$ac_ext >&5
93689 ac_cv_lib_gm_gm_init=no
93692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93693 conftest$ac_exeext conftest.$ac_ext
93694 LIBS=$ac_check_lib_save_LIBS
93696 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
93697 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
93698 if test $ac_cv_lib_gm_gm_init = yes; then
93699 ompi_check_package_lib_happy="yes"
93700 else
93701 ompi_check_package_lib_happy="no"
93704 if test "$ompi_check_package_lib_happy" = "no"; then
93705 LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
93706 btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
93707 unset ac_cv_lib_gm_gm_init
93710 else
93711 # libdir was not specified - go through search path
93712 ompi_check_package_libdir="$ompi_check_gm_dir"
93713 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
93714 # try as is...
93715 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
93716 echo "${ECHO_T}looking for library without search path" >&6; }
93717 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
93718 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
93719 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
93720 echo $ECHO_N "(cached) $ECHO_C" >&6
93721 else
93722 ac_check_lib_save_LIBS=$LIBS
93723 LIBS="-lgm $LIBS"
93724 cat >conftest.$ac_ext <<_ACEOF
93725 /* confdefs.h. */
93726 _ACEOF
93727 cat confdefs.h >>conftest.$ac_ext
93728 cat >>conftest.$ac_ext <<_ACEOF
93729 /* end confdefs.h. */
93731 /* Override any GCC internal prototype to avoid an error.
93732 Use char because int might match the return type of a GCC
93733 builtin and then its argument prototype would still apply. */
93734 #ifdef __cplusplus
93735 extern "C"
93736 #endif
93737 char gm_init ();
93739 main ()
93741 return gm_init ();
93743 return 0;
93745 _ACEOF
93746 rm -f conftest.$ac_objext conftest$ac_exeext
93747 if { (ac_try="$ac_link"
93748 case "(($ac_try" in
93749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93750 *) ac_try_echo=$ac_try;;
93751 esac
93752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
93753 (eval "$ac_link") 2>conftest.er1
93754 ac_status=$?
93755 grep -v '^ *+' conftest.er1 >conftest.err
93756 rm -f conftest.er1
93757 cat conftest.err >&5
93758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
93759 (exit $ac_status); } && {
93760 test -z "$ac_c_werror_flag" ||
93761 test ! -s conftest.err
93762 } && test -s conftest$ac_exeext &&
93763 $as_test_x conftest$ac_exeext; then
93764 ac_cv_lib_gm_gm_init=yes
93765 else
93766 echo "$as_me: failed program was:" >&5
93767 sed 's/^/| /' conftest.$ac_ext >&5
93769 ac_cv_lib_gm_gm_init=no
93772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93773 conftest$ac_exeext conftest.$ac_ext
93774 LIBS=$ac_check_lib_save_LIBS
93776 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
93777 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
93778 if test $ac_cv_lib_gm_gm_init = yes; then
93779 ompi_check_package_lib_happy="yes"
93780 else
93781 ompi_check_package_lib_happy="no"
93784 if test "$ompi_check_package_lib_happy" = "no"; then
93785 # no go on the as is.. see what happens later...
93786 LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
93787 btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
93788 unset ac_cv_lib_gm_gm_init
93794 if test "$ompi_check_package_lib_happy" = "no"; then
93795 if test "$ompi_check_package_libdir" != ""; then
93796 btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib"
93797 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
93798 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
93799 echo "${ECHO_T}looking for library in lib" >&6; }
93800 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
93801 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
93802 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
93803 echo $ECHO_N "(cached) $ECHO_C" >&6
93804 else
93805 ac_check_lib_save_LIBS=$LIBS
93806 LIBS="-lgm $LIBS"
93807 cat >conftest.$ac_ext <<_ACEOF
93808 /* confdefs.h. */
93809 _ACEOF
93810 cat confdefs.h >>conftest.$ac_ext
93811 cat >>conftest.$ac_ext <<_ACEOF
93812 /* end confdefs.h. */
93814 /* Override any GCC internal prototype to avoid an error.
93815 Use char because int might match the return type of a GCC
93816 builtin and then its argument prototype would still apply. */
93817 #ifdef __cplusplus
93818 extern "C"
93819 #endif
93820 char gm_init ();
93822 main ()
93824 return gm_init ();
93826 return 0;
93828 _ACEOF
93829 rm -f conftest.$ac_objext conftest$ac_exeext
93830 if { (ac_try="$ac_link"
93831 case "(($ac_try" in
93832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93833 *) ac_try_echo=$ac_try;;
93834 esac
93835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
93836 (eval "$ac_link") 2>conftest.er1
93837 ac_status=$?
93838 grep -v '^ *+' conftest.er1 >conftest.err
93839 rm -f conftest.er1
93840 cat conftest.err >&5
93841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
93842 (exit $ac_status); } && {
93843 test -z "$ac_c_werror_flag" ||
93844 test ! -s conftest.err
93845 } && test -s conftest$ac_exeext &&
93846 $as_test_x conftest$ac_exeext; then
93847 ac_cv_lib_gm_gm_init=yes
93848 else
93849 echo "$as_me: failed program was:" >&5
93850 sed 's/^/| /' conftest.$ac_ext >&5
93852 ac_cv_lib_gm_gm_init=no
93855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93856 conftest$ac_exeext conftest.$ac_ext
93857 LIBS=$ac_check_lib_save_LIBS
93859 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
93860 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
93861 if test $ac_cv_lib_gm_gm_init = yes; then
93862 ompi_check_package_lib_happy="yes"
93863 else
93864 ompi_check_package_lib_happy="no"
93867 if test "$ompi_check_package_lib_happy" = "no"; then
93868 # no go on the as is.. see what happens later...
93869 LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
93870 btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
93871 unset ac_cv_lib_gm_gm_init
93879 if test "$ompi_check_package_lib_happy" = "no"; then
93880 if test "$ompi_check_package_libdir" != ""; then
93881 btl_gm_LDFLAGS="$btl_gm_LDFLAGS -L$ompi_check_package_libdir/lib64"
93882 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
93883 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
93884 echo "${ECHO_T}looking for library in lib64" >&6; }
93885 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
93886 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
93887 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
93888 echo $ECHO_N "(cached) $ECHO_C" >&6
93889 else
93890 ac_check_lib_save_LIBS=$LIBS
93891 LIBS="-lgm $LIBS"
93892 cat >conftest.$ac_ext <<_ACEOF
93893 /* confdefs.h. */
93894 _ACEOF
93895 cat confdefs.h >>conftest.$ac_ext
93896 cat >>conftest.$ac_ext <<_ACEOF
93897 /* end confdefs.h. */
93899 /* Override any GCC internal prototype to avoid an error.
93900 Use char because int might match the return type of a GCC
93901 builtin and then its argument prototype would still apply. */
93902 #ifdef __cplusplus
93903 extern "C"
93904 #endif
93905 char gm_init ();
93907 main ()
93909 return gm_init ();
93911 return 0;
93913 _ACEOF
93914 rm -f conftest.$ac_objext conftest$ac_exeext
93915 if { (ac_try="$ac_link"
93916 case "(($ac_try" in
93917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93918 *) ac_try_echo=$ac_try;;
93919 esac
93920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
93921 (eval "$ac_link") 2>conftest.er1
93922 ac_status=$?
93923 grep -v '^ *+' conftest.er1 >conftest.err
93924 rm -f conftest.er1
93925 cat conftest.err >&5
93926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
93927 (exit $ac_status); } && {
93928 test -z "$ac_c_werror_flag" ||
93929 test ! -s conftest.err
93930 } && test -s conftest$ac_exeext &&
93931 $as_test_x conftest$ac_exeext; then
93932 ac_cv_lib_gm_gm_init=yes
93933 else
93934 echo "$as_me: failed program was:" >&5
93935 sed 's/^/| /' conftest.$ac_ext >&5
93937 ac_cv_lib_gm_gm_init=no
93940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93941 conftest$ac_exeext conftest.$ac_ext
93942 LIBS=$ac_check_lib_save_LIBS
93944 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
93945 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
93946 if test $ac_cv_lib_gm_gm_init = yes; then
93947 ompi_check_package_lib_happy="yes"
93948 else
93949 ompi_check_package_lib_happy="no"
93952 if test "$ompi_check_package_lib_happy" = "no"; then
93953 # no go on the as is.. see what happens later...
93954 LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
93955 btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
93956 unset ac_cv_lib_gm_gm_init
93966 if test "$ompi_check_package_lib_happy" = "yes"; then
93967 ompi_check_package_happy="yes"
93968 else
93969 ompi_check_package_happy="no"
93976 unset ompi_check_package_header_happy
93978 if test "$ompi_check_package_happy" = "yes"; then
93979 ompi_check_gm_happy="yes"
93980 btl_gm_LIBS="-lgm "
93981 else
93982 btl_gm_CPPFLAGS="$ompi_check_package_btl_gm_orig_CPPFLAGS"
93983 btl_gm_LDFLAGS="$ompi_check_package_btl_gm_orig_LDFLAGS"
93984 btl_gm_LIBS="$ompi_check_package_btl_gm_orig_LIBS"
93985 ompi_check_gm_happy="no"
93989 CPPFLAGS="$ompi_check_package_btl_gm_save_CPPFLAGS"
93990 LDFLAGS="$ompi_check_package_btl_gm_save_LDFLAGS"
93991 LIBS="$ompi_check_package_btl_gm_save_LIBS"
93993 else
93994 ompi_check_gm_happy="no"
93998 if test "$ompi_check_gm_happy" = "yes"; then
94000 u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS="$CPPFLAGS"
94001 u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS="$LDFLAGS"
94002 u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS="$LIBS"
94004 CPPFLAGS="$CPPFLAGS $btl_gm_CPPFLAGS"
94005 LDFLAGS="$LDFLAGS $btl_gm_LDFLAGS"
94006 LIBS="$LIBS $btl_gm_LIBS"
94009 # See if we have GM_API_VERSION. If we do, use it. If not, find the
94010 # highest one available. It seems that GM_API_VERSION was introduced
94011 # somewhere after 1.3 but before 1.6. :-\
94013 { echo "$as_me:$LINENO: checking for GM_API_VERSION" >&5
94014 echo $ECHO_N "checking for GM_API_VERSION... $ECHO_C" >&6; }
94015 cat >conftest.$ac_ext <<_ACEOF
94016 /* confdefs.h. */
94017 _ACEOF
94018 cat confdefs.h >>conftest.$ac_ext
94019 cat >>conftest.$ac_ext <<_ACEOF
94020 /* end confdefs.h. */
94021 #include<gm.h>
94023 main ()
94025 int foo = GM_API_VERSION;
94027 return 0;
94029 _ACEOF
94030 rm -f conftest.$ac_objext
94031 if { (ac_try="$ac_compile"
94032 case "(($ac_try" in
94033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94034 *) ac_try_echo=$ac_try;;
94035 esac
94036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
94037 (eval "$ac_compile") 2>conftest.er1
94038 ac_status=$?
94039 grep -v '^ *+' conftest.er1 >conftest.err
94040 rm -f conftest.er1
94041 cat conftest.err >&5
94042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
94043 (exit $ac_status); } && {
94044 test -z "$ac_c_werror_flag" ||
94045 test ! -s conftest.err
94046 } && test -s conftest.$ac_objext; then
94047 have_gm_api_ver_msg=yes gm_api_ver=GM_API_VERSION
94048 else
94049 echo "$as_me: failed program was:" >&5
94050 sed 's/^/| /' conftest.$ac_ext >&5
94052 have_gm_api_ver_msg=no gm_api_ver=""
94055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
94056 { echo "$as_me:$LINENO: result: $have_gm_api_ver_msg" >&5
94057 echo "${ECHO_T}$have_gm_api_ver_msg" >&6; }
94058 if test "$gm_api_ver" = ""; then
94059 found=0
94060 for val in 5 4 3; do
94061 if test "$found" = "0"; then
94062 var="GM_API_VERSION_1_$val"
94063 { echo "$as_me:$LINENO: checking for $var" >&5
94064 echo $ECHO_N "checking for $var... $ECHO_C" >&6; }
94065 cat >conftest.$ac_ext <<_ACEOF
94066 /* confdefs.h. */
94067 _ACEOF
94068 cat confdefs.h >>conftest.$ac_ext
94069 cat >>conftest.$ac_ext <<_ACEOF
94070 /* end confdefs.h. */
94071 #include<gm.h>
94073 main ()
94075 int foo = $var;
94077 return 0;
94079 _ACEOF
94080 rm -f conftest.$ac_objext
94081 if { (ac_try="$ac_compile"
94082 case "(($ac_try" in
94083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94084 *) ac_try_echo=$ac_try;;
94085 esac
94086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
94087 (eval "$ac_compile") 2>conftest.er1
94088 ac_status=$?
94089 grep -v '^ *+' conftest.er1 >conftest.err
94090 rm -f conftest.er1
94091 cat conftest.err >&5
94092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
94093 (exit $ac_status); } && {
94094 test -z "$ac_c_werror_flag" ||
94095 test ! -s conftest.err
94096 } && test -s conftest.$ac_objext; then
94097 msg=yes found=1 gm_api_ver=$var
94098 else
94099 echo "$as_me: failed program was:" >&5
94100 sed 's/^/| /' conftest.$ac_ext >&5
94102 msg=no found=0 gm_api_ver=""
94105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
94106 { echo "$as_me:$LINENO: result: $msg" >&5
94107 echo "${ECHO_T}$msg" >&6; }
94109 done
94111 if test "$gm_api_ver" = ""; then
94112 { echo "$as_me:$LINENO: WARNING: *** Could not find a supported GM_API_VERSION" >&5
94113 echo "$as_me: WARNING: *** Could not find a supported GM_API_VERSION" >&2;}
94114 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
94115 echo "$as_me: error: *** Cannot continue" >&2;}
94116 { (exit 1); exit 1; }; }
94119 cat >>confdefs.h <<_ACEOF
94120 #define OMPI_MCA_BTL_GM_API_VERSION $gm_api_ver
94121 _ACEOF
94123 unset gm_api_ver have_gm_api_ver_msg found val msg
94126 # Do we have gm_put()?
94127 # gm_put() was introduced in gm 2.0, and is exactly identical to gm
94128 # 1.6's gm_directed_send_with_callback(). The name was simply changed
94129 # for consistency/symmtery with gm_get().
94131 { echo "$as_me:$LINENO: checking for gm_put()" >&5
94132 echo $ECHO_N "checking for gm_put()... $ECHO_C" >&6; }
94133 cat >conftest.$ac_ext <<_ACEOF
94134 /* confdefs.h. */
94135 _ACEOF
94136 cat confdefs.h >>conftest.$ac_ext
94137 cat >>conftest.$ac_ext <<_ACEOF
94138 /* end confdefs.h. */
94139 #include<gm.h>
94142 main ()
94144 gm_put(0, 0, 0, 0, 0, 0, 0, 0, 0);
94146 return 0;
94148 _ACEOF
94149 rm -f conftest.$ac_objext conftest$ac_exeext
94150 if { (ac_try="$ac_link"
94151 case "(($ac_try" in
94152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94153 *) ac_try_echo=$ac_try;;
94154 esac
94155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
94156 (eval "$ac_link") 2>conftest.er1
94157 ac_status=$?
94158 grep -v '^ *+' conftest.er1 >conftest.err
94159 rm -f conftest.er1
94160 cat conftest.err >&5
94161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
94162 (exit $ac_status); } && {
94163 test -z "$ac_c_werror_flag" ||
94164 test ! -s conftest.err
94165 } && test -s conftest$ac_exeext &&
94166 $as_test_x conftest$ac_exeext; then
94167 HAVE_RDMA_PUT=1 MSG=yes
94168 else
94169 echo "$as_me: failed program was:" >&5
94170 sed 's/^/| /' conftest.$ac_ext >&5
94172 HAVE_RDMA_PUT=0 MSG="no, use gm_directed_send_with_callback()"
94175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
94176 conftest$ac_exeext conftest.$ac_ext
94178 cat >>confdefs.h <<_ACEOF
94179 #define OMPI_MCA_BTL_GM_HAVE_RDMA_PUT $HAVE_RDMA_PUT
94180 _ACEOF
94182 { echo "$as_me:$LINENO: result: $MSG" >&5
94183 echo "${ECHO_T}$MSG" >&6; }
94186 # Do we have gm_get()?
94187 # gm_get() was introduced in gm 2.0.
94189 { echo "$as_me:$LINENO: checking for gm_get()" >&5
94190 echo $ECHO_N "checking for gm_get()... $ECHO_C" >&6; }
94191 cat >conftest.$ac_ext <<_ACEOF
94192 /* confdefs.h. */
94193 _ACEOF
94194 cat confdefs.h >>conftest.$ac_ext
94195 cat >>conftest.$ac_ext <<_ACEOF
94196 /* end confdefs.h. */
94197 #include<gm.h>
94200 main ()
94202 gm_get(0, 0, 0, 0, 0, 0, 0, 0, 0);
94204 return 0;
94206 _ACEOF
94207 rm -f conftest.$ac_objext conftest$ac_exeext
94208 if { (ac_try="$ac_link"
94209 case "(($ac_try" in
94210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94211 *) ac_try_echo=$ac_try;;
94212 esac
94213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
94214 (eval "$ac_link") 2>conftest.er1
94215 ac_status=$?
94216 grep -v '^ *+' conftest.er1 >conftest.err
94217 rm -f conftest.er1
94218 cat conftest.err >&5
94219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
94220 (exit $ac_status); } && {
94221 test -z "$ac_c_werror_flag" ||
94222 test ! -s conftest.err
94223 } && test -s conftest$ac_exeext &&
94224 $as_test_x conftest$ac_exeext; then
94225 HAVE_RDMA_GET=1 MSG=yes
94226 else
94227 echo "$as_me: failed program was:" >&5
94228 sed 's/^/| /' conftest.$ac_ext >&5
94230 HAVE_RDMA_GET=0 MSG=no
94233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
94234 conftest$ac_exeext conftest.$ac_ext
94236 cat >>confdefs.h <<_ACEOF
94237 #define OMPI_MCA_BTL_GM_HAVE_RDMA_GET $HAVE_RDMA_GET
94238 _ACEOF
94240 { echo "$as_me:$LINENO: result: $MSG" >&5
94241 echo "${ECHO_T}$MSG" >&6; }
94243 # Now test to see if the targetted GM is a broken one broken gm builds
94244 { echo "$as_me:$LINENO: checking for broken GM 2.x RDMA gets build" >&5
94245 echo $ECHO_N "checking for broken GM 2.x RDMA gets build... $ECHO_C" >&6; }
94246 cat >conftest.$ac_ext <<_ACEOF
94247 /* confdefs.h. */
94248 _ACEOF
94249 cat confdefs.h >>conftest.$ac_ext
94250 cat >>conftest.$ac_ext <<_ACEOF
94251 /* end confdefs.h. */
94253 #include <gm.h>
94256 main ()
94259 #if GM_API_VERSION_2_0 && \
94260 ((GM_API_VERSION_2_1_0 && GM_API_VERSION < 0x20102) || \
94261 GM_API_VERSION < 0x2000c)
94262 #error GM build is broken
94263 #endif
94265 return 0;
94267 _ACEOF
94268 rm -f conftest.$ac_objext
94269 if { (ac_try="$ac_compile"
94270 case "(($ac_try" in
94271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94272 *) ac_try_echo=$ac_try;;
94273 esac
94274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
94275 (eval "$ac_compile") 2>conftest.er1
94276 ac_status=$?
94277 grep -v '^ *+' conftest.er1 >conftest.err
94278 rm -f conftest.er1
94279 cat conftest.err >&5
94280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
94281 (exit $ac_status); } && {
94282 test -z "$ac_c_werror_flag" ||
94283 test ! -s conftest.err
94284 } && test -s conftest.$ac_objext; then
94285 mca_gm_broken=0 gm_build_broken=no
94286 else
94287 echo "$as_me: failed program was:" >&5
94288 sed 's/^/| /' conftest.$ac_ext >&5
94290 mca_gm_broken=1 gm_build_broken=yes
94293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
94294 { echo "$as_me:$LINENO: result: $gm_build_broken " >&5
94295 echo "${ECHO_T}$gm_build_broken " >&6; }
94297 cat >>confdefs.h <<_ACEOF
94298 #define OMPI_MCA_BTL_GM_GET_BROKEN $mca_gm_broken
94299 _ACEOF
94301 unset gm_build_broken mca_gm_broken
94304 cat >>confdefs.h <<_ACEOF
94305 #define OMPI_MCA_BTL_GM_SUPPORT_REGISTERING 1
94306 _ACEOF
94309 CPPFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS"
94310 LDFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS"
94311 LIBS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS"
94313 btl_gm_happy="yes"
94314 else
94315 if test ! -z "$with_gm" -a "$with_gm" != "no"; then
94316 { { echo "$as_me:$LINENO: error: GM support requested but not found. Aborting" >&5
94317 echo "$as_me: error: GM support requested but not found. Aborting" >&2;}
94318 { (exit 1); exit 1; }; }
94321 btl_gm_happy="no"
94326 if test "$btl_gm_happy" = "yes"; then
94327 btl_gm_WRAPPER_EXTRA_LDFLAGS="$btl_gm_LDFLAGS"
94328 btl_gm_WRAPPER_EXTRA_LIBS="$btl_gm_LIBS"
94329 should_build=1
94330 else
94331 should_build=0
94335 # substitute in the things needed to build gm
94344 if test "$should_build" = "1"; then
94346 project=ompi
94347 framework=btl
94348 component=gm
94350 # See if it dropped an output file for us to pick up some
94351 # shell variables in.
94352 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
94354 # Add this subdir to the mast list of all MCA component subdirs
94355 all_components="$all_components $component"
94357 if test "$compile_mode" = "dso" ; then
94358 dso_components="$dso_components $component"
94359 else
94360 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
94361 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
94362 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
94363 static_components="$static_components $component"
94366 # Output pretty results
94367 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
94368 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
94369 { echo "$as_me:$LINENO: result: yes" >&5
94370 echo "${ECHO_T}yes" >&6; }
94372 # If there's an output file, add the values to
94373 # scope_EXTRA_flags.
94374 if test -f $infile; then
94376 # First check for the ABORT tag
94377 line="`grep ABORT= $infile | cut -d= -f2-`"
94378 if test -n "$line" -a "$line" != "no"; then
94379 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
94380 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
94381 { { echo "$as_me:$LINENO: error: cannot continue" >&5
94382 echo "$as_me: error: cannot continue" >&2;}
94383 { (exit 1); exit 1; }; }
94386 # Check for flags passed up from the component. If we're
94387 # compiling statically, then take all flags passed up from the
94388 # component.
94389 if test "$compile_mode" = "static"; then
94390 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
94391 eval "line=$line"
94392 if test -n "$line"; then
94393 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
94395 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
94396 eval "line=$line"
94397 if test -n "$line"; then
94398 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
94402 if test "$DIRECT_btl" = "$component" ; then
94403 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
94404 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
94405 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
94406 eval $str
94407 else
94408 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
94409 *** does not appear to support direct calling.
94410 *** Aborting" >&5
94411 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
94412 *** does not appear to support direct calling.
94413 *** Aborting" >&2;}
94414 { (exit 1); exit 1; }; }
94417 else
94418 # were we supposed to have found something in the
94419 # post_configure.sh, but the file didn't exist?
94420 if test "$DIRECT_btl" = "$component" ; then
94421 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
94422 *** does not appear to support direct calling.
94423 *** Aborting" >&5
94424 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
94425 *** does not appear to support direct calling.
94426 *** Aborting" >&2;}
94427 { (exit 1); exit 1; }; }
94431 # now add the flags that were set in the environment variables
94432 # framework_component_FOO (for example, the flags set by
94433 # m4_configure components)
94435 # Check for flags passed up from the component. If we're
94436 # compiling statically, then take all flags passed up from the
94437 # component.
94438 if test "$compile_mode" = "static"; then
94439 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
94440 eval "$str"
94441 if test -n "$line" ; then
94442 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
94444 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
94445 eval "$str"
94446 if test -n "$line" ; then
94447 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
94451 else
94453 { echo "$as_me:$LINENO: checking if MCA component btl:gm can compile" >&5
94454 echo $ECHO_N "checking if MCA component btl:gm can compile... $ECHO_C" >&6; }
94455 { echo "$as_me:$LINENO: result: no" >&5
94456 echo "${ECHO_T}no" >&6; }
94458 # If this component was requested as the default for this
94459 # type, then abort.
94460 if test "$with_btl" = "gm" ; then
94461 { echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5
94462 echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;}
94463 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
94464 echo "$as_me: WARNING: This component was selected as the default" >&2;}
94465 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
94466 echo "$as_me: error: Cannot continue" >&2;}
94467 { (exit 1); exit 1; }; }
94468 exit 1
94471 if test ! -z "$DIRECT_btl" ; then
94472 if test "$DIRECT_btl" = "gm" ; then
94473 { echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5
94474 echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;}
94475 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
94476 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
94477 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
94478 echo "$as_me: error: Cannot continue" >&2;}
94479 { (exit 1); exit 1; }; }
94480 exit 1
94484 # add component to all component list
94485 all_components="$all_components gm"
94489 # set the AM_CONDITIONAL on how we should build
94490 if test "$compile_mode" = "dso"; then
94491 BUILD_btl_gm_DSO=1
94492 else
94493 BUILD_btl_gm_DSO=0
94498 if test "$BUILD_btl_gm_DSO" = "1"; then
94499 OMPI_BUILD_btl_gm_DSO_TRUE=
94500 OMPI_BUILD_btl_gm_DSO_FALSE='#'
94501 else
94502 OMPI_BUILD_btl_gm_DSO_TRUE='#'
94503 OMPI_BUILD_btl_gm_DSO_FALSE=
94507 if test "$should_build" = "1"; then
94508 components_looking_for_succeed="$happy_value"
94512 unset compile_mode
94514 ompi_show_subsubsubtitle "MCA component btl:mvapi (m4 configuration macro)"
94517 project=ompi
94518 framework=btl
94519 component=mvapi
94520 component_path="$srcdir/$project/mca/$framework/$component"
94521 want_component=0
94523 # build if:
94524 # - the component type is direct and we are that component
94525 # - there is no ompi_ignore file
94526 # - there is an ompi_ignore, but there is an empty ompi_unignore
94527 # - there is an ompi_ignore, but username is in ompi_unignore
94528 if test -d $component_path ; then
94529 # decide if we want the component to be built or not. This
94530 # is spread out because some of the logic is a little complex
94531 # and test's syntax isn't exactly the greatest. We want to
94532 # build the component by default.
94533 want_component=1
94534 if test -f $component_path/.ompi_ignore ; then
94535 # If there is an ompi_ignore file, don't build
94536 # the component. Note that this decision can be
94537 # overriden by the unignore logic below.
94538 want_component=0
94540 if test -f $component_path/.ompi_unignore ; then
94541 # if there is an empty ompi_unignore, that is
94542 # equivalent to having your userid in the unignore file.
94543 # If userid is in the file, unignore the ignore file.
94544 if test ! -s $component_path/.ompi_unignore ; then
94545 want_component=1
94546 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
94547 want_component=1
94550 # if this component type is direct and we are not it, we don't want
94551 # to be built. Otherwise, we do want to be built.
94552 if test ! -z "$DIRECT_btl" ; then
94553 if test "$DIRECT_btl" = "$component" ; then
94554 want_component=1
94555 else
94556 want_component=0
94561 # if we were explicitly disabled, don't build :)
94562 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
94563 eval $str
94564 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
94565 want_component=0
94568 if test "$want_component" = "1"; then
94569 should_build=$components_looking_for_succeed
94570 else
94571 should_build=0
94575 # Allow the component to override the build mode if it really wants to.
94576 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
94578 project=ompi
94579 framework=btl
94580 component=mvapi
94582 # Is this component going to built staic or shared? $component
94583 # might not be known until configure time, so have to use eval
94584 # tricks - can't set variable names at autogen time.
94585 str="SHARED_FRAMEWORK=\$DSO_$framework"
94586 eval $str
94587 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
94588 eval $str
94590 str="STATIC_FRAMEWORK=\$STATIC_$framework"
94591 eval $str
94592 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
94593 eval $str
94595 shared_mode_override=static
94597 # Setup for either shared or static
94598 if test "$STATIC_FRAMEWORK" = "1" -o \
94599 "$STATIC_COMPONENT" = "1" -o \
94600 "$STATIC_all" = "1" ; then
94601 compile_mode="static"
94602 elif test "$shared_mode_override" = "dso" -o \
94603 "$SHARED_FRAMEWORK" = "1" -o \
94604 "$SHARED_COMPONENT" = "1" -o \
94605 "$DSO_all" = "1"; then
94606 compile_mode="dso"
94607 else
94608 compile_mode="static"
94611 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
94612 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
94613 if test "$DIRECT_btl" = "$component" ; then
94614 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
94615 echo "${ECHO_T}$compile_mode - direct" >&6; }
94616 else
94617 { echo "$as_me:$LINENO: result: $compile_mode" >&5
94618 echo "${ECHO_T}$compile_mode" >&6; }
94622 # try to configure the component. pay no attention to
94623 # --enable-dist, since we'll always have makefiles.
94624 if test "$should_build" = "1"; then
94628 # Check whether --with-mvapi was given.
94629 if test "${with_mvapi+set}" = set; then
94630 withval=$with_mvapi;
94634 # Check whether --with-mvapi-libdir was given.
94635 if test "${with_mvapi_libdir+set}" = set; then
94636 withval=$with_mvapi_libdir;
94640 if test ! -z "$with_mvapi" -a "$with_mvapi" != "yes"; then
94641 ompi_check_mvapi_dir="$with_mvapi"
94644 if test ! -z "$with_mvapi_libdir" -a "$with_mvapi_libdir" != "yes"; then
94645 ompi_check_mvapi_libdir="$with_mvapi_libdir"
94649 if test "$with_mvapi" != "no"; then
94650 # check for pthreads and emit a warning that
94651 # things might go south...
94652 if test "$HAVE_POSIX_THREADS" != "1"; then
94653 { echo "$as_me:$LINENO: WARNING: POSIX threads not enabled. May not be able to link with mvapi" >&5
94654 echo "$as_me: WARNING: POSIX threads not enabled. May not be able to link with mvapi" >&2;}
94658 ompi_check_mvapibtl_mvapi_save_CFLAGS="$CFLAGS"
94659 ompi_check_mvapibtl_mvapi_save_CPPFLAGS="$CPPFLAGS"
94661 # ugly hack for topspin which stores include files in include/vapi
94662 if test -d "$ompi_check_mvapi_dir/include/vapi"; then
94663 CPPFLAGS="$CPPFLAGS -I $ompi_check_mvapi_dir/include/vapi"
94664 btl_mvapi_CPPFLAGS="$btl_mvapi_CPPFLAGS -I $ompi_check_mvapi_dir/include/vapi"
94668 # some mellanox vapi implemenations only need lvapi and lmosal
94670 ompi_check_package_btl_mvapi_save_CPPFLAGS="$CPPFLAGS"
94671 ompi_check_package_btl_mvapi_save_LDFLAGS="$LDFLAGS"
94672 ompi_check_package_btl_mvapi_save_LIBS="$LIBS"
94674 ompi_check_package_btl_mvapi_orig_CPPFLAGS="$btl_mvapi_CPPFLAGS"
94675 ompi_check_package_btl_mvapi_orig_LDFLAGS="$btl_mvapi_LDFLAGS"
94676 ompi_check_package_btl_mvapi_orig_LIBS="$btl_mvapi_LIBS"
94679 # This is stolen from autoconf to peek under the covers to get the
94680 # cache variable for the library check. one should not copy this
94681 # code into other places unless you want much pain and suffering
94684 # so this sucks, but there's no way to get through the progression
94685 # of header includes without killing off the cache variable and trying
94686 # again...
94687 unset ac_cv_header_vapi_h
94689 ompi_check_package_header_happy="no"
94690 if test "$ompi_check_mvapi_dir" = "/usr" -o "$ompi_check_mvapi_dir" = "/usr/local"; then
94691 # try as is...
94692 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
94693 echo "${ECHO_T}looking for header without includes" >&6; }
94694 if test "${ac_cv_header_vapi_h+set}" = set; then
94695 { echo "$as_me:$LINENO: checking for vapi.h" >&5
94696 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
94697 if test "${ac_cv_header_vapi_h+set}" = set; then
94698 echo $ECHO_N "(cached) $ECHO_C" >&6
94700 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
94701 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
94702 else
94703 # Is the header compilable?
94704 { echo "$as_me:$LINENO: checking vapi.h usability" >&5
94705 echo $ECHO_N "checking vapi.h usability... $ECHO_C" >&6; }
94706 cat >conftest.$ac_ext <<_ACEOF
94707 /* confdefs.h. */
94708 _ACEOF
94709 cat confdefs.h >>conftest.$ac_ext
94710 cat >>conftest.$ac_ext <<_ACEOF
94711 /* end confdefs.h. */
94712 $ac_includes_default
94713 #include <vapi.h>
94714 _ACEOF
94715 rm -f conftest.$ac_objext
94716 if { (ac_try="$ac_compile"
94717 case "(($ac_try" in
94718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94719 *) ac_try_echo=$ac_try;;
94720 esac
94721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
94722 (eval "$ac_compile") 2>conftest.er1
94723 ac_status=$?
94724 grep -v '^ *+' conftest.er1 >conftest.err
94725 rm -f conftest.er1
94726 cat conftest.err >&5
94727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
94728 (exit $ac_status); } && {
94729 test -z "$ac_c_werror_flag" ||
94730 test ! -s conftest.err
94731 } && test -s conftest.$ac_objext; then
94732 ac_header_compiler=yes
94733 else
94734 echo "$as_me: failed program was:" >&5
94735 sed 's/^/| /' conftest.$ac_ext >&5
94737 ac_header_compiler=no
94740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
94741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
94742 echo "${ECHO_T}$ac_header_compiler" >&6; }
94744 # Is the header present?
94745 { echo "$as_me:$LINENO: checking vapi.h presence" >&5
94746 echo $ECHO_N "checking vapi.h presence... $ECHO_C" >&6; }
94747 cat >conftest.$ac_ext <<_ACEOF
94748 /* confdefs.h. */
94749 _ACEOF
94750 cat confdefs.h >>conftest.$ac_ext
94751 cat >>conftest.$ac_ext <<_ACEOF
94752 /* end confdefs.h. */
94753 #include <vapi.h>
94754 _ACEOF
94755 if { (ac_try="$ac_cpp conftest.$ac_ext"
94756 case "(($ac_try" in
94757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94758 *) ac_try_echo=$ac_try;;
94759 esac
94760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
94761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
94762 ac_status=$?
94763 grep -v '^ *+' conftest.er1 >conftest.err
94764 rm -f conftest.er1
94765 cat conftest.err >&5
94766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
94767 (exit $ac_status); } >/dev/null && {
94768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
94769 test ! -s conftest.err
94770 }; then
94771 ac_header_preproc=yes
94772 else
94773 echo "$as_me: failed program was:" >&5
94774 sed 's/^/| /' conftest.$ac_ext >&5
94776 ac_header_preproc=no
94779 rm -f conftest.err conftest.$ac_ext
94780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
94781 echo "${ECHO_T}$ac_header_preproc" >&6; }
94783 # So? What about this header?
94784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
94785 yes:no: )
94786 { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
94787 echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
94788 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
94789 echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
94790 ac_header_preproc=yes
94792 no:yes:* )
94793 { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
94794 echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
94795 { echo "$as_me:$LINENO: WARNING: vapi.h: check for missing prerequisite headers?" >&5
94796 echo "$as_me: WARNING: vapi.h: check for missing prerequisite headers?" >&2;}
94797 { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
94798 echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
94799 { echo "$as_me:$LINENO: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&5
94800 echo "$as_me: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
94801 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
94802 echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
94803 { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
94804 echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
94805 ( cat <<\_ASBOX
94806 ## ------------------------------------------------------ ##
94807 ## Report this to http://www.open-mpi.org/community/help/ ##
94808 ## ------------------------------------------------------ ##
94809 _ASBOX
94810 ) | sed "s/^/$as_me: WARNING: /" >&2
94812 esac
94813 { echo "$as_me:$LINENO: checking for vapi.h" >&5
94814 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
94815 if test "${ac_cv_header_vapi_h+set}" = set; then
94816 echo $ECHO_N "(cached) $ECHO_C" >&6
94817 else
94818 ac_cv_header_vapi_h=$ac_header_preproc
94820 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
94821 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
94824 if test $ac_cv_header_vapi_h = yes; then
94825 ompi_check_package_header_happy="yes"
94826 else
94827 ompi_check_package_header_happy="no"
94831 if test "$ompi_check_package_header_happy" = "no"; then
94832 # no go on the as is - reset the cache and try again
94833 unset ac_cv_header_vapi_h
94839 if test "$ompi_check_package_header_happy" = "no"; then
94840 if test "$ompi_check_mvapi_dir" != ""; then
94841 btl_mvapi_CPPFLAGS="$btl_mvapi_CPPFLAGS -I$ompi_check_mvapi_dir/include"
94842 CPPFLAGS="$CPPFLAGS -I$ompi_check_mvapi_dir/include"
94845 if test "${ac_cv_header_vapi_h+set}" = set; then
94846 { echo "$as_me:$LINENO: checking for vapi.h" >&5
94847 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
94848 if test "${ac_cv_header_vapi_h+set}" = set; then
94849 echo $ECHO_N "(cached) $ECHO_C" >&6
94851 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
94852 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
94853 else
94854 # Is the header compilable?
94855 { echo "$as_me:$LINENO: checking vapi.h usability" >&5
94856 echo $ECHO_N "checking vapi.h usability... $ECHO_C" >&6; }
94857 cat >conftest.$ac_ext <<_ACEOF
94858 /* confdefs.h. */
94859 _ACEOF
94860 cat confdefs.h >>conftest.$ac_ext
94861 cat >>conftest.$ac_ext <<_ACEOF
94862 /* end confdefs.h. */
94863 $ac_includes_default
94864 #include <vapi.h>
94865 _ACEOF
94866 rm -f conftest.$ac_objext
94867 if { (ac_try="$ac_compile"
94868 case "(($ac_try" in
94869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94870 *) ac_try_echo=$ac_try;;
94871 esac
94872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
94873 (eval "$ac_compile") 2>conftest.er1
94874 ac_status=$?
94875 grep -v '^ *+' conftest.er1 >conftest.err
94876 rm -f conftest.er1
94877 cat conftest.err >&5
94878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
94879 (exit $ac_status); } && {
94880 test -z "$ac_c_werror_flag" ||
94881 test ! -s conftest.err
94882 } && test -s conftest.$ac_objext; then
94883 ac_header_compiler=yes
94884 else
94885 echo "$as_me: failed program was:" >&5
94886 sed 's/^/| /' conftest.$ac_ext >&5
94888 ac_header_compiler=no
94891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
94892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
94893 echo "${ECHO_T}$ac_header_compiler" >&6; }
94895 # Is the header present?
94896 { echo "$as_me:$LINENO: checking vapi.h presence" >&5
94897 echo $ECHO_N "checking vapi.h presence... $ECHO_C" >&6; }
94898 cat >conftest.$ac_ext <<_ACEOF
94899 /* confdefs.h. */
94900 _ACEOF
94901 cat confdefs.h >>conftest.$ac_ext
94902 cat >>conftest.$ac_ext <<_ACEOF
94903 /* end confdefs.h. */
94904 #include <vapi.h>
94905 _ACEOF
94906 if { (ac_try="$ac_cpp conftest.$ac_ext"
94907 case "(($ac_try" in
94908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94909 *) ac_try_echo=$ac_try;;
94910 esac
94911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
94912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
94913 ac_status=$?
94914 grep -v '^ *+' conftest.er1 >conftest.err
94915 rm -f conftest.er1
94916 cat conftest.err >&5
94917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
94918 (exit $ac_status); } >/dev/null && {
94919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
94920 test ! -s conftest.err
94921 }; then
94922 ac_header_preproc=yes
94923 else
94924 echo "$as_me: failed program was:" >&5
94925 sed 's/^/| /' conftest.$ac_ext >&5
94927 ac_header_preproc=no
94930 rm -f conftest.err conftest.$ac_ext
94931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
94932 echo "${ECHO_T}$ac_header_preproc" >&6; }
94934 # So? What about this header?
94935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
94936 yes:no: )
94937 { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
94938 echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
94939 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
94940 echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
94941 ac_header_preproc=yes
94943 no:yes:* )
94944 { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
94945 echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
94946 { echo "$as_me:$LINENO: WARNING: vapi.h: check for missing prerequisite headers?" >&5
94947 echo "$as_me: WARNING: vapi.h: check for missing prerequisite headers?" >&2;}
94948 { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
94949 echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
94950 { echo "$as_me:$LINENO: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&5
94951 echo "$as_me: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
94952 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
94953 echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
94954 { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
94955 echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
94956 ( cat <<\_ASBOX
94957 ## ------------------------------------------------------ ##
94958 ## Report this to http://www.open-mpi.org/community/help/ ##
94959 ## ------------------------------------------------------ ##
94960 _ASBOX
94961 ) | sed "s/^/$as_me: WARNING: /" >&2
94963 esac
94964 { echo "$as_me:$LINENO: checking for vapi.h" >&5
94965 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
94966 if test "${ac_cv_header_vapi_h+set}" = set; then
94967 echo $ECHO_N "(cached) $ECHO_C" >&6
94968 else
94969 ac_cv_header_vapi_h=$ac_header_preproc
94971 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
94972 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
94975 if test $ac_cv_header_vapi_h = yes; then
94977 # This is stolen from autoconf to peek under the covers to get the
94978 # cache variable for the library check. one should not copy this
94979 # code into other places unless you want much pain and suffering
94981 # see comment above
94982 unset ac_cv_lib_vapi_VAPI_open_hca
94983 ompi_check_package_lib_happy="no"
94984 if test "$ompi_check_mvapi_libdir" != ""; then
94985 # libdir was specified - search only there
94986 btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
94987 LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
94988 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
94989 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
94990 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
94991 echo $ECHO_N "(cached) $ECHO_C" >&6
94992 else
94993 ac_check_lib_save_LIBS=$LIBS
94994 LIBS="-lvapi -lmosal $LIBS"
94995 cat >conftest.$ac_ext <<_ACEOF
94996 /* confdefs.h. */
94997 _ACEOF
94998 cat confdefs.h >>conftest.$ac_ext
94999 cat >>conftest.$ac_ext <<_ACEOF
95000 /* end confdefs.h. */
95002 /* Override any GCC internal prototype to avoid an error.
95003 Use char because int might match the return type of a GCC
95004 builtin and then its argument prototype would still apply. */
95005 #ifdef __cplusplus
95006 extern "C"
95007 #endif
95008 char VAPI_open_hca ();
95010 main ()
95012 return VAPI_open_hca ();
95014 return 0;
95016 _ACEOF
95017 rm -f conftest.$ac_objext conftest$ac_exeext
95018 if { (ac_try="$ac_link"
95019 case "(($ac_try" in
95020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95021 *) ac_try_echo=$ac_try;;
95022 esac
95023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
95024 (eval "$ac_link") 2>conftest.er1
95025 ac_status=$?
95026 grep -v '^ *+' conftest.er1 >conftest.err
95027 rm -f conftest.er1
95028 cat conftest.err >&5
95029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
95030 (exit $ac_status); } && {
95031 test -z "$ac_c_werror_flag" ||
95032 test ! -s conftest.err
95033 } && test -s conftest$ac_exeext &&
95034 $as_test_x conftest$ac_exeext; then
95035 ac_cv_lib_vapi_VAPI_open_hca=yes
95036 else
95037 echo "$as_me: failed program was:" >&5
95038 sed 's/^/| /' conftest.$ac_ext >&5
95040 ac_cv_lib_vapi_VAPI_open_hca=no
95043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95044 conftest$ac_exeext conftest.$ac_ext
95045 LIBS=$ac_check_lib_save_LIBS
95047 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
95048 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
95049 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
95050 ompi_check_package_lib_happy="yes"
95051 else
95052 ompi_check_package_lib_happy="no"
95055 if test "$ompi_check_package_lib_happy" = "no"; then
95056 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
95057 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
95058 unset ac_cv_lib_vapi_VAPI_open_hca
95061 else
95062 # libdir was not specified - go through search path
95063 ompi_check_package_libdir="$ompi_check_mvapi_dir"
95064 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
95065 # try as is...
95066 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
95067 echo "${ECHO_T}looking for library without search path" >&6; }
95068 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
95069 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
95070 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
95071 echo $ECHO_N "(cached) $ECHO_C" >&6
95072 else
95073 ac_check_lib_save_LIBS=$LIBS
95074 LIBS="-lvapi -lmosal $LIBS"
95075 cat >conftest.$ac_ext <<_ACEOF
95076 /* confdefs.h. */
95077 _ACEOF
95078 cat confdefs.h >>conftest.$ac_ext
95079 cat >>conftest.$ac_ext <<_ACEOF
95080 /* end confdefs.h. */
95082 /* Override any GCC internal prototype to avoid an error.
95083 Use char because int might match the return type of a GCC
95084 builtin and then its argument prototype would still apply. */
95085 #ifdef __cplusplus
95086 extern "C"
95087 #endif
95088 char VAPI_open_hca ();
95090 main ()
95092 return VAPI_open_hca ();
95094 return 0;
95096 _ACEOF
95097 rm -f conftest.$ac_objext conftest$ac_exeext
95098 if { (ac_try="$ac_link"
95099 case "(($ac_try" in
95100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95101 *) ac_try_echo=$ac_try;;
95102 esac
95103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
95104 (eval "$ac_link") 2>conftest.er1
95105 ac_status=$?
95106 grep -v '^ *+' conftest.er1 >conftest.err
95107 rm -f conftest.er1
95108 cat conftest.err >&5
95109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
95110 (exit $ac_status); } && {
95111 test -z "$ac_c_werror_flag" ||
95112 test ! -s conftest.err
95113 } && test -s conftest$ac_exeext &&
95114 $as_test_x conftest$ac_exeext; then
95115 ac_cv_lib_vapi_VAPI_open_hca=yes
95116 else
95117 echo "$as_me: failed program was:" >&5
95118 sed 's/^/| /' conftest.$ac_ext >&5
95120 ac_cv_lib_vapi_VAPI_open_hca=no
95123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95124 conftest$ac_exeext conftest.$ac_ext
95125 LIBS=$ac_check_lib_save_LIBS
95127 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
95128 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
95129 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
95130 ompi_check_package_lib_happy="yes"
95131 else
95132 ompi_check_package_lib_happy="no"
95135 if test "$ompi_check_package_lib_happy" = "no"; then
95136 # no go on the as is.. see what happens later...
95137 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
95138 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
95139 unset ac_cv_lib_vapi_VAPI_open_hca
95145 if test "$ompi_check_package_lib_happy" = "no"; then
95146 if test "$ompi_check_package_libdir" != ""; then
95147 btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
95148 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
95149 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
95150 echo "${ECHO_T}looking for library in lib" >&6; }
95151 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
95152 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
95153 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
95154 echo $ECHO_N "(cached) $ECHO_C" >&6
95155 else
95156 ac_check_lib_save_LIBS=$LIBS
95157 LIBS="-lvapi -lmosal $LIBS"
95158 cat >conftest.$ac_ext <<_ACEOF
95159 /* confdefs.h. */
95160 _ACEOF
95161 cat confdefs.h >>conftest.$ac_ext
95162 cat >>conftest.$ac_ext <<_ACEOF
95163 /* end confdefs.h. */
95165 /* Override any GCC internal prototype to avoid an error.
95166 Use char because int might match the return type of a GCC
95167 builtin and then its argument prototype would still apply. */
95168 #ifdef __cplusplus
95169 extern "C"
95170 #endif
95171 char VAPI_open_hca ();
95173 main ()
95175 return VAPI_open_hca ();
95177 return 0;
95179 _ACEOF
95180 rm -f conftest.$ac_objext conftest$ac_exeext
95181 if { (ac_try="$ac_link"
95182 case "(($ac_try" in
95183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95184 *) ac_try_echo=$ac_try;;
95185 esac
95186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
95187 (eval "$ac_link") 2>conftest.er1
95188 ac_status=$?
95189 grep -v '^ *+' conftest.er1 >conftest.err
95190 rm -f conftest.er1
95191 cat conftest.err >&5
95192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
95193 (exit $ac_status); } && {
95194 test -z "$ac_c_werror_flag" ||
95195 test ! -s conftest.err
95196 } && test -s conftest$ac_exeext &&
95197 $as_test_x conftest$ac_exeext; then
95198 ac_cv_lib_vapi_VAPI_open_hca=yes
95199 else
95200 echo "$as_me: failed program was:" >&5
95201 sed 's/^/| /' conftest.$ac_ext >&5
95203 ac_cv_lib_vapi_VAPI_open_hca=no
95206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95207 conftest$ac_exeext conftest.$ac_ext
95208 LIBS=$ac_check_lib_save_LIBS
95210 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
95211 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
95212 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
95213 ompi_check_package_lib_happy="yes"
95214 else
95215 ompi_check_package_lib_happy="no"
95218 if test "$ompi_check_package_lib_happy" = "no"; then
95219 # no go on the as is.. see what happens later...
95220 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
95221 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
95222 unset ac_cv_lib_vapi_VAPI_open_hca
95230 if test "$ompi_check_package_lib_happy" = "no"; then
95231 if test "$ompi_check_package_libdir" != ""; then
95232 btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
95233 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
95234 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
95235 echo "${ECHO_T}looking for library in lib64" >&6; }
95236 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
95237 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
95238 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
95239 echo $ECHO_N "(cached) $ECHO_C" >&6
95240 else
95241 ac_check_lib_save_LIBS=$LIBS
95242 LIBS="-lvapi -lmosal $LIBS"
95243 cat >conftest.$ac_ext <<_ACEOF
95244 /* confdefs.h. */
95245 _ACEOF
95246 cat confdefs.h >>conftest.$ac_ext
95247 cat >>conftest.$ac_ext <<_ACEOF
95248 /* end confdefs.h. */
95250 /* Override any GCC internal prototype to avoid an error.
95251 Use char because int might match the return type of a GCC
95252 builtin and then its argument prototype would still apply. */
95253 #ifdef __cplusplus
95254 extern "C"
95255 #endif
95256 char VAPI_open_hca ();
95258 main ()
95260 return VAPI_open_hca ();
95262 return 0;
95264 _ACEOF
95265 rm -f conftest.$ac_objext conftest$ac_exeext
95266 if { (ac_try="$ac_link"
95267 case "(($ac_try" in
95268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95269 *) ac_try_echo=$ac_try;;
95270 esac
95271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
95272 (eval "$ac_link") 2>conftest.er1
95273 ac_status=$?
95274 grep -v '^ *+' conftest.er1 >conftest.err
95275 rm -f conftest.er1
95276 cat conftest.err >&5
95277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
95278 (exit $ac_status); } && {
95279 test -z "$ac_c_werror_flag" ||
95280 test ! -s conftest.err
95281 } && test -s conftest$ac_exeext &&
95282 $as_test_x conftest$ac_exeext; then
95283 ac_cv_lib_vapi_VAPI_open_hca=yes
95284 else
95285 echo "$as_me: failed program was:" >&5
95286 sed 's/^/| /' conftest.$ac_ext >&5
95288 ac_cv_lib_vapi_VAPI_open_hca=no
95291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95292 conftest$ac_exeext conftest.$ac_ext
95293 LIBS=$ac_check_lib_save_LIBS
95295 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
95296 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
95297 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
95298 ompi_check_package_lib_happy="yes"
95299 else
95300 ompi_check_package_lib_happy="no"
95303 if test "$ompi_check_package_lib_happy" = "no"; then
95304 # no go on the as is.. see what happens later...
95305 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
95306 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
95307 unset ac_cv_lib_vapi_VAPI_open_hca
95317 if test "$ompi_check_package_lib_happy" = "yes"; then
95318 ompi_check_package_happy="yes"
95319 else
95320 ompi_check_package_happy="no"
95325 else
95326 ompi_check_package_happy="no"
95330 else
95332 # This is stolen from autoconf to peek under the covers to get the
95333 # cache variable for the library check. one should not copy this
95334 # code into other places unless you want much pain and suffering
95336 # see comment above
95337 unset ac_cv_lib_vapi_VAPI_open_hca
95338 ompi_check_package_lib_happy="no"
95339 if test "$ompi_check_mvapi_libdir" != ""; then
95340 # libdir was specified - search only there
95341 btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
95342 LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
95343 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
95344 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
95345 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
95346 echo $ECHO_N "(cached) $ECHO_C" >&6
95347 else
95348 ac_check_lib_save_LIBS=$LIBS
95349 LIBS="-lvapi -lmosal $LIBS"
95350 cat >conftest.$ac_ext <<_ACEOF
95351 /* confdefs.h. */
95352 _ACEOF
95353 cat confdefs.h >>conftest.$ac_ext
95354 cat >>conftest.$ac_ext <<_ACEOF
95355 /* end confdefs.h. */
95357 /* Override any GCC internal prototype to avoid an error.
95358 Use char because int might match the return type of a GCC
95359 builtin and then its argument prototype would still apply. */
95360 #ifdef __cplusplus
95361 extern "C"
95362 #endif
95363 char VAPI_open_hca ();
95365 main ()
95367 return VAPI_open_hca ();
95369 return 0;
95371 _ACEOF
95372 rm -f conftest.$ac_objext conftest$ac_exeext
95373 if { (ac_try="$ac_link"
95374 case "(($ac_try" in
95375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95376 *) ac_try_echo=$ac_try;;
95377 esac
95378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
95379 (eval "$ac_link") 2>conftest.er1
95380 ac_status=$?
95381 grep -v '^ *+' conftest.er1 >conftest.err
95382 rm -f conftest.er1
95383 cat conftest.err >&5
95384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
95385 (exit $ac_status); } && {
95386 test -z "$ac_c_werror_flag" ||
95387 test ! -s conftest.err
95388 } && test -s conftest$ac_exeext &&
95389 $as_test_x conftest$ac_exeext; then
95390 ac_cv_lib_vapi_VAPI_open_hca=yes
95391 else
95392 echo "$as_me: failed program was:" >&5
95393 sed 's/^/| /' conftest.$ac_ext >&5
95395 ac_cv_lib_vapi_VAPI_open_hca=no
95398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95399 conftest$ac_exeext conftest.$ac_ext
95400 LIBS=$ac_check_lib_save_LIBS
95402 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
95403 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
95404 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
95405 ompi_check_package_lib_happy="yes"
95406 else
95407 ompi_check_package_lib_happy="no"
95410 if test "$ompi_check_package_lib_happy" = "no"; then
95411 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
95412 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
95413 unset ac_cv_lib_vapi_VAPI_open_hca
95416 else
95417 # libdir was not specified - go through search path
95418 ompi_check_package_libdir="$ompi_check_mvapi_dir"
95419 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
95420 # try as is...
95421 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
95422 echo "${ECHO_T}looking for library without search path" >&6; }
95423 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
95424 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
95425 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
95426 echo $ECHO_N "(cached) $ECHO_C" >&6
95427 else
95428 ac_check_lib_save_LIBS=$LIBS
95429 LIBS="-lvapi -lmosal $LIBS"
95430 cat >conftest.$ac_ext <<_ACEOF
95431 /* confdefs.h. */
95432 _ACEOF
95433 cat confdefs.h >>conftest.$ac_ext
95434 cat >>conftest.$ac_ext <<_ACEOF
95435 /* end confdefs.h. */
95437 /* Override any GCC internal prototype to avoid an error.
95438 Use char because int might match the return type of a GCC
95439 builtin and then its argument prototype would still apply. */
95440 #ifdef __cplusplus
95441 extern "C"
95442 #endif
95443 char VAPI_open_hca ();
95445 main ()
95447 return VAPI_open_hca ();
95449 return 0;
95451 _ACEOF
95452 rm -f conftest.$ac_objext conftest$ac_exeext
95453 if { (ac_try="$ac_link"
95454 case "(($ac_try" in
95455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95456 *) ac_try_echo=$ac_try;;
95457 esac
95458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
95459 (eval "$ac_link") 2>conftest.er1
95460 ac_status=$?
95461 grep -v '^ *+' conftest.er1 >conftest.err
95462 rm -f conftest.er1
95463 cat conftest.err >&5
95464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
95465 (exit $ac_status); } && {
95466 test -z "$ac_c_werror_flag" ||
95467 test ! -s conftest.err
95468 } && test -s conftest$ac_exeext &&
95469 $as_test_x conftest$ac_exeext; then
95470 ac_cv_lib_vapi_VAPI_open_hca=yes
95471 else
95472 echo "$as_me: failed program was:" >&5
95473 sed 's/^/| /' conftest.$ac_ext >&5
95475 ac_cv_lib_vapi_VAPI_open_hca=no
95478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95479 conftest$ac_exeext conftest.$ac_ext
95480 LIBS=$ac_check_lib_save_LIBS
95482 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
95483 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
95484 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
95485 ompi_check_package_lib_happy="yes"
95486 else
95487 ompi_check_package_lib_happy="no"
95490 if test "$ompi_check_package_lib_happy" = "no"; then
95491 # no go on the as is.. see what happens later...
95492 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
95493 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
95494 unset ac_cv_lib_vapi_VAPI_open_hca
95500 if test "$ompi_check_package_lib_happy" = "no"; then
95501 if test "$ompi_check_package_libdir" != ""; then
95502 btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
95503 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
95504 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
95505 echo "${ECHO_T}looking for library in lib" >&6; }
95506 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
95507 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
95508 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
95509 echo $ECHO_N "(cached) $ECHO_C" >&6
95510 else
95511 ac_check_lib_save_LIBS=$LIBS
95512 LIBS="-lvapi -lmosal $LIBS"
95513 cat >conftest.$ac_ext <<_ACEOF
95514 /* confdefs.h. */
95515 _ACEOF
95516 cat confdefs.h >>conftest.$ac_ext
95517 cat >>conftest.$ac_ext <<_ACEOF
95518 /* end confdefs.h. */
95520 /* Override any GCC internal prototype to avoid an error.
95521 Use char because int might match the return type of a GCC
95522 builtin and then its argument prototype would still apply. */
95523 #ifdef __cplusplus
95524 extern "C"
95525 #endif
95526 char VAPI_open_hca ();
95528 main ()
95530 return VAPI_open_hca ();
95532 return 0;
95534 _ACEOF
95535 rm -f conftest.$ac_objext conftest$ac_exeext
95536 if { (ac_try="$ac_link"
95537 case "(($ac_try" in
95538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95539 *) ac_try_echo=$ac_try;;
95540 esac
95541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
95542 (eval "$ac_link") 2>conftest.er1
95543 ac_status=$?
95544 grep -v '^ *+' conftest.er1 >conftest.err
95545 rm -f conftest.er1
95546 cat conftest.err >&5
95547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
95548 (exit $ac_status); } && {
95549 test -z "$ac_c_werror_flag" ||
95550 test ! -s conftest.err
95551 } && test -s conftest$ac_exeext &&
95552 $as_test_x conftest$ac_exeext; then
95553 ac_cv_lib_vapi_VAPI_open_hca=yes
95554 else
95555 echo "$as_me: failed program was:" >&5
95556 sed 's/^/| /' conftest.$ac_ext >&5
95558 ac_cv_lib_vapi_VAPI_open_hca=no
95561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95562 conftest$ac_exeext conftest.$ac_ext
95563 LIBS=$ac_check_lib_save_LIBS
95565 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
95566 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
95567 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
95568 ompi_check_package_lib_happy="yes"
95569 else
95570 ompi_check_package_lib_happy="no"
95573 if test "$ompi_check_package_lib_happy" = "no"; then
95574 # no go on the as is.. see what happens later...
95575 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
95576 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
95577 unset ac_cv_lib_vapi_VAPI_open_hca
95585 if test "$ompi_check_package_lib_happy" = "no"; then
95586 if test "$ompi_check_package_libdir" != ""; then
95587 btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
95588 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
95589 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
95590 echo "${ECHO_T}looking for library in lib64" >&6; }
95591 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
95592 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
95593 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
95594 echo $ECHO_N "(cached) $ECHO_C" >&6
95595 else
95596 ac_check_lib_save_LIBS=$LIBS
95597 LIBS="-lvapi -lmosal $LIBS"
95598 cat >conftest.$ac_ext <<_ACEOF
95599 /* confdefs.h. */
95600 _ACEOF
95601 cat confdefs.h >>conftest.$ac_ext
95602 cat >>conftest.$ac_ext <<_ACEOF
95603 /* end confdefs.h. */
95605 /* Override any GCC internal prototype to avoid an error.
95606 Use char because int might match the return type of a GCC
95607 builtin and then its argument prototype would still apply. */
95608 #ifdef __cplusplus
95609 extern "C"
95610 #endif
95611 char VAPI_open_hca ();
95613 main ()
95615 return VAPI_open_hca ();
95617 return 0;
95619 _ACEOF
95620 rm -f conftest.$ac_objext conftest$ac_exeext
95621 if { (ac_try="$ac_link"
95622 case "(($ac_try" in
95623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95624 *) ac_try_echo=$ac_try;;
95625 esac
95626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
95627 (eval "$ac_link") 2>conftest.er1
95628 ac_status=$?
95629 grep -v '^ *+' conftest.er1 >conftest.err
95630 rm -f conftest.er1
95631 cat conftest.err >&5
95632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
95633 (exit $ac_status); } && {
95634 test -z "$ac_c_werror_flag" ||
95635 test ! -s conftest.err
95636 } && test -s conftest$ac_exeext &&
95637 $as_test_x conftest$ac_exeext; then
95638 ac_cv_lib_vapi_VAPI_open_hca=yes
95639 else
95640 echo "$as_me: failed program was:" >&5
95641 sed 's/^/| /' conftest.$ac_ext >&5
95643 ac_cv_lib_vapi_VAPI_open_hca=no
95646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95647 conftest$ac_exeext conftest.$ac_ext
95648 LIBS=$ac_check_lib_save_LIBS
95650 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
95651 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
95652 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
95653 ompi_check_package_lib_happy="yes"
95654 else
95655 ompi_check_package_lib_happy="no"
95658 if test "$ompi_check_package_lib_happy" = "no"; then
95659 # no go on the as is.. see what happens later...
95660 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
95661 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
95662 unset ac_cv_lib_vapi_VAPI_open_hca
95672 if test "$ompi_check_package_lib_happy" = "yes"; then
95673 ompi_check_package_happy="yes"
95674 else
95675 ompi_check_package_happy="no"
95682 unset ompi_check_package_header_happy
95684 if test "$ompi_check_package_happy" = "yes"; then
95685 ompi_check_mvapi_happy="yes"
95686 btl_mvapi_LIBS="-lvapi -lmosal"
95687 else
95688 btl_mvapi_CPPFLAGS="$ompi_check_package_btl_mvapi_orig_CPPFLAGS"
95689 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
95690 btl_mvapi_LIBS="$ompi_check_package_btl_mvapi_orig_LIBS"
95691 ompi_check_mvapi_happy="no"
95695 CPPFLAGS="$ompi_check_package_btl_mvapi_save_CPPFLAGS"
95696 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
95697 LIBS="$ompi_check_package_btl_mvapi_save_LIBS"
95700 # if needed use both lmpga and lmtl_common
95701 if test "$ompi_check_mvapi_happy" = "no"; then
95703 ompi_check_package_btl_mvapi_save_CPPFLAGS="$CPPFLAGS"
95704 ompi_check_package_btl_mvapi_save_LDFLAGS="$LDFLAGS"
95705 ompi_check_package_btl_mvapi_save_LIBS="$LIBS"
95707 ompi_check_package_btl_mvapi_orig_CPPFLAGS="$btl_mvapi_CPPFLAGS"
95708 ompi_check_package_btl_mvapi_orig_LDFLAGS="$btl_mvapi_LDFLAGS"
95709 ompi_check_package_btl_mvapi_orig_LIBS="$btl_mvapi_LIBS"
95712 # This is stolen from autoconf to peek under the covers to get the
95713 # cache variable for the library check. one should not copy this
95714 # code into other places unless you want much pain and suffering
95717 # so this sucks, but there's no way to get through the progression
95718 # of header includes without killing off the cache variable and trying
95719 # again...
95720 unset ac_cv_header_vapi_h
95722 ompi_check_package_header_happy="no"
95723 if test "$ompi_check_mvapi_dir" = "/usr" -o "$ompi_check_mvapi_dir" = "/usr/local"; then
95724 # try as is...
95725 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
95726 echo "${ECHO_T}looking for header without includes" >&6; }
95727 if test "${ac_cv_header_vapi_h+set}" = set; then
95728 { echo "$as_me:$LINENO: checking for vapi.h" >&5
95729 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
95730 if test "${ac_cv_header_vapi_h+set}" = set; then
95731 echo $ECHO_N "(cached) $ECHO_C" >&6
95733 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
95734 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
95735 else
95736 # Is the header compilable?
95737 { echo "$as_me:$LINENO: checking vapi.h usability" >&5
95738 echo $ECHO_N "checking vapi.h usability... $ECHO_C" >&6; }
95739 cat >conftest.$ac_ext <<_ACEOF
95740 /* confdefs.h. */
95741 _ACEOF
95742 cat confdefs.h >>conftest.$ac_ext
95743 cat >>conftest.$ac_ext <<_ACEOF
95744 /* end confdefs.h. */
95745 $ac_includes_default
95746 #include <vapi.h>
95747 _ACEOF
95748 rm -f conftest.$ac_objext
95749 if { (ac_try="$ac_compile"
95750 case "(($ac_try" in
95751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95752 *) ac_try_echo=$ac_try;;
95753 esac
95754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
95755 (eval "$ac_compile") 2>conftest.er1
95756 ac_status=$?
95757 grep -v '^ *+' conftest.er1 >conftest.err
95758 rm -f conftest.er1
95759 cat conftest.err >&5
95760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
95761 (exit $ac_status); } && {
95762 test -z "$ac_c_werror_flag" ||
95763 test ! -s conftest.err
95764 } && test -s conftest.$ac_objext; then
95765 ac_header_compiler=yes
95766 else
95767 echo "$as_me: failed program was:" >&5
95768 sed 's/^/| /' conftest.$ac_ext >&5
95770 ac_header_compiler=no
95773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
95774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
95775 echo "${ECHO_T}$ac_header_compiler" >&6; }
95777 # Is the header present?
95778 { echo "$as_me:$LINENO: checking vapi.h presence" >&5
95779 echo $ECHO_N "checking vapi.h presence... $ECHO_C" >&6; }
95780 cat >conftest.$ac_ext <<_ACEOF
95781 /* confdefs.h. */
95782 _ACEOF
95783 cat confdefs.h >>conftest.$ac_ext
95784 cat >>conftest.$ac_ext <<_ACEOF
95785 /* end confdefs.h. */
95786 #include <vapi.h>
95787 _ACEOF
95788 if { (ac_try="$ac_cpp conftest.$ac_ext"
95789 case "(($ac_try" in
95790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95791 *) ac_try_echo=$ac_try;;
95792 esac
95793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
95794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
95795 ac_status=$?
95796 grep -v '^ *+' conftest.er1 >conftest.err
95797 rm -f conftest.er1
95798 cat conftest.err >&5
95799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
95800 (exit $ac_status); } >/dev/null && {
95801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
95802 test ! -s conftest.err
95803 }; then
95804 ac_header_preproc=yes
95805 else
95806 echo "$as_me: failed program was:" >&5
95807 sed 's/^/| /' conftest.$ac_ext >&5
95809 ac_header_preproc=no
95812 rm -f conftest.err conftest.$ac_ext
95813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
95814 echo "${ECHO_T}$ac_header_preproc" >&6; }
95816 # So? What about this header?
95817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
95818 yes:no: )
95819 { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
95820 echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
95821 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
95822 echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
95823 ac_header_preproc=yes
95825 no:yes:* )
95826 { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
95827 echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
95828 { echo "$as_me:$LINENO: WARNING: vapi.h: check for missing prerequisite headers?" >&5
95829 echo "$as_me: WARNING: vapi.h: check for missing prerequisite headers?" >&2;}
95830 { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
95831 echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
95832 { echo "$as_me:$LINENO: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&5
95833 echo "$as_me: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
95834 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
95835 echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
95836 { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
95837 echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
95838 ( cat <<\_ASBOX
95839 ## ------------------------------------------------------ ##
95840 ## Report this to http://www.open-mpi.org/community/help/ ##
95841 ## ------------------------------------------------------ ##
95842 _ASBOX
95843 ) | sed "s/^/$as_me: WARNING: /" >&2
95845 esac
95846 { echo "$as_me:$LINENO: checking for vapi.h" >&5
95847 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
95848 if test "${ac_cv_header_vapi_h+set}" = set; then
95849 echo $ECHO_N "(cached) $ECHO_C" >&6
95850 else
95851 ac_cv_header_vapi_h=$ac_header_preproc
95853 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
95854 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
95857 if test $ac_cv_header_vapi_h = yes; then
95858 ompi_check_package_header_happy="yes"
95859 else
95860 ompi_check_package_header_happy="no"
95864 if test "$ompi_check_package_header_happy" = "no"; then
95865 # no go on the as is - reset the cache and try again
95866 unset ac_cv_header_vapi_h
95872 if test "$ompi_check_package_header_happy" = "no"; then
95873 if test "$ompi_check_mvapi_dir" != ""; then
95874 btl_mvapi_CPPFLAGS="$btl_mvapi_CPPFLAGS -I$ompi_check_mvapi_dir/include"
95875 CPPFLAGS="$CPPFLAGS -I$ompi_check_mvapi_dir/include"
95878 if test "${ac_cv_header_vapi_h+set}" = set; then
95879 { echo "$as_me:$LINENO: checking for vapi.h" >&5
95880 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
95881 if test "${ac_cv_header_vapi_h+set}" = set; then
95882 echo $ECHO_N "(cached) $ECHO_C" >&6
95884 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
95885 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
95886 else
95887 # Is the header compilable?
95888 { echo "$as_me:$LINENO: checking vapi.h usability" >&5
95889 echo $ECHO_N "checking vapi.h usability... $ECHO_C" >&6; }
95890 cat >conftest.$ac_ext <<_ACEOF
95891 /* confdefs.h. */
95892 _ACEOF
95893 cat confdefs.h >>conftest.$ac_ext
95894 cat >>conftest.$ac_ext <<_ACEOF
95895 /* end confdefs.h. */
95896 $ac_includes_default
95897 #include <vapi.h>
95898 _ACEOF
95899 rm -f conftest.$ac_objext
95900 if { (ac_try="$ac_compile"
95901 case "(($ac_try" in
95902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95903 *) ac_try_echo=$ac_try;;
95904 esac
95905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
95906 (eval "$ac_compile") 2>conftest.er1
95907 ac_status=$?
95908 grep -v '^ *+' conftest.er1 >conftest.err
95909 rm -f conftest.er1
95910 cat conftest.err >&5
95911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
95912 (exit $ac_status); } && {
95913 test -z "$ac_c_werror_flag" ||
95914 test ! -s conftest.err
95915 } && test -s conftest.$ac_objext; then
95916 ac_header_compiler=yes
95917 else
95918 echo "$as_me: failed program was:" >&5
95919 sed 's/^/| /' conftest.$ac_ext >&5
95921 ac_header_compiler=no
95924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
95925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
95926 echo "${ECHO_T}$ac_header_compiler" >&6; }
95928 # Is the header present?
95929 { echo "$as_me:$LINENO: checking vapi.h presence" >&5
95930 echo $ECHO_N "checking vapi.h presence... $ECHO_C" >&6; }
95931 cat >conftest.$ac_ext <<_ACEOF
95932 /* confdefs.h. */
95933 _ACEOF
95934 cat confdefs.h >>conftest.$ac_ext
95935 cat >>conftest.$ac_ext <<_ACEOF
95936 /* end confdefs.h. */
95937 #include <vapi.h>
95938 _ACEOF
95939 if { (ac_try="$ac_cpp conftest.$ac_ext"
95940 case "(($ac_try" in
95941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95942 *) ac_try_echo=$ac_try;;
95943 esac
95944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
95945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
95946 ac_status=$?
95947 grep -v '^ *+' conftest.er1 >conftest.err
95948 rm -f conftest.er1
95949 cat conftest.err >&5
95950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
95951 (exit $ac_status); } >/dev/null && {
95952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
95953 test ! -s conftest.err
95954 }; then
95955 ac_header_preproc=yes
95956 else
95957 echo "$as_me: failed program was:" >&5
95958 sed 's/^/| /' conftest.$ac_ext >&5
95960 ac_header_preproc=no
95963 rm -f conftest.err conftest.$ac_ext
95964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
95965 echo "${ECHO_T}$ac_header_preproc" >&6; }
95967 # So? What about this header?
95968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
95969 yes:no: )
95970 { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
95971 echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
95972 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
95973 echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
95974 ac_header_preproc=yes
95976 no:yes:* )
95977 { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
95978 echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
95979 { echo "$as_me:$LINENO: WARNING: vapi.h: check for missing prerequisite headers?" >&5
95980 echo "$as_me: WARNING: vapi.h: check for missing prerequisite headers?" >&2;}
95981 { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
95982 echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
95983 { echo "$as_me:$LINENO: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&5
95984 echo "$as_me: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
95985 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
95986 echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
95987 { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
95988 echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
95989 ( cat <<\_ASBOX
95990 ## ------------------------------------------------------ ##
95991 ## Report this to http://www.open-mpi.org/community/help/ ##
95992 ## ------------------------------------------------------ ##
95993 _ASBOX
95994 ) | sed "s/^/$as_me: WARNING: /" >&2
95996 esac
95997 { echo "$as_me:$LINENO: checking for vapi.h" >&5
95998 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
95999 if test "${ac_cv_header_vapi_h+set}" = set; then
96000 echo $ECHO_N "(cached) $ECHO_C" >&6
96001 else
96002 ac_cv_header_vapi_h=$ac_header_preproc
96004 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
96005 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
96008 if test $ac_cv_header_vapi_h = yes; then
96010 # This is stolen from autoconf to peek under the covers to get the
96011 # cache variable for the library check. one should not copy this
96012 # code into other places unless you want much pain and suffering
96014 # see comment above
96015 unset ac_cv_lib_vapi_VAPI_open_hca
96016 ompi_check_package_lib_happy="no"
96017 if test "$ompi_check_mvapi_libdir" != ""; then
96018 # libdir was specified - search only there
96019 btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
96020 LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
96021 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
96022 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
96023 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
96024 echo $ECHO_N "(cached) $ECHO_C" >&6
96025 else
96026 ac_check_lib_save_LIBS=$LIBS
96027 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
96028 cat >conftest.$ac_ext <<_ACEOF
96029 /* confdefs.h. */
96030 _ACEOF
96031 cat confdefs.h >>conftest.$ac_ext
96032 cat >>conftest.$ac_ext <<_ACEOF
96033 /* end confdefs.h. */
96035 /* Override any GCC internal prototype to avoid an error.
96036 Use char because int might match the return type of a GCC
96037 builtin and then its argument prototype would still apply. */
96038 #ifdef __cplusplus
96039 extern "C"
96040 #endif
96041 char VAPI_open_hca ();
96043 main ()
96045 return VAPI_open_hca ();
96047 return 0;
96049 _ACEOF
96050 rm -f conftest.$ac_objext conftest$ac_exeext
96051 if { (ac_try="$ac_link"
96052 case "(($ac_try" in
96053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96054 *) ac_try_echo=$ac_try;;
96055 esac
96056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
96057 (eval "$ac_link") 2>conftest.er1
96058 ac_status=$?
96059 grep -v '^ *+' conftest.er1 >conftest.err
96060 rm -f conftest.er1
96061 cat conftest.err >&5
96062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96063 (exit $ac_status); } && {
96064 test -z "$ac_c_werror_flag" ||
96065 test ! -s conftest.err
96066 } && test -s conftest$ac_exeext &&
96067 $as_test_x conftest$ac_exeext; then
96068 ac_cv_lib_vapi_VAPI_open_hca=yes
96069 else
96070 echo "$as_me: failed program was:" >&5
96071 sed 's/^/| /' conftest.$ac_ext >&5
96073 ac_cv_lib_vapi_VAPI_open_hca=no
96076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
96077 conftest$ac_exeext conftest.$ac_ext
96078 LIBS=$ac_check_lib_save_LIBS
96080 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
96081 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
96082 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
96083 ompi_check_package_lib_happy="yes"
96084 else
96085 ompi_check_package_lib_happy="no"
96088 if test "$ompi_check_package_lib_happy" = "no"; then
96089 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
96090 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
96091 unset ac_cv_lib_vapi_VAPI_open_hca
96094 else
96095 # libdir was not specified - go through search path
96096 ompi_check_package_libdir="$ompi_check_mvapi_dir"
96097 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
96098 # try as is...
96099 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
96100 echo "${ECHO_T}looking for library without search path" >&6; }
96101 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
96102 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
96103 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
96104 echo $ECHO_N "(cached) $ECHO_C" >&6
96105 else
96106 ac_check_lib_save_LIBS=$LIBS
96107 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
96108 cat >conftest.$ac_ext <<_ACEOF
96109 /* confdefs.h. */
96110 _ACEOF
96111 cat confdefs.h >>conftest.$ac_ext
96112 cat >>conftest.$ac_ext <<_ACEOF
96113 /* end confdefs.h. */
96115 /* Override any GCC internal prototype to avoid an error.
96116 Use char because int might match the return type of a GCC
96117 builtin and then its argument prototype would still apply. */
96118 #ifdef __cplusplus
96119 extern "C"
96120 #endif
96121 char VAPI_open_hca ();
96123 main ()
96125 return VAPI_open_hca ();
96127 return 0;
96129 _ACEOF
96130 rm -f conftest.$ac_objext conftest$ac_exeext
96131 if { (ac_try="$ac_link"
96132 case "(($ac_try" in
96133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96134 *) ac_try_echo=$ac_try;;
96135 esac
96136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
96137 (eval "$ac_link") 2>conftest.er1
96138 ac_status=$?
96139 grep -v '^ *+' conftest.er1 >conftest.err
96140 rm -f conftest.er1
96141 cat conftest.err >&5
96142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96143 (exit $ac_status); } && {
96144 test -z "$ac_c_werror_flag" ||
96145 test ! -s conftest.err
96146 } && test -s conftest$ac_exeext &&
96147 $as_test_x conftest$ac_exeext; then
96148 ac_cv_lib_vapi_VAPI_open_hca=yes
96149 else
96150 echo "$as_me: failed program was:" >&5
96151 sed 's/^/| /' conftest.$ac_ext >&5
96153 ac_cv_lib_vapi_VAPI_open_hca=no
96156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
96157 conftest$ac_exeext conftest.$ac_ext
96158 LIBS=$ac_check_lib_save_LIBS
96160 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
96161 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
96162 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
96163 ompi_check_package_lib_happy="yes"
96164 else
96165 ompi_check_package_lib_happy="no"
96168 if test "$ompi_check_package_lib_happy" = "no"; then
96169 # no go on the as is.. see what happens later...
96170 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
96171 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
96172 unset ac_cv_lib_vapi_VAPI_open_hca
96178 if test "$ompi_check_package_lib_happy" = "no"; then
96179 if test "$ompi_check_package_libdir" != ""; then
96180 btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
96181 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
96182 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
96183 echo "${ECHO_T}looking for library in lib" >&6; }
96184 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
96185 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
96186 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
96187 echo $ECHO_N "(cached) $ECHO_C" >&6
96188 else
96189 ac_check_lib_save_LIBS=$LIBS
96190 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
96191 cat >conftest.$ac_ext <<_ACEOF
96192 /* confdefs.h. */
96193 _ACEOF
96194 cat confdefs.h >>conftest.$ac_ext
96195 cat >>conftest.$ac_ext <<_ACEOF
96196 /* end confdefs.h. */
96198 /* Override any GCC internal prototype to avoid an error.
96199 Use char because int might match the return type of a GCC
96200 builtin and then its argument prototype would still apply. */
96201 #ifdef __cplusplus
96202 extern "C"
96203 #endif
96204 char VAPI_open_hca ();
96206 main ()
96208 return VAPI_open_hca ();
96210 return 0;
96212 _ACEOF
96213 rm -f conftest.$ac_objext conftest$ac_exeext
96214 if { (ac_try="$ac_link"
96215 case "(($ac_try" in
96216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96217 *) ac_try_echo=$ac_try;;
96218 esac
96219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
96220 (eval "$ac_link") 2>conftest.er1
96221 ac_status=$?
96222 grep -v '^ *+' conftest.er1 >conftest.err
96223 rm -f conftest.er1
96224 cat conftest.err >&5
96225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96226 (exit $ac_status); } && {
96227 test -z "$ac_c_werror_flag" ||
96228 test ! -s conftest.err
96229 } && test -s conftest$ac_exeext &&
96230 $as_test_x conftest$ac_exeext; then
96231 ac_cv_lib_vapi_VAPI_open_hca=yes
96232 else
96233 echo "$as_me: failed program was:" >&5
96234 sed 's/^/| /' conftest.$ac_ext >&5
96236 ac_cv_lib_vapi_VAPI_open_hca=no
96239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
96240 conftest$ac_exeext conftest.$ac_ext
96241 LIBS=$ac_check_lib_save_LIBS
96243 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
96244 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
96245 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
96246 ompi_check_package_lib_happy="yes"
96247 else
96248 ompi_check_package_lib_happy="no"
96251 if test "$ompi_check_package_lib_happy" = "no"; then
96252 # no go on the as is.. see what happens later...
96253 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
96254 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
96255 unset ac_cv_lib_vapi_VAPI_open_hca
96263 if test "$ompi_check_package_lib_happy" = "no"; then
96264 if test "$ompi_check_package_libdir" != ""; then
96265 btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
96266 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
96267 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
96268 echo "${ECHO_T}looking for library in lib64" >&6; }
96269 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
96270 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
96271 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
96272 echo $ECHO_N "(cached) $ECHO_C" >&6
96273 else
96274 ac_check_lib_save_LIBS=$LIBS
96275 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
96276 cat >conftest.$ac_ext <<_ACEOF
96277 /* confdefs.h. */
96278 _ACEOF
96279 cat confdefs.h >>conftest.$ac_ext
96280 cat >>conftest.$ac_ext <<_ACEOF
96281 /* end confdefs.h. */
96283 /* Override any GCC internal prototype to avoid an error.
96284 Use char because int might match the return type of a GCC
96285 builtin and then its argument prototype would still apply. */
96286 #ifdef __cplusplus
96287 extern "C"
96288 #endif
96289 char VAPI_open_hca ();
96291 main ()
96293 return VAPI_open_hca ();
96295 return 0;
96297 _ACEOF
96298 rm -f conftest.$ac_objext conftest$ac_exeext
96299 if { (ac_try="$ac_link"
96300 case "(($ac_try" in
96301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96302 *) ac_try_echo=$ac_try;;
96303 esac
96304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
96305 (eval "$ac_link") 2>conftest.er1
96306 ac_status=$?
96307 grep -v '^ *+' conftest.er1 >conftest.err
96308 rm -f conftest.er1
96309 cat conftest.err >&5
96310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96311 (exit $ac_status); } && {
96312 test -z "$ac_c_werror_flag" ||
96313 test ! -s conftest.err
96314 } && test -s conftest$ac_exeext &&
96315 $as_test_x conftest$ac_exeext; then
96316 ac_cv_lib_vapi_VAPI_open_hca=yes
96317 else
96318 echo "$as_me: failed program was:" >&5
96319 sed 's/^/| /' conftest.$ac_ext >&5
96321 ac_cv_lib_vapi_VAPI_open_hca=no
96324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
96325 conftest$ac_exeext conftest.$ac_ext
96326 LIBS=$ac_check_lib_save_LIBS
96328 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
96329 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
96330 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
96331 ompi_check_package_lib_happy="yes"
96332 else
96333 ompi_check_package_lib_happy="no"
96336 if test "$ompi_check_package_lib_happy" = "no"; then
96337 # no go on the as is.. see what happens later...
96338 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
96339 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
96340 unset ac_cv_lib_vapi_VAPI_open_hca
96350 if test "$ompi_check_package_lib_happy" = "yes"; then
96351 ompi_check_package_happy="yes"
96352 else
96353 ompi_check_package_happy="no"
96358 else
96359 ompi_check_package_happy="no"
96363 else
96365 # This is stolen from autoconf to peek under the covers to get the
96366 # cache variable for the library check. one should not copy this
96367 # code into other places unless you want much pain and suffering
96369 # see comment above
96370 unset ac_cv_lib_vapi_VAPI_open_hca
96371 ompi_check_package_lib_happy="no"
96372 if test "$ompi_check_mvapi_libdir" != ""; then
96373 # libdir was specified - search only there
96374 btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
96375 LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
96376 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
96377 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
96378 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
96379 echo $ECHO_N "(cached) $ECHO_C" >&6
96380 else
96381 ac_check_lib_save_LIBS=$LIBS
96382 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
96383 cat >conftest.$ac_ext <<_ACEOF
96384 /* confdefs.h. */
96385 _ACEOF
96386 cat confdefs.h >>conftest.$ac_ext
96387 cat >>conftest.$ac_ext <<_ACEOF
96388 /* end confdefs.h. */
96390 /* Override any GCC internal prototype to avoid an error.
96391 Use char because int might match the return type of a GCC
96392 builtin and then its argument prototype would still apply. */
96393 #ifdef __cplusplus
96394 extern "C"
96395 #endif
96396 char VAPI_open_hca ();
96398 main ()
96400 return VAPI_open_hca ();
96402 return 0;
96404 _ACEOF
96405 rm -f conftest.$ac_objext conftest$ac_exeext
96406 if { (ac_try="$ac_link"
96407 case "(($ac_try" in
96408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96409 *) ac_try_echo=$ac_try;;
96410 esac
96411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
96412 (eval "$ac_link") 2>conftest.er1
96413 ac_status=$?
96414 grep -v '^ *+' conftest.er1 >conftest.err
96415 rm -f conftest.er1
96416 cat conftest.err >&5
96417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96418 (exit $ac_status); } && {
96419 test -z "$ac_c_werror_flag" ||
96420 test ! -s conftest.err
96421 } && test -s conftest$ac_exeext &&
96422 $as_test_x conftest$ac_exeext; then
96423 ac_cv_lib_vapi_VAPI_open_hca=yes
96424 else
96425 echo "$as_me: failed program was:" >&5
96426 sed 's/^/| /' conftest.$ac_ext >&5
96428 ac_cv_lib_vapi_VAPI_open_hca=no
96431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
96432 conftest$ac_exeext conftest.$ac_ext
96433 LIBS=$ac_check_lib_save_LIBS
96435 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
96436 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
96437 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
96438 ompi_check_package_lib_happy="yes"
96439 else
96440 ompi_check_package_lib_happy="no"
96443 if test "$ompi_check_package_lib_happy" = "no"; then
96444 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
96445 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
96446 unset ac_cv_lib_vapi_VAPI_open_hca
96449 else
96450 # libdir was not specified - go through search path
96451 ompi_check_package_libdir="$ompi_check_mvapi_dir"
96452 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
96453 # try as is...
96454 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
96455 echo "${ECHO_T}looking for library without search path" >&6; }
96456 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
96457 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
96458 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
96459 echo $ECHO_N "(cached) $ECHO_C" >&6
96460 else
96461 ac_check_lib_save_LIBS=$LIBS
96462 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
96463 cat >conftest.$ac_ext <<_ACEOF
96464 /* confdefs.h. */
96465 _ACEOF
96466 cat confdefs.h >>conftest.$ac_ext
96467 cat >>conftest.$ac_ext <<_ACEOF
96468 /* end confdefs.h. */
96470 /* Override any GCC internal prototype to avoid an error.
96471 Use char because int might match the return type of a GCC
96472 builtin and then its argument prototype would still apply. */
96473 #ifdef __cplusplus
96474 extern "C"
96475 #endif
96476 char VAPI_open_hca ();
96478 main ()
96480 return VAPI_open_hca ();
96482 return 0;
96484 _ACEOF
96485 rm -f conftest.$ac_objext conftest$ac_exeext
96486 if { (ac_try="$ac_link"
96487 case "(($ac_try" in
96488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96489 *) ac_try_echo=$ac_try;;
96490 esac
96491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
96492 (eval "$ac_link") 2>conftest.er1
96493 ac_status=$?
96494 grep -v '^ *+' conftest.er1 >conftest.err
96495 rm -f conftest.er1
96496 cat conftest.err >&5
96497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96498 (exit $ac_status); } && {
96499 test -z "$ac_c_werror_flag" ||
96500 test ! -s conftest.err
96501 } && test -s conftest$ac_exeext &&
96502 $as_test_x conftest$ac_exeext; then
96503 ac_cv_lib_vapi_VAPI_open_hca=yes
96504 else
96505 echo "$as_me: failed program was:" >&5
96506 sed 's/^/| /' conftest.$ac_ext >&5
96508 ac_cv_lib_vapi_VAPI_open_hca=no
96511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
96512 conftest$ac_exeext conftest.$ac_ext
96513 LIBS=$ac_check_lib_save_LIBS
96515 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
96516 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
96517 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
96518 ompi_check_package_lib_happy="yes"
96519 else
96520 ompi_check_package_lib_happy="no"
96523 if test "$ompi_check_package_lib_happy" = "no"; then
96524 # no go on the as is.. see what happens later...
96525 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
96526 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
96527 unset ac_cv_lib_vapi_VAPI_open_hca
96533 if test "$ompi_check_package_lib_happy" = "no"; then
96534 if test "$ompi_check_package_libdir" != ""; then
96535 btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
96536 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
96537 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
96538 echo "${ECHO_T}looking for library in lib" >&6; }
96539 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
96540 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
96541 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
96542 echo $ECHO_N "(cached) $ECHO_C" >&6
96543 else
96544 ac_check_lib_save_LIBS=$LIBS
96545 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
96546 cat >conftest.$ac_ext <<_ACEOF
96547 /* confdefs.h. */
96548 _ACEOF
96549 cat confdefs.h >>conftest.$ac_ext
96550 cat >>conftest.$ac_ext <<_ACEOF
96551 /* end confdefs.h. */
96553 /* Override any GCC internal prototype to avoid an error.
96554 Use char because int might match the return type of a GCC
96555 builtin and then its argument prototype would still apply. */
96556 #ifdef __cplusplus
96557 extern "C"
96558 #endif
96559 char VAPI_open_hca ();
96561 main ()
96563 return VAPI_open_hca ();
96565 return 0;
96567 _ACEOF
96568 rm -f conftest.$ac_objext conftest$ac_exeext
96569 if { (ac_try="$ac_link"
96570 case "(($ac_try" in
96571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96572 *) ac_try_echo=$ac_try;;
96573 esac
96574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
96575 (eval "$ac_link") 2>conftest.er1
96576 ac_status=$?
96577 grep -v '^ *+' conftest.er1 >conftest.err
96578 rm -f conftest.er1
96579 cat conftest.err >&5
96580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96581 (exit $ac_status); } && {
96582 test -z "$ac_c_werror_flag" ||
96583 test ! -s conftest.err
96584 } && test -s conftest$ac_exeext &&
96585 $as_test_x conftest$ac_exeext; then
96586 ac_cv_lib_vapi_VAPI_open_hca=yes
96587 else
96588 echo "$as_me: failed program was:" >&5
96589 sed 's/^/| /' conftest.$ac_ext >&5
96591 ac_cv_lib_vapi_VAPI_open_hca=no
96594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
96595 conftest$ac_exeext conftest.$ac_ext
96596 LIBS=$ac_check_lib_save_LIBS
96598 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
96599 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
96600 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
96601 ompi_check_package_lib_happy="yes"
96602 else
96603 ompi_check_package_lib_happy="no"
96606 if test "$ompi_check_package_lib_happy" = "no"; then
96607 # no go on the as is.. see what happens later...
96608 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
96609 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
96610 unset ac_cv_lib_vapi_VAPI_open_hca
96618 if test "$ompi_check_package_lib_happy" = "no"; then
96619 if test "$ompi_check_package_libdir" != ""; then
96620 btl_mvapi_LDFLAGS="$btl_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
96621 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
96622 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
96623 echo "${ECHO_T}looking for library in lib64" >&6; }
96624 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
96625 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
96626 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
96627 echo $ECHO_N "(cached) $ECHO_C" >&6
96628 else
96629 ac_check_lib_save_LIBS=$LIBS
96630 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
96631 cat >conftest.$ac_ext <<_ACEOF
96632 /* confdefs.h. */
96633 _ACEOF
96634 cat confdefs.h >>conftest.$ac_ext
96635 cat >>conftest.$ac_ext <<_ACEOF
96636 /* end confdefs.h. */
96638 /* Override any GCC internal prototype to avoid an error.
96639 Use char because int might match the return type of a GCC
96640 builtin and then its argument prototype would still apply. */
96641 #ifdef __cplusplus
96642 extern "C"
96643 #endif
96644 char VAPI_open_hca ();
96646 main ()
96648 return VAPI_open_hca ();
96650 return 0;
96652 _ACEOF
96653 rm -f conftest.$ac_objext conftest$ac_exeext
96654 if { (ac_try="$ac_link"
96655 case "(($ac_try" in
96656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96657 *) ac_try_echo=$ac_try;;
96658 esac
96659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
96660 (eval "$ac_link") 2>conftest.er1
96661 ac_status=$?
96662 grep -v '^ *+' conftest.er1 >conftest.err
96663 rm -f conftest.er1
96664 cat conftest.err >&5
96665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96666 (exit $ac_status); } && {
96667 test -z "$ac_c_werror_flag" ||
96668 test ! -s conftest.err
96669 } && test -s conftest$ac_exeext &&
96670 $as_test_x conftest$ac_exeext; then
96671 ac_cv_lib_vapi_VAPI_open_hca=yes
96672 else
96673 echo "$as_me: failed program was:" >&5
96674 sed 's/^/| /' conftest.$ac_ext >&5
96676 ac_cv_lib_vapi_VAPI_open_hca=no
96679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
96680 conftest$ac_exeext conftest.$ac_ext
96681 LIBS=$ac_check_lib_save_LIBS
96683 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
96684 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
96685 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
96686 ompi_check_package_lib_happy="yes"
96687 else
96688 ompi_check_package_lib_happy="no"
96691 if test "$ompi_check_package_lib_happy" = "no"; then
96692 # no go on the as is.. see what happens later...
96693 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
96694 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
96695 unset ac_cv_lib_vapi_VAPI_open_hca
96705 if test "$ompi_check_package_lib_happy" = "yes"; then
96706 ompi_check_package_happy="yes"
96707 else
96708 ompi_check_package_happy="no"
96715 unset ompi_check_package_header_happy
96717 if test "$ompi_check_package_happy" = "yes"; then
96718 ompi_check_mvapi_happy="yes"
96719 btl_mvapi_LIBS="-lvapi -lmosal -lmpga -lmtl_common"
96720 else
96721 btl_mvapi_CPPFLAGS="$ompi_check_package_btl_mvapi_orig_CPPFLAGS"
96722 btl_mvapi_LDFLAGS="$ompi_check_package_btl_mvapi_orig_LDFLAGS"
96723 btl_mvapi_LIBS="$ompi_check_package_btl_mvapi_orig_LIBS"
96724 ompi_check_mvapi_happy="no"
96728 CPPFLAGS="$ompi_check_package_btl_mvapi_save_CPPFLAGS"
96729 LDFLAGS="$ompi_check_package_btl_mvapi_save_LDFLAGS"
96730 LIBS="$ompi_check_package_btl_mvapi_save_LIBS"
96735 if test "$ompi_check_mvapi_happy" = "yes" -a "$enable_progress_threads" = "yes"; then
96736 { echo "$as_me:$LINENO: WARNING: MVAPI driver does not currently support progress threads. Disabling BTL." >&5
96737 echo "$as_me: WARNING: MVAPI driver does not currently support progress threads. Disabling BTL." >&2;}
96738 ompi_check_mvapi_happy="no"
96742 CPPFLAGS="$ompi_check_mvapibtl_mvapi_save_CPPFLAGS"
96743 else
96744 ompi_check_mvapi_happy="no"
96748 if test "$ompi_check_mvapi_happy" = "yes"; then
96749 btl_mvapi_happy="yes"
96750 else
96751 if test ! -z "$with_mvapi" -a "$with_mvapi" != "no"; then
96752 { { echo "$as_me:$LINENO: error: MVAPI support requested but not found. Aborting" >&5
96753 echo "$as_me: error: MVAPI support requested but not found. Aborting" >&2;}
96754 { (exit 1); exit 1; }; }
96757 btl_mvapi_happy="no"
96762 if test "$btl_mvapi_happy" = "yes"; then
96763 btl_mvapi_WRAPPER_EXTRA_LDFLAGS="$btl_mvapi_LDFLAGS"
96764 btl_mvapi_WRAPPER_EXTRA_LIBS="$btl_mvapi_LIBS"
96765 should_build=1
96766 else
96767 should_build=0
96771 # Many of the vapi.h files floating around don't obey ISO99 C
96772 # standard, so cause oodles of warnings with -pedantic and
96773 # -Wundef. Remove them from CFLAGS, which is then used to
96774 # forcefully override CFLAGS in the makefile for MVAPI
96775 # components
96776 btl_mvapi_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`"
96777 btl_mvapi_CFLAGS="`echo $btl_mvapi_CFLAGS | sed 's/-Wundef//g'`"
96778 if test "$btl_mvapi_CFLAGS" != "$CFLAGS" -a "$btl_mvapi_happy" = "yes"; then
96779 { echo "$as_me:$LINENO: WARNING: Removed -pedantic and -Wundef from CFLAGS for
96780 mvapi component because some vapi.h files are not really ANSI C" >&5
96781 echo "$as_me: WARNING: Removed -pedantic and -Wundef from CFLAGS for
96782 mvapi component because some vapi.h files are not really ANSI C" >&2;}
96786 # substitute in the things needed to build mvapi
96795 if test "$should_build" = "1"; then
96797 project=ompi
96798 framework=btl
96799 component=mvapi
96801 # See if it dropped an output file for us to pick up some
96802 # shell variables in.
96803 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
96805 # Add this subdir to the mast list of all MCA component subdirs
96806 all_components="$all_components $component"
96808 if test "$compile_mode" = "dso" ; then
96809 dso_components="$dso_components $component"
96810 else
96811 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
96812 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
96813 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
96814 static_components="$static_components $component"
96817 # Output pretty results
96818 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
96819 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
96820 { echo "$as_me:$LINENO: result: yes" >&5
96821 echo "${ECHO_T}yes" >&6; }
96823 # If there's an output file, add the values to
96824 # scope_EXTRA_flags.
96825 if test -f $infile; then
96827 # First check for the ABORT tag
96828 line="`grep ABORT= $infile | cut -d= -f2-`"
96829 if test -n "$line" -a "$line" != "no"; then
96830 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
96831 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
96832 { { echo "$as_me:$LINENO: error: cannot continue" >&5
96833 echo "$as_me: error: cannot continue" >&2;}
96834 { (exit 1); exit 1; }; }
96837 # Check for flags passed up from the component. If we're
96838 # compiling statically, then take all flags passed up from the
96839 # component.
96840 if test "$compile_mode" = "static"; then
96841 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
96842 eval "line=$line"
96843 if test -n "$line"; then
96844 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
96846 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
96847 eval "line=$line"
96848 if test -n "$line"; then
96849 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
96853 if test "$DIRECT_btl" = "$component" ; then
96854 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
96855 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
96856 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
96857 eval $str
96858 else
96859 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
96860 *** does not appear to support direct calling.
96861 *** Aborting" >&5
96862 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
96863 *** does not appear to support direct calling.
96864 *** Aborting" >&2;}
96865 { (exit 1); exit 1; }; }
96868 else
96869 # were we supposed to have found something in the
96870 # post_configure.sh, but the file didn't exist?
96871 if test "$DIRECT_btl" = "$component" ; then
96872 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
96873 *** does not appear to support direct calling.
96874 *** Aborting" >&5
96875 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
96876 *** does not appear to support direct calling.
96877 *** Aborting" >&2;}
96878 { (exit 1); exit 1; }; }
96882 # now add the flags that were set in the environment variables
96883 # framework_component_FOO (for example, the flags set by
96884 # m4_configure components)
96886 # Check for flags passed up from the component. If we're
96887 # compiling statically, then take all flags passed up from the
96888 # component.
96889 if test "$compile_mode" = "static"; then
96890 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
96891 eval "$str"
96892 if test -n "$line" ; then
96893 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
96895 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
96896 eval "$str"
96897 if test -n "$line" ; then
96898 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
96902 else
96904 { echo "$as_me:$LINENO: checking if MCA component btl:mvapi can compile" >&5
96905 echo $ECHO_N "checking if MCA component btl:mvapi can compile... $ECHO_C" >&6; }
96906 { echo "$as_me:$LINENO: result: no" >&5
96907 echo "${ECHO_T}no" >&6; }
96909 # If this component was requested as the default for this
96910 # type, then abort.
96911 if test "$with_btl" = "mvapi" ; then
96912 { echo "$as_me:$LINENO: WARNING: MCA component \"mvapi\" failed to configure properly" >&5
96913 echo "$as_me: WARNING: MCA component \"mvapi\" failed to configure properly" >&2;}
96914 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
96915 echo "$as_me: WARNING: This component was selected as the default" >&2;}
96916 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
96917 echo "$as_me: error: Cannot continue" >&2;}
96918 { (exit 1); exit 1; }; }
96919 exit 1
96922 if test ! -z "$DIRECT_btl" ; then
96923 if test "$DIRECT_btl" = "mvapi" ; then
96924 { echo "$as_me:$LINENO: WARNING: MCA component \"mvapi\" failed to configure properly" >&5
96925 echo "$as_me: WARNING: MCA component \"mvapi\" failed to configure properly" >&2;}
96926 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
96927 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
96928 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
96929 echo "$as_me: error: Cannot continue" >&2;}
96930 { (exit 1); exit 1; }; }
96931 exit 1
96935 # add component to all component list
96936 all_components="$all_components mvapi"
96940 # set the AM_CONDITIONAL on how we should build
96941 if test "$compile_mode" = "dso"; then
96942 BUILD_btl_mvapi_DSO=1
96943 else
96944 BUILD_btl_mvapi_DSO=0
96949 if test "$BUILD_btl_mvapi_DSO" = "1"; then
96950 OMPI_BUILD_btl_mvapi_DSO_TRUE=
96951 OMPI_BUILD_btl_mvapi_DSO_FALSE='#'
96952 else
96953 OMPI_BUILD_btl_mvapi_DSO_TRUE='#'
96954 OMPI_BUILD_btl_mvapi_DSO_FALSE=
96958 if test "$should_build" = "1"; then
96959 components_looking_for_succeed="$happy_value"
96963 unset compile_mode
96965 ompi_show_subsubsubtitle "MCA component btl:mx (m4 configuration macro)"
96968 project=ompi
96969 framework=btl
96970 component=mx
96971 component_path="$srcdir/$project/mca/$framework/$component"
96972 want_component=0
96974 # build if:
96975 # - the component type is direct and we are that component
96976 # - there is no ompi_ignore file
96977 # - there is an ompi_ignore, but there is an empty ompi_unignore
96978 # - there is an ompi_ignore, but username is in ompi_unignore
96979 if test -d $component_path ; then
96980 # decide if we want the component to be built or not. This
96981 # is spread out because some of the logic is a little complex
96982 # and test's syntax isn't exactly the greatest. We want to
96983 # build the component by default.
96984 want_component=1
96985 if test -f $component_path/.ompi_ignore ; then
96986 # If there is an ompi_ignore file, don't build
96987 # the component. Note that this decision can be
96988 # overriden by the unignore logic below.
96989 want_component=0
96991 if test -f $component_path/.ompi_unignore ; then
96992 # if there is an empty ompi_unignore, that is
96993 # equivalent to having your userid in the unignore file.
96994 # If userid is in the file, unignore the ignore file.
96995 if test ! -s $component_path/.ompi_unignore ; then
96996 want_component=1
96997 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
96998 want_component=1
97001 # if this component type is direct and we are not it, we don't want
97002 # to be built. Otherwise, we do want to be built.
97003 if test ! -z "$DIRECT_btl" ; then
97004 if test "$DIRECT_btl" = "$component" ; then
97005 want_component=1
97006 else
97007 want_component=0
97012 # if we were explicitly disabled, don't build :)
97013 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
97014 eval $str
97015 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
97016 want_component=0
97019 if test "$want_component" = "1"; then
97020 should_build=$components_looking_for_succeed
97021 else
97022 should_build=0
97026 # Allow the component to override the build mode if it really wants to.
97027 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
97029 project=ompi
97030 framework=btl
97031 component=mx
97033 # Is this component going to built staic or shared? $component
97034 # might not be known until configure time, so have to use eval
97035 # tricks - can't set variable names at autogen time.
97036 str="SHARED_FRAMEWORK=\$DSO_$framework"
97037 eval $str
97038 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
97039 eval $str
97041 str="STATIC_FRAMEWORK=\$STATIC_$framework"
97042 eval $str
97043 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
97044 eval $str
97046 shared_mode_override=static
97048 # Setup for either shared or static
97049 if test "$STATIC_FRAMEWORK" = "1" -o \
97050 "$STATIC_COMPONENT" = "1" -o \
97051 "$STATIC_all" = "1" ; then
97052 compile_mode="static"
97053 elif test "$shared_mode_override" = "dso" -o \
97054 "$SHARED_FRAMEWORK" = "1" -o \
97055 "$SHARED_COMPONENT" = "1" -o \
97056 "$DSO_all" = "1"; then
97057 compile_mode="dso"
97058 else
97059 compile_mode="static"
97062 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
97063 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
97064 if test "$DIRECT_btl" = "$component" ; then
97065 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
97066 echo "${ECHO_T}$compile_mode - direct" >&6; }
97067 else
97068 { echo "$as_me:$LINENO: result: $compile_mode" >&5
97069 echo "${ECHO_T}$compile_mode" >&6; }
97073 # try to configure the component. pay no attention to
97074 # --enable-dist, since we'll always have makefiles.
97075 if test "$should_build" = "1"; then
97079 # Check whether --with-mx was given.
97080 if test "${with_mx+set}" = set; then
97081 withval=$with_mx;
97085 # Check whether --with-mx-libdir was given.
97086 if test "${with_mx_libdir+set}" = set; then
97087 withval=$with_mx_libdir;
97091 ompi_check_mx_btl_mx_save_CPPFLAGS="$CPPFLAGS"
97092 ompi_check_mx_btl_mx_save_LDFLAGS="$LDFLAGS"
97093 ompi_check_mx_btl_mx_save_LIBS="$LIBS"
97095 if test "$with_mx" != "no"; then
97096 if test ! -z "$with_mx" -a "$with_mx" != "yes"; then
97097 ompi_check_mx_dir="$with_mx"
97100 if test ! -z "$with_mx_libdir" -a "$with_mx_libdir" != "yes"; then
97101 ompi_check_mx_libdir="$with_mx_libdir"
97106 ompi_check_package_btl_mx_save_CPPFLAGS="$CPPFLAGS"
97107 ompi_check_package_btl_mx_save_LDFLAGS="$LDFLAGS"
97108 ompi_check_package_btl_mx_save_LIBS="$LIBS"
97110 ompi_check_package_btl_mx_orig_CPPFLAGS="$btl_mx_CPPFLAGS"
97111 ompi_check_package_btl_mx_orig_LDFLAGS="$btl_mx_LDFLAGS"
97112 ompi_check_package_btl_mx_orig_LIBS="$btl_mx_LIBS"
97115 # This is stolen from autoconf to peek under the covers to get the
97116 # cache variable for the library check. one should not copy this
97117 # code into other places unless you want much pain and suffering
97120 # so this sucks, but there's no way to get through the progression
97121 # of header includes without killing off the cache variable and trying
97122 # again...
97123 unset ac_cv_header_myriexpress_h
97125 ompi_check_package_header_happy="no"
97126 if test "$ompi_check_mx_dir" = "/usr" -o "$ompi_check_mx_dir" = "/usr/local"; then
97127 # try as is...
97128 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
97129 echo "${ECHO_T}looking for header without includes" >&6; }
97130 if test "${ac_cv_header_myriexpress_h+set}" = set; then
97131 { echo "$as_me:$LINENO: checking for myriexpress.h" >&5
97132 echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; }
97133 if test "${ac_cv_header_myriexpress_h+set}" = set; then
97134 echo $ECHO_N "(cached) $ECHO_C" >&6
97136 { echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
97137 echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; }
97138 else
97139 # Is the header compilable?
97140 { echo "$as_me:$LINENO: checking myriexpress.h usability" >&5
97141 echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; }
97142 cat >conftest.$ac_ext <<_ACEOF
97143 /* confdefs.h. */
97144 _ACEOF
97145 cat confdefs.h >>conftest.$ac_ext
97146 cat >>conftest.$ac_ext <<_ACEOF
97147 /* end confdefs.h. */
97148 $ac_includes_default
97149 #include <myriexpress.h>
97150 _ACEOF
97151 rm -f conftest.$ac_objext
97152 if { (ac_try="$ac_compile"
97153 case "(($ac_try" in
97154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97155 *) ac_try_echo=$ac_try;;
97156 esac
97157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
97158 (eval "$ac_compile") 2>conftest.er1
97159 ac_status=$?
97160 grep -v '^ *+' conftest.er1 >conftest.err
97161 rm -f conftest.er1
97162 cat conftest.err >&5
97163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
97164 (exit $ac_status); } && {
97165 test -z "$ac_c_werror_flag" ||
97166 test ! -s conftest.err
97167 } && test -s conftest.$ac_objext; then
97168 ac_header_compiler=yes
97169 else
97170 echo "$as_me: failed program was:" >&5
97171 sed 's/^/| /' conftest.$ac_ext >&5
97173 ac_header_compiler=no
97176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
97178 echo "${ECHO_T}$ac_header_compiler" >&6; }
97180 # Is the header present?
97181 { echo "$as_me:$LINENO: checking myriexpress.h presence" >&5
97182 echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; }
97183 cat >conftest.$ac_ext <<_ACEOF
97184 /* confdefs.h. */
97185 _ACEOF
97186 cat confdefs.h >>conftest.$ac_ext
97187 cat >>conftest.$ac_ext <<_ACEOF
97188 /* end confdefs.h. */
97189 #include <myriexpress.h>
97190 _ACEOF
97191 if { (ac_try="$ac_cpp conftest.$ac_ext"
97192 case "(($ac_try" in
97193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97194 *) ac_try_echo=$ac_try;;
97195 esac
97196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
97197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
97198 ac_status=$?
97199 grep -v '^ *+' conftest.er1 >conftest.err
97200 rm -f conftest.er1
97201 cat conftest.err >&5
97202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
97203 (exit $ac_status); } >/dev/null && {
97204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
97205 test ! -s conftest.err
97206 }; then
97207 ac_header_preproc=yes
97208 else
97209 echo "$as_me: failed program was:" >&5
97210 sed 's/^/| /' conftest.$ac_ext >&5
97212 ac_header_preproc=no
97215 rm -f conftest.err conftest.$ac_ext
97216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
97217 echo "${ECHO_T}$ac_header_preproc" >&6; }
97219 # So? What about this header?
97220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
97221 yes:no: )
97222 { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5
97223 echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
97224 { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5
97225 echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;}
97226 ac_header_preproc=yes
97228 no:yes:* )
97229 { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5
97230 echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;}
97231 { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5
97232 echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;}
97233 { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5
97234 echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;}
97235 { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5
97236 echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;}
97237 { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5
97238 echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;}
97239 { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5
97240 echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;}
97241 ( cat <<\_ASBOX
97242 ## ------------------------------------------------------ ##
97243 ## Report this to http://www.open-mpi.org/community/help/ ##
97244 ## ------------------------------------------------------ ##
97245 _ASBOX
97246 ) | sed "s/^/$as_me: WARNING: /" >&2
97248 esac
97249 { echo "$as_me:$LINENO: checking for myriexpress.h" >&5
97250 echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; }
97251 if test "${ac_cv_header_myriexpress_h+set}" = set; then
97252 echo $ECHO_N "(cached) $ECHO_C" >&6
97253 else
97254 ac_cv_header_myriexpress_h=$ac_header_preproc
97256 { echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
97257 echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; }
97260 if test $ac_cv_header_myriexpress_h = yes; then
97261 ompi_check_package_header_happy="yes"
97262 else
97263 ompi_check_package_header_happy="no"
97267 if test "$ompi_check_package_header_happy" = "no"; then
97268 # no go on the as is - reset the cache and try again
97269 unset ac_cv_header_myriexpress_h
97275 if test "$ompi_check_package_header_happy" = "no"; then
97276 if test "$ompi_check_mx_dir" != ""; then
97277 btl_mx_CPPFLAGS="$btl_mx_CPPFLAGS -I$ompi_check_mx_dir/include"
97278 CPPFLAGS="$CPPFLAGS -I$ompi_check_mx_dir/include"
97281 if test "${ac_cv_header_myriexpress_h+set}" = set; then
97282 { echo "$as_me:$LINENO: checking for myriexpress.h" >&5
97283 echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; }
97284 if test "${ac_cv_header_myriexpress_h+set}" = set; then
97285 echo $ECHO_N "(cached) $ECHO_C" >&6
97287 { echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
97288 echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; }
97289 else
97290 # Is the header compilable?
97291 { echo "$as_me:$LINENO: checking myriexpress.h usability" >&5
97292 echo $ECHO_N "checking myriexpress.h usability... $ECHO_C" >&6; }
97293 cat >conftest.$ac_ext <<_ACEOF
97294 /* confdefs.h. */
97295 _ACEOF
97296 cat confdefs.h >>conftest.$ac_ext
97297 cat >>conftest.$ac_ext <<_ACEOF
97298 /* end confdefs.h. */
97299 $ac_includes_default
97300 #include <myriexpress.h>
97301 _ACEOF
97302 rm -f conftest.$ac_objext
97303 if { (ac_try="$ac_compile"
97304 case "(($ac_try" in
97305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97306 *) ac_try_echo=$ac_try;;
97307 esac
97308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
97309 (eval "$ac_compile") 2>conftest.er1
97310 ac_status=$?
97311 grep -v '^ *+' conftest.er1 >conftest.err
97312 rm -f conftest.er1
97313 cat conftest.err >&5
97314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
97315 (exit $ac_status); } && {
97316 test -z "$ac_c_werror_flag" ||
97317 test ! -s conftest.err
97318 } && test -s conftest.$ac_objext; then
97319 ac_header_compiler=yes
97320 else
97321 echo "$as_me: failed program was:" >&5
97322 sed 's/^/| /' conftest.$ac_ext >&5
97324 ac_header_compiler=no
97327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
97329 echo "${ECHO_T}$ac_header_compiler" >&6; }
97331 # Is the header present?
97332 { echo "$as_me:$LINENO: checking myriexpress.h presence" >&5
97333 echo $ECHO_N "checking myriexpress.h presence... $ECHO_C" >&6; }
97334 cat >conftest.$ac_ext <<_ACEOF
97335 /* confdefs.h. */
97336 _ACEOF
97337 cat confdefs.h >>conftest.$ac_ext
97338 cat >>conftest.$ac_ext <<_ACEOF
97339 /* end confdefs.h. */
97340 #include <myriexpress.h>
97341 _ACEOF
97342 if { (ac_try="$ac_cpp conftest.$ac_ext"
97343 case "(($ac_try" in
97344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97345 *) ac_try_echo=$ac_try;;
97346 esac
97347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
97348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
97349 ac_status=$?
97350 grep -v '^ *+' conftest.er1 >conftest.err
97351 rm -f conftest.er1
97352 cat conftest.err >&5
97353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
97354 (exit $ac_status); } >/dev/null && {
97355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
97356 test ! -s conftest.err
97357 }; then
97358 ac_header_preproc=yes
97359 else
97360 echo "$as_me: failed program was:" >&5
97361 sed 's/^/| /' conftest.$ac_ext >&5
97363 ac_header_preproc=no
97366 rm -f conftest.err conftest.$ac_ext
97367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
97368 echo "${ECHO_T}$ac_header_preproc" >&6; }
97370 # So? What about this header?
97371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
97372 yes:no: )
97373 { echo "$as_me:$LINENO: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&5
97374 echo "$as_me: WARNING: myriexpress.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
97375 { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the compiler's result" >&5
97376 echo "$as_me: WARNING: myriexpress.h: proceeding with the compiler's result" >&2;}
97377 ac_header_preproc=yes
97379 no:yes:* )
97380 { echo "$as_me:$LINENO: WARNING: myriexpress.h: present but cannot be compiled" >&5
97381 echo "$as_me: WARNING: myriexpress.h: present but cannot be compiled" >&2;}
97382 { echo "$as_me:$LINENO: WARNING: myriexpress.h: check for missing prerequisite headers?" >&5
97383 echo "$as_me: WARNING: myriexpress.h: check for missing prerequisite headers?" >&2;}
97384 { echo "$as_me:$LINENO: WARNING: myriexpress.h: see the Autoconf documentation" >&5
97385 echo "$as_me: WARNING: myriexpress.h: see the Autoconf documentation" >&2;}
97386 { echo "$as_me:$LINENO: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&5
97387 echo "$as_me: WARNING: myriexpress.h: section \"Present But Cannot Be Compiled\"" >&2;}
97388 { echo "$as_me:$LINENO: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&5
97389 echo "$as_me: WARNING: myriexpress.h: proceeding with the preprocessor's result" >&2;}
97390 { echo "$as_me:$LINENO: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&5
97391 echo "$as_me: WARNING: myriexpress.h: in the future, the compiler will take precedence" >&2;}
97392 ( cat <<\_ASBOX
97393 ## ------------------------------------------------------ ##
97394 ## Report this to http://www.open-mpi.org/community/help/ ##
97395 ## ------------------------------------------------------ ##
97396 _ASBOX
97397 ) | sed "s/^/$as_me: WARNING: /" >&2
97399 esac
97400 { echo "$as_me:$LINENO: checking for myriexpress.h" >&5
97401 echo $ECHO_N "checking for myriexpress.h... $ECHO_C" >&6; }
97402 if test "${ac_cv_header_myriexpress_h+set}" = set; then
97403 echo $ECHO_N "(cached) $ECHO_C" >&6
97404 else
97405 ac_cv_header_myriexpress_h=$ac_header_preproc
97407 { echo "$as_me:$LINENO: result: $ac_cv_header_myriexpress_h" >&5
97408 echo "${ECHO_T}$ac_cv_header_myriexpress_h" >&6; }
97411 if test $ac_cv_header_myriexpress_h = yes; then
97413 # This is stolen from autoconf to peek under the covers to get the
97414 # cache variable for the library check. one should not copy this
97415 # code into other places unless you want much pain and suffering
97417 # see comment above
97418 unset ac_cv_lib_myriexpress_mx_finalize
97419 ompi_check_package_lib_happy="no"
97420 if test "$ompi_check_mx_libdir" != ""; then
97421 # libdir was specified - search only there
97422 btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_mx_libdir"
97423 LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir"
97424 { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
97425 echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; }
97426 if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
97427 echo $ECHO_N "(cached) $ECHO_C" >&6
97428 else
97429 ac_check_lib_save_LIBS=$LIBS
97430 LIBS="-lmyriexpress $LIBS"
97431 cat >conftest.$ac_ext <<_ACEOF
97432 /* confdefs.h. */
97433 _ACEOF
97434 cat confdefs.h >>conftest.$ac_ext
97435 cat >>conftest.$ac_ext <<_ACEOF
97436 /* end confdefs.h. */
97438 /* Override any GCC internal prototype to avoid an error.
97439 Use char because int might match the return type of a GCC
97440 builtin and then its argument prototype would still apply. */
97441 #ifdef __cplusplus
97442 extern "C"
97443 #endif
97444 char mx_finalize ();
97446 main ()
97448 return mx_finalize ();
97450 return 0;
97452 _ACEOF
97453 rm -f conftest.$ac_objext conftest$ac_exeext
97454 if { (ac_try="$ac_link"
97455 case "(($ac_try" in
97456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97457 *) ac_try_echo=$ac_try;;
97458 esac
97459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
97460 (eval "$ac_link") 2>conftest.er1
97461 ac_status=$?
97462 grep -v '^ *+' conftest.er1 >conftest.err
97463 rm -f conftest.er1
97464 cat conftest.err >&5
97465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
97466 (exit $ac_status); } && {
97467 test -z "$ac_c_werror_flag" ||
97468 test ! -s conftest.err
97469 } && test -s conftest$ac_exeext &&
97470 $as_test_x conftest$ac_exeext; then
97471 ac_cv_lib_myriexpress_mx_finalize=yes
97472 else
97473 echo "$as_me: failed program was:" >&5
97474 sed 's/^/| /' conftest.$ac_ext >&5
97476 ac_cv_lib_myriexpress_mx_finalize=no
97479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97480 conftest$ac_exeext conftest.$ac_ext
97481 LIBS=$ac_check_lib_save_LIBS
97483 { echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
97484 echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; }
97485 if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
97486 ompi_check_package_lib_happy="yes"
97487 else
97488 ompi_check_package_lib_happy="no"
97491 if test "$ompi_check_package_lib_happy" = "no"; then
97492 LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
97493 btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
97494 unset ac_cv_lib_myriexpress_mx_finalize
97497 else
97498 # libdir was not specified - go through search path
97499 ompi_check_package_libdir="$ompi_check_mx_dir"
97500 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
97501 # try as is...
97502 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
97503 echo "${ECHO_T}looking for library without search path" >&6; }
97504 { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
97505 echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; }
97506 if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
97507 echo $ECHO_N "(cached) $ECHO_C" >&6
97508 else
97509 ac_check_lib_save_LIBS=$LIBS
97510 LIBS="-lmyriexpress $LIBS"
97511 cat >conftest.$ac_ext <<_ACEOF
97512 /* confdefs.h. */
97513 _ACEOF
97514 cat confdefs.h >>conftest.$ac_ext
97515 cat >>conftest.$ac_ext <<_ACEOF
97516 /* end confdefs.h. */
97518 /* Override any GCC internal prototype to avoid an error.
97519 Use char because int might match the return type of a GCC
97520 builtin and then its argument prototype would still apply. */
97521 #ifdef __cplusplus
97522 extern "C"
97523 #endif
97524 char mx_finalize ();
97526 main ()
97528 return mx_finalize ();
97530 return 0;
97532 _ACEOF
97533 rm -f conftest.$ac_objext conftest$ac_exeext
97534 if { (ac_try="$ac_link"
97535 case "(($ac_try" in
97536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97537 *) ac_try_echo=$ac_try;;
97538 esac
97539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
97540 (eval "$ac_link") 2>conftest.er1
97541 ac_status=$?
97542 grep -v '^ *+' conftest.er1 >conftest.err
97543 rm -f conftest.er1
97544 cat conftest.err >&5
97545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
97546 (exit $ac_status); } && {
97547 test -z "$ac_c_werror_flag" ||
97548 test ! -s conftest.err
97549 } && test -s conftest$ac_exeext &&
97550 $as_test_x conftest$ac_exeext; then
97551 ac_cv_lib_myriexpress_mx_finalize=yes
97552 else
97553 echo "$as_me: failed program was:" >&5
97554 sed 's/^/| /' conftest.$ac_ext >&5
97556 ac_cv_lib_myriexpress_mx_finalize=no
97559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97560 conftest$ac_exeext conftest.$ac_ext
97561 LIBS=$ac_check_lib_save_LIBS
97563 { echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
97564 echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; }
97565 if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
97566 ompi_check_package_lib_happy="yes"
97567 else
97568 ompi_check_package_lib_happy="no"
97571 if test "$ompi_check_package_lib_happy" = "no"; then
97572 # no go on the as is.. see what happens later...
97573 LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
97574 btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
97575 unset ac_cv_lib_myriexpress_mx_finalize
97581 if test "$ompi_check_package_lib_happy" = "no"; then
97582 if test "$ompi_check_package_libdir" != ""; then
97583 btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib"
97584 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
97585 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
97586 echo "${ECHO_T}looking for library in lib" >&6; }
97587 { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
97588 echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; }
97589 if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
97590 echo $ECHO_N "(cached) $ECHO_C" >&6
97591 else
97592 ac_check_lib_save_LIBS=$LIBS
97593 LIBS="-lmyriexpress $LIBS"
97594 cat >conftest.$ac_ext <<_ACEOF
97595 /* confdefs.h. */
97596 _ACEOF
97597 cat confdefs.h >>conftest.$ac_ext
97598 cat >>conftest.$ac_ext <<_ACEOF
97599 /* end confdefs.h. */
97601 /* Override any GCC internal prototype to avoid an error.
97602 Use char because int might match the return type of a GCC
97603 builtin and then its argument prototype would still apply. */
97604 #ifdef __cplusplus
97605 extern "C"
97606 #endif
97607 char mx_finalize ();
97609 main ()
97611 return mx_finalize ();
97613 return 0;
97615 _ACEOF
97616 rm -f conftest.$ac_objext conftest$ac_exeext
97617 if { (ac_try="$ac_link"
97618 case "(($ac_try" in
97619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97620 *) ac_try_echo=$ac_try;;
97621 esac
97622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
97623 (eval "$ac_link") 2>conftest.er1
97624 ac_status=$?
97625 grep -v '^ *+' conftest.er1 >conftest.err
97626 rm -f conftest.er1
97627 cat conftest.err >&5
97628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
97629 (exit $ac_status); } && {
97630 test -z "$ac_c_werror_flag" ||
97631 test ! -s conftest.err
97632 } && test -s conftest$ac_exeext &&
97633 $as_test_x conftest$ac_exeext; then
97634 ac_cv_lib_myriexpress_mx_finalize=yes
97635 else
97636 echo "$as_me: failed program was:" >&5
97637 sed 's/^/| /' conftest.$ac_ext >&5
97639 ac_cv_lib_myriexpress_mx_finalize=no
97642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97643 conftest$ac_exeext conftest.$ac_ext
97644 LIBS=$ac_check_lib_save_LIBS
97646 { echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
97647 echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; }
97648 if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
97649 ompi_check_package_lib_happy="yes"
97650 else
97651 ompi_check_package_lib_happy="no"
97654 if test "$ompi_check_package_lib_happy" = "no"; then
97655 # no go on the as is.. see what happens later...
97656 LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
97657 btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
97658 unset ac_cv_lib_myriexpress_mx_finalize
97666 if test "$ompi_check_package_lib_happy" = "no"; then
97667 if test "$ompi_check_package_libdir" != ""; then
97668 btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64"
97669 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
97670 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
97671 echo "${ECHO_T}looking for library in lib64" >&6; }
97672 { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
97673 echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; }
97674 if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
97675 echo $ECHO_N "(cached) $ECHO_C" >&6
97676 else
97677 ac_check_lib_save_LIBS=$LIBS
97678 LIBS="-lmyriexpress $LIBS"
97679 cat >conftest.$ac_ext <<_ACEOF
97680 /* confdefs.h. */
97681 _ACEOF
97682 cat confdefs.h >>conftest.$ac_ext
97683 cat >>conftest.$ac_ext <<_ACEOF
97684 /* end confdefs.h. */
97686 /* Override any GCC internal prototype to avoid an error.
97687 Use char because int might match the return type of a GCC
97688 builtin and then its argument prototype would still apply. */
97689 #ifdef __cplusplus
97690 extern "C"
97691 #endif
97692 char mx_finalize ();
97694 main ()
97696 return mx_finalize ();
97698 return 0;
97700 _ACEOF
97701 rm -f conftest.$ac_objext conftest$ac_exeext
97702 if { (ac_try="$ac_link"
97703 case "(($ac_try" in
97704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97705 *) ac_try_echo=$ac_try;;
97706 esac
97707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
97708 (eval "$ac_link") 2>conftest.er1
97709 ac_status=$?
97710 grep -v '^ *+' conftest.er1 >conftest.err
97711 rm -f conftest.er1
97712 cat conftest.err >&5
97713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
97714 (exit $ac_status); } && {
97715 test -z "$ac_c_werror_flag" ||
97716 test ! -s conftest.err
97717 } && test -s conftest$ac_exeext &&
97718 $as_test_x conftest$ac_exeext; then
97719 ac_cv_lib_myriexpress_mx_finalize=yes
97720 else
97721 echo "$as_me: failed program was:" >&5
97722 sed 's/^/| /' conftest.$ac_ext >&5
97724 ac_cv_lib_myriexpress_mx_finalize=no
97727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97728 conftest$ac_exeext conftest.$ac_ext
97729 LIBS=$ac_check_lib_save_LIBS
97731 { echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
97732 echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; }
97733 if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
97734 ompi_check_package_lib_happy="yes"
97735 else
97736 ompi_check_package_lib_happy="no"
97739 if test "$ompi_check_package_lib_happy" = "no"; then
97740 # no go on the as is.. see what happens later...
97741 LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
97742 btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
97743 unset ac_cv_lib_myriexpress_mx_finalize
97753 if test "$ompi_check_package_lib_happy" = "yes"; then
97754 ompi_check_package_happy="yes"
97755 else
97756 ompi_check_package_happy="no"
97761 else
97762 ompi_check_package_happy="no"
97766 else
97768 # This is stolen from autoconf to peek under the covers to get the
97769 # cache variable for the library check. one should not copy this
97770 # code into other places unless you want much pain and suffering
97772 # see comment above
97773 unset ac_cv_lib_myriexpress_mx_finalize
97774 ompi_check_package_lib_happy="no"
97775 if test "$ompi_check_mx_libdir" != ""; then
97776 # libdir was specified - search only there
97777 btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_mx_libdir"
97778 LDFLAGS="$LDFLAGS -L$ompi_check_mx_libdir"
97779 { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
97780 echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; }
97781 if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
97782 echo $ECHO_N "(cached) $ECHO_C" >&6
97783 else
97784 ac_check_lib_save_LIBS=$LIBS
97785 LIBS="-lmyriexpress $LIBS"
97786 cat >conftest.$ac_ext <<_ACEOF
97787 /* confdefs.h. */
97788 _ACEOF
97789 cat confdefs.h >>conftest.$ac_ext
97790 cat >>conftest.$ac_ext <<_ACEOF
97791 /* end confdefs.h. */
97793 /* Override any GCC internal prototype to avoid an error.
97794 Use char because int might match the return type of a GCC
97795 builtin and then its argument prototype would still apply. */
97796 #ifdef __cplusplus
97797 extern "C"
97798 #endif
97799 char mx_finalize ();
97801 main ()
97803 return mx_finalize ();
97805 return 0;
97807 _ACEOF
97808 rm -f conftest.$ac_objext conftest$ac_exeext
97809 if { (ac_try="$ac_link"
97810 case "(($ac_try" in
97811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97812 *) ac_try_echo=$ac_try;;
97813 esac
97814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
97815 (eval "$ac_link") 2>conftest.er1
97816 ac_status=$?
97817 grep -v '^ *+' conftest.er1 >conftest.err
97818 rm -f conftest.er1
97819 cat conftest.err >&5
97820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
97821 (exit $ac_status); } && {
97822 test -z "$ac_c_werror_flag" ||
97823 test ! -s conftest.err
97824 } && test -s conftest$ac_exeext &&
97825 $as_test_x conftest$ac_exeext; then
97826 ac_cv_lib_myriexpress_mx_finalize=yes
97827 else
97828 echo "$as_me: failed program was:" >&5
97829 sed 's/^/| /' conftest.$ac_ext >&5
97831 ac_cv_lib_myriexpress_mx_finalize=no
97834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97835 conftest$ac_exeext conftest.$ac_ext
97836 LIBS=$ac_check_lib_save_LIBS
97838 { echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
97839 echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; }
97840 if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
97841 ompi_check_package_lib_happy="yes"
97842 else
97843 ompi_check_package_lib_happy="no"
97846 if test "$ompi_check_package_lib_happy" = "no"; then
97847 LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
97848 btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
97849 unset ac_cv_lib_myriexpress_mx_finalize
97852 else
97853 # libdir was not specified - go through search path
97854 ompi_check_package_libdir="$ompi_check_mx_dir"
97855 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
97856 # try as is...
97857 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
97858 echo "${ECHO_T}looking for library without search path" >&6; }
97859 { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
97860 echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; }
97861 if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
97862 echo $ECHO_N "(cached) $ECHO_C" >&6
97863 else
97864 ac_check_lib_save_LIBS=$LIBS
97865 LIBS="-lmyriexpress $LIBS"
97866 cat >conftest.$ac_ext <<_ACEOF
97867 /* confdefs.h. */
97868 _ACEOF
97869 cat confdefs.h >>conftest.$ac_ext
97870 cat >>conftest.$ac_ext <<_ACEOF
97871 /* end confdefs.h. */
97873 /* Override any GCC internal prototype to avoid an error.
97874 Use char because int might match the return type of a GCC
97875 builtin and then its argument prototype would still apply. */
97876 #ifdef __cplusplus
97877 extern "C"
97878 #endif
97879 char mx_finalize ();
97881 main ()
97883 return mx_finalize ();
97885 return 0;
97887 _ACEOF
97888 rm -f conftest.$ac_objext conftest$ac_exeext
97889 if { (ac_try="$ac_link"
97890 case "(($ac_try" in
97891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97892 *) ac_try_echo=$ac_try;;
97893 esac
97894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
97895 (eval "$ac_link") 2>conftest.er1
97896 ac_status=$?
97897 grep -v '^ *+' conftest.er1 >conftest.err
97898 rm -f conftest.er1
97899 cat conftest.err >&5
97900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
97901 (exit $ac_status); } && {
97902 test -z "$ac_c_werror_flag" ||
97903 test ! -s conftest.err
97904 } && test -s conftest$ac_exeext &&
97905 $as_test_x conftest$ac_exeext; then
97906 ac_cv_lib_myriexpress_mx_finalize=yes
97907 else
97908 echo "$as_me: failed program was:" >&5
97909 sed 's/^/| /' conftest.$ac_ext >&5
97911 ac_cv_lib_myriexpress_mx_finalize=no
97914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97915 conftest$ac_exeext conftest.$ac_ext
97916 LIBS=$ac_check_lib_save_LIBS
97918 { echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
97919 echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; }
97920 if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
97921 ompi_check_package_lib_happy="yes"
97922 else
97923 ompi_check_package_lib_happy="no"
97926 if test "$ompi_check_package_lib_happy" = "no"; then
97927 # no go on the as is.. see what happens later...
97928 LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
97929 btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
97930 unset ac_cv_lib_myriexpress_mx_finalize
97936 if test "$ompi_check_package_lib_happy" = "no"; then
97937 if test "$ompi_check_package_libdir" != ""; then
97938 btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib"
97939 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
97940 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
97941 echo "${ECHO_T}looking for library in lib" >&6; }
97942 { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
97943 echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; }
97944 if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
97945 echo $ECHO_N "(cached) $ECHO_C" >&6
97946 else
97947 ac_check_lib_save_LIBS=$LIBS
97948 LIBS="-lmyriexpress $LIBS"
97949 cat >conftest.$ac_ext <<_ACEOF
97950 /* confdefs.h. */
97951 _ACEOF
97952 cat confdefs.h >>conftest.$ac_ext
97953 cat >>conftest.$ac_ext <<_ACEOF
97954 /* end confdefs.h. */
97956 /* Override any GCC internal prototype to avoid an error.
97957 Use char because int might match the return type of a GCC
97958 builtin and then its argument prototype would still apply. */
97959 #ifdef __cplusplus
97960 extern "C"
97961 #endif
97962 char mx_finalize ();
97964 main ()
97966 return mx_finalize ();
97968 return 0;
97970 _ACEOF
97971 rm -f conftest.$ac_objext conftest$ac_exeext
97972 if { (ac_try="$ac_link"
97973 case "(($ac_try" in
97974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97975 *) ac_try_echo=$ac_try;;
97976 esac
97977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
97978 (eval "$ac_link") 2>conftest.er1
97979 ac_status=$?
97980 grep -v '^ *+' conftest.er1 >conftest.err
97981 rm -f conftest.er1
97982 cat conftest.err >&5
97983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
97984 (exit $ac_status); } && {
97985 test -z "$ac_c_werror_flag" ||
97986 test ! -s conftest.err
97987 } && test -s conftest$ac_exeext &&
97988 $as_test_x conftest$ac_exeext; then
97989 ac_cv_lib_myriexpress_mx_finalize=yes
97990 else
97991 echo "$as_me: failed program was:" >&5
97992 sed 's/^/| /' conftest.$ac_ext >&5
97994 ac_cv_lib_myriexpress_mx_finalize=no
97997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97998 conftest$ac_exeext conftest.$ac_ext
97999 LIBS=$ac_check_lib_save_LIBS
98001 { echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
98002 echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; }
98003 if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
98004 ompi_check_package_lib_happy="yes"
98005 else
98006 ompi_check_package_lib_happy="no"
98009 if test "$ompi_check_package_lib_happy" = "no"; then
98010 # no go on the as is.. see what happens later...
98011 LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
98012 btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
98013 unset ac_cv_lib_myriexpress_mx_finalize
98021 if test "$ompi_check_package_lib_happy" = "no"; then
98022 if test "$ompi_check_package_libdir" != ""; then
98023 btl_mx_LDFLAGS="$btl_mx_LDFLAGS -L$ompi_check_package_libdir/lib64"
98024 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
98025 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
98026 echo "${ECHO_T}looking for library in lib64" >&6; }
98027 { echo "$as_me:$LINENO: checking for mx_finalize in -lmyriexpress" >&5
98028 echo $ECHO_N "checking for mx_finalize in -lmyriexpress... $ECHO_C" >&6; }
98029 if test "${ac_cv_lib_myriexpress_mx_finalize+set}" = set; then
98030 echo $ECHO_N "(cached) $ECHO_C" >&6
98031 else
98032 ac_check_lib_save_LIBS=$LIBS
98033 LIBS="-lmyriexpress $LIBS"
98034 cat >conftest.$ac_ext <<_ACEOF
98035 /* confdefs.h. */
98036 _ACEOF
98037 cat confdefs.h >>conftest.$ac_ext
98038 cat >>conftest.$ac_ext <<_ACEOF
98039 /* end confdefs.h. */
98041 /* Override any GCC internal prototype to avoid an error.
98042 Use char because int might match the return type of a GCC
98043 builtin and then its argument prototype would still apply. */
98044 #ifdef __cplusplus
98045 extern "C"
98046 #endif
98047 char mx_finalize ();
98049 main ()
98051 return mx_finalize ();
98053 return 0;
98055 _ACEOF
98056 rm -f conftest.$ac_objext conftest$ac_exeext
98057 if { (ac_try="$ac_link"
98058 case "(($ac_try" in
98059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98060 *) ac_try_echo=$ac_try;;
98061 esac
98062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
98063 (eval "$ac_link") 2>conftest.er1
98064 ac_status=$?
98065 grep -v '^ *+' conftest.er1 >conftest.err
98066 rm -f conftest.er1
98067 cat conftest.err >&5
98068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98069 (exit $ac_status); } && {
98070 test -z "$ac_c_werror_flag" ||
98071 test ! -s conftest.err
98072 } && test -s conftest$ac_exeext &&
98073 $as_test_x conftest$ac_exeext; then
98074 ac_cv_lib_myriexpress_mx_finalize=yes
98075 else
98076 echo "$as_me: failed program was:" >&5
98077 sed 's/^/| /' conftest.$ac_ext >&5
98079 ac_cv_lib_myriexpress_mx_finalize=no
98082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98083 conftest$ac_exeext conftest.$ac_ext
98084 LIBS=$ac_check_lib_save_LIBS
98086 { echo "$as_me:$LINENO: result: $ac_cv_lib_myriexpress_mx_finalize" >&5
98087 echo "${ECHO_T}$ac_cv_lib_myriexpress_mx_finalize" >&6; }
98088 if test $ac_cv_lib_myriexpress_mx_finalize = yes; then
98089 ompi_check_package_lib_happy="yes"
98090 else
98091 ompi_check_package_lib_happy="no"
98094 if test "$ompi_check_package_lib_happy" = "no"; then
98095 # no go on the as is.. see what happens later...
98096 LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
98097 btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
98098 unset ac_cv_lib_myriexpress_mx_finalize
98108 if test "$ompi_check_package_lib_happy" = "yes"; then
98109 ompi_check_package_happy="yes"
98110 else
98111 ompi_check_package_happy="no"
98118 unset ompi_check_package_header_happy
98120 if test "$ompi_check_package_happy" = "yes"; then
98121 ompi_check_mx_happy="yes"
98122 btl_mx_LIBS="-lmyriexpress "
98123 else
98124 btl_mx_CPPFLAGS="$ompi_check_package_btl_mx_orig_CPPFLAGS"
98125 btl_mx_LDFLAGS="$ompi_check_package_btl_mx_orig_LDFLAGS"
98126 btl_mx_LIBS="$ompi_check_package_btl_mx_orig_LIBS"
98127 ompi_check_mx_happy="no"
98131 CPPFLAGS="$ompi_check_package_btl_mx_save_CPPFLAGS"
98132 LDFLAGS="$ompi_check_package_btl_mx_save_LDFLAGS"
98133 LIBS="$ompi_check_package_btl_mx_save_LIBS"
98135 else
98136 ompi_check_mx_happy="no"
98140 if test "$ompi_check_mx_happy" = "yes"; then
98143 # See if we have MX_API. OpenMPI require a MX version bigger than
98144 # the first MX relase (0x300)
98147 # restored at end of OMPI_CHECK_MX
98148 CPPFLAGS="$ompi_check_mx_btl_mx_save_CPPFLAGS $btl_mx_CPPFLAGS"
98149 LDFLAGS="$ompi_check_mx_btl_mx_save_LDFLAGS $btl_mx_LDFLAGS"
98150 LIBS="$ompi_check_mx_btl_mx_save_LIBS $btl_mx_LIBS"
98152 { echo "$as_me:$LINENO: checking for MX version 1.0 or later" >&5
98153 echo $ECHO_N "checking for MX version 1.0 or later... $ECHO_C" >&6; }
98154 cat >conftest.$ac_ext <<_ACEOF
98155 /* confdefs.h. */
98156 _ACEOF
98157 cat confdefs.h >>conftest.$ac_ext
98158 cat >>conftest.$ac_ext <<_ACEOF
98159 /* end confdefs.h. */
98160 #include <myriexpress.h>
98162 main ()
98164 #if MX_API < 0x300
98165 #error "Version less than 0x300"
98166 #endif
98168 return 0;
98170 _ACEOF
98171 rm -f conftest.$ac_objext
98172 if { (ac_try="$ac_compile"
98173 case "(($ac_try" in
98174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98175 *) ac_try_echo=$ac_try;;
98176 esac
98177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
98178 (eval "$ac_compile") 2>conftest.er1
98179 ac_status=$?
98180 grep -v '^ *+' conftest.er1 >conftest.err
98181 rm -f conftest.er1
98182 cat conftest.err >&5
98183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98184 (exit $ac_status); } && {
98185 test -z "$ac_c_werror_flag" ||
98186 test ! -s conftest.err
98187 } && test -s conftest.$ac_objext; then
98188 have_recent_api="yes"
98189 else
98190 echo "$as_me: failed program was:" >&5
98191 sed 's/^/| /' conftest.$ac_ext >&5
98193 have_recent_api="no"
98196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
98197 { echo "$as_me:$LINENO: result: $have_recent_api" >&5
98198 echo "${ECHO_T}$have_recent_api" >&6; }
98200 { echo "$as_me:$LINENO: checking for MX_API" >&5
98201 echo $ECHO_N "checking for MX_API... $ECHO_C" >&6; }
98202 if test x"$have_recent_api" = "xyes"; then
98204 cat >>confdefs.h <<_ACEOF
98205 #define OMPI_MCA_BTL_MX_API_VERSION $mx_api_ver
98206 _ACEOF
98208 unset mx_api_ver have_mx_api_ver_msg found val msg
98209 ompi_check_mx_happy="yes"
98210 else
98211 ompi_check_mx_happy="no"
98218 CPPFLAGS="$ompi_check_mx_btl_mx_save_CPPFLAGS"
98219 LDFLAGS="$ompi_check_mx_btl_mx_save_LDFLAGS"
98220 LIBS="$ompi_check_mx_btl_mx_save_LIBS"
98222 if test "$ompi_check_mx_happy" = "yes" -a "$enable_progress_threads" = "yes"; then
98223 { echo "$as_me:$LINENO: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&5
98224 echo "$as_me: WARNING: MX driver does not currently support progress threads. Disabling BTL." >&2;}
98225 ompi_check_mx_happy="no"
98229 if test "$ompi_check_mx_happy" = "yes"; then
98230 btl_mx_happy="yes"
98231 else
98232 if test ! -z "$with_mx" -a "$with_mx" != "no"; then
98233 { { echo "$as_me:$LINENO: error: MX support requested but not found. Aborting" >&5
98234 echo "$as_me: error: MX support requested but not found. Aborting" >&2;}
98235 { (exit 1); exit 1; }; }
98238 btl_mx_happy="no"
98243 if test "$btl_mx_happy" = "yes"; then
98244 btl_mx_WRAPPER_EXTRA_LDFLAGS="$btl_mx_LDFLAGS"
98245 btl_mx_WRAPPER_EXTRA_LIBS="$btl_mx_LIBS"
98246 should_build=1
98247 else
98248 should_build=0
98252 # substitute in the things needed to build mx
98261 if test "$should_build" = "1"; then
98263 project=ompi
98264 framework=btl
98265 component=mx
98267 # See if it dropped an output file for us to pick up some
98268 # shell variables in.
98269 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
98271 # Add this subdir to the mast list of all MCA component subdirs
98272 all_components="$all_components $component"
98274 if test "$compile_mode" = "dso" ; then
98275 dso_components="$dso_components $component"
98276 else
98277 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
98278 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
98279 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
98280 static_components="$static_components $component"
98283 # Output pretty results
98284 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
98285 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
98286 { echo "$as_me:$LINENO: result: yes" >&5
98287 echo "${ECHO_T}yes" >&6; }
98289 # If there's an output file, add the values to
98290 # scope_EXTRA_flags.
98291 if test -f $infile; then
98293 # First check for the ABORT tag
98294 line="`grep ABORT= $infile | cut -d= -f2-`"
98295 if test -n "$line" -a "$line" != "no"; then
98296 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
98297 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
98298 { { echo "$as_me:$LINENO: error: cannot continue" >&5
98299 echo "$as_me: error: cannot continue" >&2;}
98300 { (exit 1); exit 1; }; }
98303 # Check for flags passed up from the component. If we're
98304 # compiling statically, then take all flags passed up from the
98305 # component.
98306 if test "$compile_mode" = "static"; then
98307 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
98308 eval "line=$line"
98309 if test -n "$line"; then
98310 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
98312 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
98313 eval "line=$line"
98314 if test -n "$line"; then
98315 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
98319 if test "$DIRECT_btl" = "$component" ; then
98320 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
98321 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
98322 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
98323 eval $str
98324 else
98325 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
98326 *** does not appear to support direct calling.
98327 *** Aborting" >&5
98328 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
98329 *** does not appear to support direct calling.
98330 *** Aborting" >&2;}
98331 { (exit 1); exit 1; }; }
98334 else
98335 # were we supposed to have found something in the
98336 # post_configure.sh, but the file didn't exist?
98337 if test "$DIRECT_btl" = "$component" ; then
98338 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
98339 *** does not appear to support direct calling.
98340 *** Aborting" >&5
98341 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
98342 *** does not appear to support direct calling.
98343 *** Aborting" >&2;}
98344 { (exit 1); exit 1; }; }
98348 # now add the flags that were set in the environment variables
98349 # framework_component_FOO (for example, the flags set by
98350 # m4_configure components)
98352 # Check for flags passed up from the component. If we're
98353 # compiling statically, then take all flags passed up from the
98354 # component.
98355 if test "$compile_mode" = "static"; then
98356 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
98357 eval "$str"
98358 if test -n "$line" ; then
98359 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
98361 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
98362 eval "$str"
98363 if test -n "$line" ; then
98364 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
98368 else
98370 { echo "$as_me:$LINENO: checking if MCA component btl:mx can compile" >&5
98371 echo $ECHO_N "checking if MCA component btl:mx can compile... $ECHO_C" >&6; }
98372 { echo "$as_me:$LINENO: result: no" >&5
98373 echo "${ECHO_T}no" >&6; }
98375 # If this component was requested as the default for this
98376 # type, then abort.
98377 if test "$with_btl" = "mx" ; then
98378 { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5
98379 echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
98380 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
98381 echo "$as_me: WARNING: This component was selected as the default" >&2;}
98382 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
98383 echo "$as_me: error: Cannot continue" >&2;}
98384 { (exit 1); exit 1; }; }
98385 exit 1
98388 if test ! -z "$DIRECT_btl" ; then
98389 if test "$DIRECT_btl" = "mx" ; then
98390 { echo "$as_me:$LINENO: WARNING: MCA component \"mx\" failed to configure properly" >&5
98391 echo "$as_me: WARNING: MCA component \"mx\" failed to configure properly" >&2;}
98392 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
98393 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
98394 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
98395 echo "$as_me: error: Cannot continue" >&2;}
98396 { (exit 1); exit 1; }; }
98397 exit 1
98401 # add component to all component list
98402 all_components="$all_components mx"
98406 # set the AM_CONDITIONAL on how we should build
98407 if test "$compile_mode" = "dso"; then
98408 BUILD_btl_mx_DSO=1
98409 else
98410 BUILD_btl_mx_DSO=0
98415 if test "$BUILD_btl_mx_DSO" = "1"; then
98416 OMPI_BUILD_btl_mx_DSO_TRUE=
98417 OMPI_BUILD_btl_mx_DSO_FALSE='#'
98418 else
98419 OMPI_BUILD_btl_mx_DSO_TRUE='#'
98420 OMPI_BUILD_btl_mx_DSO_FALSE=
98424 if test "$should_build" = "1"; then
98425 components_looking_for_succeed="$happy_value"
98429 unset compile_mode
98431 ompi_show_subsubsubtitle "MCA component btl:openib (m4 configuration macro)"
98434 project=ompi
98435 framework=btl
98436 component=openib
98437 component_path="$srcdir/$project/mca/$framework/$component"
98438 want_component=0
98440 # build if:
98441 # - the component type is direct and we are that component
98442 # - there is no ompi_ignore file
98443 # - there is an ompi_ignore, but there is an empty ompi_unignore
98444 # - there is an ompi_ignore, but username is in ompi_unignore
98445 if test -d $component_path ; then
98446 # decide if we want the component to be built or not. This
98447 # is spread out because some of the logic is a little complex
98448 # and test's syntax isn't exactly the greatest. We want to
98449 # build the component by default.
98450 want_component=1
98451 if test -f $component_path/.ompi_ignore ; then
98452 # If there is an ompi_ignore file, don't build
98453 # the component. Note that this decision can be
98454 # overriden by the unignore logic below.
98455 want_component=0
98457 if test -f $component_path/.ompi_unignore ; then
98458 # if there is an empty ompi_unignore, that is
98459 # equivalent to having your userid in the unignore file.
98460 # If userid is in the file, unignore the ignore file.
98461 if test ! -s $component_path/.ompi_unignore ; then
98462 want_component=1
98463 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
98464 want_component=1
98467 # if this component type is direct and we are not it, we don't want
98468 # to be built. Otherwise, we do want to be built.
98469 if test ! -z "$DIRECT_btl" ; then
98470 if test "$DIRECT_btl" = "$component" ; then
98471 want_component=1
98472 else
98473 want_component=0
98478 # if we were explicitly disabled, don't build :)
98479 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
98480 eval $str
98481 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
98482 want_component=0
98485 if test "$want_component" = "1"; then
98486 should_build=$components_looking_for_succeed
98487 else
98488 should_build=0
98492 # Allow the component to override the build mode if it really wants to.
98493 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
98495 project=ompi
98496 framework=btl
98497 component=openib
98499 # Is this component going to built staic or shared? $component
98500 # might not be known until configure time, so have to use eval
98501 # tricks - can't set variable names at autogen time.
98502 str="SHARED_FRAMEWORK=\$DSO_$framework"
98503 eval $str
98504 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
98505 eval $str
98507 str="STATIC_FRAMEWORK=\$STATIC_$framework"
98508 eval $str
98509 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
98510 eval $str
98512 shared_mode_override=static
98514 # Setup for either shared or static
98515 if test "$STATIC_FRAMEWORK" = "1" -o \
98516 "$STATIC_COMPONENT" = "1" -o \
98517 "$STATIC_all" = "1" ; then
98518 compile_mode="static"
98519 elif test "$shared_mode_override" = "dso" -o \
98520 "$SHARED_FRAMEWORK" = "1" -o \
98521 "$SHARED_COMPONENT" = "1" -o \
98522 "$DSO_all" = "1"; then
98523 compile_mode="dso"
98524 else
98525 compile_mode="static"
98528 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
98529 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
98530 if test "$DIRECT_btl" = "$component" ; then
98531 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
98532 echo "${ECHO_T}$compile_mode - direct" >&6; }
98533 else
98534 { echo "$as_me:$LINENO: result: $compile_mode" >&5
98535 echo "${ECHO_T}$compile_mode" >&6; }
98539 # try to configure the component. pay no attention to
98540 # --enable-dist, since we'll always have makefiles.
98541 if test "$should_build" = "1"; then
98545 # Check whether --with-openib was given.
98546 if test "${with_openib+set}" = set; then
98547 withval=$with_openib;
98551 # Check whether --with-openib-libdir was given.
98552 if test "${with_openib_libdir+set}" = set; then
98553 withval=$with_openib_libdir;
98557 if test ! -z "$with_openib" -a "$with_openib" != "yes"; then
98558 ompi_check_openib_dir="$with_openib"
98561 if test ! -z "$with_openib_libdir" -a "$with_openib_libdir" != "yes"; then
98562 ompi_check_openib_libdir="$with_openib_libdir"
98565 if test "$with_openib" != "no"; then
98566 # check for pthreads and emit a warning that things might go south...
98567 if test "$HAVE_POSIX_THREADS" != "1"; then
98568 { echo "$as_me:$LINENO: WARNING: POSIX threads not enabled. May not be able to link with OpenIB" >&5
98569 echo "$as_me: WARNING: POSIX threads not enabled. May not be able to link with OpenIB" >&2;}
98573 ompi_check_openib_btl_openib_save_CPPFLAGS="$CPPFLAGS"
98574 ompi_check_openib_btl_openib_save_LDFLAGS="$LDFLAGS"
98575 ompi_check_openib_btl_openib_save_LIBS="$LIBS"
98577 { echo "$as_me:$LINENO: checking for sysfs_open_class in -lsysfs" >&5
98578 echo $ECHO_N "checking for sysfs_open_class in -lsysfs... $ECHO_C" >&6; }
98579 if test "${ac_cv_lib_sysfs_sysfs_open_class+set}" = set; then
98580 echo $ECHO_N "(cached) $ECHO_C" >&6
98581 else
98582 ac_check_lib_save_LIBS=$LIBS
98583 LIBS="-lsysfs $LIBS"
98584 cat >conftest.$ac_ext <<_ACEOF
98585 /* confdefs.h. */
98586 _ACEOF
98587 cat confdefs.h >>conftest.$ac_ext
98588 cat >>conftest.$ac_ext <<_ACEOF
98589 /* end confdefs.h. */
98591 /* Override any GCC internal prototype to avoid an error.
98592 Use char because int might match the return type of a GCC
98593 builtin and then its argument prototype would still apply. */
98594 #ifdef __cplusplus
98595 extern "C"
98596 #endif
98597 char sysfs_open_class ();
98599 main ()
98601 return sysfs_open_class ();
98603 return 0;
98605 _ACEOF
98606 rm -f conftest.$ac_objext conftest$ac_exeext
98607 if { (ac_try="$ac_link"
98608 case "(($ac_try" in
98609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98610 *) ac_try_echo=$ac_try;;
98611 esac
98612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
98613 (eval "$ac_link") 2>conftest.er1
98614 ac_status=$?
98615 grep -v '^ *+' conftest.er1 >conftest.err
98616 rm -f conftest.er1
98617 cat conftest.err >&5
98618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98619 (exit $ac_status); } && {
98620 test -z "$ac_c_werror_flag" ||
98621 test ! -s conftest.err
98622 } && test -s conftest$ac_exeext &&
98623 $as_test_x conftest$ac_exeext; then
98624 ac_cv_lib_sysfs_sysfs_open_class=yes
98625 else
98626 echo "$as_me: failed program was:" >&5
98627 sed 's/^/| /' conftest.$ac_ext >&5
98629 ac_cv_lib_sysfs_sysfs_open_class=no
98632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98633 conftest$ac_exeext conftest.$ac_ext
98634 LIBS=$ac_check_lib_save_LIBS
98636 { echo "$as_me:$LINENO: result: $ac_cv_lib_sysfs_sysfs_open_class" >&5
98637 echo "${ECHO_T}$ac_cv_lib_sysfs_sysfs_open_class" >&6; }
98638 if test $ac_cv_lib_sysfs_sysfs_open_class = yes; then
98639 ompi_check_openib_sysfs=yes
98640 LIBS="$LIBS -lsysfs"
98641 btl_openib_LIBS="-lsysfs"
98642 else
98643 ompi_check_openib_sysfs=no
98647 if test "$ompi_check_openib_sysfs" != "yes"; then
98648 if test ! -z "$with_openib" -a "$with_openib" != "no"; then
98649 { { echo "$as_me:$LINENO: error: OpenIB support requested but required sysfs not found. Aborting" >&5
98650 echo "$as_me: error: OpenIB support requested but required sysfs not found. Aborting" >&2;}
98651 { (exit 1); exit 1; }; }
98657 if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
98658 { echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
98659 echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6; }
98660 if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
98661 echo $ECHO_N "(cached) $ECHO_C" >&6
98663 { echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
98664 echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6; }
98665 else
98666 # Is the header compilable?
98667 { echo "$as_me:$LINENO: checking sysfs/libsysfs.h usability" >&5
98668 echo $ECHO_N "checking sysfs/libsysfs.h usability... $ECHO_C" >&6; }
98669 cat >conftest.$ac_ext <<_ACEOF
98670 /* confdefs.h. */
98671 _ACEOF
98672 cat confdefs.h >>conftest.$ac_ext
98673 cat >>conftest.$ac_ext <<_ACEOF
98674 /* end confdefs.h. */
98675 $ac_includes_default
98676 #include <sysfs/libsysfs.h>
98677 _ACEOF
98678 rm -f conftest.$ac_objext
98679 if { (ac_try="$ac_compile"
98680 case "(($ac_try" in
98681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98682 *) ac_try_echo=$ac_try;;
98683 esac
98684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
98685 (eval "$ac_compile") 2>conftest.er1
98686 ac_status=$?
98687 grep -v '^ *+' conftest.er1 >conftest.err
98688 rm -f conftest.er1
98689 cat conftest.err >&5
98690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98691 (exit $ac_status); } && {
98692 test -z "$ac_c_werror_flag" ||
98693 test ! -s conftest.err
98694 } && test -s conftest.$ac_objext; then
98695 ac_header_compiler=yes
98696 else
98697 echo "$as_me: failed program was:" >&5
98698 sed 's/^/| /' conftest.$ac_ext >&5
98700 ac_header_compiler=no
98703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
98704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
98705 echo "${ECHO_T}$ac_header_compiler" >&6; }
98707 # Is the header present?
98708 { echo "$as_me:$LINENO: checking sysfs/libsysfs.h presence" >&5
98709 echo $ECHO_N "checking sysfs/libsysfs.h presence... $ECHO_C" >&6; }
98710 cat >conftest.$ac_ext <<_ACEOF
98711 /* confdefs.h. */
98712 _ACEOF
98713 cat confdefs.h >>conftest.$ac_ext
98714 cat >>conftest.$ac_ext <<_ACEOF
98715 /* end confdefs.h. */
98716 #include <sysfs/libsysfs.h>
98717 _ACEOF
98718 if { (ac_try="$ac_cpp conftest.$ac_ext"
98719 case "(($ac_try" in
98720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98721 *) ac_try_echo=$ac_try;;
98722 esac
98723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
98724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
98725 ac_status=$?
98726 grep -v '^ *+' conftest.er1 >conftest.err
98727 rm -f conftest.er1
98728 cat conftest.err >&5
98729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98730 (exit $ac_status); } >/dev/null && {
98731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
98732 test ! -s conftest.err
98733 }; then
98734 ac_header_preproc=yes
98735 else
98736 echo "$as_me: failed program was:" >&5
98737 sed 's/^/| /' conftest.$ac_ext >&5
98739 ac_header_preproc=no
98742 rm -f conftest.err conftest.$ac_ext
98743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
98744 echo "${ECHO_T}$ac_header_preproc" >&6; }
98746 # So? What about this header?
98747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
98748 yes:no: )
98749 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
98750 echo "$as_me: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
98751 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&5
98752 echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&2;}
98753 ac_header_preproc=yes
98755 no:yes:* )
98756 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&5
98757 echo "$as_me: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&2;}
98758 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: check for missing prerequisite headers?" >&5
98759 echo "$as_me: WARNING: sysfs/libsysfs.h: check for missing prerequisite headers?" >&2;}
98760 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&5
98761 echo "$as_me: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&2;}
98762 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: section \"Present But Cannot Be Compiled\"" >&5
98763 echo "$as_me: WARNING: sysfs/libsysfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
98764 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&5
98765 echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&2;}
98766 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&5
98767 echo "$as_me: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&2;}
98768 ( cat <<\_ASBOX
98769 ## ------------------------------------------------------ ##
98770 ## Report this to http://www.open-mpi.org/community/help/ ##
98771 ## ------------------------------------------------------ ##
98772 _ASBOX
98773 ) | sed "s/^/$as_me: WARNING: /" >&2
98775 esac
98776 { echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
98777 echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6; }
98778 if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
98779 echo $ECHO_N "(cached) $ECHO_C" >&6
98780 else
98781 ac_cv_header_sysfs_libsysfs_h=$ac_header_preproc
98783 { echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
98784 echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6; }
98787 if test $ac_cv_header_sysfs_libsysfs_h = yes; then
98788 ompi_check_openib_sysfs_h=yes
98789 else
98790 ompi_check_openib_sysfs_h=no
98795 if test "$ompi_check_openib_sysfs_h" != "yes"; then
98796 if test ! -z "$with_openib" -a "$with_openib" != "no"; then
98797 { { echo "$as_me:$LINENO: error: OpenIB support requested but required sysfs/libsysfs.h not found. Aborting" >&5
98798 echo "$as_me: error: OpenIB support requested but required sysfs/libsysfs.h not found. Aborting" >&2;}
98799 { (exit 1); exit 1; }; }
98805 if test "$ompi_check_openib_libdir" = ""; then
98806 ompi_check_openib_my_libdir=$ompi_check_openib_dir
98807 else
98808 ompi_check_openib_my_libdir=$ompi_check_openib_libdir
98812 if test -d "$ompi_check_openib_my_libdir/lib64/infiniband"; then
98813 ompi_check_openib_libflag=" -L$ompi_check_openib_my_libdir/lib64/infiniband"
98814 LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib64/infiniband"
98815 else
98816 if test -d "$ompi_check_openib_my_libdir/lib/infiniband"; then
98817 ompi_check_openib_libflag=" -L$ompi_check_openib_my_libdir/lib/infiniband"
98818 LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib/infiniband"
98824 if test -d "$ompi_check_openib_my_libdir/lib64"; then
98825 ompi_check_openib_libflag="$ompi_check_openib_libflag -L$ompi_check_openib_my_libdir/lib64"
98826 LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib64"
98827 else
98828 if test -d "$ompi_check_openib_my_libdir/lib"; then
98829 ompi_check_openib_libflag="$ompi_check_openib_libflag -L$ompi_check_openib_my_libdir/lib"
98830 LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib"
98836 { echo "$as_me:$LINENO: checking for cm_timeout in -lcm" >&5
98837 echo $ECHO_N "checking for cm_timeout in -lcm... $ECHO_C" >&6; }
98838 if test "${ac_cv_lib_cm_cm_timeout+set}" = set; then
98839 echo $ECHO_N "(cached) $ECHO_C" >&6
98840 else
98841 ac_check_lib_save_LIBS=$LIBS
98842 LIBS="-lcm $LIBS"
98843 cat >conftest.$ac_ext <<_ACEOF
98844 /* confdefs.h. */
98845 _ACEOF
98846 cat confdefs.h >>conftest.$ac_ext
98847 cat >>conftest.$ac_ext <<_ACEOF
98848 /* end confdefs.h. */
98850 /* Override any GCC internal prototype to avoid an error.
98851 Use char because int might match the return type of a GCC
98852 builtin and then its argument prototype would still apply. */
98853 #ifdef __cplusplus
98854 extern "C"
98855 #endif
98856 char cm_timeout ();
98858 main ()
98860 return cm_timeout ();
98862 return 0;
98864 _ACEOF
98865 rm -f conftest.$ac_objext conftest$ac_exeext
98866 if { (ac_try="$ac_link"
98867 case "(($ac_try" in
98868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98869 *) ac_try_echo=$ac_try;;
98870 esac
98871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
98872 (eval "$ac_link") 2>conftest.er1
98873 ac_status=$?
98874 grep -v '^ *+' conftest.er1 >conftest.err
98875 rm -f conftest.er1
98876 cat conftest.err >&5
98877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98878 (exit $ac_status); } && {
98879 test -z "$ac_c_werror_flag" ||
98880 test ! -s conftest.err
98881 } && test -s conftest$ac_exeext &&
98882 $as_test_x conftest$ac_exeext; then
98883 ac_cv_lib_cm_cm_timeout=yes
98884 else
98885 echo "$as_me: failed program was:" >&5
98886 sed 's/^/| /' conftest.$ac_ext >&5
98888 ac_cv_lib_cm_cm_timeout=no
98891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98892 conftest$ac_exeext conftest.$ac_ext
98893 LIBS=$ac_check_lib_save_LIBS
98895 { echo "$as_me:$LINENO: result: $ac_cv_lib_cm_cm_timeout" >&5
98896 echo "${ECHO_T}$ac_cv_lib_cm_cm_timeout" >&6; }
98897 if test $ac_cv_lib_cm_cm_timeout = yes; then
98898 ompi_check_openib_libdeps="-lcm"
98899 ompi_check_openib_libdeps=""
98904 ompi_check_package_btl_openib_save_CPPFLAGS="$CPPFLAGS"
98905 ompi_check_package_btl_openib_save_LDFLAGS="$LDFLAGS"
98906 ompi_check_package_btl_openib_save_LIBS="$LIBS"
98908 ompi_check_package_btl_openib_orig_CPPFLAGS="$btl_openib_CPPFLAGS"
98909 ompi_check_package_btl_openib_orig_LDFLAGS="$btl_openib_LDFLAGS"
98910 ompi_check_package_btl_openib_orig_LIBS="$btl_openib_LIBS"
98913 # This is stolen from autoconf to peek under the covers to get the
98914 # cache variable for the library check. one should not copy this
98915 # code into other places unless you want much pain and suffering
98918 # so this sucks, but there's no way to get through the progression
98919 # of header includes without killing off the cache variable and trying
98920 # again...
98921 unset ac_cv_header_infiniband_verbs_h
98923 ompi_check_package_header_happy="no"
98924 if test "$ompi_check_openib_dir" = "/usr" -o "$ompi_check_openib_dir" = "/usr/local"; then
98925 # try as is...
98926 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
98927 echo "${ECHO_T}looking for header without includes" >&6; }
98928 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
98929 { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
98930 echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; }
98931 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
98932 echo $ECHO_N "(cached) $ECHO_C" >&6
98934 { echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
98935 echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; }
98936 else
98937 # Is the header compilable?
98938 { echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
98939 echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6; }
98940 cat >conftest.$ac_ext <<_ACEOF
98941 /* confdefs.h. */
98942 _ACEOF
98943 cat confdefs.h >>conftest.$ac_ext
98944 cat >>conftest.$ac_ext <<_ACEOF
98945 /* end confdefs.h. */
98946 $ac_includes_default
98947 #include <infiniband/verbs.h>
98948 _ACEOF
98949 rm -f conftest.$ac_objext
98950 if { (ac_try="$ac_compile"
98951 case "(($ac_try" in
98952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98953 *) ac_try_echo=$ac_try;;
98954 esac
98955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
98956 (eval "$ac_compile") 2>conftest.er1
98957 ac_status=$?
98958 grep -v '^ *+' conftest.er1 >conftest.err
98959 rm -f conftest.er1
98960 cat conftest.err >&5
98961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98962 (exit $ac_status); } && {
98963 test -z "$ac_c_werror_flag" ||
98964 test ! -s conftest.err
98965 } && test -s conftest.$ac_objext; then
98966 ac_header_compiler=yes
98967 else
98968 echo "$as_me: failed program was:" >&5
98969 sed 's/^/| /' conftest.$ac_ext >&5
98971 ac_header_compiler=no
98974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
98975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
98976 echo "${ECHO_T}$ac_header_compiler" >&6; }
98978 # Is the header present?
98979 { echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
98980 echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6; }
98981 cat >conftest.$ac_ext <<_ACEOF
98982 /* confdefs.h. */
98983 _ACEOF
98984 cat confdefs.h >>conftest.$ac_ext
98985 cat >>conftest.$ac_ext <<_ACEOF
98986 /* end confdefs.h. */
98987 #include <infiniband/verbs.h>
98988 _ACEOF
98989 if { (ac_try="$ac_cpp conftest.$ac_ext"
98990 case "(($ac_try" in
98991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98992 *) ac_try_echo=$ac_try;;
98993 esac
98994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
98995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
98996 ac_status=$?
98997 grep -v '^ *+' conftest.er1 >conftest.err
98998 rm -f conftest.er1
98999 cat conftest.err >&5
99000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
99001 (exit $ac_status); } >/dev/null && {
99002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
99003 test ! -s conftest.err
99004 }; then
99005 ac_header_preproc=yes
99006 else
99007 echo "$as_me: failed program was:" >&5
99008 sed 's/^/| /' conftest.$ac_ext >&5
99010 ac_header_preproc=no
99013 rm -f conftest.err conftest.$ac_ext
99014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
99015 echo "${ECHO_T}$ac_header_preproc" >&6; }
99017 # So? What about this header?
99018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
99019 yes:no: )
99020 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
99021 echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
99022 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
99023 echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
99024 ac_header_preproc=yes
99026 no:yes:* )
99027 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
99028 echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
99029 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5
99030 echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;}
99031 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
99032 echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
99033 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5
99034 echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
99035 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
99036 echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
99037 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
99038 echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;}
99039 ( cat <<\_ASBOX
99040 ## ------------------------------------------------------ ##
99041 ## Report this to http://www.open-mpi.org/community/help/ ##
99042 ## ------------------------------------------------------ ##
99043 _ASBOX
99044 ) | sed "s/^/$as_me: WARNING: /" >&2
99046 esac
99047 { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
99048 echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; }
99049 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
99050 echo $ECHO_N "(cached) $ECHO_C" >&6
99051 else
99052 ac_cv_header_infiniband_verbs_h=$ac_header_preproc
99054 { echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
99055 echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; }
99058 if test $ac_cv_header_infiniband_verbs_h = yes; then
99059 ompi_check_package_header_happy="yes"
99060 else
99061 ompi_check_package_header_happy="no"
99065 if test "$ompi_check_package_header_happy" = "no"; then
99066 # no go on the as is - reset the cache and try again
99067 unset ac_cv_header_infiniband_verbs_h
99073 if test "$ompi_check_package_header_happy" = "no"; then
99074 if test "$ompi_check_openib_dir" != ""; then
99075 btl_openib_CPPFLAGS="$btl_openib_CPPFLAGS -I$ompi_check_openib_dir/include"
99076 CPPFLAGS="$CPPFLAGS -I$ompi_check_openib_dir/include"
99079 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
99080 { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
99081 echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; }
99082 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
99083 echo $ECHO_N "(cached) $ECHO_C" >&6
99085 { echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
99086 echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; }
99087 else
99088 # Is the header compilable?
99089 { echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
99090 echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6; }
99091 cat >conftest.$ac_ext <<_ACEOF
99092 /* confdefs.h. */
99093 _ACEOF
99094 cat confdefs.h >>conftest.$ac_ext
99095 cat >>conftest.$ac_ext <<_ACEOF
99096 /* end confdefs.h. */
99097 $ac_includes_default
99098 #include <infiniband/verbs.h>
99099 _ACEOF
99100 rm -f conftest.$ac_objext
99101 if { (ac_try="$ac_compile"
99102 case "(($ac_try" in
99103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99104 *) ac_try_echo=$ac_try;;
99105 esac
99106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
99107 (eval "$ac_compile") 2>conftest.er1
99108 ac_status=$?
99109 grep -v '^ *+' conftest.er1 >conftest.err
99110 rm -f conftest.er1
99111 cat conftest.err >&5
99112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
99113 (exit $ac_status); } && {
99114 test -z "$ac_c_werror_flag" ||
99115 test ! -s conftest.err
99116 } && test -s conftest.$ac_objext; then
99117 ac_header_compiler=yes
99118 else
99119 echo "$as_me: failed program was:" >&5
99120 sed 's/^/| /' conftest.$ac_ext >&5
99122 ac_header_compiler=no
99125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
99126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
99127 echo "${ECHO_T}$ac_header_compiler" >&6; }
99129 # Is the header present?
99130 { echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
99131 echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6; }
99132 cat >conftest.$ac_ext <<_ACEOF
99133 /* confdefs.h. */
99134 _ACEOF
99135 cat confdefs.h >>conftest.$ac_ext
99136 cat >>conftest.$ac_ext <<_ACEOF
99137 /* end confdefs.h. */
99138 #include <infiniband/verbs.h>
99139 _ACEOF
99140 if { (ac_try="$ac_cpp conftest.$ac_ext"
99141 case "(($ac_try" in
99142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99143 *) ac_try_echo=$ac_try;;
99144 esac
99145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
99146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
99147 ac_status=$?
99148 grep -v '^ *+' conftest.er1 >conftest.err
99149 rm -f conftest.er1
99150 cat conftest.err >&5
99151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
99152 (exit $ac_status); } >/dev/null && {
99153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
99154 test ! -s conftest.err
99155 }; then
99156 ac_header_preproc=yes
99157 else
99158 echo "$as_me: failed program was:" >&5
99159 sed 's/^/| /' conftest.$ac_ext >&5
99161 ac_header_preproc=no
99164 rm -f conftest.err conftest.$ac_ext
99165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
99166 echo "${ECHO_T}$ac_header_preproc" >&6; }
99168 # So? What about this header?
99169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
99170 yes:no: )
99171 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
99172 echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
99173 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
99174 echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
99175 ac_header_preproc=yes
99177 no:yes:* )
99178 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
99179 echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
99180 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5
99181 echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;}
99182 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
99183 echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
99184 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5
99185 echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
99186 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
99187 echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
99188 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
99189 echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;}
99190 ( cat <<\_ASBOX
99191 ## ------------------------------------------------------ ##
99192 ## Report this to http://www.open-mpi.org/community/help/ ##
99193 ## ------------------------------------------------------ ##
99194 _ASBOX
99195 ) | sed "s/^/$as_me: WARNING: /" >&2
99197 esac
99198 { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
99199 echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; }
99200 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
99201 echo $ECHO_N "(cached) $ECHO_C" >&6
99202 else
99203 ac_cv_header_infiniband_verbs_h=$ac_header_preproc
99205 { echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
99206 echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; }
99209 if test $ac_cv_header_infiniband_verbs_h = yes; then
99211 # This is stolen from autoconf to peek under the covers to get the
99212 # cache variable for the library check. one should not copy this
99213 # code into other places unless you want much pain and suffering
99215 # see comment above
99216 unset ac_cv_lib_ibverbs_ibv_open_device
99217 ompi_check_package_lib_happy="no"
99218 if test "$ompi_check_openib_libdir" != ""; then
99219 # libdir was specified - search only there
99220 btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_openib_libdir"
99221 LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
99222 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
99223 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
99224 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
99225 echo $ECHO_N "(cached) $ECHO_C" >&6
99226 else
99227 ac_check_lib_save_LIBS=$LIBS
99228 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
99229 cat >conftest.$ac_ext <<_ACEOF
99230 /* confdefs.h. */
99231 _ACEOF
99232 cat confdefs.h >>conftest.$ac_ext
99233 cat >>conftest.$ac_ext <<_ACEOF
99234 /* end confdefs.h. */
99236 /* Override any GCC internal prototype to avoid an error.
99237 Use char because int might match the return type of a GCC
99238 builtin and then its argument prototype would still apply. */
99239 #ifdef __cplusplus
99240 extern "C"
99241 #endif
99242 char ibv_open_device ();
99244 main ()
99246 return ibv_open_device ();
99248 return 0;
99250 _ACEOF
99251 rm -f conftest.$ac_objext conftest$ac_exeext
99252 if { (ac_try="$ac_link"
99253 case "(($ac_try" in
99254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99255 *) ac_try_echo=$ac_try;;
99256 esac
99257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
99258 (eval "$ac_link") 2>conftest.er1
99259 ac_status=$?
99260 grep -v '^ *+' conftest.er1 >conftest.err
99261 rm -f conftest.er1
99262 cat conftest.err >&5
99263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
99264 (exit $ac_status); } && {
99265 test -z "$ac_c_werror_flag" ||
99266 test ! -s conftest.err
99267 } && test -s conftest$ac_exeext &&
99268 $as_test_x conftest$ac_exeext; then
99269 ac_cv_lib_ibverbs_ibv_open_device=yes
99270 else
99271 echo "$as_me: failed program was:" >&5
99272 sed 's/^/| /' conftest.$ac_ext >&5
99274 ac_cv_lib_ibverbs_ibv_open_device=no
99277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99278 conftest$ac_exeext conftest.$ac_ext
99279 LIBS=$ac_check_lib_save_LIBS
99281 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
99282 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
99283 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
99284 ompi_check_package_lib_happy="yes"
99285 else
99286 ompi_check_package_lib_happy="no"
99289 if test "$ompi_check_package_lib_happy" = "no"; then
99290 LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
99291 btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
99292 unset ac_cv_lib_ibverbs_ibv_open_device
99295 else
99296 # libdir was not specified - go through search path
99297 ompi_check_package_libdir="$ompi_check_openib_dir"
99298 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
99299 # try as is...
99300 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
99301 echo "${ECHO_T}looking for library without search path" >&6; }
99302 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
99303 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
99304 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
99305 echo $ECHO_N "(cached) $ECHO_C" >&6
99306 else
99307 ac_check_lib_save_LIBS=$LIBS
99308 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
99309 cat >conftest.$ac_ext <<_ACEOF
99310 /* confdefs.h. */
99311 _ACEOF
99312 cat confdefs.h >>conftest.$ac_ext
99313 cat >>conftest.$ac_ext <<_ACEOF
99314 /* end confdefs.h. */
99316 /* Override any GCC internal prototype to avoid an error.
99317 Use char because int might match the return type of a GCC
99318 builtin and then its argument prototype would still apply. */
99319 #ifdef __cplusplus
99320 extern "C"
99321 #endif
99322 char ibv_open_device ();
99324 main ()
99326 return ibv_open_device ();
99328 return 0;
99330 _ACEOF
99331 rm -f conftest.$ac_objext conftest$ac_exeext
99332 if { (ac_try="$ac_link"
99333 case "(($ac_try" in
99334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99335 *) ac_try_echo=$ac_try;;
99336 esac
99337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
99338 (eval "$ac_link") 2>conftest.er1
99339 ac_status=$?
99340 grep -v '^ *+' conftest.er1 >conftest.err
99341 rm -f conftest.er1
99342 cat conftest.err >&5
99343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
99344 (exit $ac_status); } && {
99345 test -z "$ac_c_werror_flag" ||
99346 test ! -s conftest.err
99347 } && test -s conftest$ac_exeext &&
99348 $as_test_x conftest$ac_exeext; then
99349 ac_cv_lib_ibverbs_ibv_open_device=yes
99350 else
99351 echo "$as_me: failed program was:" >&5
99352 sed 's/^/| /' conftest.$ac_ext >&5
99354 ac_cv_lib_ibverbs_ibv_open_device=no
99357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99358 conftest$ac_exeext conftest.$ac_ext
99359 LIBS=$ac_check_lib_save_LIBS
99361 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
99362 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
99363 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
99364 ompi_check_package_lib_happy="yes"
99365 else
99366 ompi_check_package_lib_happy="no"
99369 if test "$ompi_check_package_lib_happy" = "no"; then
99370 # no go on the as is.. see what happens later...
99371 LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
99372 btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
99373 unset ac_cv_lib_ibverbs_ibv_open_device
99379 if test "$ompi_check_package_lib_happy" = "no"; then
99380 if test "$ompi_check_package_libdir" != ""; then
99381 btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib"
99382 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
99383 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
99384 echo "${ECHO_T}looking for library in lib" >&6; }
99385 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
99386 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
99387 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
99388 echo $ECHO_N "(cached) $ECHO_C" >&6
99389 else
99390 ac_check_lib_save_LIBS=$LIBS
99391 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
99392 cat >conftest.$ac_ext <<_ACEOF
99393 /* confdefs.h. */
99394 _ACEOF
99395 cat confdefs.h >>conftest.$ac_ext
99396 cat >>conftest.$ac_ext <<_ACEOF
99397 /* end confdefs.h. */
99399 /* Override any GCC internal prototype to avoid an error.
99400 Use char because int might match the return type of a GCC
99401 builtin and then its argument prototype would still apply. */
99402 #ifdef __cplusplus
99403 extern "C"
99404 #endif
99405 char ibv_open_device ();
99407 main ()
99409 return ibv_open_device ();
99411 return 0;
99413 _ACEOF
99414 rm -f conftest.$ac_objext conftest$ac_exeext
99415 if { (ac_try="$ac_link"
99416 case "(($ac_try" in
99417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99418 *) ac_try_echo=$ac_try;;
99419 esac
99420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
99421 (eval "$ac_link") 2>conftest.er1
99422 ac_status=$?
99423 grep -v '^ *+' conftest.er1 >conftest.err
99424 rm -f conftest.er1
99425 cat conftest.err >&5
99426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
99427 (exit $ac_status); } && {
99428 test -z "$ac_c_werror_flag" ||
99429 test ! -s conftest.err
99430 } && test -s conftest$ac_exeext &&
99431 $as_test_x conftest$ac_exeext; then
99432 ac_cv_lib_ibverbs_ibv_open_device=yes
99433 else
99434 echo "$as_me: failed program was:" >&5
99435 sed 's/^/| /' conftest.$ac_ext >&5
99437 ac_cv_lib_ibverbs_ibv_open_device=no
99440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99441 conftest$ac_exeext conftest.$ac_ext
99442 LIBS=$ac_check_lib_save_LIBS
99444 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
99445 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
99446 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
99447 ompi_check_package_lib_happy="yes"
99448 else
99449 ompi_check_package_lib_happy="no"
99452 if test "$ompi_check_package_lib_happy" = "no"; then
99453 # no go on the as is.. see what happens later...
99454 LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
99455 btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
99456 unset ac_cv_lib_ibverbs_ibv_open_device
99464 if test "$ompi_check_package_lib_happy" = "no"; then
99465 if test "$ompi_check_package_libdir" != ""; then
99466 btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib64"
99467 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
99468 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
99469 echo "${ECHO_T}looking for library in lib64" >&6; }
99470 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
99471 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
99472 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
99473 echo $ECHO_N "(cached) $ECHO_C" >&6
99474 else
99475 ac_check_lib_save_LIBS=$LIBS
99476 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
99477 cat >conftest.$ac_ext <<_ACEOF
99478 /* confdefs.h. */
99479 _ACEOF
99480 cat confdefs.h >>conftest.$ac_ext
99481 cat >>conftest.$ac_ext <<_ACEOF
99482 /* end confdefs.h. */
99484 /* Override any GCC internal prototype to avoid an error.
99485 Use char because int might match the return type of a GCC
99486 builtin and then its argument prototype would still apply. */
99487 #ifdef __cplusplus
99488 extern "C"
99489 #endif
99490 char ibv_open_device ();
99492 main ()
99494 return ibv_open_device ();
99496 return 0;
99498 _ACEOF
99499 rm -f conftest.$ac_objext conftest$ac_exeext
99500 if { (ac_try="$ac_link"
99501 case "(($ac_try" in
99502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99503 *) ac_try_echo=$ac_try;;
99504 esac
99505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
99506 (eval "$ac_link") 2>conftest.er1
99507 ac_status=$?
99508 grep -v '^ *+' conftest.er1 >conftest.err
99509 rm -f conftest.er1
99510 cat conftest.err >&5
99511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
99512 (exit $ac_status); } && {
99513 test -z "$ac_c_werror_flag" ||
99514 test ! -s conftest.err
99515 } && test -s conftest$ac_exeext &&
99516 $as_test_x conftest$ac_exeext; then
99517 ac_cv_lib_ibverbs_ibv_open_device=yes
99518 else
99519 echo "$as_me: failed program was:" >&5
99520 sed 's/^/| /' conftest.$ac_ext >&5
99522 ac_cv_lib_ibverbs_ibv_open_device=no
99525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99526 conftest$ac_exeext conftest.$ac_ext
99527 LIBS=$ac_check_lib_save_LIBS
99529 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
99530 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
99531 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
99532 ompi_check_package_lib_happy="yes"
99533 else
99534 ompi_check_package_lib_happy="no"
99537 if test "$ompi_check_package_lib_happy" = "no"; then
99538 # no go on the as is.. see what happens later...
99539 LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
99540 btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
99541 unset ac_cv_lib_ibverbs_ibv_open_device
99551 if test "$ompi_check_package_lib_happy" = "yes"; then
99552 ompi_check_package_happy="yes"
99553 else
99554 ompi_check_package_happy="no"
99559 else
99560 ompi_check_package_happy="no"
99564 else
99566 # This is stolen from autoconf to peek under the covers to get the
99567 # cache variable for the library check. one should not copy this
99568 # code into other places unless you want much pain and suffering
99570 # see comment above
99571 unset ac_cv_lib_ibverbs_ibv_open_device
99572 ompi_check_package_lib_happy="no"
99573 if test "$ompi_check_openib_libdir" != ""; then
99574 # libdir was specified - search only there
99575 btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_openib_libdir"
99576 LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
99577 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
99578 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
99579 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
99580 echo $ECHO_N "(cached) $ECHO_C" >&6
99581 else
99582 ac_check_lib_save_LIBS=$LIBS
99583 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
99584 cat >conftest.$ac_ext <<_ACEOF
99585 /* confdefs.h. */
99586 _ACEOF
99587 cat confdefs.h >>conftest.$ac_ext
99588 cat >>conftest.$ac_ext <<_ACEOF
99589 /* end confdefs.h. */
99591 /* Override any GCC internal prototype to avoid an error.
99592 Use char because int might match the return type of a GCC
99593 builtin and then its argument prototype would still apply. */
99594 #ifdef __cplusplus
99595 extern "C"
99596 #endif
99597 char ibv_open_device ();
99599 main ()
99601 return ibv_open_device ();
99603 return 0;
99605 _ACEOF
99606 rm -f conftest.$ac_objext conftest$ac_exeext
99607 if { (ac_try="$ac_link"
99608 case "(($ac_try" in
99609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99610 *) ac_try_echo=$ac_try;;
99611 esac
99612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
99613 (eval "$ac_link") 2>conftest.er1
99614 ac_status=$?
99615 grep -v '^ *+' conftest.er1 >conftest.err
99616 rm -f conftest.er1
99617 cat conftest.err >&5
99618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
99619 (exit $ac_status); } && {
99620 test -z "$ac_c_werror_flag" ||
99621 test ! -s conftest.err
99622 } && test -s conftest$ac_exeext &&
99623 $as_test_x conftest$ac_exeext; then
99624 ac_cv_lib_ibverbs_ibv_open_device=yes
99625 else
99626 echo "$as_me: failed program was:" >&5
99627 sed 's/^/| /' conftest.$ac_ext >&5
99629 ac_cv_lib_ibverbs_ibv_open_device=no
99632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99633 conftest$ac_exeext conftest.$ac_ext
99634 LIBS=$ac_check_lib_save_LIBS
99636 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
99637 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
99638 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
99639 ompi_check_package_lib_happy="yes"
99640 else
99641 ompi_check_package_lib_happy="no"
99644 if test "$ompi_check_package_lib_happy" = "no"; then
99645 LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
99646 btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
99647 unset ac_cv_lib_ibverbs_ibv_open_device
99650 else
99651 # libdir was not specified - go through search path
99652 ompi_check_package_libdir="$ompi_check_openib_dir"
99653 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
99654 # try as is...
99655 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
99656 echo "${ECHO_T}looking for library without search path" >&6; }
99657 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
99658 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
99659 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
99660 echo $ECHO_N "(cached) $ECHO_C" >&6
99661 else
99662 ac_check_lib_save_LIBS=$LIBS
99663 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
99664 cat >conftest.$ac_ext <<_ACEOF
99665 /* confdefs.h. */
99666 _ACEOF
99667 cat confdefs.h >>conftest.$ac_ext
99668 cat >>conftest.$ac_ext <<_ACEOF
99669 /* end confdefs.h. */
99671 /* Override any GCC internal prototype to avoid an error.
99672 Use char because int might match the return type of a GCC
99673 builtin and then its argument prototype would still apply. */
99674 #ifdef __cplusplus
99675 extern "C"
99676 #endif
99677 char ibv_open_device ();
99679 main ()
99681 return ibv_open_device ();
99683 return 0;
99685 _ACEOF
99686 rm -f conftest.$ac_objext conftest$ac_exeext
99687 if { (ac_try="$ac_link"
99688 case "(($ac_try" in
99689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99690 *) ac_try_echo=$ac_try;;
99691 esac
99692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
99693 (eval "$ac_link") 2>conftest.er1
99694 ac_status=$?
99695 grep -v '^ *+' conftest.er1 >conftest.err
99696 rm -f conftest.er1
99697 cat conftest.err >&5
99698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
99699 (exit $ac_status); } && {
99700 test -z "$ac_c_werror_flag" ||
99701 test ! -s conftest.err
99702 } && test -s conftest$ac_exeext &&
99703 $as_test_x conftest$ac_exeext; then
99704 ac_cv_lib_ibverbs_ibv_open_device=yes
99705 else
99706 echo "$as_me: failed program was:" >&5
99707 sed 's/^/| /' conftest.$ac_ext >&5
99709 ac_cv_lib_ibverbs_ibv_open_device=no
99712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99713 conftest$ac_exeext conftest.$ac_ext
99714 LIBS=$ac_check_lib_save_LIBS
99716 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
99717 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
99718 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
99719 ompi_check_package_lib_happy="yes"
99720 else
99721 ompi_check_package_lib_happy="no"
99724 if test "$ompi_check_package_lib_happy" = "no"; then
99725 # no go on the as is.. see what happens later...
99726 LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
99727 btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
99728 unset ac_cv_lib_ibverbs_ibv_open_device
99734 if test "$ompi_check_package_lib_happy" = "no"; then
99735 if test "$ompi_check_package_libdir" != ""; then
99736 btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib"
99737 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
99738 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
99739 echo "${ECHO_T}looking for library in lib" >&6; }
99740 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
99741 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
99742 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
99743 echo $ECHO_N "(cached) $ECHO_C" >&6
99744 else
99745 ac_check_lib_save_LIBS=$LIBS
99746 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
99747 cat >conftest.$ac_ext <<_ACEOF
99748 /* confdefs.h. */
99749 _ACEOF
99750 cat confdefs.h >>conftest.$ac_ext
99751 cat >>conftest.$ac_ext <<_ACEOF
99752 /* end confdefs.h. */
99754 /* Override any GCC internal prototype to avoid an error.
99755 Use char because int might match the return type of a GCC
99756 builtin and then its argument prototype would still apply. */
99757 #ifdef __cplusplus
99758 extern "C"
99759 #endif
99760 char ibv_open_device ();
99762 main ()
99764 return ibv_open_device ();
99766 return 0;
99768 _ACEOF
99769 rm -f conftest.$ac_objext conftest$ac_exeext
99770 if { (ac_try="$ac_link"
99771 case "(($ac_try" in
99772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99773 *) ac_try_echo=$ac_try;;
99774 esac
99775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
99776 (eval "$ac_link") 2>conftest.er1
99777 ac_status=$?
99778 grep -v '^ *+' conftest.er1 >conftest.err
99779 rm -f conftest.er1
99780 cat conftest.err >&5
99781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
99782 (exit $ac_status); } && {
99783 test -z "$ac_c_werror_flag" ||
99784 test ! -s conftest.err
99785 } && test -s conftest$ac_exeext &&
99786 $as_test_x conftest$ac_exeext; then
99787 ac_cv_lib_ibverbs_ibv_open_device=yes
99788 else
99789 echo "$as_me: failed program was:" >&5
99790 sed 's/^/| /' conftest.$ac_ext >&5
99792 ac_cv_lib_ibverbs_ibv_open_device=no
99795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99796 conftest$ac_exeext conftest.$ac_ext
99797 LIBS=$ac_check_lib_save_LIBS
99799 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
99800 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
99801 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
99802 ompi_check_package_lib_happy="yes"
99803 else
99804 ompi_check_package_lib_happy="no"
99807 if test "$ompi_check_package_lib_happy" = "no"; then
99808 # no go on the as is.. see what happens later...
99809 LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
99810 btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
99811 unset ac_cv_lib_ibverbs_ibv_open_device
99819 if test "$ompi_check_package_lib_happy" = "no"; then
99820 if test "$ompi_check_package_libdir" != ""; then
99821 btl_openib_LDFLAGS="$btl_openib_LDFLAGS -L$ompi_check_package_libdir/lib64"
99822 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
99823 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
99824 echo "${ECHO_T}looking for library in lib64" >&6; }
99825 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
99826 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
99827 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
99828 echo $ECHO_N "(cached) $ECHO_C" >&6
99829 else
99830 ac_check_lib_save_LIBS=$LIBS
99831 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
99832 cat >conftest.$ac_ext <<_ACEOF
99833 /* confdefs.h. */
99834 _ACEOF
99835 cat confdefs.h >>conftest.$ac_ext
99836 cat >>conftest.$ac_ext <<_ACEOF
99837 /* end confdefs.h. */
99839 /* Override any GCC internal prototype to avoid an error.
99840 Use char because int might match the return type of a GCC
99841 builtin and then its argument prototype would still apply. */
99842 #ifdef __cplusplus
99843 extern "C"
99844 #endif
99845 char ibv_open_device ();
99847 main ()
99849 return ibv_open_device ();
99851 return 0;
99853 _ACEOF
99854 rm -f conftest.$ac_objext conftest$ac_exeext
99855 if { (ac_try="$ac_link"
99856 case "(($ac_try" in
99857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99858 *) ac_try_echo=$ac_try;;
99859 esac
99860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
99861 (eval "$ac_link") 2>conftest.er1
99862 ac_status=$?
99863 grep -v '^ *+' conftest.er1 >conftest.err
99864 rm -f conftest.er1
99865 cat conftest.err >&5
99866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
99867 (exit $ac_status); } && {
99868 test -z "$ac_c_werror_flag" ||
99869 test ! -s conftest.err
99870 } && test -s conftest$ac_exeext &&
99871 $as_test_x conftest$ac_exeext; then
99872 ac_cv_lib_ibverbs_ibv_open_device=yes
99873 else
99874 echo "$as_me: failed program was:" >&5
99875 sed 's/^/| /' conftest.$ac_ext >&5
99877 ac_cv_lib_ibverbs_ibv_open_device=no
99880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99881 conftest$ac_exeext conftest.$ac_ext
99882 LIBS=$ac_check_lib_save_LIBS
99884 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
99885 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
99886 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
99887 ompi_check_package_lib_happy="yes"
99888 else
99889 ompi_check_package_lib_happy="no"
99892 if test "$ompi_check_package_lib_happy" = "no"; then
99893 # no go on the as is.. see what happens later...
99894 LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
99895 btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
99896 unset ac_cv_lib_ibverbs_ibv_open_device
99906 if test "$ompi_check_package_lib_happy" = "yes"; then
99907 ompi_check_package_happy="yes"
99908 else
99909 ompi_check_package_happy="no"
99916 unset ompi_check_package_header_happy
99918 if test "$ompi_check_package_happy" = "yes"; then
99919 ompi_check_openib_happy="yes"
99920 btl_openib_LIBS="-libverbs $ompi_check_openib_libdeps"
99921 else
99922 btl_openib_CPPFLAGS="$ompi_check_package_btl_openib_orig_CPPFLAGS"
99923 btl_openib_LDFLAGS="$ompi_check_package_btl_openib_orig_LDFLAGS"
99924 btl_openib_LIBS="$ompi_check_package_btl_openib_orig_LIBS"
99925 ompi_check_openib_happy="no"
99929 CPPFLAGS="$ompi_check_package_btl_openib_save_CPPFLAGS"
99930 LDFLAGS="$ompi_check_package_btl_openib_save_LDFLAGS"
99931 LIBS="$ompi_check_package_btl_openib_save_LIBS"
99934 # ok, now see if ibv_create_cq takes 3 arguments or 6
99935 CPPFLAGS="$CPPFLAGS $btl_openib_CPPFLAGS"
99936 LDFLAGS="$LDFLAGS $btl_openib_LDFLAGS"
99937 LIBS="$LIBS $btl_openib_LIBS"
99939 if test "$ompi_check_openib_happy" = "yes"; then
99940 { echo "$as_me:$LINENO: checking number of arguments to ibv_create_cq" >&5
99941 echo $ECHO_N "checking number of arguments to ibv_create_cq... $ECHO_C" >&6; }
99942 if test "${ompi_cv_func_ibv_create_cq_args+set}" = set; then
99943 echo $ECHO_N "(cached) $ECHO_C" >&6
99944 else
99945 cat >conftest.$ac_ext <<_ACEOF
99946 /* confdefs.h. */
99947 _ACEOF
99948 cat confdefs.h >>conftest.$ac_ext
99949 cat >>conftest.$ac_ext <<_ACEOF
99950 /* end confdefs.h. */
99951 #include <infiniband/verbs.h>
99953 main ()
99955 ibv_create_cq(NULL, 0, NULL, NULL, 0);
99957 return 0;
99959 _ACEOF
99960 rm -f conftest.$ac_objext conftest$ac_exeext
99961 if { (ac_try="$ac_link"
99962 case "(($ac_try" in
99963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99964 *) ac_try_echo=$ac_try;;
99965 esac
99966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
99967 (eval "$ac_link") 2>conftest.er1
99968 ac_status=$?
99969 grep -v '^ *+' conftest.er1 >conftest.err
99970 rm -f conftest.er1
99971 cat conftest.err >&5
99972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
99973 (exit $ac_status); } && {
99974 test -z "$ac_c_werror_flag" ||
99975 test ! -s conftest.err
99976 } && test -s conftest$ac_exeext &&
99977 $as_test_x conftest$ac_exeext; then
99978 ompi_cv_func_ibv_create_cq_args=5
99979 else
99980 echo "$as_me: failed program was:" >&5
99981 sed 's/^/| /' conftest.$ac_ext >&5
99983 cat >conftest.$ac_ext <<_ACEOF
99984 /* confdefs.h. */
99985 _ACEOF
99986 cat confdefs.h >>conftest.$ac_ext
99987 cat >>conftest.$ac_ext <<_ACEOF
99988 /* end confdefs.h. */
99989 #include <infiniband/verbs.h>
99991 main ()
99993 ibv_create_cq(NULL, 0, NULL);
99995 return 0;
99997 _ACEOF
99998 rm -f conftest.$ac_objext conftest$ac_exeext
99999 if { (ac_try="$ac_link"
100000 case "(($ac_try" in
100001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100002 *) ac_try_echo=$ac_try;;
100004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
100005 (eval "$ac_link") 2>conftest.er1
100006 ac_status=$?
100007 grep -v '^ *+' conftest.er1 >conftest.err
100008 rm -f conftest.er1
100009 cat conftest.err >&5
100010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
100011 (exit $ac_status); } && {
100012 test -z "$ac_c_werror_flag" ||
100013 test ! -s conftest.err
100014 } && test -s conftest$ac_exeext &&
100015 $as_test_x conftest$ac_exeext; then
100016 ompi_cv_func_ibv_create_cq_args=3
100018 echo "$as_me: failed program was:" >&5
100019 sed 's/^/| /' conftest.$ac_ext >&5
100021 ompi_cv_func_ibv_create_cq_args="unknown"
100024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
100025 conftest$ac_exeext conftest.$ac_ext
100028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
100029 conftest$ac_exeext conftest.$ac_ext
100031 { echo "$as_me:$LINENO: result: $ompi_cv_func_ibv_create_cq_args" >&5
100032 echo "${ECHO_T}$ompi_cv_func_ibv_create_cq_args" >&6; }
100033 if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then
100034 { { echo "$as_me:$LINENO: error: Can not determine number of args to ibv_create_cq. Aborting" >&5
100035 echo "$as_me: error: Can not determine number of args to ibv_create_cq. Aborting" >&2;}
100036 { (exit 1); exit 1; }; }
100039 cat >>confdefs.h <<_ACEOF
100040 #define OMPI_MCA_BTL_OPENIB_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args
100041 _ACEOF
100049 for ac_func in ibv_create_srq
100051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
100052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
100053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
100054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
100055 echo $ECHO_N "(cached) $ECHO_C" >&6
100057 cat >conftest.$ac_ext <<_ACEOF
100058 /* confdefs.h. */
100059 _ACEOF
100060 cat confdefs.h >>conftest.$ac_ext
100061 cat >>conftest.$ac_ext <<_ACEOF
100062 /* end confdefs.h. */
100063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
100064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
100065 #define $ac_func innocuous_$ac_func
100067 /* System header to define __stub macros and hopefully few prototypes,
100068 which can conflict with char $ac_func (); below.
100069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
100070 <limits.h> exists even on freestanding compilers. */
100072 #ifdef __STDC__
100073 # include <limits.h>
100074 #else
100075 # include <assert.h>
100076 #endif
100078 #undef $ac_func
100080 /* Override any GCC internal prototype to avoid an error.
100081 Use char because int might match the return type of a GCC
100082 builtin and then its argument prototype would still apply. */
100083 #ifdef __cplusplus
100084 extern "C"
100085 #endif
100086 char $ac_func ();
100087 /* The GNU C library defines this for functions which it implements
100088 to always fail with ENOSYS. Some functions are actually named
100089 something starting with __ and the normal name is an alias. */
100090 #if defined __stub_$ac_func || defined __stub___$ac_func
100091 choke me
100092 #endif
100095 main ()
100097 return $ac_func ();
100099 return 0;
100101 _ACEOF
100102 rm -f conftest.$ac_objext conftest$ac_exeext
100103 if { (ac_try="$ac_link"
100104 case "(($ac_try" in
100105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100106 *) ac_try_echo=$ac_try;;
100108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
100109 (eval "$ac_link") 2>conftest.er1
100110 ac_status=$?
100111 grep -v '^ *+' conftest.er1 >conftest.err
100112 rm -f conftest.er1
100113 cat conftest.err >&5
100114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
100115 (exit $ac_status); } && {
100116 test -z "$ac_c_werror_flag" ||
100117 test ! -s conftest.err
100118 } && test -s conftest$ac_exeext &&
100119 $as_test_x conftest$ac_exeext; then
100120 eval "$as_ac_var=yes"
100122 echo "$as_me: failed program was:" >&5
100123 sed 's/^/| /' conftest.$ac_ext >&5
100125 eval "$as_ac_var=no"
100128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
100129 conftest$ac_exeext conftest.$ac_ext
100131 ac_res=`eval echo '${'$as_ac_var'}'`
100132 { echo "$as_me:$LINENO: result: $ac_res" >&5
100133 echo "${ECHO_T}$ac_res" >&6; }
100134 if test `eval echo '${'$as_ac_var'}'` = yes; then
100135 cat >>confdefs.h <<_ACEOF
100136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
100137 _ACEOF
100138 ompi_check_openib_have_srq=1
100140 ompi_check_openib_have_srq=0
100145 cat >>confdefs.h <<_ACEOF
100146 #define OMPI_MCA_BTL_OPENIB_HAVE_SRQ $ompi_check_openib_have_srq
100147 _ACEOF
100151 for ac_func in ibv_get_device_list
100153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
100154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
100155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
100156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
100157 echo $ECHO_N "(cached) $ECHO_C" >&6
100159 cat >conftest.$ac_ext <<_ACEOF
100160 /* confdefs.h. */
100161 _ACEOF
100162 cat confdefs.h >>conftest.$ac_ext
100163 cat >>conftest.$ac_ext <<_ACEOF
100164 /* end confdefs.h. */
100165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
100166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
100167 #define $ac_func innocuous_$ac_func
100169 /* System header to define __stub macros and hopefully few prototypes,
100170 which can conflict with char $ac_func (); below.
100171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
100172 <limits.h> exists even on freestanding compilers. */
100174 #ifdef __STDC__
100175 # include <limits.h>
100176 #else
100177 # include <assert.h>
100178 #endif
100180 #undef $ac_func
100182 /* Override any GCC internal prototype to avoid an error.
100183 Use char because int might match the return type of a GCC
100184 builtin and then its argument prototype would still apply. */
100185 #ifdef __cplusplus
100186 extern "C"
100187 #endif
100188 char $ac_func ();
100189 /* The GNU C library defines this for functions which it implements
100190 to always fail with ENOSYS. Some functions are actually named
100191 something starting with __ and the normal name is an alias. */
100192 #if defined __stub_$ac_func || defined __stub___$ac_func
100193 choke me
100194 #endif
100197 main ()
100199 return $ac_func ();
100201 return 0;
100203 _ACEOF
100204 rm -f conftest.$ac_objext conftest$ac_exeext
100205 if { (ac_try="$ac_link"
100206 case "(($ac_try" in
100207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100208 *) ac_try_echo=$ac_try;;
100210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
100211 (eval "$ac_link") 2>conftest.er1
100212 ac_status=$?
100213 grep -v '^ *+' conftest.er1 >conftest.err
100214 rm -f conftest.er1
100215 cat conftest.err >&5
100216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
100217 (exit $ac_status); } && {
100218 test -z "$ac_c_werror_flag" ||
100219 test ! -s conftest.err
100220 } && test -s conftest$ac_exeext &&
100221 $as_test_x conftest$ac_exeext; then
100222 eval "$as_ac_var=yes"
100224 echo "$as_me: failed program was:" >&5
100225 sed 's/^/| /' conftest.$ac_ext >&5
100227 eval "$as_ac_var=no"
100230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
100231 conftest$ac_exeext conftest.$ac_ext
100233 ac_res=`eval echo '${'$as_ac_var'}'`
100234 { echo "$as_me:$LINENO: result: $ac_res" >&5
100235 echo "${ECHO_T}$ac_res" >&6; }
100236 if test `eval echo '${'$as_ac_var'}'` = yes; then
100237 cat >>confdefs.h <<_ACEOF
100238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
100239 _ACEOF
100240 ompi_check_openib_have_device_list=1
100242 ompi_check_openib_have_device_list=0
100247 cat >>confdefs.h <<_ACEOF
100248 #define OMPI_MCA_BTL_OPENIB_HAVE_DEVICE_LIST $ompi_check_openib_have_device_list
100249 _ACEOF
100252 CPPFLAGS="$ompi_check_openib_btl_openib_save_CPPFLAGS"
100253 LDFLAGS="$ompi_check_openib_btl_openib_save_LDFLAGS"
100254 LIBS="$ompi_check_openib_btl_openib_save_LIBS"
100256 ompi_check_openib_happy="no"
100260 if test "$ompi_check_openib_happy" = "yes" -a "$enable_progress_threads" = "yes"; then
100261 { echo "$as_me:$LINENO: WARNING: OpenIB driver does not currently support progress threads. Disabling BTL." >&5
100262 echo "$as_me: WARNING: OpenIB driver does not currently support progress threads. Disabling BTL." >&2;}
100263 ompi_check_openib_happy="no"
100267 if test "$ompi_check_openib_happy" = "yes"; then
100268 btl_openib_happy="yes"
100270 if test ! -z "$with_openib" -a "$with_openib" != "no"; then
100271 { { echo "$as_me:$LINENO: error: OpenIB support requested but not found. Aborting" >&5
100272 echo "$as_me: error: OpenIB support requested but not found. Aborting" >&2;}
100273 { (exit 1); exit 1; }; }
100276 btl_openib_happy="no"
100280 btl_openib_LDFLAGS="$btl_openib_LDFLAGS $ompi_check_openib_libflag"
100283 if test "$btl_openib_happy" = "yes"; then
100284 btl_openib_WRAPPER_EXTRA_LDFLAGS="$btl_openib_LDFLAGS"
100285 btl_openib_WRAPPER_EXTRA_LIBS="$btl_openib_LIBS"
100286 should_build=1
100288 should_build=0
100293 # substitute in the things needed to build openib
100302 if test "$should_build" = "1"; then
100304 project=ompi
100305 framework=btl
100306 component=openib
100308 # See if it dropped an output file for us to pick up some
100309 # shell variables in.
100310 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
100312 # Add this subdir to the mast list of all MCA component subdirs
100313 all_components="$all_components $component"
100315 if test "$compile_mode" = "dso" ; then
100316 dso_components="$dso_components $component"
100318 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
100319 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
100320 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
100321 static_components="$static_components $component"
100324 # Output pretty results
100325 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
100326 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
100327 { echo "$as_me:$LINENO: result: yes" >&5
100328 echo "${ECHO_T}yes" >&6; }
100330 # If there's an output file, add the values to
100331 # scope_EXTRA_flags.
100332 if test -f $infile; then
100334 # First check for the ABORT tag
100335 line="`grep ABORT= $infile | cut -d= -f2-`"
100336 if test -n "$line" -a "$line" != "no"; then
100337 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
100338 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
100339 { { echo "$as_me:$LINENO: error: cannot continue" >&5
100340 echo "$as_me: error: cannot continue" >&2;}
100341 { (exit 1); exit 1; }; }
100344 # Check for flags passed up from the component. If we're
100345 # compiling statically, then take all flags passed up from the
100346 # component.
100347 if test "$compile_mode" = "static"; then
100348 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
100349 eval "line=$line"
100350 if test -n "$line"; then
100351 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
100353 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
100354 eval "line=$line"
100355 if test -n "$line"; then
100356 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
100360 if test "$DIRECT_btl" = "$component" ; then
100361 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
100362 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
100363 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
100364 eval $str
100366 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
100367 *** does not appear to support direct calling.
100368 *** Aborting" >&5
100369 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
100370 *** does not appear to support direct calling.
100371 *** Aborting" >&2;}
100372 { (exit 1); exit 1; }; }
100376 # were we supposed to have found something in the
100377 # post_configure.sh, but the file didn't exist?
100378 if test "$DIRECT_btl" = "$component" ; then
100379 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
100380 *** does not appear to support direct calling.
100381 *** Aborting" >&5
100382 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
100383 *** does not appear to support direct calling.
100384 *** Aborting" >&2;}
100385 { (exit 1); exit 1; }; }
100389 # now add the flags that were set in the environment variables
100390 # framework_component_FOO (for example, the flags set by
100391 # m4_configure components)
100393 # Check for flags passed up from the component. If we're
100394 # compiling statically, then take all flags passed up from the
100395 # component.
100396 if test "$compile_mode" = "static"; then
100397 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
100398 eval "$str"
100399 if test -n "$line" ; then
100400 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
100402 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
100403 eval "$str"
100404 if test -n "$line" ; then
100405 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
100411 { echo "$as_me:$LINENO: checking if MCA component btl:openib can compile" >&5
100412 echo $ECHO_N "checking if MCA component btl:openib can compile... $ECHO_C" >&6; }
100413 { echo "$as_me:$LINENO: result: no" >&5
100414 echo "${ECHO_T}no" >&6; }
100416 # If this component was requested as the default for this
100417 # type, then abort.
100418 if test "$with_btl" = "openib" ; then
100419 { echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5
100420 echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;}
100421 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
100422 echo "$as_me: WARNING: This component was selected as the default" >&2;}
100423 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
100424 echo "$as_me: error: Cannot continue" >&2;}
100425 { (exit 1); exit 1; }; }
100426 exit 1
100429 if test ! -z "$DIRECT_btl" ; then
100430 if test "$DIRECT_btl" = "openib" ; then
100431 { echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5
100432 echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;}
100433 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
100434 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
100435 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
100436 echo "$as_me: error: Cannot continue" >&2;}
100437 { (exit 1); exit 1; }; }
100438 exit 1
100442 # add component to all component list
100443 all_components="$all_components openib"
100447 # set the AM_CONDITIONAL on how we should build
100448 if test "$compile_mode" = "dso"; then
100449 BUILD_btl_openib_DSO=1
100451 BUILD_btl_openib_DSO=0
100456 if test "$BUILD_btl_openib_DSO" = "1"; then
100457 OMPI_BUILD_btl_openib_DSO_TRUE=
100458 OMPI_BUILD_btl_openib_DSO_FALSE='#'
100460 OMPI_BUILD_btl_openib_DSO_TRUE='#'
100461 OMPI_BUILD_btl_openib_DSO_FALSE=
100465 if test "$should_build" = "1"; then
100466 components_looking_for_succeed="$happy_value"
100470 unset compile_mode
100472 ompi_show_subsubsubtitle "MCA component btl:portals (m4 configuration macro)"
100475 project=ompi
100476 framework=btl
100477 component=portals
100478 component_path="$srcdir/$project/mca/$framework/$component"
100479 want_component=0
100481 # build if:
100482 # - the component type is direct and we are that component
100483 # - there is no ompi_ignore file
100484 # - there is an ompi_ignore, but there is an empty ompi_unignore
100485 # - there is an ompi_ignore, but username is in ompi_unignore
100486 if test -d $component_path ; then
100487 # decide if we want the component to be built or not. This
100488 # is spread out because some of the logic is a little complex
100489 # and test's syntax isn't exactly the greatest. We want to
100490 # build the component by default.
100491 want_component=1
100492 if test -f $component_path/.ompi_ignore ; then
100493 # If there is an ompi_ignore file, don't build
100494 # the component. Note that this decision can be
100495 # overriden by the unignore logic below.
100496 want_component=0
100498 if test -f $component_path/.ompi_unignore ; then
100499 # if there is an empty ompi_unignore, that is
100500 # equivalent to having your userid in the unignore file.
100501 # If userid is in the file, unignore the ignore file.
100502 if test ! -s $component_path/.ompi_unignore ; then
100503 want_component=1
100504 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
100505 want_component=1
100508 # if this component type is direct and we are not it, we don't want
100509 # to be built. Otherwise, we do want to be built.
100510 if test ! -z "$DIRECT_btl" ; then
100511 if test "$DIRECT_btl" = "$component" ; then
100512 want_component=1
100514 want_component=0
100519 # if we were explicitly disabled, don't build :)
100520 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
100521 eval $str
100522 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
100523 want_component=0
100526 if test "$want_component" = "1"; then
100527 should_build=$components_looking_for_succeed
100529 should_build=0
100533 # Allow the component to override the build mode if it really wants to.
100534 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
100536 project=ompi
100537 framework=btl
100538 component=portals
100540 # Is this component going to built staic or shared? $component
100541 # might not be known until configure time, so have to use eval
100542 # tricks - can't set variable names at autogen time.
100543 str="SHARED_FRAMEWORK=\$DSO_$framework"
100544 eval $str
100545 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
100546 eval $str
100548 str="STATIC_FRAMEWORK=\$STATIC_$framework"
100549 eval $str
100550 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
100551 eval $str
100553 shared_mode_override=static
100555 # Setup for either shared or static
100556 if test "$STATIC_FRAMEWORK" = "1" -o \
100557 "$STATIC_COMPONENT" = "1" -o \
100558 "$STATIC_all" = "1" ; then
100559 compile_mode="static"
100560 elif test "$shared_mode_override" = "dso" -o \
100561 "$SHARED_FRAMEWORK" = "1" -o \
100562 "$SHARED_COMPONENT" = "1" -o \
100563 "$DSO_all" = "1"; then
100564 compile_mode="dso"
100566 compile_mode="static"
100569 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
100570 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
100571 if test "$DIRECT_btl" = "$component" ; then
100572 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
100573 echo "${ECHO_T}$compile_mode - direct" >&6; }
100575 { echo "$as_me:$LINENO: result: $compile_mode" >&5
100576 echo "${ECHO_T}$compile_mode" >&6; }
100580 # try to configure the component. pay no attention to
100581 # --enable-dist, since we'll always have makefiles.
100582 if test "$should_build" = "1"; then
100584 # save compiler flags so that we don't alter them for later
100585 # components.
100586 btl_portals_save_CPPFLAGS="$CPPFLAGS"
100587 btl_portals_save_LDFLAGS="$LDFLAGS"
100588 btl_portals_save_LIBS="$LIBS"
100590 # allow user a way to say where the Portals installation is
100592 # Check whether --with-portals was given.
100593 if test "${with_portals+set}" = set; then
100594 withval=$with_portals;
100598 if test -n "$with_portals"; then
100599 if test -d "$with_portals/include"; then
100600 btl_portals_CPPFLAGS="-I$with_portals/include"
100601 CPPFLAGS="$CPPFLAGS $btl_portals_CPPFLAGS"
100604 if test -d "$with_portals/lib"; then
100605 btl_portals_LDFLAGS="-L$with_portals/lib"
100606 LDFLAGS="$LDFLAGS $btl_portals_LDFLAGS"
100612 # try to get our platform configuration
100614 # Configure Portals for our local environment
100615 BTL_PORTALS_UTCP=0
100616 BTL_PORTALS_REDSTORM=0
100617 BTL_PORTALS_COMPAT=""
100618 BTL_PORTALS_HAVE_EVENT_UNLINK=0
100619 btl_portals_compat="none"
100620 btl_portals_header_prefix=
100621 btl_portals_starting_table_id=0
100623 # Check whether --with-portals-config was given.
100624 if test "${with_portals_config+set}" = set; then
100625 withval=$with_portals_config;
100628 { echo "$as_me:$LINENO: checking for Portals configuration" >&5
100629 echo $ECHO_N "checking for Portals configuration... $ECHO_C" >&6; }
100630 if test "$with_portals_config" = "" ; then
100631 with_portals_config="utcp"
100633 case "$with_portals_config" in
100634 "utcp")
100635 BTL_PORTALS_UTCP=1
100636 BTL_PORTALS_HAVE_EVENT_UNLINK=1
100637 btl_portals_LIBS="-lp3utcp -lp3api -lp3lib -lp3rt -lp3utcp"
100638 btl_portals_compat="utcp"
100639 btl_portals_header_prefix=
100640 btl_portals_starting_table_id=0
100641 { echo "$as_me:$LINENO: result: utcp" >&5
100642 echo "${ECHO_T}utcp" >&6; }
100644 "redstorm")
100645 BTL_PORTALS_REDSTORM=1
100646 BTL_PORTALS_HAVE_EVENT_UNLINK=0
100647 btl_portals_LIBS=
100648 btl_portals_compat="redstorm"
100649 btl_portals_header_prefix="portals/"
100650 btl_portals_starting_table_id=30
100651 { echo "$as_me:$LINENO: result: red storm" >&5
100652 echo "${ECHO_T}red storm" >&6; }
100655 # ok to call ERROR here - the user specified something invalid.
100656 # that should be brought to his attention
100657 { { echo "$as_me:$LINENO: error: unknown Portals configuration. Can not continue" >&5
100658 echo "$as_me: error: unknown Portals configuration. Can not continue" >&2;}
100659 { (exit 1); exit 1; }; }
100663 # Try to find all the portals libraries (this is not fun!)
100665 # Check whether --with-portals-libs was given.
100666 if test "${with_portals_libs+set}" = set; then
100667 withval=$with_portals_libs;
100670 if test -n "$with_portals_libs" ; then
100671 btl_portals_LIBS=""
100672 for lib in $with_portals_libs ; do
100673 btl_portals_LIBS="$btl_portals_LIBS -l$lib"
100678 cat >>confdefs.h <<_ACEOF
100679 #define OMPI_BTL_PORTALS_HAVE_EVENT_UNLINK $BTL_PORTALS_HAVE_EVENT_UNLINK
100680 _ACEOF
100684 cat >>confdefs.h <<_ACEOF
100685 #define OMPI_BTL_PORTALS_UTCP $BTL_PORTALS_UTCP
100686 _ACEOF
100689 cat >>confdefs.h <<_ACEOF
100690 #define OMPI_BTL_PORTALS_REDSTORM $BTL_PORTALS_REDSTORM
100691 _ACEOF
100695 cat >>confdefs.h <<_ACEOF
100696 #define OMPI_BTL_PORTALS_STARTING_TABLE_ID $btl_portals_starting_table_id
100697 _ACEOF
100700 ac_config_links="$ac_config_links ompi/mca/btl/portals/btl_portals_compat.c:ompi/mca/btl/portals/btl_portals_compat_${btl_portals_compat}.c"
100704 # check for portals
100705 LIBS="$LIBS $btl_portals_LIBS"
100707 for ac_header in ${btl_portals_header_prefix}portals3.h
100709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
100710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
100711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
100712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
100713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
100714 echo $ECHO_N "(cached) $ECHO_C" >&6
100716 ac_res=`eval echo '${'$as_ac_Header'}'`
100717 { echo "$as_me:$LINENO: result: $ac_res" >&5
100718 echo "${ECHO_T}$ac_res" >&6; }
100720 # Is the header compilable?
100721 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
100722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
100723 cat >conftest.$ac_ext <<_ACEOF
100724 /* confdefs.h. */
100725 _ACEOF
100726 cat confdefs.h >>conftest.$ac_ext
100727 cat >>conftest.$ac_ext <<_ACEOF
100728 /* end confdefs.h. */
100729 $ac_includes_default
100730 #include <$ac_header>
100731 _ACEOF
100732 rm -f conftest.$ac_objext
100733 if { (ac_try="$ac_compile"
100734 case "(($ac_try" in
100735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100736 *) ac_try_echo=$ac_try;;
100738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
100739 (eval "$ac_compile") 2>conftest.er1
100740 ac_status=$?
100741 grep -v '^ *+' conftest.er1 >conftest.err
100742 rm -f conftest.er1
100743 cat conftest.err >&5
100744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
100745 (exit $ac_status); } && {
100746 test -z "$ac_c_werror_flag" ||
100747 test ! -s conftest.err
100748 } && test -s conftest.$ac_objext; then
100749 ac_header_compiler=yes
100751 echo "$as_me: failed program was:" >&5
100752 sed 's/^/| /' conftest.$ac_ext >&5
100754 ac_header_compiler=no
100757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
100758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
100759 echo "${ECHO_T}$ac_header_compiler" >&6; }
100761 # Is the header present?
100762 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
100763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
100764 cat >conftest.$ac_ext <<_ACEOF
100765 /* confdefs.h. */
100766 _ACEOF
100767 cat confdefs.h >>conftest.$ac_ext
100768 cat >>conftest.$ac_ext <<_ACEOF
100769 /* end confdefs.h. */
100770 #include <$ac_header>
100771 _ACEOF
100772 if { (ac_try="$ac_cpp conftest.$ac_ext"
100773 case "(($ac_try" in
100774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100775 *) ac_try_echo=$ac_try;;
100777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
100778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
100779 ac_status=$?
100780 grep -v '^ *+' conftest.er1 >conftest.err
100781 rm -f conftest.er1
100782 cat conftest.err >&5
100783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
100784 (exit $ac_status); } >/dev/null && {
100785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
100786 test ! -s conftest.err
100787 }; then
100788 ac_header_preproc=yes
100790 echo "$as_me: failed program was:" >&5
100791 sed 's/^/| /' conftest.$ac_ext >&5
100793 ac_header_preproc=no
100796 rm -f conftest.err conftest.$ac_ext
100797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
100798 echo "${ECHO_T}$ac_header_preproc" >&6; }
100800 # So? What about this header?
100801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
100802 yes:no: )
100803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
100804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
100805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
100806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
100807 ac_header_preproc=yes
100809 no:yes:* )
100810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
100811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
100812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
100813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
100814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
100815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
100816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
100817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
100818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
100819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
100820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
100821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
100822 ( cat <<\_ASBOX
100823 ## ------------------------------------------------------ ##
100824 ## Report this to http://www.open-mpi.org/community/help/ ##
100825 ## ------------------------------------------------------ ##
100826 _ASBOX
100827 ) | sed "s/^/$as_me: WARNING: /" >&2
100830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
100831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
100832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
100833 echo $ECHO_N "(cached) $ECHO_C" >&6
100835 eval "$as_ac_Header=\$ac_header_preproc"
100837 ac_res=`eval echo '${'$as_ac_Header'}'`
100838 { echo "$as_me:$LINENO: result: $ac_res" >&5
100839 echo "${ECHO_T}$ac_res" >&6; }
100842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
100843 cat >>confdefs.h <<_ACEOF
100844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
100845 _ACEOF
100846 { echo "$as_me:$LINENO: checking if possible to link Portals application" >&5
100847 echo $ECHO_N "checking if possible to link Portals application... $ECHO_C" >&6; }
100848 cat >conftest.$ac_ext <<_ACEOF
100849 /* confdefs.h. */
100850 _ACEOF
100851 cat confdefs.h >>conftest.$ac_ext
100852 cat >>conftest.$ac_ext <<_ACEOF
100853 /* end confdefs.h. */
100854 #include <${btl_portals_header_prefix}portals3.h>
100856 main ()
100858 int i; PtlInit(&i);
100860 return 0;
100862 _ACEOF
100863 rm -f conftest.$ac_objext conftest$ac_exeext
100864 if { (ac_try="$ac_link"
100865 case "(($ac_try" in
100866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100867 *) ac_try_echo=$ac_try;;
100869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
100870 (eval "$ac_link") 2>conftest.er1
100871 ac_status=$?
100872 grep -v '^ *+' conftest.er1 >conftest.err
100873 rm -f conftest.er1
100874 cat conftest.err >&5
100875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
100876 (exit $ac_status); } && {
100877 test -z "$ac_c_werror_flag" ||
100878 test ! -s conftest.err
100879 } && test -s conftest$ac_exeext &&
100880 $as_test_x conftest$ac_exeext; then
100881 { echo "$as_me:$LINENO: result: yes" >&5
100882 echo "${ECHO_T}yes" >&6; }
100883 btl_portals_WRAPPER_EXTRA_LDFLAGS="$btl_portals_LDFLAGS"
100884 btl_portals_WRAPPER_EXTRA_LIBS="$btl_portals_LIBS"
100885 should_build=1
100887 echo "$as_me: failed program was:" >&5
100888 sed 's/^/| /' conftest.$ac_ext >&5
100890 { echo "$as_me:$LINENO: result: no" >&5
100891 echo "${ECHO_T}no" >&6; }
100892 should_build=0
100895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
100896 conftest$ac_exeext conftest.$ac_ext
100898 should_build=0
100904 # substitute in the things needed to build Portals
100909 # reset the flags for the next test
100910 CPPFLAGS="$btl_portals_save_CPPFLAGS"
100911 LDFLAGS="$btl_portals_save_LDFLAGS"
100912 LIBS="$btl_portals_save_LIBS"
100917 if test "$should_build" = "1"; then
100919 project=ompi
100920 framework=btl
100921 component=portals
100923 # See if it dropped an output file for us to pick up some
100924 # shell variables in.
100925 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
100927 # Add this subdir to the mast list of all MCA component subdirs
100928 all_components="$all_components $component"
100930 if test "$compile_mode" = "dso" ; then
100931 dso_components="$dso_components $component"
100933 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
100934 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
100935 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
100936 static_components="$static_components $component"
100939 # Output pretty results
100940 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
100941 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
100942 { echo "$as_me:$LINENO: result: yes" >&5
100943 echo "${ECHO_T}yes" >&6; }
100945 # If there's an output file, add the values to
100946 # scope_EXTRA_flags.
100947 if test -f $infile; then
100949 # First check for the ABORT tag
100950 line="`grep ABORT= $infile | cut -d= -f2-`"
100951 if test -n "$line" -a "$line" != "no"; then
100952 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
100953 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
100954 { { echo "$as_me:$LINENO: error: cannot continue" >&5
100955 echo "$as_me: error: cannot continue" >&2;}
100956 { (exit 1); exit 1; }; }
100959 # Check for flags passed up from the component. If we're
100960 # compiling statically, then take all flags passed up from the
100961 # component.
100962 if test "$compile_mode" = "static"; then
100963 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
100964 eval "line=$line"
100965 if test -n "$line"; then
100966 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
100968 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
100969 eval "line=$line"
100970 if test -n "$line"; then
100971 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
100975 if test "$DIRECT_btl" = "$component" ; then
100976 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
100977 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
100978 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
100979 eval $str
100981 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
100982 *** does not appear to support direct calling.
100983 *** Aborting" >&5
100984 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
100985 *** does not appear to support direct calling.
100986 *** Aborting" >&2;}
100987 { (exit 1); exit 1; }; }
100991 # were we supposed to have found something in the
100992 # post_configure.sh, but the file didn't exist?
100993 if test "$DIRECT_btl" = "$component" ; then
100994 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
100995 *** does not appear to support direct calling.
100996 *** Aborting" >&5
100997 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
100998 *** does not appear to support direct calling.
100999 *** Aborting" >&2;}
101000 { (exit 1); exit 1; }; }
101004 # now add the flags that were set in the environment variables
101005 # framework_component_FOO (for example, the flags set by
101006 # m4_configure components)
101008 # Check for flags passed up from the component. If we're
101009 # compiling statically, then take all flags passed up from the
101010 # component.
101011 if test "$compile_mode" = "static"; then
101012 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
101013 eval "$str"
101014 if test -n "$line" ; then
101015 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
101017 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
101018 eval "$str"
101019 if test -n "$line" ; then
101020 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
101026 { echo "$as_me:$LINENO: checking if MCA component btl:portals can compile" >&5
101027 echo $ECHO_N "checking if MCA component btl:portals can compile... $ECHO_C" >&6; }
101028 { echo "$as_me:$LINENO: result: no" >&5
101029 echo "${ECHO_T}no" >&6; }
101031 # If this component was requested as the default for this
101032 # type, then abort.
101033 if test "$with_btl" = "portals" ; then
101034 { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5
101035 echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
101036 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
101037 echo "$as_me: WARNING: This component was selected as the default" >&2;}
101038 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
101039 echo "$as_me: error: Cannot continue" >&2;}
101040 { (exit 1); exit 1; }; }
101041 exit 1
101044 if test ! -z "$DIRECT_btl" ; then
101045 if test "$DIRECT_btl" = "portals" ; then
101046 { echo "$as_me:$LINENO: WARNING: MCA component \"portals\" failed to configure properly" >&5
101047 echo "$as_me: WARNING: MCA component \"portals\" failed to configure properly" >&2;}
101048 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
101049 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
101050 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
101051 echo "$as_me: error: Cannot continue" >&2;}
101052 { (exit 1); exit 1; }; }
101053 exit 1
101057 # add component to all component list
101058 all_components="$all_components portals"
101062 # set the AM_CONDITIONAL on how we should build
101063 if test "$compile_mode" = "dso"; then
101064 BUILD_btl_portals_DSO=1
101066 BUILD_btl_portals_DSO=0
101071 if test "$BUILD_btl_portals_DSO" = "1"; then
101072 OMPI_BUILD_btl_portals_DSO_TRUE=
101073 OMPI_BUILD_btl_portals_DSO_FALSE='#'
101075 OMPI_BUILD_btl_portals_DSO_TRUE='#'
101076 OMPI_BUILD_btl_portals_DSO_FALSE=
101080 if test "$should_build" = "1"; then
101081 components_looking_for_succeed="$happy_value"
101085 unset compile_mode
101087 ompi_show_subsubsubtitle "MCA component btl:tcp (m4 configuration macro)"
101090 project=ompi
101091 framework=btl
101092 component=tcp
101093 component_path="$srcdir/$project/mca/$framework/$component"
101094 want_component=0
101096 # build if:
101097 # - the component type is direct and we are that component
101098 # - there is no ompi_ignore file
101099 # - there is an ompi_ignore, but there is an empty ompi_unignore
101100 # - there is an ompi_ignore, but username is in ompi_unignore
101101 if test -d $component_path ; then
101102 # decide if we want the component to be built or not. This
101103 # is spread out because some of the logic is a little complex
101104 # and test's syntax isn't exactly the greatest. We want to
101105 # build the component by default.
101106 want_component=1
101107 if test -f $component_path/.ompi_ignore ; then
101108 # If there is an ompi_ignore file, don't build
101109 # the component. Note that this decision can be
101110 # overriden by the unignore logic below.
101111 want_component=0
101113 if test -f $component_path/.ompi_unignore ; then
101114 # if there is an empty ompi_unignore, that is
101115 # equivalent to having your userid in the unignore file.
101116 # If userid is in the file, unignore the ignore file.
101117 if test ! -s $component_path/.ompi_unignore ; then
101118 want_component=1
101119 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
101120 want_component=1
101123 # if this component type is direct and we are not it, we don't want
101124 # to be built. Otherwise, we do want to be built.
101125 if test ! -z "$DIRECT_btl" ; then
101126 if test "$DIRECT_btl" = "$component" ; then
101127 want_component=1
101129 want_component=0
101134 # if we were explicitly disabled, don't build :)
101135 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
101136 eval $str
101137 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
101138 want_component=0
101141 if test "$want_component" = "1"; then
101142 should_build=$components_looking_for_succeed
101144 should_build=0
101148 # Allow the component to override the build mode if it really wants to.
101149 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
101151 project=ompi
101152 framework=btl
101153 component=tcp
101155 # Is this component going to built staic or shared? $component
101156 # might not be known until configure time, so have to use eval
101157 # tricks - can't set variable names at autogen time.
101158 str="SHARED_FRAMEWORK=\$DSO_$framework"
101159 eval $str
101160 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
101161 eval $str
101163 str="STATIC_FRAMEWORK=\$STATIC_$framework"
101164 eval $str
101165 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
101166 eval $str
101168 shared_mode_override=static
101170 # Setup for either shared or static
101171 if test "$STATIC_FRAMEWORK" = "1" -o \
101172 "$STATIC_COMPONENT" = "1" -o \
101173 "$STATIC_all" = "1" ; then
101174 compile_mode="static"
101175 elif test "$shared_mode_override" = "dso" -o \
101176 "$SHARED_FRAMEWORK" = "1" -o \
101177 "$SHARED_COMPONENT" = "1" -o \
101178 "$DSO_all" = "1"; then
101179 compile_mode="dso"
101181 compile_mode="static"
101184 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
101185 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
101186 if test "$DIRECT_btl" = "$component" ; then
101187 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
101188 echo "${ECHO_T}$compile_mode - direct" >&6; }
101190 { echo "$as_me:$LINENO: result: $compile_mode" >&5
101191 echo "${ECHO_T}$compile_mode" >&6; }
101195 # try to configure the component. pay no attention to
101196 # --enable-dist, since we'll always have makefiles.
101197 if test "$should_build" = "1"; then
101199 # check for sockaddr_in (a good sign we have TCP)
101200 { echo "$as_me:$LINENO: checking for struct sockaddr_in" >&5
101201 echo $ECHO_N "checking for struct sockaddr_in... $ECHO_C" >&6; }
101202 if test "${ac_cv_type_struct_sockaddr_in+set}" = set; then
101203 echo $ECHO_N "(cached) $ECHO_C" >&6
101205 cat >conftest.$ac_ext <<_ACEOF
101206 /* confdefs.h. */
101207 _ACEOF
101208 cat confdefs.h >>conftest.$ac_ext
101209 cat >>conftest.$ac_ext <<_ACEOF
101210 /* end confdefs.h. */
101211 $ac_includes_default
101212 #ifdef HAVE_NETINET_IN_H
101213 #include <netinet/in.h>
101214 #endif
101216 typedef struct sockaddr_in ac__type_new_;
101218 main ()
101220 if ((ac__type_new_ *) 0)
101221 return 0;
101222 if (sizeof (ac__type_new_))
101223 return 0;
101225 return 0;
101227 _ACEOF
101228 rm -f conftest.$ac_objext
101229 if { (ac_try="$ac_compile"
101230 case "(($ac_try" in
101231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101232 *) ac_try_echo=$ac_try;;
101234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
101235 (eval "$ac_compile") 2>conftest.er1
101236 ac_status=$?
101237 grep -v '^ *+' conftest.er1 >conftest.err
101238 rm -f conftest.er1
101239 cat conftest.err >&5
101240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
101241 (exit $ac_status); } && {
101242 test -z "$ac_c_werror_flag" ||
101243 test ! -s conftest.err
101244 } && test -s conftest.$ac_objext; then
101245 ac_cv_type_struct_sockaddr_in=yes
101247 echo "$as_me: failed program was:" >&5
101248 sed 's/^/| /' conftest.$ac_ext >&5
101250 ac_cv_type_struct_sockaddr_in=no
101253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101255 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in" >&5
101256 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in" >&6; }
101257 if test $ac_cv_type_struct_sockaddr_in = yes; then
101259 cat >>confdefs.h <<_ACEOF
101260 #define HAVE_STRUCT_SOCKADDR_IN 1
101261 _ACEOF
101263 should_build=1
101265 should_build=0
101272 if test "$should_build" = "1"; then
101274 project=ompi
101275 framework=btl
101276 component=tcp
101278 # See if it dropped an output file for us to pick up some
101279 # shell variables in.
101280 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
101282 # Add this subdir to the mast list of all MCA component subdirs
101283 all_components="$all_components $component"
101285 if test "$compile_mode" = "dso" ; then
101286 dso_components="$dso_components $component"
101288 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
101289 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
101290 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
101291 static_components="$static_components $component"
101294 # Output pretty results
101295 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
101296 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
101297 { echo "$as_me:$LINENO: result: yes" >&5
101298 echo "${ECHO_T}yes" >&6; }
101300 # If there's an output file, add the values to
101301 # scope_EXTRA_flags.
101302 if test -f $infile; then
101304 # First check for the ABORT tag
101305 line="`grep ABORT= $infile | cut -d= -f2-`"
101306 if test -n "$line" -a "$line" != "no"; then
101307 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
101308 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
101309 { { echo "$as_me:$LINENO: error: cannot continue" >&5
101310 echo "$as_me: error: cannot continue" >&2;}
101311 { (exit 1); exit 1; }; }
101314 # Check for flags passed up from the component. If we're
101315 # compiling statically, then take all flags passed up from the
101316 # component.
101317 if test "$compile_mode" = "static"; then
101318 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
101319 eval "line=$line"
101320 if test -n "$line"; then
101321 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
101323 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
101324 eval "line=$line"
101325 if test -n "$line"; then
101326 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
101330 if test "$DIRECT_btl" = "$component" ; then
101331 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
101332 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
101333 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
101334 eval $str
101336 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
101337 *** does not appear to support direct calling.
101338 *** Aborting" >&5
101339 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
101340 *** does not appear to support direct calling.
101341 *** Aborting" >&2;}
101342 { (exit 1); exit 1; }; }
101346 # were we supposed to have found something in the
101347 # post_configure.sh, but the file didn't exist?
101348 if test "$DIRECT_btl" = "$component" ; then
101349 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
101350 *** does not appear to support direct calling.
101351 *** Aborting" >&5
101352 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
101353 *** does not appear to support direct calling.
101354 *** Aborting" >&2;}
101355 { (exit 1); exit 1; }; }
101359 # now add the flags that were set in the environment variables
101360 # framework_component_FOO (for example, the flags set by
101361 # m4_configure components)
101363 # Check for flags passed up from the component. If we're
101364 # compiling statically, then take all flags passed up from the
101365 # component.
101366 if test "$compile_mode" = "static"; then
101367 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
101368 eval "$str"
101369 if test -n "$line" ; then
101370 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
101372 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
101373 eval "$str"
101374 if test -n "$line" ; then
101375 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
101381 { echo "$as_me:$LINENO: checking if MCA component btl:tcp can compile" >&5
101382 echo $ECHO_N "checking if MCA component btl:tcp can compile... $ECHO_C" >&6; }
101383 { echo "$as_me:$LINENO: result: no" >&5
101384 echo "${ECHO_T}no" >&6; }
101386 # If this component was requested as the default for this
101387 # type, then abort.
101388 if test "$with_btl" = "tcp" ; then
101389 { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5
101390 echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
101391 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
101392 echo "$as_me: WARNING: This component was selected as the default" >&2;}
101393 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
101394 echo "$as_me: error: Cannot continue" >&2;}
101395 { (exit 1); exit 1; }; }
101396 exit 1
101399 if test ! -z "$DIRECT_btl" ; then
101400 if test "$DIRECT_btl" = "tcp" ; then
101401 { echo "$as_me:$LINENO: WARNING: MCA component \"tcp\" failed to configure properly" >&5
101402 echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
101403 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
101404 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
101405 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
101406 echo "$as_me: error: Cannot continue" >&2;}
101407 { (exit 1); exit 1; }; }
101408 exit 1
101412 # add component to all component list
101413 all_components="$all_components tcp"
101417 # set the AM_CONDITIONAL on how we should build
101418 if test "$compile_mode" = "dso"; then
101419 BUILD_btl_tcp_DSO=1
101421 BUILD_btl_tcp_DSO=0
101426 if test "$BUILD_btl_tcp_DSO" = "1"; then
101427 OMPI_BUILD_btl_tcp_DSO_TRUE=
101428 OMPI_BUILD_btl_tcp_DSO_FALSE='#'
101430 OMPI_BUILD_btl_tcp_DSO_TRUE='#'
101431 OMPI_BUILD_btl_tcp_DSO_FALSE=
101435 if test "$should_build" = "1"; then
101436 components_looking_for_succeed="$happy_value"
101440 unset compile_mode
101443 # configure components that provide their own configure script.
101444 # It would be really hard to run these for "find first that
101445 # works", so we don't :)
101446 if test "$happy_value" = "1"; then
101448 for component_path in $srcdir/ompi/mca/btl/* ; do
101449 component="`basename $component_path`"
101450 if test -d $component_path -a -x $component_path/configure ; then
101451 ompi_show_subsubsubtitle "MCA component btl:$component (need to configure)"
101454 project=ompi
101455 framework=btl
101456 component=$component
101457 component_path="$srcdir/$project/mca/$framework/$component"
101458 want_component=0
101460 # build if:
101461 # - the component type is direct and we are that component
101462 # - there is no ompi_ignore file
101463 # - there is an ompi_ignore, but there is an empty ompi_unignore
101464 # - there is an ompi_ignore, but username is in ompi_unignore
101465 if test -d $component_path ; then
101466 # decide if we want the component to be built or not. This
101467 # is spread out because some of the logic is a little complex
101468 # and test's syntax isn't exactly the greatest. We want to
101469 # build the component by default.
101470 want_component=1
101471 if test -f $component_path/.ompi_ignore ; then
101472 # If there is an ompi_ignore file, don't build
101473 # the component. Note that this decision can be
101474 # overriden by the unignore logic below.
101475 want_component=0
101477 if test -f $component_path/.ompi_unignore ; then
101478 # if there is an empty ompi_unignore, that is
101479 # equivalent to having your userid in the unignore file.
101480 # If userid is in the file, unignore the ignore file.
101481 if test ! -s $component_path/.ompi_unignore ; then
101482 want_component=1
101483 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
101484 want_component=1
101487 # if this component type is direct and we are not it, we don't want
101488 # to be built. Otherwise, we do want to be built.
101489 if test ! -z "$DIRECT_btl" ; then
101490 if test "$DIRECT_btl" = "$component" ; then
101491 want_component=1
101493 want_component=0
101498 # if we were explicitly disabled, don't build :)
101499 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
101500 eval $str
101501 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
101502 want_component=0
101505 if test "$want_component" = "1"; then
101506 should_build=1
101508 should_build=0
101513 project=ompi
101514 framework=btl
101515 component=$component
101517 # Is this component going to built staic or shared? $component
101518 # might not be known until configure time, so have to use eval
101519 # tricks - can't set variable names at autogen time.
101520 str="SHARED_FRAMEWORK=\$DSO_$framework"
101521 eval $str
101522 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
101523 eval $str
101525 str="STATIC_FRAMEWORK=\$STATIC_$framework"
101526 eval $str
101527 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
101528 eval $str
101530 shared_mode_override=static
101532 # Setup for either shared or static
101533 if test "$STATIC_FRAMEWORK" = "1" -o \
101534 "$STATIC_COMPONENT" = "1" -o \
101535 "$STATIC_all" = "1" ; then
101536 compile_mode="static"
101537 elif test "$shared_mode_override" = "dso" -o \
101538 "$SHARED_FRAMEWORK" = "1" -o \
101539 "$SHARED_COMPONENT" = "1" -o \
101540 "$DSO_all" = "1"; then
101541 compile_mode="dso"
101543 compile_mode="static"
101546 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
101547 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
101548 if test "$DIRECT_btl" = "$component" ; then
101549 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
101550 echo "${ECHO_T}$compile_mode - direct" >&6; }
101552 { echo "$as_me:$LINENO: result: $compile_mode" >&5
101553 echo "${ECHO_T}$compile_mode" >&6; }
101557 if test "$should_build" = "1" ; then
101560 # Invoke configure in a specific subdirectory.
101562 # ompi/mca/btl/$component is the directory to invoke in
101563 # $ompi_subdir_args is the list of arguments to pass
101564 # should_build=1 is actions to execute upon success
101565 # should_build=2 is actions to execute upon failure
101567 subdir_dir="ompi/mca/btl/$component"
101568 subdir_args="$ompi_subdir_args"
101569 subdir_success="should_build=1"
101570 subdir_failure="should_build=2"
101573 # Sanity checks
101576 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
101577 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
101578 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
101581 # Gotta check where srcdir is for VPATH builds. If srcdir is not
101582 # ., then we need to mkdir the subdir. Otherwise, we can just cd
101583 # into it.
101586 case $srcdir in
101590 { case $subdir_dir in
101591 [\\/]* | ?:[\\/]* ) total_dir=;;
101592 *) total_dir=.;;
101594 temp=$subdir_dir
101595 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
101596 case $dir_part in
101597 # Skip DOS drivespec
101598 ?:) total_dir=$dir_part ;;
101599 *) total_dir=$total_dir/$dir_part
101600 test -d "$total_dir" ||
101601 mkdir "$total_dir" ||
101602 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
101603 echo "$as_me: error: cannot create $subdir_dir" >&2;}
101604 { (exit 1); exit 1; }; }
101607 done; }
101609 if test -d ./$subdir_dir; then :;
101611 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
101612 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
101613 { (exit 1); exit 1; }; }
101619 # Move into the target directory
101622 subdir_parent=`pwd`
101623 cd $subdir_dir
101626 # Make a "../" for each directory in $subdir_dir.
101629 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
101631 # Construct the --srcdir argument
101634 case $srcdir in
101636 # In place
101637 subdir_srcdir="$srcdir"
101639 [\\/]* | ?:[\\/]* )
101640 # Absolute path
101641 subdir_srcdir="$srcdir/$subdir_dir"
101644 # Relative path
101645 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
101650 # Construct the --cache-file argument
101653 # BWB - subdir caching is a pain since we change CFLAGS and all that.
101654 # Just disable it for now
101655 subdir_cache_file="/dev/null"
101658 # Invoke the configure script in the subdirectory
101661 export CFLAGS CPPFLAGS
101662 export CXXFLAGS CXXCPPFLAGS
101663 export FFLAGS
101664 export LDFLAGS LIBS
101665 sub_configure="$SHELL '$subdir_srcdir/configure'"
101666 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
101667 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
101668 eval "$sub_configure $subdir_args \
101669 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
101670 if test "$?" = "0"; then
101671 eval $subdir_success
101672 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
101673 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
101675 eval $subdir_failure
101676 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
101677 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
101681 # Go back to the topdir
101684 cd $subdir_parent
101688 # Clean up
101691 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
101692 unset subdir_args subdir_dots total_dir dir_part temp
101695 if test "$should_build" = "1" ; then
101697 project=ompi
101698 framework=btl
101699 component=$component
101701 # See if it dropped an output file for us to pick up some
101702 # shell variables in.
101703 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
101705 # Add this subdir to the mast list of all MCA component subdirs
101706 all_components="$all_components $component"
101708 if test "$compile_mode" = "dso" ; then
101709 dso_components="$dso_components $component"
101711 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
101712 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
101713 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
101714 static_components="$static_components $component"
101717 # Output pretty results
101718 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
101719 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
101720 { echo "$as_me:$LINENO: result: yes" >&5
101721 echo "${ECHO_T}yes" >&6; }
101723 # If there's an output file, add the values to
101724 # scope_EXTRA_flags.
101725 if test -f $infile; then
101727 # First check for the ABORT tag
101728 line="`grep ABORT= $infile | cut -d= -f2-`"
101729 if test -n "$line" -a "$line" != "no"; then
101730 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
101731 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
101732 { { echo "$as_me:$LINENO: error: cannot continue" >&5
101733 echo "$as_me: error: cannot continue" >&2;}
101734 { (exit 1); exit 1; }; }
101737 # Check for flags passed up from the component. If we're
101738 # compiling statically, then take all flags passed up from the
101739 # component.
101740 if test "$compile_mode" = "static"; then
101741 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
101742 eval "line=$line"
101743 if test -n "$line"; then
101744 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
101746 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
101747 eval "line=$line"
101748 if test -n "$line"; then
101749 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
101753 if test "$DIRECT_btl" = "$component" ; then
101754 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
101755 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
101756 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
101757 eval $str
101759 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
101760 *** does not appear to support direct calling.
101761 *** Aborting" >&5
101762 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
101763 *** does not appear to support direct calling.
101764 *** Aborting" >&2;}
101765 { (exit 1); exit 1; }; }
101769 # were we supposed to have found something in the
101770 # post_configure.sh, but the file didn't exist?
101771 if test "$DIRECT_btl" = "$component" ; then
101772 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
101773 *** does not appear to support direct calling.
101774 *** Aborting" >&5
101775 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
101776 *** does not appear to support direct calling.
101777 *** Aborting" >&2;}
101778 { (exit 1); exit 1; }; }
101782 # now add the flags that were set in the environment variables
101783 # framework_component_FOO (for example, the flags set by
101784 # m4_configure components)
101786 # Check for flags passed up from the component. If we're
101787 # compiling statically, then take all flags passed up from the
101788 # component.
101789 if test "$compile_mode" = "static"; then
101790 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
101791 eval "$str"
101792 if test -n "$line" ; then
101793 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
101795 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
101796 eval "$str"
101797 if test -n "$line" ; then
101798 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
101804 { echo "$as_me:$LINENO: checking if MCA component btl:$component can compile" >&5
101805 echo $ECHO_N "checking if MCA component btl:$component can compile... $ECHO_C" >&6; }
101806 { echo "$as_me:$LINENO: result: no" >&5
101807 echo "${ECHO_T}no" >&6; }
101809 # If this component was requested as the default for this
101810 # type, then abort.
101811 if test "$with_btl" = "$component" ; then
101812 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
101813 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
101814 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
101815 echo "$as_me: WARNING: This component was selected as the default" >&2;}
101816 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
101817 echo "$as_me: error: Cannot continue" >&2;}
101818 { (exit 1); exit 1; }; }
101819 exit 1
101822 if test ! -z "$DIRECT_btl" ; then
101823 if test "$DIRECT_btl" = "$component" ; then
101824 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
101825 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
101826 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
101827 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
101828 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
101829 echo "$as_me: error: Cannot continue" >&2;}
101830 { (exit 1); exit 1; }; }
101831 exit 1
101842 MCA_btl_ALL_COMPONENTS="$all_components"
101843 MCA_btl_STATIC_COMPONENTS="$static_components"
101844 MCA_btl_DSO_COMPONENTS="$dso_components"
101845 MCA_btl_STATIC_LTLIBS="$static_ltlibs"
101853 MCA_btl_ALL_SUBDIRS=
101854 for item in $all_components ; do
101855 MCA_btl_ALL_SUBDIRS="$MCA_btl_ALL_SUBDIRS mca/btl/$item"
101860 MCA_btl_STATIC_SUBDIRS=
101861 for item in $static_components ; do
101862 MCA_btl_STATIC_SUBDIRS="$MCA_btl_STATIC_SUBDIRS mca/btl/$item"
101867 MCA_btl_DSO_SUBDIRS=
101868 for item in $dso_components ; do
101869 MCA_btl_DSO_SUBDIRS="$MCA_btl_DSO_SUBDIRS mca/btl/$item"
101874 # add all the makefiles for the framework to the CONFIG_FILES.
101875 # Don't add common/base, since it doesn't exist
101876 ac_config_files="$ac_config_files ompi/mca/btl/Makefile"
101879 # Create the final .h file that will be included in the type's
101880 # top-level glue. This lists all the static components. We don't
101881 # need to do this for "common".
101882 if test "btl" != "common"; then
101883 cat > $outfile <<EOF
101885 * \$HEADER\$
101888 `cat $outfile.extern`
101890 const mca_base_component_t *mca_btl_base_static_components[] = {
101891 `cat $outfile.struct`
101895 # Only replace the header file if a) it doesn't previously
101896 # exist, or b) the contents are different. Do this to not
101897 # trigger recompilation of certain .c files just because the
101898 # timestamp changed on $outfile_real (similar to the way AC
101899 # handles AC_CONFIG_HEADER files).
101900 diff $outfile $outfile_real > /dev/null 2>&1
101901 if test "$?" != "0"; then
101902 mv $outfile $outfile_real
101904 rm -f $outfile
101907 rm -f $outfile.struct $outfile.extern
101909 unset all_components static_components dso_components outfile outfile_real
101910 # common has to go up front
101911 if test "coll" = "common" ; then
101912 MCA_ompi_FRAMEWORKS="coll $MCA_ompi_FRAMEWORKS"
101913 MCA_ompi_FRAMEWORKS_SUBDIRS="mca/coll $MCA_ompi_FRAMEWORKS_SUBDIRS"
101914 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_coll_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
101915 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_coll_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
101916 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_coll_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
101918 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS coll"
101919 MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/coll"
101920 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_coll_ALL_SUBDIRS)"
101921 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_coll_DSO_SUBDIRS)"
101922 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_coll_STATIC_SUBDIRS)"
101924 if test "coll" != "common" ; then
101925 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/coll/libmca_coll.la"
101927 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_coll_STATIC_LTLIBS)"
101929 ompi_show_subsubtitle "Configuring MCA framework coll"
101931 # setup for framework
101932 all_components=
101933 static_components=
101934 dso_components=
101935 static_ltlibs=
101937 # Ensure that the directory where the #include file is to live
101938 # exists. Need to do this for VPATH builds, because the directory
101939 # may not exist yet. For the "common" type, it's not really a
101940 # component, so it doesn't have a base.
101941 if test "coll" = "common" ; then
101942 outdir=ompi/mca/common
101944 outdir=ompi/mca/coll/base
101946 { as_dir=$outdir
101947 case $as_dir in #(
101948 -*) as_dir=./$as_dir;;
101950 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
101951 as_dirs=
101952 while :; do
101953 case $as_dir in #(
101954 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
101955 *) as_qdir=$as_dir;;
101957 as_dirs="'$as_qdir' $as_dirs"
101958 as_dir=`$as_dirname -- "$as_dir" ||
101959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
101960 X"$as_dir" : 'X\(//\)[^/]' \| \
101961 X"$as_dir" : 'X\(//\)$' \| \
101962 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
101963 echo X"$as_dir" |
101964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
101965 s//\1/
101968 /^X\(\/\/\)[^/].*/{
101969 s//\1/
101972 /^X\(\/\/\)$/{
101973 s//\1/
101976 /^X\(\/\).*/{
101977 s//\1/
101980 s/.*/./; q'`
101981 test -d "$as_dir" && break
101983 test -z "$as_dirs" || eval "mkdir $as_dirs"
101984 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
101985 echo "$as_me: error: cannot create directory $as_dir" >&2;}
101986 { (exit 1); exit 1; }; }; }
101988 # remove any previously generated #include files
101989 outfile_real=$outdir/static-components.h
101990 outfile=$outfile_real.new
101991 rm -f $outfile $outfile.struct $outfile.extern
101992 touch $outfile.struct $outfile.extern
101994 # print some nice messages about what we're about to do...
101995 { echo "$as_me:$LINENO: checking for no configure components in framework coll" >&5
101996 echo $ECHO_N "checking for no configure components in framework coll... $ECHO_C" >&6; }
101997 { echo "$as_me:$LINENO: result: basic, hierarch, self, sm, tuned" >&5
101998 echo "${ECHO_T}basic, hierarch, self, sm, tuned" >&6; }
101999 { echo "$as_me:$LINENO: checking for m4 configure components in framework coll" >&5
102000 echo $ECHO_N "checking for m4 configure components in framework coll... $ECHO_C" >&6; }
102001 { echo "$as_me:$LINENO: result: " >&5
102002 echo "${ECHO_T}" >&6; }
102004 # if we only want the first successful component, set the variable
102005 # happy_value to 0 so we stop on first assignment. Otherwise, set
102006 # it to zero so that components_looking_for_succeed is always 1
102007 happy_value=1
102009 components_looking_for_succeed=1
102011 # configure components that don't have any component-specific
102012 # configuration. See comment in CONFIGURE_PROJECT about the
102013 # m4_ifval
102014 # if there isn't a component list, abort
102017 ompi_show_subsubsubtitle "MCA component coll:basic (no configuration)"
102020 project=ompi
102021 framework=coll
102022 component=basic
102023 component_path="$srcdir/$project/mca/$framework/$component"
102024 want_component=0
102026 # build if:
102027 # - the component type is direct and we are that component
102028 # - there is no ompi_ignore file
102029 # - there is an ompi_ignore, but there is an empty ompi_unignore
102030 # - there is an ompi_ignore, but username is in ompi_unignore
102031 if test -d $component_path ; then
102032 # decide if we want the component to be built or not. This
102033 # is spread out because some of the logic is a little complex
102034 # and test's syntax isn't exactly the greatest. We want to
102035 # build the component by default.
102036 want_component=1
102037 if test -f $component_path/.ompi_ignore ; then
102038 # If there is an ompi_ignore file, don't build
102039 # the component. Note that this decision can be
102040 # overriden by the unignore logic below.
102041 want_component=0
102043 if test -f $component_path/.ompi_unignore ; then
102044 # if there is an empty ompi_unignore, that is
102045 # equivalent to having your userid in the unignore file.
102046 # If userid is in the file, unignore the ignore file.
102047 if test ! -s $component_path/.ompi_unignore ; then
102048 want_component=1
102049 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
102050 want_component=1
102053 # if this component type is direct and we are not it, we don't want
102054 # to be built. Otherwise, we do want to be built.
102055 if test ! -z "$DIRECT_coll" ; then
102056 if test "$DIRECT_coll" = "$component" ; then
102057 want_component=1
102059 want_component=0
102064 # if we were explicitly disabled, don't build :)
102065 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
102066 eval $str
102067 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
102068 want_component=0
102071 if test "$want_component" = "1"; then
102072 should_build=$components_looking_for_succeed
102074 should_build=0
102079 project=ompi
102080 framework=coll
102081 component=basic
102083 # Is this component going to built staic or shared? $component
102084 # might not be known until configure time, so have to use eval
102085 # tricks - can't set variable names at autogen time.
102086 str="SHARED_FRAMEWORK=\$DSO_$framework"
102087 eval $str
102088 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
102089 eval $str
102091 str="STATIC_FRAMEWORK=\$STATIC_$framework"
102092 eval $str
102093 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
102094 eval $str
102096 shared_mode_override=static
102098 # Setup for either shared or static
102099 if test "$STATIC_FRAMEWORK" = "1" -o \
102100 "$STATIC_COMPONENT" = "1" -o \
102101 "$STATIC_all" = "1" ; then
102102 compile_mode="static"
102103 elif test "$shared_mode_override" = "dso" -o \
102104 "$SHARED_FRAMEWORK" = "1" -o \
102105 "$SHARED_COMPONENT" = "1" -o \
102106 "$DSO_all" = "1"; then
102107 compile_mode="dso"
102109 compile_mode="static"
102112 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
102113 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
102114 if test "$DIRECT_coll" = "$component" ; then
102115 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
102116 echo "${ECHO_T}$compile_mode - direct" >&6; }
102118 { echo "$as_me:$LINENO: result: $compile_mode" >&5
102119 echo "${ECHO_T}$compile_mode" >&6; }
102123 if test "$should_build" = "1" ; then
102125 project=ompi
102126 framework=coll
102127 component=basic
102129 # See if it dropped an output file for us to pick up some
102130 # shell variables in.
102131 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
102133 # Add this subdir to the mast list of all MCA component subdirs
102134 all_components="$all_components $component"
102136 if test "$compile_mode" = "dso" ; then
102137 dso_components="$dso_components $component"
102139 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
102140 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
102141 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
102142 static_components="$static_components $component"
102145 # Output pretty results
102146 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
102147 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
102148 { echo "$as_me:$LINENO: result: yes" >&5
102149 echo "${ECHO_T}yes" >&6; }
102151 # If there's an output file, add the values to
102152 # scope_EXTRA_flags.
102153 if test -f $infile; then
102155 # First check for the ABORT tag
102156 line="`grep ABORT= $infile | cut -d= -f2-`"
102157 if test -n "$line" -a "$line" != "no"; then
102158 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
102159 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
102160 { { echo "$as_me:$LINENO: error: cannot continue" >&5
102161 echo "$as_me: error: cannot continue" >&2;}
102162 { (exit 1); exit 1; }; }
102165 # Check for flags passed up from the component. If we're
102166 # compiling statically, then take all flags passed up from the
102167 # component.
102168 if test "$compile_mode" = "static"; then
102169 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
102170 eval "line=$line"
102171 if test -n "$line"; then
102172 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
102174 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
102175 eval "line=$line"
102176 if test -n "$line"; then
102177 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
102181 if test "$DIRECT_coll" = "$component" ; then
102182 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
102183 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
102184 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
102185 eval $str
102187 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
102188 *** does not appear to support direct calling.
102189 *** Aborting" >&5
102190 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
102191 *** does not appear to support direct calling.
102192 *** Aborting" >&2;}
102193 { (exit 1); exit 1; }; }
102197 # were we supposed to have found something in the
102198 # post_configure.sh, but the file didn't exist?
102199 if test "$DIRECT_coll" = "$component" ; then
102200 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
102201 *** does not appear to support direct calling.
102202 *** Aborting" >&5
102203 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
102204 *** does not appear to support direct calling.
102205 *** Aborting" >&2;}
102206 { (exit 1); exit 1; }; }
102210 # now add the flags that were set in the environment variables
102211 # framework_component_FOO (for example, the flags set by
102212 # m4_configure components)
102214 # Check for flags passed up from the component. If we're
102215 # compiling statically, then take all flags passed up from the
102216 # component.
102217 if test "$compile_mode" = "static"; then
102218 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
102219 eval "$str"
102220 if test -n "$line" ; then
102221 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
102223 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
102224 eval "$str"
102225 if test -n "$line" ; then
102226 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
102232 { echo "$as_me:$LINENO: checking if MCA component coll:basic can compile" >&5
102233 echo $ECHO_N "checking if MCA component coll:basic can compile... $ECHO_C" >&6; }
102234 { echo "$as_me:$LINENO: result: no" >&5
102235 echo "${ECHO_T}no" >&6; }
102237 # If this component was requested as the default for this
102238 # type, then abort.
102239 if test "$with_coll" = "basic" ; then
102240 { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
102241 echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
102242 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
102243 echo "$as_me: WARNING: This component was selected as the default" >&2;}
102244 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
102245 echo "$as_me: error: Cannot continue" >&2;}
102246 { (exit 1); exit 1; }; }
102247 exit 1
102250 if test ! -z "$DIRECT_coll" ; then
102251 if test "$DIRECT_coll" = "basic" ; then
102252 { echo "$as_me:$LINENO: WARNING: MCA component \"basic\" failed to configure properly" >&5
102253 echo "$as_me: WARNING: MCA component \"basic\" failed to configure properly" >&2;}
102254 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
102255 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
102256 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
102257 echo "$as_me: error: Cannot continue" >&2;}
102258 { (exit 1); exit 1; }; }
102259 exit 1
102263 # add component to all component list
102264 all_components="$all_components basic"
102267 # set the AM_CONDITIONAL on how we should build
102268 if test "$compile_mode" = "dso" ; then
102269 BUILD_coll_basic_DSO=1
102271 BUILD_coll_basic_DSO=0
102275 if test "$BUILD_coll_basic_DSO" = "1"; then
102276 OMPI_BUILD_coll_basic_DSO_TRUE=
102277 OMPI_BUILD_coll_basic_DSO_FALSE='#'
102279 OMPI_BUILD_coll_basic_DSO_TRUE='#'
102280 OMPI_BUILD_coll_basic_DSO_FALSE=
102284 unset compile_mode
102286 ompi_show_subsubsubtitle "MCA component coll:hierarch (no configuration)"
102289 project=ompi
102290 framework=coll
102291 component=hierarch
102292 component_path="$srcdir/$project/mca/$framework/$component"
102293 want_component=0
102295 # build if:
102296 # - the component type is direct and we are that component
102297 # - there is no ompi_ignore file
102298 # - there is an ompi_ignore, but there is an empty ompi_unignore
102299 # - there is an ompi_ignore, but username is in ompi_unignore
102300 if test -d $component_path ; then
102301 # decide if we want the component to be built or not. This
102302 # is spread out because some of the logic is a little complex
102303 # and test's syntax isn't exactly the greatest. We want to
102304 # build the component by default.
102305 want_component=1
102306 if test -f $component_path/.ompi_ignore ; then
102307 # If there is an ompi_ignore file, don't build
102308 # the component. Note that this decision can be
102309 # overriden by the unignore logic below.
102310 want_component=0
102312 if test -f $component_path/.ompi_unignore ; then
102313 # if there is an empty ompi_unignore, that is
102314 # equivalent to having your userid in the unignore file.
102315 # If userid is in the file, unignore the ignore file.
102316 if test ! -s $component_path/.ompi_unignore ; then
102317 want_component=1
102318 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
102319 want_component=1
102322 # if this component type is direct and we are not it, we don't want
102323 # to be built. Otherwise, we do want to be built.
102324 if test ! -z "$DIRECT_coll" ; then
102325 if test "$DIRECT_coll" = "$component" ; then
102326 want_component=1
102328 want_component=0
102333 # if we were explicitly disabled, don't build :)
102334 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
102335 eval $str
102336 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
102337 want_component=0
102340 if test "$want_component" = "1"; then
102341 should_build=$components_looking_for_succeed
102343 should_build=0
102348 project=ompi
102349 framework=coll
102350 component=hierarch
102352 # Is this component going to built staic or shared? $component
102353 # might not be known until configure time, so have to use eval
102354 # tricks - can't set variable names at autogen time.
102355 str="SHARED_FRAMEWORK=\$DSO_$framework"
102356 eval $str
102357 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
102358 eval $str
102360 str="STATIC_FRAMEWORK=\$STATIC_$framework"
102361 eval $str
102362 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
102363 eval $str
102365 shared_mode_override=static
102367 # Setup for either shared or static
102368 if test "$STATIC_FRAMEWORK" = "1" -o \
102369 "$STATIC_COMPONENT" = "1" -o \
102370 "$STATIC_all" = "1" ; then
102371 compile_mode="static"
102372 elif test "$shared_mode_override" = "dso" -o \
102373 "$SHARED_FRAMEWORK" = "1" -o \
102374 "$SHARED_COMPONENT" = "1" -o \
102375 "$DSO_all" = "1"; then
102376 compile_mode="dso"
102378 compile_mode="static"
102381 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
102382 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
102383 if test "$DIRECT_coll" = "$component" ; then
102384 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
102385 echo "${ECHO_T}$compile_mode - direct" >&6; }
102387 { echo "$as_me:$LINENO: result: $compile_mode" >&5
102388 echo "${ECHO_T}$compile_mode" >&6; }
102392 if test "$should_build" = "1" ; then
102394 project=ompi
102395 framework=coll
102396 component=hierarch
102398 # See if it dropped an output file for us to pick up some
102399 # shell variables in.
102400 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
102402 # Add this subdir to the mast list of all MCA component subdirs
102403 all_components="$all_components $component"
102405 if test "$compile_mode" = "dso" ; then
102406 dso_components="$dso_components $component"
102408 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
102409 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
102410 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
102411 static_components="$static_components $component"
102414 # Output pretty results
102415 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
102416 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
102417 { echo "$as_me:$LINENO: result: yes" >&5
102418 echo "${ECHO_T}yes" >&6; }
102420 # If there's an output file, add the values to
102421 # scope_EXTRA_flags.
102422 if test -f $infile; then
102424 # First check for the ABORT tag
102425 line="`grep ABORT= $infile | cut -d= -f2-`"
102426 if test -n "$line" -a "$line" != "no"; then
102427 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
102428 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
102429 { { echo "$as_me:$LINENO: error: cannot continue" >&5
102430 echo "$as_me: error: cannot continue" >&2;}
102431 { (exit 1); exit 1; }; }
102434 # Check for flags passed up from the component. If we're
102435 # compiling statically, then take all flags passed up from the
102436 # component.
102437 if test "$compile_mode" = "static"; then
102438 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
102439 eval "line=$line"
102440 if test -n "$line"; then
102441 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
102443 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
102444 eval "line=$line"
102445 if test -n "$line"; then
102446 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
102450 if test "$DIRECT_coll" = "$component" ; then
102451 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
102452 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
102453 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
102454 eval $str
102456 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
102457 *** does not appear to support direct calling.
102458 *** Aborting" >&5
102459 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
102460 *** does not appear to support direct calling.
102461 *** Aborting" >&2;}
102462 { (exit 1); exit 1; }; }
102466 # were we supposed to have found something in the
102467 # post_configure.sh, but the file didn't exist?
102468 if test "$DIRECT_coll" = "$component" ; then
102469 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
102470 *** does not appear to support direct calling.
102471 *** Aborting" >&5
102472 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
102473 *** does not appear to support direct calling.
102474 *** Aborting" >&2;}
102475 { (exit 1); exit 1; }; }
102479 # now add the flags that were set in the environment variables
102480 # framework_component_FOO (for example, the flags set by
102481 # m4_configure components)
102483 # Check for flags passed up from the component. If we're
102484 # compiling statically, then take all flags passed up from the
102485 # component.
102486 if test "$compile_mode" = "static"; then
102487 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
102488 eval "$str"
102489 if test -n "$line" ; then
102490 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
102492 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
102493 eval "$str"
102494 if test -n "$line" ; then
102495 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
102501 { echo "$as_me:$LINENO: checking if MCA component coll:hierarch can compile" >&5
102502 echo $ECHO_N "checking if MCA component coll:hierarch can compile... $ECHO_C" >&6; }
102503 { echo "$as_me:$LINENO: result: no" >&5
102504 echo "${ECHO_T}no" >&6; }
102506 # If this component was requested as the default for this
102507 # type, then abort.
102508 if test "$with_coll" = "hierarch" ; then
102509 { echo "$as_me:$LINENO: WARNING: MCA component \"hierarch\" failed to configure properly" >&5
102510 echo "$as_me: WARNING: MCA component \"hierarch\" failed to configure properly" >&2;}
102511 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
102512 echo "$as_me: WARNING: This component was selected as the default" >&2;}
102513 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
102514 echo "$as_me: error: Cannot continue" >&2;}
102515 { (exit 1); exit 1; }; }
102516 exit 1
102519 if test ! -z "$DIRECT_coll" ; then
102520 if test "$DIRECT_coll" = "hierarch" ; then
102521 { echo "$as_me:$LINENO: WARNING: MCA component \"hierarch\" failed to configure properly" >&5
102522 echo "$as_me: WARNING: MCA component \"hierarch\" failed to configure properly" >&2;}
102523 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
102524 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
102525 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
102526 echo "$as_me: error: Cannot continue" >&2;}
102527 { (exit 1); exit 1; }; }
102528 exit 1
102532 # add component to all component list
102533 all_components="$all_components hierarch"
102536 # set the AM_CONDITIONAL on how we should build
102537 if test "$compile_mode" = "dso" ; then
102538 BUILD_coll_hierarch_DSO=1
102540 BUILD_coll_hierarch_DSO=0
102544 if test "$BUILD_coll_hierarch_DSO" = "1"; then
102545 OMPI_BUILD_coll_hierarch_DSO_TRUE=
102546 OMPI_BUILD_coll_hierarch_DSO_FALSE='#'
102548 OMPI_BUILD_coll_hierarch_DSO_TRUE='#'
102549 OMPI_BUILD_coll_hierarch_DSO_FALSE=
102553 unset compile_mode
102555 ompi_show_subsubsubtitle "MCA component coll:self (no configuration)"
102558 project=ompi
102559 framework=coll
102560 component=self
102561 component_path="$srcdir/$project/mca/$framework/$component"
102562 want_component=0
102564 # build if:
102565 # - the component type is direct and we are that component
102566 # - there is no ompi_ignore file
102567 # - there is an ompi_ignore, but there is an empty ompi_unignore
102568 # - there is an ompi_ignore, but username is in ompi_unignore
102569 if test -d $component_path ; then
102570 # decide if we want the component to be built or not. This
102571 # is spread out because some of the logic is a little complex
102572 # and test's syntax isn't exactly the greatest. We want to
102573 # build the component by default.
102574 want_component=1
102575 if test -f $component_path/.ompi_ignore ; then
102576 # If there is an ompi_ignore file, don't build
102577 # the component. Note that this decision can be
102578 # overriden by the unignore logic below.
102579 want_component=0
102581 if test -f $component_path/.ompi_unignore ; then
102582 # if there is an empty ompi_unignore, that is
102583 # equivalent to having your userid in the unignore file.
102584 # If userid is in the file, unignore the ignore file.
102585 if test ! -s $component_path/.ompi_unignore ; then
102586 want_component=1
102587 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
102588 want_component=1
102591 # if this component type is direct and we are not it, we don't want
102592 # to be built. Otherwise, we do want to be built.
102593 if test ! -z "$DIRECT_coll" ; then
102594 if test "$DIRECT_coll" = "$component" ; then
102595 want_component=1
102597 want_component=0
102602 # if we were explicitly disabled, don't build :)
102603 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
102604 eval $str
102605 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
102606 want_component=0
102609 if test "$want_component" = "1"; then
102610 should_build=$components_looking_for_succeed
102612 should_build=0
102617 project=ompi
102618 framework=coll
102619 component=self
102621 # Is this component going to built staic or shared? $component
102622 # might not be known until configure time, so have to use eval
102623 # tricks - can't set variable names at autogen time.
102624 str="SHARED_FRAMEWORK=\$DSO_$framework"
102625 eval $str
102626 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
102627 eval $str
102629 str="STATIC_FRAMEWORK=\$STATIC_$framework"
102630 eval $str
102631 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
102632 eval $str
102634 shared_mode_override=static
102636 # Setup for either shared or static
102637 if test "$STATIC_FRAMEWORK" = "1" -o \
102638 "$STATIC_COMPONENT" = "1" -o \
102639 "$STATIC_all" = "1" ; then
102640 compile_mode="static"
102641 elif test "$shared_mode_override" = "dso" -o \
102642 "$SHARED_FRAMEWORK" = "1" -o \
102643 "$SHARED_COMPONENT" = "1" -o \
102644 "$DSO_all" = "1"; then
102645 compile_mode="dso"
102647 compile_mode="static"
102650 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
102651 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
102652 if test "$DIRECT_coll" = "$component" ; then
102653 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
102654 echo "${ECHO_T}$compile_mode - direct" >&6; }
102656 { echo "$as_me:$LINENO: result: $compile_mode" >&5
102657 echo "${ECHO_T}$compile_mode" >&6; }
102661 if test "$should_build" = "1" ; then
102663 project=ompi
102664 framework=coll
102665 component=self
102667 # See if it dropped an output file for us to pick up some
102668 # shell variables in.
102669 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
102671 # Add this subdir to the mast list of all MCA component subdirs
102672 all_components="$all_components $component"
102674 if test "$compile_mode" = "dso" ; then
102675 dso_components="$dso_components $component"
102677 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
102678 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
102679 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
102680 static_components="$static_components $component"
102683 # Output pretty results
102684 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
102685 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
102686 { echo "$as_me:$LINENO: result: yes" >&5
102687 echo "${ECHO_T}yes" >&6; }
102689 # If there's an output file, add the values to
102690 # scope_EXTRA_flags.
102691 if test -f $infile; then
102693 # First check for the ABORT tag
102694 line="`grep ABORT= $infile | cut -d= -f2-`"
102695 if test -n "$line" -a "$line" != "no"; then
102696 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
102697 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
102698 { { echo "$as_me:$LINENO: error: cannot continue" >&5
102699 echo "$as_me: error: cannot continue" >&2;}
102700 { (exit 1); exit 1; }; }
102703 # Check for flags passed up from the component. If we're
102704 # compiling statically, then take all flags passed up from the
102705 # component.
102706 if test "$compile_mode" = "static"; then
102707 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
102708 eval "line=$line"
102709 if test -n "$line"; then
102710 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
102712 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
102713 eval "line=$line"
102714 if test -n "$line"; then
102715 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
102719 if test "$DIRECT_coll" = "$component" ; then
102720 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
102721 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
102722 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
102723 eval $str
102725 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
102726 *** does not appear to support direct calling.
102727 *** Aborting" >&5
102728 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
102729 *** does not appear to support direct calling.
102730 *** Aborting" >&2;}
102731 { (exit 1); exit 1; }; }
102735 # were we supposed to have found something in the
102736 # post_configure.sh, but the file didn't exist?
102737 if test "$DIRECT_coll" = "$component" ; then
102738 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
102739 *** does not appear to support direct calling.
102740 *** Aborting" >&5
102741 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
102742 *** does not appear to support direct calling.
102743 *** Aborting" >&2;}
102744 { (exit 1); exit 1; }; }
102748 # now add the flags that were set in the environment variables
102749 # framework_component_FOO (for example, the flags set by
102750 # m4_configure components)
102752 # Check for flags passed up from the component. If we're
102753 # compiling statically, then take all flags passed up from the
102754 # component.
102755 if test "$compile_mode" = "static"; then
102756 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
102757 eval "$str"
102758 if test -n "$line" ; then
102759 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
102761 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
102762 eval "$str"
102763 if test -n "$line" ; then
102764 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
102770 { echo "$as_me:$LINENO: checking if MCA component coll:self can compile" >&5
102771 echo $ECHO_N "checking if MCA component coll:self can compile... $ECHO_C" >&6; }
102772 { echo "$as_me:$LINENO: result: no" >&5
102773 echo "${ECHO_T}no" >&6; }
102775 # If this component was requested as the default for this
102776 # type, then abort.
102777 if test "$with_coll" = "self" ; then
102778 { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
102779 echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
102780 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
102781 echo "$as_me: WARNING: This component was selected as the default" >&2;}
102782 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
102783 echo "$as_me: error: Cannot continue" >&2;}
102784 { (exit 1); exit 1; }; }
102785 exit 1
102788 if test ! -z "$DIRECT_coll" ; then
102789 if test "$DIRECT_coll" = "self" ; then
102790 { echo "$as_me:$LINENO: WARNING: MCA component \"self\" failed to configure properly" >&5
102791 echo "$as_me: WARNING: MCA component \"self\" failed to configure properly" >&2;}
102792 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
102793 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
102794 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
102795 echo "$as_me: error: Cannot continue" >&2;}
102796 { (exit 1); exit 1; }; }
102797 exit 1
102801 # add component to all component list
102802 all_components="$all_components self"
102805 # set the AM_CONDITIONAL on how we should build
102806 if test "$compile_mode" = "dso" ; then
102807 BUILD_coll_self_DSO=1
102809 BUILD_coll_self_DSO=0
102813 if test "$BUILD_coll_self_DSO" = "1"; then
102814 OMPI_BUILD_coll_self_DSO_TRUE=
102815 OMPI_BUILD_coll_self_DSO_FALSE='#'
102817 OMPI_BUILD_coll_self_DSO_TRUE='#'
102818 OMPI_BUILD_coll_self_DSO_FALSE=
102822 unset compile_mode
102824 ompi_show_subsubsubtitle "MCA component coll:sm (no configuration)"
102827 project=ompi
102828 framework=coll
102829 component=sm
102830 component_path="$srcdir/$project/mca/$framework/$component"
102831 want_component=0
102833 # build if:
102834 # - the component type is direct and we are that component
102835 # - there is no ompi_ignore file
102836 # - there is an ompi_ignore, but there is an empty ompi_unignore
102837 # - there is an ompi_ignore, but username is in ompi_unignore
102838 if test -d $component_path ; then
102839 # decide if we want the component to be built or not. This
102840 # is spread out because some of the logic is a little complex
102841 # and test's syntax isn't exactly the greatest. We want to
102842 # build the component by default.
102843 want_component=1
102844 if test -f $component_path/.ompi_ignore ; then
102845 # If there is an ompi_ignore file, don't build
102846 # the component. Note that this decision can be
102847 # overriden by the unignore logic below.
102848 want_component=0
102850 if test -f $component_path/.ompi_unignore ; then
102851 # if there is an empty ompi_unignore, that is
102852 # equivalent to having your userid in the unignore file.
102853 # If userid is in the file, unignore the ignore file.
102854 if test ! -s $component_path/.ompi_unignore ; then
102855 want_component=1
102856 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
102857 want_component=1
102860 # if this component type is direct and we are not it, we don't want
102861 # to be built. Otherwise, we do want to be built.
102862 if test ! -z "$DIRECT_coll" ; then
102863 if test "$DIRECT_coll" = "$component" ; then
102864 want_component=1
102866 want_component=0
102871 # if we were explicitly disabled, don't build :)
102872 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
102873 eval $str
102874 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
102875 want_component=0
102878 if test "$want_component" = "1"; then
102879 should_build=$components_looking_for_succeed
102881 should_build=0
102886 project=ompi
102887 framework=coll
102888 component=sm
102890 # Is this component going to built staic or shared? $component
102891 # might not be known until configure time, so have to use eval
102892 # tricks - can't set variable names at autogen time.
102893 str="SHARED_FRAMEWORK=\$DSO_$framework"
102894 eval $str
102895 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
102896 eval $str
102898 str="STATIC_FRAMEWORK=\$STATIC_$framework"
102899 eval $str
102900 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
102901 eval $str
102903 shared_mode_override=static
102905 # Setup for either shared or static
102906 if test "$STATIC_FRAMEWORK" = "1" -o \
102907 "$STATIC_COMPONENT" = "1" -o \
102908 "$STATIC_all" = "1" ; then
102909 compile_mode="static"
102910 elif test "$shared_mode_override" = "dso" -o \
102911 "$SHARED_FRAMEWORK" = "1" -o \
102912 "$SHARED_COMPONENT" = "1" -o \
102913 "$DSO_all" = "1"; then
102914 compile_mode="dso"
102916 compile_mode="static"
102919 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
102920 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
102921 if test "$DIRECT_coll" = "$component" ; then
102922 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
102923 echo "${ECHO_T}$compile_mode - direct" >&6; }
102925 { echo "$as_me:$LINENO: result: $compile_mode" >&5
102926 echo "${ECHO_T}$compile_mode" >&6; }
102930 if test "$should_build" = "1" ; then
102932 project=ompi
102933 framework=coll
102934 component=sm
102936 # See if it dropped an output file for us to pick up some
102937 # shell variables in.
102938 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
102940 # Add this subdir to the mast list of all MCA component subdirs
102941 all_components="$all_components $component"
102943 if test "$compile_mode" = "dso" ; then
102944 dso_components="$dso_components $component"
102946 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
102947 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
102948 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
102949 static_components="$static_components $component"
102952 # Output pretty results
102953 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
102954 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
102955 { echo "$as_me:$LINENO: result: yes" >&5
102956 echo "${ECHO_T}yes" >&6; }
102958 # If there's an output file, add the values to
102959 # scope_EXTRA_flags.
102960 if test -f $infile; then
102962 # First check for the ABORT tag
102963 line="`grep ABORT= $infile | cut -d= -f2-`"
102964 if test -n "$line" -a "$line" != "no"; then
102965 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
102966 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
102967 { { echo "$as_me:$LINENO: error: cannot continue" >&5
102968 echo "$as_me: error: cannot continue" >&2;}
102969 { (exit 1); exit 1; }; }
102972 # Check for flags passed up from the component. If we're
102973 # compiling statically, then take all flags passed up from the
102974 # component.
102975 if test "$compile_mode" = "static"; then
102976 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
102977 eval "line=$line"
102978 if test -n "$line"; then
102979 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
102981 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
102982 eval "line=$line"
102983 if test -n "$line"; then
102984 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
102988 if test "$DIRECT_coll" = "$component" ; then
102989 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
102990 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
102991 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
102992 eval $str
102994 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
102995 *** does not appear to support direct calling.
102996 *** Aborting" >&5
102997 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
102998 *** does not appear to support direct calling.
102999 *** Aborting" >&2;}
103000 { (exit 1); exit 1; }; }
103004 # were we supposed to have found something in the
103005 # post_configure.sh, but the file didn't exist?
103006 if test "$DIRECT_coll" = "$component" ; then
103007 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
103008 *** does not appear to support direct calling.
103009 *** Aborting" >&5
103010 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
103011 *** does not appear to support direct calling.
103012 *** Aborting" >&2;}
103013 { (exit 1); exit 1; }; }
103017 # now add the flags that were set in the environment variables
103018 # framework_component_FOO (for example, the flags set by
103019 # m4_configure components)
103021 # Check for flags passed up from the component. If we're
103022 # compiling statically, then take all flags passed up from the
103023 # component.
103024 if test "$compile_mode" = "static"; then
103025 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
103026 eval "$str"
103027 if test -n "$line" ; then
103028 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
103030 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
103031 eval "$str"
103032 if test -n "$line" ; then
103033 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
103039 { echo "$as_me:$LINENO: checking if MCA component coll:sm can compile" >&5
103040 echo $ECHO_N "checking if MCA component coll:sm can compile... $ECHO_C" >&6; }
103041 { echo "$as_me:$LINENO: result: no" >&5
103042 echo "${ECHO_T}no" >&6; }
103044 # If this component was requested as the default for this
103045 # type, then abort.
103046 if test "$with_coll" = "sm" ; then
103047 { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
103048 echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
103049 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
103050 echo "$as_me: WARNING: This component was selected as the default" >&2;}
103051 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
103052 echo "$as_me: error: Cannot continue" >&2;}
103053 { (exit 1); exit 1; }; }
103054 exit 1
103057 if test ! -z "$DIRECT_coll" ; then
103058 if test "$DIRECT_coll" = "sm" ; then
103059 { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
103060 echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
103061 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
103062 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
103063 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
103064 echo "$as_me: error: Cannot continue" >&2;}
103065 { (exit 1); exit 1; }; }
103066 exit 1
103070 # add component to all component list
103071 all_components="$all_components sm"
103074 # set the AM_CONDITIONAL on how we should build
103075 if test "$compile_mode" = "dso" ; then
103076 BUILD_coll_sm_DSO=1
103078 BUILD_coll_sm_DSO=0
103082 if test "$BUILD_coll_sm_DSO" = "1"; then
103083 OMPI_BUILD_coll_sm_DSO_TRUE=
103084 OMPI_BUILD_coll_sm_DSO_FALSE='#'
103086 OMPI_BUILD_coll_sm_DSO_TRUE='#'
103087 OMPI_BUILD_coll_sm_DSO_FALSE=
103091 unset compile_mode
103093 ompi_show_subsubsubtitle "MCA component coll:tuned (no configuration)"
103096 project=ompi
103097 framework=coll
103098 component=tuned
103099 component_path="$srcdir/$project/mca/$framework/$component"
103100 want_component=0
103102 # build if:
103103 # - the component type is direct and we are that component
103104 # - there is no ompi_ignore file
103105 # - there is an ompi_ignore, but there is an empty ompi_unignore
103106 # - there is an ompi_ignore, but username is in ompi_unignore
103107 if test -d $component_path ; then
103108 # decide if we want the component to be built or not. This
103109 # is spread out because some of the logic is a little complex
103110 # and test's syntax isn't exactly the greatest. We want to
103111 # build the component by default.
103112 want_component=1
103113 if test -f $component_path/.ompi_ignore ; then
103114 # If there is an ompi_ignore file, don't build
103115 # the component. Note that this decision can be
103116 # overriden by the unignore logic below.
103117 want_component=0
103119 if test -f $component_path/.ompi_unignore ; then
103120 # if there is an empty ompi_unignore, that is
103121 # equivalent to having your userid in the unignore file.
103122 # If userid is in the file, unignore the ignore file.
103123 if test ! -s $component_path/.ompi_unignore ; then
103124 want_component=1
103125 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
103126 want_component=1
103129 # if this component type is direct and we are not it, we don't want
103130 # to be built. Otherwise, we do want to be built.
103131 if test ! -z "$DIRECT_coll" ; then
103132 if test "$DIRECT_coll" = "$component" ; then
103133 want_component=1
103135 want_component=0
103140 # if we were explicitly disabled, don't build :)
103141 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
103142 eval $str
103143 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
103144 want_component=0
103147 if test "$want_component" = "1"; then
103148 should_build=$components_looking_for_succeed
103150 should_build=0
103155 project=ompi
103156 framework=coll
103157 component=tuned
103159 # Is this component going to built staic or shared? $component
103160 # might not be known until configure time, so have to use eval
103161 # tricks - can't set variable names at autogen time.
103162 str="SHARED_FRAMEWORK=\$DSO_$framework"
103163 eval $str
103164 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
103165 eval $str
103167 str="STATIC_FRAMEWORK=\$STATIC_$framework"
103168 eval $str
103169 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
103170 eval $str
103172 shared_mode_override=static
103174 # Setup for either shared or static
103175 if test "$STATIC_FRAMEWORK" = "1" -o \
103176 "$STATIC_COMPONENT" = "1" -o \
103177 "$STATIC_all" = "1" ; then
103178 compile_mode="static"
103179 elif test "$shared_mode_override" = "dso" -o \
103180 "$SHARED_FRAMEWORK" = "1" -o \
103181 "$SHARED_COMPONENT" = "1" -o \
103182 "$DSO_all" = "1"; then
103183 compile_mode="dso"
103185 compile_mode="static"
103188 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
103189 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
103190 if test "$DIRECT_coll" = "$component" ; then
103191 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
103192 echo "${ECHO_T}$compile_mode - direct" >&6; }
103194 { echo "$as_me:$LINENO: result: $compile_mode" >&5
103195 echo "${ECHO_T}$compile_mode" >&6; }
103199 if test "$should_build" = "1" ; then
103201 project=ompi
103202 framework=coll
103203 component=tuned
103205 # See if it dropped an output file for us to pick up some
103206 # shell variables in.
103207 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
103209 # Add this subdir to the mast list of all MCA component subdirs
103210 all_components="$all_components $component"
103212 if test "$compile_mode" = "dso" ; then
103213 dso_components="$dso_components $component"
103215 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
103216 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
103217 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
103218 static_components="$static_components $component"
103221 # Output pretty results
103222 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
103223 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
103224 { echo "$as_me:$LINENO: result: yes" >&5
103225 echo "${ECHO_T}yes" >&6; }
103227 # If there's an output file, add the values to
103228 # scope_EXTRA_flags.
103229 if test -f $infile; then
103231 # First check for the ABORT tag
103232 line="`grep ABORT= $infile | cut -d= -f2-`"
103233 if test -n "$line" -a "$line" != "no"; then
103234 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
103235 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
103236 { { echo "$as_me:$LINENO: error: cannot continue" >&5
103237 echo "$as_me: error: cannot continue" >&2;}
103238 { (exit 1); exit 1; }; }
103241 # Check for flags passed up from the component. If we're
103242 # compiling statically, then take all flags passed up from the
103243 # component.
103244 if test "$compile_mode" = "static"; then
103245 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
103246 eval "line=$line"
103247 if test -n "$line"; then
103248 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
103250 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
103251 eval "line=$line"
103252 if test -n "$line"; then
103253 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
103257 if test "$DIRECT_coll" = "$component" ; then
103258 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
103259 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
103260 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
103261 eval $str
103263 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
103264 *** does not appear to support direct calling.
103265 *** Aborting" >&5
103266 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
103267 *** does not appear to support direct calling.
103268 *** Aborting" >&2;}
103269 { (exit 1); exit 1; }; }
103273 # were we supposed to have found something in the
103274 # post_configure.sh, but the file didn't exist?
103275 if test "$DIRECT_coll" = "$component" ; then
103276 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
103277 *** does not appear to support direct calling.
103278 *** Aborting" >&5
103279 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
103280 *** does not appear to support direct calling.
103281 *** Aborting" >&2;}
103282 { (exit 1); exit 1; }; }
103286 # now add the flags that were set in the environment variables
103287 # framework_component_FOO (for example, the flags set by
103288 # m4_configure components)
103290 # Check for flags passed up from the component. If we're
103291 # compiling statically, then take all flags passed up from the
103292 # component.
103293 if test "$compile_mode" = "static"; then
103294 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
103295 eval "$str"
103296 if test -n "$line" ; then
103297 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
103299 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
103300 eval "$str"
103301 if test -n "$line" ; then
103302 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
103308 { echo "$as_me:$LINENO: checking if MCA component coll:tuned can compile" >&5
103309 echo $ECHO_N "checking if MCA component coll:tuned can compile... $ECHO_C" >&6; }
103310 { echo "$as_me:$LINENO: result: no" >&5
103311 echo "${ECHO_T}no" >&6; }
103313 # If this component was requested as the default for this
103314 # type, then abort.
103315 if test "$with_coll" = "tuned" ; then
103316 { echo "$as_me:$LINENO: WARNING: MCA component \"tuned\" failed to configure properly" >&5
103317 echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;}
103318 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
103319 echo "$as_me: WARNING: This component was selected as the default" >&2;}
103320 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
103321 echo "$as_me: error: Cannot continue" >&2;}
103322 { (exit 1); exit 1; }; }
103323 exit 1
103326 if test ! -z "$DIRECT_coll" ; then
103327 if test "$DIRECT_coll" = "tuned" ; then
103328 { echo "$as_me:$LINENO: WARNING: MCA component \"tuned\" failed to configure properly" >&5
103329 echo "$as_me: WARNING: MCA component \"tuned\" failed to configure properly" >&2;}
103330 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
103331 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
103332 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
103333 echo "$as_me: error: Cannot continue" >&2;}
103334 { (exit 1); exit 1; }; }
103335 exit 1
103339 # add component to all component list
103340 all_components="$all_components tuned"
103343 # set the AM_CONDITIONAL on how we should build
103344 if test "$compile_mode" = "dso" ; then
103345 BUILD_coll_tuned_DSO=1
103347 BUILD_coll_tuned_DSO=0
103351 if test "$BUILD_coll_tuned_DSO" = "1"; then
103352 OMPI_BUILD_coll_tuned_DSO_TRUE=
103353 OMPI_BUILD_coll_tuned_DSO_FALSE='#'
103355 OMPI_BUILD_coll_tuned_DSO_TRUE='#'
103356 OMPI_BUILD_coll_tuned_DSO_FALSE=
103360 unset compile_mode
103363 # configure components that use built-in configuration scripts
103364 # see comment in CONFIGURE_PROJECT about the m4_ifval
103365 # if there isn't a component list, abort
103369 # configure components that provide their own configure script.
103370 # It would be really hard to run these for "find first that
103371 # works", so we don't :)
103372 if test "$happy_value" = "1"; then
103374 for component_path in $srcdir/ompi/mca/coll/* ; do
103375 component="`basename $component_path`"
103376 if test -d $component_path -a -x $component_path/configure ; then
103377 ompi_show_subsubsubtitle "MCA component coll:$component (need to configure)"
103380 project=ompi
103381 framework=coll
103382 component=$component
103383 component_path="$srcdir/$project/mca/$framework/$component"
103384 want_component=0
103386 # build if:
103387 # - the component type is direct and we are that component
103388 # - there is no ompi_ignore file
103389 # - there is an ompi_ignore, but there is an empty ompi_unignore
103390 # - there is an ompi_ignore, but username is in ompi_unignore
103391 if test -d $component_path ; then
103392 # decide if we want the component to be built or not. This
103393 # is spread out because some of the logic is a little complex
103394 # and test's syntax isn't exactly the greatest. We want to
103395 # build the component by default.
103396 want_component=1
103397 if test -f $component_path/.ompi_ignore ; then
103398 # If there is an ompi_ignore file, don't build
103399 # the component. Note that this decision can be
103400 # overriden by the unignore logic below.
103401 want_component=0
103403 if test -f $component_path/.ompi_unignore ; then
103404 # if there is an empty ompi_unignore, that is
103405 # equivalent to having your userid in the unignore file.
103406 # If userid is in the file, unignore the ignore file.
103407 if test ! -s $component_path/.ompi_unignore ; then
103408 want_component=1
103409 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
103410 want_component=1
103413 # if this component type is direct and we are not it, we don't want
103414 # to be built. Otherwise, we do want to be built.
103415 if test ! -z "$DIRECT_coll" ; then
103416 if test "$DIRECT_coll" = "$component" ; then
103417 want_component=1
103419 want_component=0
103424 # if we were explicitly disabled, don't build :)
103425 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
103426 eval $str
103427 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
103428 want_component=0
103431 if test "$want_component" = "1"; then
103432 should_build=1
103434 should_build=0
103439 project=ompi
103440 framework=coll
103441 component=$component
103443 # Is this component going to built staic or shared? $component
103444 # might not be known until configure time, so have to use eval
103445 # tricks - can't set variable names at autogen time.
103446 str="SHARED_FRAMEWORK=\$DSO_$framework"
103447 eval $str
103448 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
103449 eval $str
103451 str="STATIC_FRAMEWORK=\$STATIC_$framework"
103452 eval $str
103453 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
103454 eval $str
103456 shared_mode_override=static
103458 # Setup for either shared or static
103459 if test "$STATIC_FRAMEWORK" = "1" -o \
103460 "$STATIC_COMPONENT" = "1" -o \
103461 "$STATIC_all" = "1" ; then
103462 compile_mode="static"
103463 elif test "$shared_mode_override" = "dso" -o \
103464 "$SHARED_FRAMEWORK" = "1" -o \
103465 "$SHARED_COMPONENT" = "1" -o \
103466 "$DSO_all" = "1"; then
103467 compile_mode="dso"
103469 compile_mode="static"
103472 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
103473 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
103474 if test "$DIRECT_coll" = "$component" ; then
103475 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
103476 echo "${ECHO_T}$compile_mode - direct" >&6; }
103478 { echo "$as_me:$LINENO: result: $compile_mode" >&5
103479 echo "${ECHO_T}$compile_mode" >&6; }
103483 if test "$should_build" = "1" ; then
103486 # Invoke configure in a specific subdirectory.
103488 # ompi/mca/coll/$component is the directory to invoke in
103489 # $ompi_subdir_args is the list of arguments to pass
103490 # should_build=1 is actions to execute upon success
103491 # should_build=2 is actions to execute upon failure
103493 subdir_dir="ompi/mca/coll/$component"
103494 subdir_args="$ompi_subdir_args"
103495 subdir_success="should_build=1"
103496 subdir_failure="should_build=2"
103499 # Sanity checks
103502 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
103503 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
103504 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
103507 # Gotta check where srcdir is for VPATH builds. If srcdir is not
103508 # ., then we need to mkdir the subdir. Otherwise, we can just cd
103509 # into it.
103512 case $srcdir in
103516 { case $subdir_dir in
103517 [\\/]* | ?:[\\/]* ) total_dir=;;
103518 *) total_dir=.;;
103520 temp=$subdir_dir
103521 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
103522 case $dir_part in
103523 # Skip DOS drivespec
103524 ?:) total_dir=$dir_part ;;
103525 *) total_dir=$total_dir/$dir_part
103526 test -d "$total_dir" ||
103527 mkdir "$total_dir" ||
103528 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
103529 echo "$as_me: error: cannot create $subdir_dir" >&2;}
103530 { (exit 1); exit 1; }; }
103533 done; }
103535 if test -d ./$subdir_dir; then :;
103537 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
103538 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
103539 { (exit 1); exit 1; }; }
103545 # Move into the target directory
103548 subdir_parent=`pwd`
103549 cd $subdir_dir
103552 # Make a "../" for each directory in $subdir_dir.
103555 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
103557 # Construct the --srcdir argument
103560 case $srcdir in
103562 # In place
103563 subdir_srcdir="$srcdir"
103565 [\\/]* | ?:[\\/]* )
103566 # Absolute path
103567 subdir_srcdir="$srcdir/$subdir_dir"
103570 # Relative path
103571 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
103576 # Construct the --cache-file argument
103579 # BWB - subdir caching is a pain since we change CFLAGS and all that.
103580 # Just disable it for now
103581 subdir_cache_file="/dev/null"
103584 # Invoke the configure script in the subdirectory
103587 export CFLAGS CPPFLAGS
103588 export CXXFLAGS CXXCPPFLAGS
103589 export FFLAGS
103590 export LDFLAGS LIBS
103591 sub_configure="$SHELL '$subdir_srcdir/configure'"
103592 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
103593 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
103594 eval "$sub_configure $subdir_args \
103595 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
103596 if test "$?" = "0"; then
103597 eval $subdir_success
103598 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
103599 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
103601 eval $subdir_failure
103602 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
103603 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
103607 # Go back to the topdir
103610 cd $subdir_parent
103614 # Clean up
103617 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
103618 unset subdir_args subdir_dots total_dir dir_part temp
103621 if test "$should_build" = "1" ; then
103623 project=ompi
103624 framework=coll
103625 component=$component
103627 # See if it dropped an output file for us to pick up some
103628 # shell variables in.
103629 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
103631 # Add this subdir to the mast list of all MCA component subdirs
103632 all_components="$all_components $component"
103634 if test "$compile_mode" = "dso" ; then
103635 dso_components="$dso_components $component"
103637 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
103638 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
103639 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
103640 static_components="$static_components $component"
103643 # Output pretty results
103644 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
103645 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
103646 { echo "$as_me:$LINENO: result: yes" >&5
103647 echo "${ECHO_T}yes" >&6; }
103649 # If there's an output file, add the values to
103650 # scope_EXTRA_flags.
103651 if test -f $infile; then
103653 # First check for the ABORT tag
103654 line="`grep ABORT= $infile | cut -d= -f2-`"
103655 if test -n "$line" -a "$line" != "no"; then
103656 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
103657 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
103658 { { echo "$as_me:$LINENO: error: cannot continue" >&5
103659 echo "$as_me: error: cannot continue" >&2;}
103660 { (exit 1); exit 1; }; }
103663 # Check for flags passed up from the component. If we're
103664 # compiling statically, then take all flags passed up from the
103665 # component.
103666 if test "$compile_mode" = "static"; then
103667 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
103668 eval "line=$line"
103669 if test -n "$line"; then
103670 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
103672 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
103673 eval "line=$line"
103674 if test -n "$line"; then
103675 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
103679 if test "$DIRECT_coll" = "$component" ; then
103680 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
103681 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
103682 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
103683 eval $str
103685 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
103686 *** does not appear to support direct calling.
103687 *** Aborting" >&5
103688 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
103689 *** does not appear to support direct calling.
103690 *** Aborting" >&2;}
103691 { (exit 1); exit 1; }; }
103695 # were we supposed to have found something in the
103696 # post_configure.sh, but the file didn't exist?
103697 if test "$DIRECT_coll" = "$component" ; then
103698 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
103699 *** does not appear to support direct calling.
103700 *** Aborting" >&5
103701 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
103702 *** does not appear to support direct calling.
103703 *** Aborting" >&2;}
103704 { (exit 1); exit 1; }; }
103708 # now add the flags that were set in the environment variables
103709 # framework_component_FOO (for example, the flags set by
103710 # m4_configure components)
103712 # Check for flags passed up from the component. If we're
103713 # compiling statically, then take all flags passed up from the
103714 # component.
103715 if test "$compile_mode" = "static"; then
103716 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
103717 eval "$str"
103718 if test -n "$line" ; then
103719 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
103721 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
103722 eval "$str"
103723 if test -n "$line" ; then
103724 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
103730 { echo "$as_me:$LINENO: checking if MCA component coll:$component can compile" >&5
103731 echo $ECHO_N "checking if MCA component coll:$component can compile... $ECHO_C" >&6; }
103732 { echo "$as_me:$LINENO: result: no" >&5
103733 echo "${ECHO_T}no" >&6; }
103735 # If this component was requested as the default for this
103736 # type, then abort.
103737 if test "$with_coll" = "$component" ; then
103738 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
103739 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
103740 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
103741 echo "$as_me: WARNING: This component was selected as the default" >&2;}
103742 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
103743 echo "$as_me: error: Cannot continue" >&2;}
103744 { (exit 1); exit 1; }; }
103745 exit 1
103748 if test ! -z "$DIRECT_coll" ; then
103749 if test "$DIRECT_coll" = "$component" ; then
103750 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
103751 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
103752 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
103753 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
103754 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
103755 echo "$as_me: error: Cannot continue" >&2;}
103756 { (exit 1); exit 1; }; }
103757 exit 1
103768 MCA_coll_ALL_COMPONENTS="$all_components"
103769 MCA_coll_STATIC_COMPONENTS="$static_components"
103770 MCA_coll_DSO_COMPONENTS="$dso_components"
103771 MCA_coll_STATIC_LTLIBS="$static_ltlibs"
103779 MCA_coll_ALL_SUBDIRS=
103780 for item in $all_components ; do
103781 MCA_coll_ALL_SUBDIRS="$MCA_coll_ALL_SUBDIRS mca/coll/$item"
103786 MCA_coll_STATIC_SUBDIRS=
103787 for item in $static_components ; do
103788 MCA_coll_STATIC_SUBDIRS="$MCA_coll_STATIC_SUBDIRS mca/coll/$item"
103793 MCA_coll_DSO_SUBDIRS=
103794 for item in $dso_components ; do
103795 MCA_coll_DSO_SUBDIRS="$MCA_coll_DSO_SUBDIRS mca/coll/$item"
103800 # add all the makefiles for the framework to the CONFIG_FILES.
103801 # Don't add common/base, since it doesn't exist
103802 ac_config_files="$ac_config_files ompi/mca/coll/Makefile"
103805 # Create the final .h file that will be included in the type's
103806 # top-level glue. This lists all the static components. We don't
103807 # need to do this for "common".
103808 if test "coll" != "common"; then
103809 cat > $outfile <<EOF
103811 * \$HEADER\$
103814 `cat $outfile.extern`
103816 const mca_base_component_t *mca_coll_base_static_components[] = {
103817 `cat $outfile.struct`
103821 # Only replace the header file if a) it doesn't previously
103822 # exist, or b) the contents are different. Do this to not
103823 # trigger recompilation of certain .c files just because the
103824 # timestamp changed on $outfile_real (similar to the way AC
103825 # handles AC_CONFIG_HEADER files).
103826 diff $outfile $outfile_real > /dev/null 2>&1
103827 if test "$?" != "0"; then
103828 mv $outfile $outfile_real
103830 rm -f $outfile
103833 rm -f $outfile.struct $outfile.extern
103835 unset all_components static_components dso_components outfile outfile_real
103836 # common has to go up front
103837 if test "common" = "common" ; then
103838 MCA_ompi_FRAMEWORKS="common $MCA_ompi_FRAMEWORKS"
103839 MCA_ompi_FRAMEWORKS_SUBDIRS="mca/common $MCA_ompi_FRAMEWORKS_SUBDIRS"
103840 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_common_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
103841 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_common_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
103842 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_common_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
103844 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS common"
103845 MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/common"
103846 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_common_ALL_SUBDIRS)"
103847 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_common_DSO_SUBDIRS)"
103848 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_common_STATIC_SUBDIRS)"
103850 if test "common" != "common" ; then
103851 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/common/libmca_common.la"
103853 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_common_STATIC_LTLIBS)"
103855 ompi_show_subsubtitle "Configuring MCA framework common"
103857 # setup for framework
103858 all_components=
103859 static_components=
103860 dso_components=
103861 static_ltlibs=
103863 # Ensure that the directory where the #include file is to live
103864 # exists. Need to do this for VPATH builds, because the directory
103865 # may not exist yet. For the "common" type, it's not really a
103866 # component, so it doesn't have a base.
103867 if test "common" = "common" ; then
103868 outdir=ompi/mca/common
103870 outdir=ompi/mca/common/base
103872 { as_dir=$outdir
103873 case $as_dir in #(
103874 -*) as_dir=./$as_dir;;
103876 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
103877 as_dirs=
103878 while :; do
103879 case $as_dir in #(
103880 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
103881 *) as_qdir=$as_dir;;
103883 as_dirs="'$as_qdir' $as_dirs"
103884 as_dir=`$as_dirname -- "$as_dir" ||
103885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
103886 X"$as_dir" : 'X\(//\)[^/]' \| \
103887 X"$as_dir" : 'X\(//\)$' \| \
103888 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
103889 echo X"$as_dir" |
103890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
103891 s//\1/
103894 /^X\(\/\/\)[^/].*/{
103895 s//\1/
103898 /^X\(\/\/\)$/{
103899 s//\1/
103902 /^X\(\/\).*/{
103903 s//\1/
103906 s/.*/./; q'`
103907 test -d "$as_dir" && break
103909 test -z "$as_dirs" || eval "mkdir $as_dirs"
103910 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
103911 echo "$as_me: error: cannot create directory $as_dir" >&2;}
103912 { (exit 1); exit 1; }; }; }
103914 # remove any previously generated #include files
103915 outfile_real=$outdir/static-components.h
103916 outfile=$outfile_real.new
103917 rm -f $outfile $outfile.struct $outfile.extern
103918 touch $outfile.struct $outfile.extern
103920 # print some nice messages about what we're about to do...
103921 { echo "$as_me:$LINENO: checking for no configure components in framework common" >&5
103922 echo $ECHO_N "checking for no configure components in framework common... $ECHO_C" >&6; }
103923 { echo "$as_me:$LINENO: result: sm" >&5
103924 echo "${ECHO_T}sm" >&6; }
103925 { echo "$as_me:$LINENO: checking for m4 configure components in framework common" >&5
103926 echo $ECHO_N "checking for m4 configure components in framework common... $ECHO_C" >&6; }
103927 { echo "$as_me:$LINENO: result: " >&5
103928 echo "${ECHO_T}" >&6; }
103930 # if we only want the first successful component, set the variable
103931 # happy_value to 0 so we stop on first assignment. Otherwise, set
103932 # it to zero so that components_looking_for_succeed is always 1
103933 happy_value=1
103935 components_looking_for_succeed=1
103937 # configure components that don't have any component-specific
103938 # configuration. See comment in CONFIGURE_PROJECT about the
103939 # m4_ifval
103940 # if there isn't a component list, abort
103943 ompi_show_subsubsubtitle "MCA component common:sm (no configuration)"
103946 project=ompi
103947 framework=common
103948 component=sm
103949 component_path="$srcdir/$project/mca/$framework/$component"
103950 want_component=0
103952 # build if:
103953 # - the component type is direct and we are that component
103954 # - there is no ompi_ignore file
103955 # - there is an ompi_ignore, but there is an empty ompi_unignore
103956 # - there is an ompi_ignore, but username is in ompi_unignore
103957 if test -d $component_path ; then
103958 # decide if we want the component to be built or not. This
103959 # is spread out because some of the logic is a little complex
103960 # and test's syntax isn't exactly the greatest. We want to
103961 # build the component by default.
103962 want_component=1
103963 if test -f $component_path/.ompi_ignore ; then
103964 # If there is an ompi_ignore file, don't build
103965 # the component. Note that this decision can be
103966 # overriden by the unignore logic below.
103967 want_component=0
103969 if test -f $component_path/.ompi_unignore ; then
103970 # if there is an empty ompi_unignore, that is
103971 # equivalent to having your userid in the unignore file.
103972 # If userid is in the file, unignore the ignore file.
103973 if test ! -s $component_path/.ompi_unignore ; then
103974 want_component=1
103975 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
103976 want_component=1
103979 # if this component type is direct and we are not it, we don't want
103980 # to be built. Otherwise, we do want to be built.
103981 if test ! -z "$DIRECT_common" ; then
103982 if test "$DIRECT_common" = "$component" ; then
103983 want_component=1
103985 want_component=0
103990 # if we were explicitly disabled, don't build :)
103991 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
103992 eval $str
103993 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
103994 want_component=0
103997 if test "$want_component" = "1"; then
103998 should_build=$components_looking_for_succeed
104000 should_build=0
104005 project=ompi
104006 framework=common
104007 component=sm
104009 # Is this component going to built staic or shared? $component
104010 # might not be known until configure time, so have to use eval
104011 # tricks - can't set variable names at autogen time.
104012 str="SHARED_FRAMEWORK=\$DSO_$framework"
104013 eval $str
104014 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
104015 eval $str
104017 str="STATIC_FRAMEWORK=\$STATIC_$framework"
104018 eval $str
104019 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
104020 eval $str
104022 shared_mode_override=static
104024 # Setup for either shared or static
104025 if test "$STATIC_FRAMEWORK" = "1" -o \
104026 "$STATIC_COMPONENT" = "1" -o \
104027 "$STATIC_all" = "1" ; then
104028 compile_mode="static"
104029 elif test "$shared_mode_override" = "dso" -o \
104030 "$SHARED_FRAMEWORK" = "1" -o \
104031 "$SHARED_COMPONENT" = "1" -o \
104032 "$DSO_all" = "1"; then
104033 compile_mode="dso"
104035 compile_mode="static"
104038 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
104039 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
104040 if test "$DIRECT_common" = "$component" ; then
104041 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
104042 echo "${ECHO_T}$compile_mode - direct" >&6; }
104044 { echo "$as_me:$LINENO: result: $compile_mode" >&5
104045 echo "${ECHO_T}$compile_mode" >&6; }
104049 if test "$should_build" = "1" ; then
104051 project=ompi
104052 framework=common
104053 component=sm
104055 # See if it dropped an output file for us to pick up some
104056 # shell variables in.
104057 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
104059 # Add this subdir to the mast list of all MCA component subdirs
104060 all_components="$all_components $component"
104062 if test "$compile_mode" = "dso" ; then
104063 dso_components="$dso_components $component"
104065 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
104066 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
104067 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
104068 static_components="$static_components $component"
104071 # Output pretty results
104072 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
104073 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
104074 { echo "$as_me:$LINENO: result: yes" >&5
104075 echo "${ECHO_T}yes" >&6; }
104077 # If there's an output file, add the values to
104078 # scope_EXTRA_flags.
104079 if test -f $infile; then
104081 # First check for the ABORT tag
104082 line="`grep ABORT= $infile | cut -d= -f2-`"
104083 if test -n "$line" -a "$line" != "no"; then
104084 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
104085 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
104086 { { echo "$as_me:$LINENO: error: cannot continue" >&5
104087 echo "$as_me: error: cannot continue" >&2;}
104088 { (exit 1); exit 1; }; }
104091 # Check for flags passed up from the component. If we're
104092 # compiling statically, then take all flags passed up from the
104093 # component.
104094 if test "$compile_mode" = "static"; then
104095 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
104096 eval "line=$line"
104097 if test -n "$line"; then
104098 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
104100 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
104101 eval "line=$line"
104102 if test -n "$line"; then
104103 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
104107 if test "$DIRECT_common" = "$component" ; then
104108 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
104109 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
104110 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
104111 eval $str
104113 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
104114 *** does not appear to support direct calling.
104115 *** Aborting" >&5
104116 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
104117 *** does not appear to support direct calling.
104118 *** Aborting" >&2;}
104119 { (exit 1); exit 1; }; }
104123 # were we supposed to have found something in the
104124 # post_configure.sh, but the file didn't exist?
104125 if test "$DIRECT_common" = "$component" ; then
104126 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
104127 *** does not appear to support direct calling.
104128 *** Aborting" >&5
104129 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
104130 *** does not appear to support direct calling.
104131 *** Aborting" >&2;}
104132 { (exit 1); exit 1; }; }
104136 # now add the flags that were set in the environment variables
104137 # framework_component_FOO (for example, the flags set by
104138 # m4_configure components)
104140 # Check for flags passed up from the component. If we're
104141 # compiling statically, then take all flags passed up from the
104142 # component.
104143 if test "$compile_mode" = "static"; then
104144 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
104145 eval "$str"
104146 if test -n "$line" ; then
104147 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
104149 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
104150 eval "$str"
104151 if test -n "$line" ; then
104152 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
104158 { echo "$as_me:$LINENO: checking if MCA component common:sm can compile" >&5
104159 echo $ECHO_N "checking if MCA component common:sm can compile... $ECHO_C" >&6; }
104160 { echo "$as_me:$LINENO: result: no" >&5
104161 echo "${ECHO_T}no" >&6; }
104163 # If this component was requested as the default for this
104164 # type, then abort.
104165 if test "$with_common" = "sm" ; then
104166 { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
104167 echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
104168 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
104169 echo "$as_me: WARNING: This component was selected as the default" >&2;}
104170 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
104171 echo "$as_me: error: Cannot continue" >&2;}
104172 { (exit 1); exit 1; }; }
104173 exit 1
104176 if test ! -z "$DIRECT_common" ; then
104177 if test "$DIRECT_common" = "sm" ; then
104178 { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
104179 echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
104180 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
104181 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
104182 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
104183 echo "$as_me: error: Cannot continue" >&2;}
104184 { (exit 1); exit 1; }; }
104185 exit 1
104189 # add component to all component list
104190 all_components="$all_components sm"
104193 # set the AM_CONDITIONAL on how we should build
104194 if test "$compile_mode" = "dso" ; then
104195 BUILD_common_sm_DSO=1
104197 BUILD_common_sm_DSO=0
104201 if test "$BUILD_common_sm_DSO" = "1"; then
104202 OMPI_BUILD_common_sm_DSO_TRUE=
104203 OMPI_BUILD_common_sm_DSO_FALSE='#'
104205 OMPI_BUILD_common_sm_DSO_TRUE='#'
104206 OMPI_BUILD_common_sm_DSO_FALSE=
104210 unset compile_mode
104213 # configure components that use built-in configuration scripts
104214 # see comment in CONFIGURE_PROJECT about the m4_ifval
104215 # if there isn't a component list, abort
104219 # configure components that provide their own configure script.
104220 # It would be really hard to run these for "find first that
104221 # works", so we don't :)
104222 if test "$happy_value" = "1"; then
104224 for component_path in $srcdir/ompi/mca/common/* ; do
104225 component="`basename $component_path`"
104226 if test -d $component_path -a -x $component_path/configure ; then
104227 ompi_show_subsubsubtitle "MCA component common:$component (need to configure)"
104230 project=ompi
104231 framework=common
104232 component=$component
104233 component_path="$srcdir/$project/mca/$framework/$component"
104234 want_component=0
104236 # build if:
104237 # - the component type is direct and we are that component
104238 # - there is no ompi_ignore file
104239 # - there is an ompi_ignore, but there is an empty ompi_unignore
104240 # - there is an ompi_ignore, but username is in ompi_unignore
104241 if test -d $component_path ; then
104242 # decide if we want the component to be built or not. This
104243 # is spread out because some of the logic is a little complex
104244 # and test's syntax isn't exactly the greatest. We want to
104245 # build the component by default.
104246 want_component=1
104247 if test -f $component_path/.ompi_ignore ; then
104248 # If there is an ompi_ignore file, don't build
104249 # the component. Note that this decision can be
104250 # overriden by the unignore logic below.
104251 want_component=0
104253 if test -f $component_path/.ompi_unignore ; then
104254 # if there is an empty ompi_unignore, that is
104255 # equivalent to having your userid in the unignore file.
104256 # If userid is in the file, unignore the ignore file.
104257 if test ! -s $component_path/.ompi_unignore ; then
104258 want_component=1
104259 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
104260 want_component=1
104263 # if this component type is direct and we are not it, we don't want
104264 # to be built. Otherwise, we do want to be built.
104265 if test ! -z "$DIRECT_common" ; then
104266 if test "$DIRECT_common" = "$component" ; then
104267 want_component=1
104269 want_component=0
104274 # if we were explicitly disabled, don't build :)
104275 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
104276 eval $str
104277 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
104278 want_component=0
104281 if test "$want_component" = "1"; then
104282 should_build=1
104284 should_build=0
104289 project=ompi
104290 framework=common
104291 component=$component
104293 # Is this component going to built staic or shared? $component
104294 # might not be known until configure time, so have to use eval
104295 # tricks - can't set variable names at autogen time.
104296 str="SHARED_FRAMEWORK=\$DSO_$framework"
104297 eval $str
104298 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
104299 eval $str
104301 str="STATIC_FRAMEWORK=\$STATIC_$framework"
104302 eval $str
104303 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
104304 eval $str
104306 shared_mode_override=static
104308 # Setup for either shared or static
104309 if test "$STATIC_FRAMEWORK" = "1" -o \
104310 "$STATIC_COMPONENT" = "1" -o \
104311 "$STATIC_all" = "1" ; then
104312 compile_mode="static"
104313 elif test "$shared_mode_override" = "dso" -o \
104314 "$SHARED_FRAMEWORK" = "1" -o \
104315 "$SHARED_COMPONENT" = "1" -o \
104316 "$DSO_all" = "1"; then
104317 compile_mode="dso"
104319 compile_mode="static"
104322 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
104323 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
104324 if test "$DIRECT_common" = "$component" ; then
104325 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
104326 echo "${ECHO_T}$compile_mode - direct" >&6; }
104328 { echo "$as_me:$LINENO: result: $compile_mode" >&5
104329 echo "${ECHO_T}$compile_mode" >&6; }
104333 if test "$should_build" = "1" ; then
104336 # Invoke configure in a specific subdirectory.
104338 # ompi/mca/common/$component is the directory to invoke in
104339 # $ompi_subdir_args is the list of arguments to pass
104340 # should_build=1 is actions to execute upon success
104341 # should_build=2 is actions to execute upon failure
104343 subdir_dir="ompi/mca/common/$component"
104344 subdir_args="$ompi_subdir_args"
104345 subdir_success="should_build=1"
104346 subdir_failure="should_build=2"
104349 # Sanity checks
104352 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
104353 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
104354 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
104357 # Gotta check where srcdir is for VPATH builds. If srcdir is not
104358 # ., then we need to mkdir the subdir. Otherwise, we can just cd
104359 # into it.
104362 case $srcdir in
104366 { case $subdir_dir in
104367 [\\/]* | ?:[\\/]* ) total_dir=;;
104368 *) total_dir=.;;
104370 temp=$subdir_dir
104371 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
104372 case $dir_part in
104373 # Skip DOS drivespec
104374 ?:) total_dir=$dir_part ;;
104375 *) total_dir=$total_dir/$dir_part
104376 test -d "$total_dir" ||
104377 mkdir "$total_dir" ||
104378 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
104379 echo "$as_me: error: cannot create $subdir_dir" >&2;}
104380 { (exit 1); exit 1; }; }
104383 done; }
104385 if test -d ./$subdir_dir; then :;
104387 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
104388 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
104389 { (exit 1); exit 1; }; }
104395 # Move into the target directory
104398 subdir_parent=`pwd`
104399 cd $subdir_dir
104402 # Make a "../" for each directory in $subdir_dir.
104405 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
104407 # Construct the --srcdir argument
104410 case $srcdir in
104412 # In place
104413 subdir_srcdir="$srcdir"
104415 [\\/]* | ?:[\\/]* )
104416 # Absolute path
104417 subdir_srcdir="$srcdir/$subdir_dir"
104420 # Relative path
104421 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
104426 # Construct the --cache-file argument
104429 # BWB - subdir caching is a pain since we change CFLAGS and all that.
104430 # Just disable it for now
104431 subdir_cache_file="/dev/null"
104434 # Invoke the configure script in the subdirectory
104437 export CFLAGS CPPFLAGS
104438 export CXXFLAGS CXXCPPFLAGS
104439 export FFLAGS
104440 export LDFLAGS LIBS
104441 sub_configure="$SHELL '$subdir_srcdir/configure'"
104442 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
104443 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
104444 eval "$sub_configure $subdir_args \
104445 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
104446 if test "$?" = "0"; then
104447 eval $subdir_success
104448 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
104449 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
104451 eval $subdir_failure
104452 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
104453 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
104457 # Go back to the topdir
104460 cd $subdir_parent
104464 # Clean up
104467 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
104468 unset subdir_args subdir_dots total_dir dir_part temp
104471 if test "$should_build" = "1" ; then
104473 project=ompi
104474 framework=common
104475 component=$component
104477 # See if it dropped an output file for us to pick up some
104478 # shell variables in.
104479 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
104481 # Add this subdir to the mast list of all MCA component subdirs
104482 all_components="$all_components $component"
104484 if test "$compile_mode" = "dso" ; then
104485 dso_components="$dso_components $component"
104487 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
104488 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
104489 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
104490 static_components="$static_components $component"
104493 # Output pretty results
104494 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
104495 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
104496 { echo "$as_me:$LINENO: result: yes" >&5
104497 echo "${ECHO_T}yes" >&6; }
104499 # If there's an output file, add the values to
104500 # scope_EXTRA_flags.
104501 if test -f $infile; then
104503 # First check for the ABORT tag
104504 line="`grep ABORT= $infile | cut -d= -f2-`"
104505 if test -n "$line" -a "$line" != "no"; then
104506 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
104507 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
104508 { { echo "$as_me:$LINENO: error: cannot continue" >&5
104509 echo "$as_me: error: cannot continue" >&2;}
104510 { (exit 1); exit 1; }; }
104513 # Check for flags passed up from the component. If we're
104514 # compiling statically, then take all flags passed up from the
104515 # component.
104516 if test "$compile_mode" = "static"; then
104517 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
104518 eval "line=$line"
104519 if test -n "$line"; then
104520 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
104522 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
104523 eval "line=$line"
104524 if test -n "$line"; then
104525 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
104529 if test "$DIRECT_common" = "$component" ; then
104530 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
104531 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
104532 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
104533 eval $str
104535 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
104536 *** does not appear to support direct calling.
104537 *** Aborting" >&5
104538 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
104539 *** does not appear to support direct calling.
104540 *** Aborting" >&2;}
104541 { (exit 1); exit 1; }; }
104545 # were we supposed to have found something in the
104546 # post_configure.sh, but the file didn't exist?
104547 if test "$DIRECT_common" = "$component" ; then
104548 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
104549 *** does not appear to support direct calling.
104550 *** Aborting" >&5
104551 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
104552 *** does not appear to support direct calling.
104553 *** Aborting" >&2;}
104554 { (exit 1); exit 1; }; }
104558 # now add the flags that were set in the environment variables
104559 # framework_component_FOO (for example, the flags set by
104560 # m4_configure components)
104562 # Check for flags passed up from the component. If we're
104563 # compiling statically, then take all flags passed up from the
104564 # component.
104565 if test "$compile_mode" = "static"; then
104566 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
104567 eval "$str"
104568 if test -n "$line" ; then
104569 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
104571 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
104572 eval "$str"
104573 if test -n "$line" ; then
104574 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
104580 { echo "$as_me:$LINENO: checking if MCA component common:$component can compile" >&5
104581 echo $ECHO_N "checking if MCA component common:$component can compile... $ECHO_C" >&6; }
104582 { echo "$as_me:$LINENO: result: no" >&5
104583 echo "${ECHO_T}no" >&6; }
104585 # If this component was requested as the default for this
104586 # type, then abort.
104587 if test "$with_common" = "$component" ; then
104588 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
104589 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
104590 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
104591 echo "$as_me: WARNING: This component was selected as the default" >&2;}
104592 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
104593 echo "$as_me: error: Cannot continue" >&2;}
104594 { (exit 1); exit 1; }; }
104595 exit 1
104598 if test ! -z "$DIRECT_common" ; then
104599 if test "$DIRECT_common" = "$component" ; then
104600 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
104601 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
104602 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
104603 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
104604 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
104605 echo "$as_me: error: Cannot continue" >&2;}
104606 { (exit 1); exit 1; }; }
104607 exit 1
104618 MCA_common_ALL_COMPONENTS="$all_components"
104619 MCA_common_STATIC_COMPONENTS="$static_components"
104620 MCA_common_DSO_COMPONENTS="$dso_components"
104621 MCA_common_STATIC_LTLIBS="$static_ltlibs"
104629 MCA_common_ALL_SUBDIRS=
104630 for item in $all_components ; do
104631 MCA_common_ALL_SUBDIRS="$MCA_common_ALL_SUBDIRS mca/common/$item"
104636 MCA_common_STATIC_SUBDIRS=
104637 for item in $static_components ; do
104638 MCA_common_STATIC_SUBDIRS="$MCA_common_STATIC_SUBDIRS mca/common/$item"
104643 MCA_common_DSO_SUBDIRS=
104644 for item in $dso_components ; do
104645 MCA_common_DSO_SUBDIRS="$MCA_common_DSO_SUBDIRS mca/common/$item"
104650 # add all the makefiles for the framework to the CONFIG_FILES.
104651 # Don't add common/base, since it doesn't exist
104652 ac_config_files="$ac_config_files ompi/mca/common/Makefile"
104655 # Create the final .h file that will be included in the type's
104656 # top-level glue. This lists all the static components. We don't
104657 # need to do this for "common".
104658 if test "common" != "common"; then
104659 cat > $outfile <<EOF
104661 * \$HEADER\$
104664 `cat $outfile.extern`
104666 const mca_base_component_t *mca_common_base_static_components[] = {
104667 `cat $outfile.struct`
104671 # Only replace the header file if a) it doesn't previously
104672 # exist, or b) the contents are different. Do this to not
104673 # trigger recompilation of certain .c files just because the
104674 # timestamp changed on $outfile_real (similar to the way AC
104675 # handles AC_CONFIG_HEADER files).
104676 diff $outfile $outfile_real > /dev/null 2>&1
104677 if test "$?" != "0"; then
104678 mv $outfile $outfile_real
104680 rm -f $outfile
104683 rm -f $outfile.struct $outfile.extern
104685 unset all_components static_components dso_components outfile outfile_real
104686 # common has to go up front
104687 if test "io" = "common" ; then
104688 MCA_ompi_FRAMEWORKS="io $MCA_ompi_FRAMEWORKS"
104689 MCA_ompi_FRAMEWORKS_SUBDIRS="mca/io $MCA_ompi_FRAMEWORKS_SUBDIRS"
104690 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_io_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
104691 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_io_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
104692 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_io_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
104694 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS io"
104695 MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/io"
104696 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_io_ALL_SUBDIRS)"
104697 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_io_DSO_SUBDIRS)"
104698 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_io_STATIC_SUBDIRS)"
104700 if test "io" != "common" ; then
104701 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/io/libmca_io.la"
104703 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_io_STATIC_LTLIBS)"
104705 ompi_show_subsubtitle "Configuring MCA framework io"
104707 # setup for framework
104708 all_components=
104709 static_components=
104710 dso_components=
104711 static_ltlibs=
104713 # Ensure that the directory where the #include file is to live
104714 # exists. Need to do this for VPATH builds, because the directory
104715 # may not exist yet. For the "common" type, it's not really a
104716 # component, so it doesn't have a base.
104717 if test "io" = "common" ; then
104718 outdir=ompi/mca/common
104720 outdir=ompi/mca/io/base
104722 { as_dir=$outdir
104723 case $as_dir in #(
104724 -*) as_dir=./$as_dir;;
104726 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
104727 as_dirs=
104728 while :; do
104729 case $as_dir in #(
104730 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
104731 *) as_qdir=$as_dir;;
104733 as_dirs="'$as_qdir' $as_dirs"
104734 as_dir=`$as_dirname -- "$as_dir" ||
104735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
104736 X"$as_dir" : 'X\(//\)[^/]' \| \
104737 X"$as_dir" : 'X\(//\)$' \| \
104738 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
104739 echo X"$as_dir" |
104740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
104741 s//\1/
104744 /^X\(\/\/\)[^/].*/{
104745 s//\1/
104748 /^X\(\/\/\)$/{
104749 s//\1/
104752 /^X\(\/\).*/{
104753 s//\1/
104756 s/.*/./; q'`
104757 test -d "$as_dir" && break
104759 test -z "$as_dirs" || eval "mkdir $as_dirs"
104760 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
104761 echo "$as_me: error: cannot create directory $as_dir" >&2;}
104762 { (exit 1); exit 1; }; }; }
104764 # remove any previously generated #include files
104765 outfile_real=$outdir/static-components.h
104766 outfile=$outfile_real.new
104767 rm -f $outfile $outfile.struct $outfile.extern
104768 touch $outfile.struct $outfile.extern
104770 # print some nice messages about what we're about to do...
104771 { echo "$as_me:$LINENO: checking for no configure components in framework io" >&5
104772 echo $ECHO_N "checking for no configure components in framework io... $ECHO_C" >&6; }
104773 { echo "$as_me:$LINENO: result: " >&5
104774 echo "${ECHO_T}" >&6; }
104775 { echo "$as_me:$LINENO: checking for m4 configure components in framework io" >&5
104776 echo $ECHO_N "checking for m4 configure components in framework io... $ECHO_C" >&6; }
104777 { echo "$as_me:$LINENO: result: romio" >&5
104778 echo "${ECHO_T}romio" >&6; }
104780 # if we only want the first successful component, set the variable
104781 # happy_value to 0 so we stop on first assignment. Otherwise, set
104782 # it to zero so that components_looking_for_succeed is always 1
104783 happy_value=1
104785 components_looking_for_succeed=1
104787 # configure components that don't have any component-specific
104788 # configuration. See comment in CONFIGURE_PROJECT about the
104789 # m4_ifval
104790 # if there isn't a component list, abort
104794 # configure components that use built-in configuration scripts
104795 # see comment in CONFIGURE_PROJECT about the m4_ifval
104796 # if there isn't a component list, abort
104799 ompi_show_subsubsubtitle "MCA component io:romio (m4 configuration macro)"
104802 project=ompi
104803 framework=io
104804 component=romio
104805 component_path="$srcdir/$project/mca/$framework/$component"
104806 want_component=0
104808 # build if:
104809 # - the component type is direct and we are that component
104810 # - there is no ompi_ignore file
104811 # - there is an ompi_ignore, but there is an empty ompi_unignore
104812 # - there is an ompi_ignore, but username is in ompi_unignore
104813 if test -d $component_path ; then
104814 # decide if we want the component to be built or not. This
104815 # is spread out because some of the logic is a little complex
104816 # and test's syntax isn't exactly the greatest. We want to
104817 # build the component by default.
104818 want_component=1
104819 if test -f $component_path/.ompi_ignore ; then
104820 # If there is an ompi_ignore file, don't build
104821 # the component. Note that this decision can be
104822 # overriden by the unignore logic below.
104823 want_component=0
104825 if test -f $component_path/.ompi_unignore ; then
104826 # if there is an empty ompi_unignore, that is
104827 # equivalent to having your userid in the unignore file.
104828 # If userid is in the file, unignore the ignore file.
104829 if test ! -s $component_path/.ompi_unignore ; then
104830 want_component=1
104831 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
104832 want_component=1
104835 # if this component type is direct and we are not it, we don't want
104836 # to be built. Otherwise, we do want to be built.
104837 if test ! -z "$DIRECT_io" ; then
104838 if test "$DIRECT_io" = "$component" ; then
104839 want_component=1
104841 want_component=0
104846 # if we were explicitly disabled, don't build :)
104847 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
104848 eval $str
104849 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
104850 want_component=0
104853 if test "$want_component" = "1"; then
104854 should_build=$components_looking_for_succeed
104856 should_build=0
104860 # Allow the component to override the build mode if it really wants to.
104861 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
104863 project=ompi
104864 framework=io
104865 component=romio
104867 # Is this component going to built staic or shared? $component
104868 # might not be known until configure time, so have to use eval
104869 # tricks - can't set variable names at autogen time.
104870 str="SHARED_FRAMEWORK=\$DSO_$framework"
104871 eval $str
104872 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
104873 eval $str
104875 str="STATIC_FRAMEWORK=\$STATIC_$framework"
104876 eval $str
104877 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
104878 eval $str
104880 shared_mode_override=static
104882 # Setup for either shared or static
104883 if test "$STATIC_FRAMEWORK" = "1" -o \
104884 "$STATIC_COMPONENT" = "1" -o \
104885 "$STATIC_all" = "1" ; then
104886 compile_mode="static"
104887 elif test "$shared_mode_override" = "dso" -o \
104888 "$SHARED_FRAMEWORK" = "1" -o \
104889 "$SHARED_COMPONENT" = "1" -o \
104890 "$DSO_all" = "1"; then
104891 compile_mode="dso"
104893 compile_mode="static"
104896 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
104897 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
104898 if test "$DIRECT_io" = "$component" ; then
104899 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
104900 echo "${ECHO_T}$compile_mode - direct" >&6; }
104902 { echo "$as_me:$LINENO: result: $compile_mode" >&5
104903 echo "${ECHO_T}$compile_mode" >&6; }
104907 # try to configure the component. pay no attention to
104908 # --enable-dist, since we'll always have makefiles.
104909 if test "$should_build" = "1"; then
104911 # Check whether --enable-io-romio was given.
104912 if test "${enable_io_romio+set}" = set; then
104913 enableval=$enable_io_romio;
104917 # Check whether --with-io-romio-flags was given.
104918 if test "${with_io_romio_flags+set}" = set; then
104919 withval=$with_io_romio_flags;
104922 { echo "$as_me:$LINENO: checking if want ROMIO component" >&5
104923 echo $ECHO_N "checking if want ROMIO component... $ECHO_C" >&6; }
104924 if test "$enable_io_romio" = "no"; then
104925 { echo "$as_me:$LINENO: result: no" >&5
104926 echo "${ECHO_T}no" >&6; }
104927 should_build=0
104929 { echo "$as_me:$LINENO: result: yes" >&5
104930 echo "${ECHO_T}yes" >&6; }
104931 { echo "$as_me:$LINENO: checking if MPI profiling is enabled" >&5
104932 echo $ECHO_N "checking if MPI profiling is enabled... $ECHO_C" >&6; }
104933 if test "$enable_mpi_profile" = "no"; then
104934 { echo "$as_me:$LINENO: result: no" >&5
104935 echo "${ECHO_T}no" >&6; }
104936 { echo "$as_me:$LINENO: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&5
104937 echo "$as_me: WARNING: *** The ROMIO io component requires the MPI profiling layer" >&2;}
104938 if test "$enable_io_romio" = "yes"; then
104939 { { echo "$as_me:$LINENO: error: *** ROMIO requested but not available. Aborting" >&5
104940 echo "$as_me: error: *** ROMIO requested but not available. Aborting" >&2;}
104941 { (exit 1); exit 1; }; }
104944 should_build=0
104946 { echo "$as_me:$LINENO: result: yes" >&5
104947 echo "${ECHO_T}yes" >&6; }
104949 if test -n "$with_io_romio_flags" -a "$with_io_romio_flags" != "no"; then
104950 io_romio_flags="$with_io_romio_flags $io_romio_flags"
104952 io_romio_flags=
104955 # If ROMIO is going to end up in a DSO, all we need is
104956 # shared library-ized objects, as we're only building a
104957 # DSO (which is always shared). Otherwise, build with
104958 # same flags as OMPI, as we might need any combination of
104959 # shared and static-ized objects...
104960 if test "$compile_mode" = "dso"; then
104961 io_romio_shared=enable
104962 io_romio_static=disable
104964 if test "$enable_shared" = "yes"; then
104965 io_romio_shared=enable
104967 io_romio_shared=disable
104970 if test "$enable_static" = "yes"; then
104971 io_romio_static=enable
104973 io_romio_static=disable
104978 if test -n "$prefix" -a "$prefix" != "NONE"; then
104979 io_romio_prefix_arg="--prefix=$prefix"
104981 io_romio_prefix_arg=
104985 if test "$cross_compiling" = "yes"; then
104986 if test ! -z $build; then
104987 io_romio_flags="$io_romio_flags --build=$build"
104990 if test ! -z $host; then
104991 io_romio_flags="$io_romio_flags --host=$host"
104994 if test ! -z $target; then
104995 io_romio_flags="$io_romio_flags --target=$target"
105000 io_romio_flags="$io_romio_flags CFLAGS="'"'"$CFLAGS"'"'" CPPFLAGS="'"'"$CPPFLAGS"'"'" FFLAGS="'"'"$FFLAGS"'"'" LDFLAGS="'"'"$LDFLAGS"'"'" --$io_romio_shared-shared --$io_romio_static-static $io_romio_flags $io_romio_prefix_arg --with-mpi=open_mpi"
105002 ompi_show_subtitle "Configuring ROMIO distribution"
105005 # Invoke configure in a specific subdirectory.
105007 # ompi/mca/io/romio/romio is the directory to invoke in
105008 # $io_romio_flags is the list of arguments to pass
105009 # io_romio_happy=1 is actions to execute upon success
105010 # io_romio_happy=0 is actions to execute upon failure
105012 subdir_dir="ompi/mca/io/romio/romio"
105013 subdir_args="$io_romio_flags"
105014 subdir_success="io_romio_happy=1"
105015 subdir_failure="io_romio_happy=0"
105018 # Sanity checks
105021 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
105022 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
105023 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
105026 # Gotta check where srcdir is for VPATH builds. If srcdir is not
105027 # ., then we need to mkdir the subdir. Otherwise, we can just cd
105028 # into it.
105031 case $srcdir in
105035 { case $subdir_dir in
105036 [\\/]* | ?:[\\/]* ) total_dir=;;
105037 *) total_dir=.;;
105039 temp=$subdir_dir
105040 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
105041 case $dir_part in
105042 # Skip DOS drivespec
105043 ?:) total_dir=$dir_part ;;
105044 *) total_dir=$total_dir/$dir_part
105045 test -d "$total_dir" ||
105046 mkdir "$total_dir" ||
105047 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
105048 echo "$as_me: error: cannot create $subdir_dir" >&2;}
105049 { (exit 1); exit 1; }; }
105052 done; }
105054 if test -d ./$subdir_dir; then :;
105056 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
105057 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
105058 { (exit 1); exit 1; }; }
105064 # Move into the target directory
105067 subdir_parent=`pwd`
105068 cd $subdir_dir
105071 # Make a "../" for each directory in $subdir_dir.
105074 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
105076 # Construct the --srcdir argument
105079 case $srcdir in
105081 # In place
105082 subdir_srcdir="$srcdir"
105084 [\\/]* | ?:[\\/]* )
105085 # Absolute path
105086 subdir_srcdir="$srcdir/$subdir_dir"
105089 # Relative path
105090 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
105095 # Construct the --cache-file argument
105098 # BWB - subdir caching is a pain since we change CFLAGS and all that.
105099 # Just disable it for now
105100 subdir_cache_file="/dev/null"
105103 # Invoke the configure script in the subdirectory
105106 export CFLAGS CPPFLAGS
105107 export CXXFLAGS CXXCPPFLAGS
105108 export FFLAGS
105109 export LDFLAGS LIBS
105110 sub_configure="$SHELL '$subdir_srcdir/configure'"
105111 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
105112 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
105113 eval "$sub_configure $subdir_args \
105114 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
105115 if test "$?" = "0"; then
105116 eval $subdir_success
105117 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
105118 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
105120 eval $subdir_failure
105121 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
105122 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
105126 # Go back to the topdir
105129 cd $subdir_parent
105133 # Clean up
105136 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
105137 unset subdir_args subdir_dots total_dir dir_part temp
105139 if test "$io_romio_happy" = "1"; then
105140 # grab the libraries list from ROMIO. We don't
105141 # need this for building the component, as libtool
105142 # will figure that part out. But we do need it for
105143 # the wrapper settings
105144 io_romio_save_LIBS="$LIBS"
105145 LIBS=
105146 . ompi/mca/io/romio/romio/localdefs
105147 io_romio_LIBS="$LIBS"
105148 LIBS="$io_romio_save_LIBS"
105150 echo "ROMIO distribution configured successfully"
105151 io_romio_WRAPPER_EXTRA_LIBS="$io_romio_LIBS"
105152 should_build=1
105154 if test "$enable_io_romio" = "yes"; then
105155 { { echo "$as_me:$LINENO: error: ROMIO distribution did not configure successfully" >&5
105156 echo "$as_me: error: ROMIO distribution did not configure successfully" >&2;}
105157 { (exit 1); exit 1; }; }
105159 { echo "$as_me:$LINENO: WARNING: ROMIO distribution did not configure successfully" >&5
105160 echo "$as_me: WARNING: ROMIO distribution did not configure successfully" >&2;}
105163 should_build=0
105174 if test "$should_build" = "1"; then
105176 project=ompi
105177 framework=io
105178 component=romio
105180 # See if it dropped an output file for us to pick up some
105181 # shell variables in.
105182 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
105184 # Add this subdir to the mast list of all MCA component subdirs
105185 all_components="$all_components $component"
105187 if test "$compile_mode" = "dso" ; then
105188 dso_components="$dso_components $component"
105190 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
105191 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
105192 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
105193 static_components="$static_components $component"
105196 # Output pretty results
105197 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
105198 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
105199 { echo "$as_me:$LINENO: result: yes" >&5
105200 echo "${ECHO_T}yes" >&6; }
105202 # If there's an output file, add the values to
105203 # scope_EXTRA_flags.
105204 if test -f $infile; then
105206 # First check for the ABORT tag
105207 line="`grep ABORT= $infile | cut -d= -f2-`"
105208 if test -n "$line" -a "$line" != "no"; then
105209 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
105210 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
105211 { { echo "$as_me:$LINENO: error: cannot continue" >&5
105212 echo "$as_me: error: cannot continue" >&2;}
105213 { (exit 1); exit 1; }; }
105216 # Check for flags passed up from the component. If we're
105217 # compiling statically, then take all flags passed up from the
105218 # component.
105219 if test "$compile_mode" = "static"; then
105220 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
105221 eval "line=$line"
105222 if test -n "$line"; then
105223 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
105225 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
105226 eval "line=$line"
105227 if test -n "$line"; then
105228 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
105232 if test "$DIRECT_io" = "$component" ; then
105233 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
105234 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
105235 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
105236 eval $str
105238 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
105239 *** does not appear to support direct calling.
105240 *** Aborting" >&5
105241 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
105242 *** does not appear to support direct calling.
105243 *** Aborting" >&2;}
105244 { (exit 1); exit 1; }; }
105248 # were we supposed to have found something in the
105249 # post_configure.sh, but the file didn't exist?
105250 if test "$DIRECT_io" = "$component" ; then
105251 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
105252 *** does not appear to support direct calling.
105253 *** Aborting" >&5
105254 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
105255 *** does not appear to support direct calling.
105256 *** Aborting" >&2;}
105257 { (exit 1); exit 1; }; }
105261 # now add the flags that were set in the environment variables
105262 # framework_component_FOO (for example, the flags set by
105263 # m4_configure components)
105265 # Check for flags passed up from the component. If we're
105266 # compiling statically, then take all flags passed up from the
105267 # component.
105268 if test "$compile_mode" = "static"; then
105269 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
105270 eval "$str"
105271 if test -n "$line" ; then
105272 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
105274 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
105275 eval "$str"
105276 if test -n "$line" ; then
105277 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
105283 { echo "$as_me:$LINENO: checking if MCA component io:romio can compile" >&5
105284 echo $ECHO_N "checking if MCA component io:romio can compile... $ECHO_C" >&6; }
105285 { echo "$as_me:$LINENO: result: no" >&5
105286 echo "${ECHO_T}no" >&6; }
105288 # If this component was requested as the default for this
105289 # type, then abort.
105290 if test "$with_io" = "romio" ; then
105291 { echo "$as_me:$LINENO: WARNING: MCA component \"romio\" failed to configure properly" >&5
105292 echo "$as_me: WARNING: MCA component \"romio\" failed to configure properly" >&2;}
105293 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
105294 echo "$as_me: WARNING: This component was selected as the default" >&2;}
105295 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
105296 echo "$as_me: error: Cannot continue" >&2;}
105297 { (exit 1); exit 1; }; }
105298 exit 1
105301 if test ! -z "$DIRECT_io" ; then
105302 if test "$DIRECT_io" = "romio" ; then
105303 { echo "$as_me:$LINENO: WARNING: MCA component \"romio\" failed to configure properly" >&5
105304 echo "$as_me: WARNING: MCA component \"romio\" failed to configure properly" >&2;}
105305 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
105306 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
105307 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
105308 echo "$as_me: error: Cannot continue" >&2;}
105309 { (exit 1); exit 1; }; }
105310 exit 1
105314 # add component to all component list
105315 all_components="$all_components romio"
105319 # set the AM_CONDITIONAL on how we should build
105320 if test "$compile_mode" = "dso"; then
105321 BUILD_io_romio_DSO=1
105323 BUILD_io_romio_DSO=0
105328 if test "$BUILD_io_romio_DSO" = "1"; then
105329 OMPI_BUILD_io_romio_DSO_TRUE=
105330 OMPI_BUILD_io_romio_DSO_FALSE='#'
105332 OMPI_BUILD_io_romio_DSO_TRUE='#'
105333 OMPI_BUILD_io_romio_DSO_FALSE=
105337 if test "$should_build" = "1"; then
105338 components_looking_for_succeed="$happy_value"
105342 unset compile_mode
105345 # configure components that provide their own configure script.
105346 # It would be really hard to run these for "find first that
105347 # works", so we don't :)
105348 if test "$happy_value" = "1"; then
105350 for component_path in $srcdir/ompi/mca/io/* ; do
105351 component="`basename $component_path`"
105352 if test -d $component_path -a -x $component_path/configure ; then
105353 ompi_show_subsubsubtitle "MCA component io:$component (need to configure)"
105356 project=ompi
105357 framework=io
105358 component=$component
105359 component_path="$srcdir/$project/mca/$framework/$component"
105360 want_component=0
105362 # build if:
105363 # - the component type is direct and we are that component
105364 # - there is no ompi_ignore file
105365 # - there is an ompi_ignore, but there is an empty ompi_unignore
105366 # - there is an ompi_ignore, but username is in ompi_unignore
105367 if test -d $component_path ; then
105368 # decide if we want the component to be built or not. This
105369 # is spread out because some of the logic is a little complex
105370 # and test's syntax isn't exactly the greatest. We want to
105371 # build the component by default.
105372 want_component=1
105373 if test -f $component_path/.ompi_ignore ; then
105374 # If there is an ompi_ignore file, don't build
105375 # the component. Note that this decision can be
105376 # overriden by the unignore logic below.
105377 want_component=0
105379 if test -f $component_path/.ompi_unignore ; then
105380 # if there is an empty ompi_unignore, that is
105381 # equivalent to having your userid in the unignore file.
105382 # If userid is in the file, unignore the ignore file.
105383 if test ! -s $component_path/.ompi_unignore ; then
105384 want_component=1
105385 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
105386 want_component=1
105389 # if this component type is direct and we are not it, we don't want
105390 # to be built. Otherwise, we do want to be built.
105391 if test ! -z "$DIRECT_io" ; then
105392 if test "$DIRECT_io" = "$component" ; then
105393 want_component=1
105395 want_component=0
105400 # if we were explicitly disabled, don't build :)
105401 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
105402 eval $str
105403 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
105404 want_component=0
105407 if test "$want_component" = "1"; then
105408 should_build=1
105410 should_build=0
105415 project=ompi
105416 framework=io
105417 component=$component
105419 # Is this component going to built staic or shared? $component
105420 # might not be known until configure time, so have to use eval
105421 # tricks - can't set variable names at autogen time.
105422 str="SHARED_FRAMEWORK=\$DSO_$framework"
105423 eval $str
105424 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
105425 eval $str
105427 str="STATIC_FRAMEWORK=\$STATIC_$framework"
105428 eval $str
105429 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
105430 eval $str
105432 shared_mode_override=static
105434 # Setup for either shared or static
105435 if test "$STATIC_FRAMEWORK" = "1" -o \
105436 "$STATIC_COMPONENT" = "1" -o \
105437 "$STATIC_all" = "1" ; then
105438 compile_mode="static"
105439 elif test "$shared_mode_override" = "dso" -o \
105440 "$SHARED_FRAMEWORK" = "1" -o \
105441 "$SHARED_COMPONENT" = "1" -o \
105442 "$DSO_all" = "1"; then
105443 compile_mode="dso"
105445 compile_mode="static"
105448 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
105449 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
105450 if test "$DIRECT_io" = "$component" ; then
105451 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
105452 echo "${ECHO_T}$compile_mode - direct" >&6; }
105454 { echo "$as_me:$LINENO: result: $compile_mode" >&5
105455 echo "${ECHO_T}$compile_mode" >&6; }
105459 if test "$should_build" = "1" ; then
105462 # Invoke configure in a specific subdirectory.
105464 # ompi/mca/io/$component is the directory to invoke in
105465 # $ompi_subdir_args is the list of arguments to pass
105466 # should_build=1 is actions to execute upon success
105467 # should_build=2 is actions to execute upon failure
105469 subdir_dir="ompi/mca/io/$component"
105470 subdir_args="$ompi_subdir_args"
105471 subdir_success="should_build=1"
105472 subdir_failure="should_build=2"
105475 # Sanity checks
105478 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
105479 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
105480 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
105483 # Gotta check where srcdir is for VPATH builds. If srcdir is not
105484 # ., then we need to mkdir the subdir. Otherwise, we can just cd
105485 # into it.
105488 case $srcdir in
105492 { case $subdir_dir in
105493 [\\/]* | ?:[\\/]* ) total_dir=;;
105494 *) total_dir=.;;
105496 temp=$subdir_dir
105497 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
105498 case $dir_part in
105499 # Skip DOS drivespec
105500 ?:) total_dir=$dir_part ;;
105501 *) total_dir=$total_dir/$dir_part
105502 test -d "$total_dir" ||
105503 mkdir "$total_dir" ||
105504 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
105505 echo "$as_me: error: cannot create $subdir_dir" >&2;}
105506 { (exit 1); exit 1; }; }
105509 done; }
105511 if test -d ./$subdir_dir; then :;
105513 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
105514 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
105515 { (exit 1); exit 1; }; }
105521 # Move into the target directory
105524 subdir_parent=`pwd`
105525 cd $subdir_dir
105528 # Make a "../" for each directory in $subdir_dir.
105531 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
105533 # Construct the --srcdir argument
105536 case $srcdir in
105538 # In place
105539 subdir_srcdir="$srcdir"
105541 [\\/]* | ?:[\\/]* )
105542 # Absolute path
105543 subdir_srcdir="$srcdir/$subdir_dir"
105546 # Relative path
105547 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
105552 # Construct the --cache-file argument
105555 # BWB - subdir caching is a pain since we change CFLAGS and all that.
105556 # Just disable it for now
105557 subdir_cache_file="/dev/null"
105560 # Invoke the configure script in the subdirectory
105563 export CFLAGS CPPFLAGS
105564 export CXXFLAGS CXXCPPFLAGS
105565 export FFLAGS
105566 export LDFLAGS LIBS
105567 sub_configure="$SHELL '$subdir_srcdir/configure'"
105568 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
105569 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
105570 eval "$sub_configure $subdir_args \
105571 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
105572 if test "$?" = "0"; then
105573 eval $subdir_success
105574 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
105575 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
105577 eval $subdir_failure
105578 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
105579 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
105583 # Go back to the topdir
105586 cd $subdir_parent
105590 # Clean up
105593 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
105594 unset subdir_args subdir_dots total_dir dir_part temp
105597 if test "$should_build" = "1" ; then
105599 project=ompi
105600 framework=io
105601 component=$component
105603 # See if it dropped an output file for us to pick up some
105604 # shell variables in.
105605 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
105607 # Add this subdir to the mast list of all MCA component subdirs
105608 all_components="$all_components $component"
105610 if test "$compile_mode" = "dso" ; then
105611 dso_components="$dso_components $component"
105613 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
105614 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
105615 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
105616 static_components="$static_components $component"
105619 # Output pretty results
105620 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
105621 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
105622 { echo "$as_me:$LINENO: result: yes" >&5
105623 echo "${ECHO_T}yes" >&6; }
105625 # If there's an output file, add the values to
105626 # scope_EXTRA_flags.
105627 if test -f $infile; then
105629 # First check for the ABORT tag
105630 line="`grep ABORT= $infile | cut -d= -f2-`"
105631 if test -n "$line" -a "$line" != "no"; then
105632 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
105633 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
105634 { { echo "$as_me:$LINENO: error: cannot continue" >&5
105635 echo "$as_me: error: cannot continue" >&2;}
105636 { (exit 1); exit 1; }; }
105639 # Check for flags passed up from the component. If we're
105640 # compiling statically, then take all flags passed up from the
105641 # component.
105642 if test "$compile_mode" = "static"; then
105643 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
105644 eval "line=$line"
105645 if test -n "$line"; then
105646 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
105648 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
105649 eval "line=$line"
105650 if test -n "$line"; then
105651 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
105655 if test "$DIRECT_io" = "$component" ; then
105656 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
105657 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
105658 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
105659 eval $str
105661 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
105662 *** does not appear to support direct calling.
105663 *** Aborting" >&5
105664 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
105665 *** does not appear to support direct calling.
105666 *** Aborting" >&2;}
105667 { (exit 1); exit 1; }; }
105671 # were we supposed to have found something in the
105672 # post_configure.sh, but the file didn't exist?
105673 if test "$DIRECT_io" = "$component" ; then
105674 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
105675 *** does not appear to support direct calling.
105676 *** Aborting" >&5
105677 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
105678 *** does not appear to support direct calling.
105679 *** Aborting" >&2;}
105680 { (exit 1); exit 1; }; }
105684 # now add the flags that were set in the environment variables
105685 # framework_component_FOO (for example, the flags set by
105686 # m4_configure components)
105688 # Check for flags passed up from the component. If we're
105689 # compiling statically, then take all flags passed up from the
105690 # component.
105691 if test "$compile_mode" = "static"; then
105692 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
105693 eval "$str"
105694 if test -n "$line" ; then
105695 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
105697 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
105698 eval "$str"
105699 if test -n "$line" ; then
105700 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
105706 { echo "$as_me:$LINENO: checking if MCA component io:$component can compile" >&5
105707 echo $ECHO_N "checking if MCA component io:$component can compile... $ECHO_C" >&6; }
105708 { echo "$as_me:$LINENO: result: no" >&5
105709 echo "${ECHO_T}no" >&6; }
105711 # If this component was requested as the default for this
105712 # type, then abort.
105713 if test "$with_io" = "$component" ; then
105714 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
105715 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
105716 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
105717 echo "$as_me: WARNING: This component was selected as the default" >&2;}
105718 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
105719 echo "$as_me: error: Cannot continue" >&2;}
105720 { (exit 1); exit 1; }; }
105721 exit 1
105724 if test ! -z "$DIRECT_io" ; then
105725 if test "$DIRECT_io" = "$component" ; then
105726 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
105727 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
105728 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
105729 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
105730 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
105731 echo "$as_me: error: Cannot continue" >&2;}
105732 { (exit 1); exit 1; }; }
105733 exit 1
105744 MCA_io_ALL_COMPONENTS="$all_components"
105745 MCA_io_STATIC_COMPONENTS="$static_components"
105746 MCA_io_DSO_COMPONENTS="$dso_components"
105747 MCA_io_STATIC_LTLIBS="$static_ltlibs"
105755 MCA_io_ALL_SUBDIRS=
105756 for item in $all_components ; do
105757 MCA_io_ALL_SUBDIRS="$MCA_io_ALL_SUBDIRS mca/io/$item"
105762 MCA_io_STATIC_SUBDIRS=
105763 for item in $static_components ; do
105764 MCA_io_STATIC_SUBDIRS="$MCA_io_STATIC_SUBDIRS mca/io/$item"
105769 MCA_io_DSO_SUBDIRS=
105770 for item in $dso_components ; do
105771 MCA_io_DSO_SUBDIRS="$MCA_io_DSO_SUBDIRS mca/io/$item"
105776 # add all the makefiles for the framework to the CONFIG_FILES.
105777 # Don't add common/base, since it doesn't exist
105778 ac_config_files="$ac_config_files ompi/mca/io/Makefile"
105781 # Create the final .h file that will be included in the type's
105782 # top-level glue. This lists all the static components. We don't
105783 # need to do this for "common".
105784 if test "io" != "common"; then
105785 cat > $outfile <<EOF
105787 * \$HEADER\$
105790 `cat $outfile.extern`
105792 const mca_base_component_t *mca_io_base_static_components[] = {
105793 `cat $outfile.struct`
105797 # Only replace the header file if a) it doesn't previously
105798 # exist, or b) the contents are different. Do this to not
105799 # trigger recompilation of certain .c files just because the
105800 # timestamp changed on $outfile_real (similar to the way AC
105801 # handles AC_CONFIG_HEADER files).
105802 diff $outfile $outfile_real > /dev/null 2>&1
105803 if test "$?" != "0"; then
105804 mv $outfile $outfile_real
105806 rm -f $outfile
105809 rm -f $outfile.struct $outfile.extern
105811 unset all_components static_components dso_components outfile outfile_real
105812 # common has to go up front
105813 if test "mpool" = "common" ; then
105814 MCA_ompi_FRAMEWORKS="mpool $MCA_ompi_FRAMEWORKS"
105815 MCA_ompi_FRAMEWORKS_SUBDIRS="mca/mpool $MCA_ompi_FRAMEWORKS_SUBDIRS"
105816 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_mpool_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
105817 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_mpool_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
105818 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_mpool_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
105820 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS mpool"
105821 MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/mpool"
105822 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_mpool_ALL_SUBDIRS)"
105823 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_mpool_DSO_SUBDIRS)"
105824 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_mpool_STATIC_SUBDIRS)"
105826 if test "mpool" != "common" ; then
105827 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/mpool/libmca_mpool.la"
105829 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_mpool_STATIC_LTLIBS)"
105831 ompi_show_subsubtitle "Configuring MCA framework mpool"
105833 # setup for framework
105834 all_components=
105835 static_components=
105836 dso_components=
105837 static_ltlibs=
105839 # Ensure that the directory where the #include file is to live
105840 # exists. Need to do this for VPATH builds, because the directory
105841 # may not exist yet. For the "common" type, it's not really a
105842 # component, so it doesn't have a base.
105843 if test "mpool" = "common" ; then
105844 outdir=ompi/mca/common
105846 outdir=ompi/mca/mpool/base
105848 { as_dir=$outdir
105849 case $as_dir in #(
105850 -*) as_dir=./$as_dir;;
105852 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
105853 as_dirs=
105854 while :; do
105855 case $as_dir in #(
105856 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
105857 *) as_qdir=$as_dir;;
105859 as_dirs="'$as_qdir' $as_dirs"
105860 as_dir=`$as_dirname -- "$as_dir" ||
105861 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
105862 X"$as_dir" : 'X\(//\)[^/]' \| \
105863 X"$as_dir" : 'X\(//\)$' \| \
105864 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
105865 echo X"$as_dir" |
105866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
105867 s//\1/
105870 /^X\(\/\/\)[^/].*/{
105871 s//\1/
105874 /^X\(\/\/\)$/{
105875 s//\1/
105878 /^X\(\/\).*/{
105879 s//\1/
105882 s/.*/./; q'`
105883 test -d "$as_dir" && break
105885 test -z "$as_dirs" || eval "mkdir $as_dirs"
105886 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
105887 echo "$as_me: error: cannot create directory $as_dir" >&2;}
105888 { (exit 1); exit 1; }; }; }
105890 # remove any previously generated #include files
105891 outfile_real=$outdir/static-components.h
105892 outfile=$outfile_real.new
105893 rm -f $outfile $outfile.struct $outfile.extern
105894 touch $outfile.struct $outfile.extern
105896 # print some nice messages about what we're about to do...
105897 { echo "$as_me:$LINENO: checking for no configure components in framework mpool" >&5
105898 echo $ECHO_N "checking for no configure components in framework mpool... $ECHO_C" >&6; }
105899 { echo "$as_me:$LINENO: result: sm" >&5
105900 echo "${ECHO_T}sm" >&6; }
105901 { echo "$as_me:$LINENO: checking for m4 configure components in framework mpool" >&5
105902 echo $ECHO_N "checking for m4 configure components in framework mpool... $ECHO_C" >&6; }
105903 { echo "$as_me:$LINENO: result: gm, mvapi, openib" >&5
105904 echo "${ECHO_T}gm, mvapi, openib" >&6; }
105906 # if we only want the first successful component, set the variable
105907 # happy_value to 0 so we stop on first assignment. Otherwise, set
105908 # it to zero so that components_looking_for_succeed is always 1
105909 happy_value=1
105911 components_looking_for_succeed=1
105913 # configure components that don't have any component-specific
105914 # configuration. See comment in CONFIGURE_PROJECT about the
105915 # m4_ifval
105916 # if there isn't a component list, abort
105919 ompi_show_subsubsubtitle "MCA component mpool:sm (no configuration)"
105922 project=ompi
105923 framework=mpool
105924 component=sm
105925 component_path="$srcdir/$project/mca/$framework/$component"
105926 want_component=0
105928 # build if:
105929 # - the component type is direct and we are that component
105930 # - there is no ompi_ignore file
105931 # - there is an ompi_ignore, but there is an empty ompi_unignore
105932 # - there is an ompi_ignore, but username is in ompi_unignore
105933 if test -d $component_path ; then
105934 # decide if we want the component to be built or not. This
105935 # is spread out because some of the logic is a little complex
105936 # and test's syntax isn't exactly the greatest. We want to
105937 # build the component by default.
105938 want_component=1
105939 if test -f $component_path/.ompi_ignore ; then
105940 # If there is an ompi_ignore file, don't build
105941 # the component. Note that this decision can be
105942 # overriden by the unignore logic below.
105943 want_component=0
105945 if test -f $component_path/.ompi_unignore ; then
105946 # if there is an empty ompi_unignore, that is
105947 # equivalent to having your userid in the unignore file.
105948 # If userid is in the file, unignore the ignore file.
105949 if test ! -s $component_path/.ompi_unignore ; then
105950 want_component=1
105951 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
105952 want_component=1
105955 # if this component type is direct and we are not it, we don't want
105956 # to be built. Otherwise, we do want to be built.
105957 if test ! -z "$DIRECT_mpool" ; then
105958 if test "$DIRECT_mpool" = "$component" ; then
105959 want_component=1
105961 want_component=0
105966 # if we were explicitly disabled, don't build :)
105967 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
105968 eval $str
105969 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
105970 want_component=0
105973 if test "$want_component" = "1"; then
105974 should_build=$components_looking_for_succeed
105976 should_build=0
105981 project=ompi
105982 framework=mpool
105983 component=sm
105985 # Is this component going to built staic or shared? $component
105986 # might not be known until configure time, so have to use eval
105987 # tricks - can't set variable names at autogen time.
105988 str="SHARED_FRAMEWORK=\$DSO_$framework"
105989 eval $str
105990 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
105991 eval $str
105993 str="STATIC_FRAMEWORK=\$STATIC_$framework"
105994 eval $str
105995 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
105996 eval $str
105998 shared_mode_override=static
106000 # Setup for either shared or static
106001 if test "$STATIC_FRAMEWORK" = "1" -o \
106002 "$STATIC_COMPONENT" = "1" -o \
106003 "$STATIC_all" = "1" ; then
106004 compile_mode="static"
106005 elif test "$shared_mode_override" = "dso" -o \
106006 "$SHARED_FRAMEWORK" = "1" -o \
106007 "$SHARED_COMPONENT" = "1" -o \
106008 "$DSO_all" = "1"; then
106009 compile_mode="dso"
106011 compile_mode="static"
106014 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
106015 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
106016 if test "$DIRECT_mpool" = "$component" ; then
106017 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
106018 echo "${ECHO_T}$compile_mode - direct" >&6; }
106020 { echo "$as_me:$LINENO: result: $compile_mode" >&5
106021 echo "${ECHO_T}$compile_mode" >&6; }
106025 if test "$should_build" = "1" ; then
106027 project=ompi
106028 framework=mpool
106029 component=sm
106031 # See if it dropped an output file for us to pick up some
106032 # shell variables in.
106033 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
106035 # Add this subdir to the mast list of all MCA component subdirs
106036 all_components="$all_components $component"
106038 if test "$compile_mode" = "dso" ; then
106039 dso_components="$dso_components $component"
106041 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
106042 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
106043 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
106044 static_components="$static_components $component"
106047 # Output pretty results
106048 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
106049 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
106050 { echo "$as_me:$LINENO: result: yes" >&5
106051 echo "${ECHO_T}yes" >&6; }
106053 # If there's an output file, add the values to
106054 # scope_EXTRA_flags.
106055 if test -f $infile; then
106057 # First check for the ABORT tag
106058 line="`grep ABORT= $infile | cut -d= -f2-`"
106059 if test -n "$line" -a "$line" != "no"; then
106060 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
106061 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
106062 { { echo "$as_me:$LINENO: error: cannot continue" >&5
106063 echo "$as_me: error: cannot continue" >&2;}
106064 { (exit 1); exit 1; }; }
106067 # Check for flags passed up from the component. If we're
106068 # compiling statically, then take all flags passed up from the
106069 # component.
106070 if test "$compile_mode" = "static"; then
106071 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
106072 eval "line=$line"
106073 if test -n "$line"; then
106074 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
106076 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
106077 eval "line=$line"
106078 if test -n "$line"; then
106079 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
106083 if test "$DIRECT_mpool" = "$component" ; then
106084 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
106085 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
106086 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
106087 eval $str
106089 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
106090 *** does not appear to support direct calling.
106091 *** Aborting" >&5
106092 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
106093 *** does not appear to support direct calling.
106094 *** Aborting" >&2;}
106095 { (exit 1); exit 1; }; }
106099 # were we supposed to have found something in the
106100 # post_configure.sh, but the file didn't exist?
106101 if test "$DIRECT_mpool" = "$component" ; then
106102 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
106103 *** does not appear to support direct calling.
106104 *** Aborting" >&5
106105 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
106106 *** does not appear to support direct calling.
106107 *** Aborting" >&2;}
106108 { (exit 1); exit 1; }; }
106112 # now add the flags that were set in the environment variables
106113 # framework_component_FOO (for example, the flags set by
106114 # m4_configure components)
106116 # Check for flags passed up from the component. If we're
106117 # compiling statically, then take all flags passed up from the
106118 # component.
106119 if test "$compile_mode" = "static"; then
106120 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
106121 eval "$str"
106122 if test -n "$line" ; then
106123 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
106125 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
106126 eval "$str"
106127 if test -n "$line" ; then
106128 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
106134 { echo "$as_me:$LINENO: checking if MCA component mpool:sm can compile" >&5
106135 echo $ECHO_N "checking if MCA component mpool:sm can compile... $ECHO_C" >&6; }
106136 { echo "$as_me:$LINENO: result: no" >&5
106137 echo "${ECHO_T}no" >&6; }
106139 # If this component was requested as the default for this
106140 # type, then abort.
106141 if test "$with_mpool" = "sm" ; then
106142 { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
106143 echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
106144 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
106145 echo "$as_me: WARNING: This component was selected as the default" >&2;}
106146 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
106147 echo "$as_me: error: Cannot continue" >&2;}
106148 { (exit 1); exit 1; }; }
106149 exit 1
106152 if test ! -z "$DIRECT_mpool" ; then
106153 if test "$DIRECT_mpool" = "sm" ; then
106154 { echo "$as_me:$LINENO: WARNING: MCA component \"sm\" failed to configure properly" >&5
106155 echo "$as_me: WARNING: MCA component \"sm\" failed to configure properly" >&2;}
106156 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
106157 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
106158 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
106159 echo "$as_me: error: Cannot continue" >&2;}
106160 { (exit 1); exit 1; }; }
106161 exit 1
106165 # add component to all component list
106166 all_components="$all_components sm"
106169 # set the AM_CONDITIONAL on how we should build
106170 if test "$compile_mode" = "dso" ; then
106171 BUILD_mpool_sm_DSO=1
106173 BUILD_mpool_sm_DSO=0
106177 if test "$BUILD_mpool_sm_DSO" = "1"; then
106178 OMPI_BUILD_mpool_sm_DSO_TRUE=
106179 OMPI_BUILD_mpool_sm_DSO_FALSE='#'
106181 OMPI_BUILD_mpool_sm_DSO_TRUE='#'
106182 OMPI_BUILD_mpool_sm_DSO_FALSE=
106186 unset compile_mode
106189 # configure components that use built-in configuration scripts
106190 # see comment in CONFIGURE_PROJECT about the m4_ifval
106191 # if there isn't a component list, abort
106194 ompi_show_subsubsubtitle "MCA component mpool:gm (m4 configuration macro)"
106197 project=ompi
106198 framework=mpool
106199 component=gm
106200 component_path="$srcdir/$project/mca/$framework/$component"
106201 want_component=0
106203 # build if:
106204 # - the component type is direct and we are that component
106205 # - there is no ompi_ignore file
106206 # - there is an ompi_ignore, but there is an empty ompi_unignore
106207 # - there is an ompi_ignore, but username is in ompi_unignore
106208 if test -d $component_path ; then
106209 # decide if we want the component to be built or not. This
106210 # is spread out because some of the logic is a little complex
106211 # and test's syntax isn't exactly the greatest. We want to
106212 # build the component by default.
106213 want_component=1
106214 if test -f $component_path/.ompi_ignore ; then
106215 # If there is an ompi_ignore file, don't build
106216 # the component. Note that this decision can be
106217 # overriden by the unignore logic below.
106218 want_component=0
106220 if test -f $component_path/.ompi_unignore ; then
106221 # if there is an empty ompi_unignore, that is
106222 # equivalent to having your userid in the unignore file.
106223 # If userid is in the file, unignore the ignore file.
106224 if test ! -s $component_path/.ompi_unignore ; then
106225 want_component=1
106226 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
106227 want_component=1
106230 # if this component type is direct and we are not it, we don't want
106231 # to be built. Otherwise, we do want to be built.
106232 if test ! -z "$DIRECT_mpool" ; then
106233 if test "$DIRECT_mpool" = "$component" ; then
106234 want_component=1
106236 want_component=0
106241 # if we were explicitly disabled, don't build :)
106242 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
106243 eval $str
106244 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
106245 want_component=0
106248 if test "$want_component" = "1"; then
106249 should_build=$components_looking_for_succeed
106251 should_build=0
106255 # Allow the component to override the build mode if it really wants to.
106256 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
106258 project=ompi
106259 framework=mpool
106260 component=gm
106262 # Is this component going to built staic or shared? $component
106263 # might not be known until configure time, so have to use eval
106264 # tricks - can't set variable names at autogen time.
106265 str="SHARED_FRAMEWORK=\$DSO_$framework"
106266 eval $str
106267 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
106268 eval $str
106270 str="STATIC_FRAMEWORK=\$STATIC_$framework"
106271 eval $str
106272 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
106273 eval $str
106275 shared_mode_override=static
106277 # Setup for either shared or static
106278 if test "$STATIC_FRAMEWORK" = "1" -o \
106279 "$STATIC_COMPONENT" = "1" -o \
106280 "$STATIC_all" = "1" ; then
106281 compile_mode="static"
106282 elif test "$shared_mode_override" = "dso" -o \
106283 "$SHARED_FRAMEWORK" = "1" -o \
106284 "$SHARED_COMPONENT" = "1" -o \
106285 "$DSO_all" = "1"; then
106286 compile_mode="dso"
106288 compile_mode="static"
106291 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
106292 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
106293 if test "$DIRECT_mpool" = "$component" ; then
106294 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
106295 echo "${ECHO_T}$compile_mode - direct" >&6; }
106297 { echo "$as_me:$LINENO: result: $compile_mode" >&5
106298 echo "${ECHO_T}$compile_mode" >&6; }
106302 # try to configure the component. pay no attention to
106303 # --enable-dist, since we'll always have makefiles.
106304 if test "$should_build" = "1"; then
106308 # Check whether --with-gm was given.
106309 if test "${with_gm+set}" = set; then
106310 withval=$with_gm;
106314 # Check whether --with-gm-libdir was given.
106315 if test "${with_gm_libdir+set}" = set; then
106316 withval=$with_gm_libdir;
106320 if test "$with_gm" != "no"; then
106321 if test ! -z "$with_gm" -a "$with_gm" != "yes"; then
106322 ompi_check_gm_dir="$with_gm"
106325 if test ! -z "$with_gm_libdir" -a "$with_gm_libdir" != "yes"; then
106326 ompi_check_gm_libdir="$with_gm_libdir"
106331 ompi_check_package_mpool_gm_save_CPPFLAGS="$CPPFLAGS"
106332 ompi_check_package_mpool_gm_save_LDFLAGS="$LDFLAGS"
106333 ompi_check_package_mpool_gm_save_LIBS="$LIBS"
106335 ompi_check_package_mpool_gm_orig_CPPFLAGS="$mpool_gm_CPPFLAGS"
106336 ompi_check_package_mpool_gm_orig_LDFLAGS="$mpool_gm_LDFLAGS"
106337 ompi_check_package_mpool_gm_orig_LIBS="$mpool_gm_LIBS"
106340 # This is stolen from autoconf to peek under the covers to get the
106341 # cache variable for the library check. one should not copy this
106342 # code into other places unless you want much pain and suffering
106345 # so this sucks, but there's no way to get through the progression
106346 # of header includes without killing off the cache variable and trying
106347 # again...
106348 unset ac_cv_header_gm_h
106350 ompi_check_package_header_happy="no"
106351 if test "$ompi_check_gm_dir" = "/usr" -o "$ompi_check_gm_dir" = "/usr/local"; then
106352 # try as is...
106353 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
106354 echo "${ECHO_T}looking for header without includes" >&6; }
106355 if test "${ac_cv_header_gm_h+set}" = set; then
106356 { echo "$as_me:$LINENO: checking for gm.h" >&5
106357 echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; }
106358 if test "${ac_cv_header_gm_h+set}" = set; then
106359 echo $ECHO_N "(cached) $ECHO_C" >&6
106361 { echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
106362 echo "${ECHO_T}$ac_cv_header_gm_h" >&6; }
106364 # Is the header compilable?
106365 { echo "$as_me:$LINENO: checking gm.h usability" >&5
106366 echo $ECHO_N "checking gm.h usability... $ECHO_C" >&6; }
106367 cat >conftest.$ac_ext <<_ACEOF
106368 /* confdefs.h. */
106369 _ACEOF
106370 cat confdefs.h >>conftest.$ac_ext
106371 cat >>conftest.$ac_ext <<_ACEOF
106372 /* end confdefs.h. */
106373 $ac_includes_default
106374 #include <gm.h>
106375 _ACEOF
106376 rm -f conftest.$ac_objext
106377 if { (ac_try="$ac_compile"
106378 case "(($ac_try" in
106379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
106380 *) ac_try_echo=$ac_try;;
106382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
106383 (eval "$ac_compile") 2>conftest.er1
106384 ac_status=$?
106385 grep -v '^ *+' conftest.er1 >conftest.err
106386 rm -f conftest.er1
106387 cat conftest.err >&5
106388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
106389 (exit $ac_status); } && {
106390 test -z "$ac_c_werror_flag" ||
106391 test ! -s conftest.err
106392 } && test -s conftest.$ac_objext; then
106393 ac_header_compiler=yes
106395 echo "$as_me: failed program was:" >&5
106396 sed 's/^/| /' conftest.$ac_ext >&5
106398 ac_header_compiler=no
106401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
106402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
106403 echo "${ECHO_T}$ac_header_compiler" >&6; }
106405 # Is the header present?
106406 { echo "$as_me:$LINENO: checking gm.h presence" >&5
106407 echo $ECHO_N "checking gm.h presence... $ECHO_C" >&6; }
106408 cat >conftest.$ac_ext <<_ACEOF
106409 /* confdefs.h. */
106410 _ACEOF
106411 cat confdefs.h >>conftest.$ac_ext
106412 cat >>conftest.$ac_ext <<_ACEOF
106413 /* end confdefs.h. */
106414 #include <gm.h>
106415 _ACEOF
106416 if { (ac_try="$ac_cpp conftest.$ac_ext"
106417 case "(($ac_try" in
106418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
106419 *) ac_try_echo=$ac_try;;
106421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
106422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
106423 ac_status=$?
106424 grep -v '^ *+' conftest.er1 >conftest.err
106425 rm -f conftest.er1
106426 cat conftest.err >&5
106427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
106428 (exit $ac_status); } >/dev/null && {
106429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
106430 test ! -s conftest.err
106431 }; then
106432 ac_header_preproc=yes
106434 echo "$as_me: failed program was:" >&5
106435 sed 's/^/| /' conftest.$ac_ext >&5
106437 ac_header_preproc=no
106440 rm -f conftest.err conftest.$ac_ext
106441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
106442 echo "${ECHO_T}$ac_header_preproc" >&6; }
106444 # So? What about this header?
106445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
106446 yes:no: )
106447 { echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5
106448 echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
106449 { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5
106450 echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;}
106451 ac_header_preproc=yes
106453 no:yes:* )
106454 { echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5
106455 echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;}
106456 { echo "$as_me:$LINENO: WARNING: gm.h: check for missing prerequisite headers?" >&5
106457 echo "$as_me: WARNING: gm.h: check for missing prerequisite headers?" >&2;}
106458 { echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5
106459 echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;}
106460 { echo "$as_me:$LINENO: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&5
106461 echo "$as_me: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&2;}
106462 { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5
106463 echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;}
106464 { echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5
106465 echo "$as_me: WARNING: gm.h: in the future, the compiler will take precedence" >&2;}
106466 ( cat <<\_ASBOX
106467 ## ------------------------------------------------------ ##
106468 ## Report this to http://www.open-mpi.org/community/help/ ##
106469 ## ------------------------------------------------------ ##
106470 _ASBOX
106471 ) | sed "s/^/$as_me: WARNING: /" >&2
106474 { echo "$as_me:$LINENO: checking for gm.h" >&5
106475 echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; }
106476 if test "${ac_cv_header_gm_h+set}" = set; then
106477 echo $ECHO_N "(cached) $ECHO_C" >&6
106479 ac_cv_header_gm_h=$ac_header_preproc
106481 { echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
106482 echo "${ECHO_T}$ac_cv_header_gm_h" >&6; }
106485 if test $ac_cv_header_gm_h = yes; then
106486 ompi_check_package_header_happy="yes"
106488 ompi_check_package_header_happy="no"
106492 if test "$ompi_check_package_header_happy" = "no"; then
106493 # no go on the as is - reset the cache and try again
106494 unset ac_cv_header_gm_h
106500 if test "$ompi_check_package_header_happy" = "no"; then
106501 if test "$ompi_check_gm_dir" != ""; then
106502 mpool_gm_CPPFLAGS="$mpool_gm_CPPFLAGS -I$ompi_check_gm_dir/include"
106503 CPPFLAGS="$CPPFLAGS -I$ompi_check_gm_dir/include"
106506 if test "${ac_cv_header_gm_h+set}" = set; then
106507 { echo "$as_me:$LINENO: checking for gm.h" >&5
106508 echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; }
106509 if test "${ac_cv_header_gm_h+set}" = set; then
106510 echo $ECHO_N "(cached) $ECHO_C" >&6
106512 { echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
106513 echo "${ECHO_T}$ac_cv_header_gm_h" >&6; }
106515 # Is the header compilable?
106516 { echo "$as_me:$LINENO: checking gm.h usability" >&5
106517 echo $ECHO_N "checking gm.h usability... $ECHO_C" >&6; }
106518 cat >conftest.$ac_ext <<_ACEOF
106519 /* confdefs.h. */
106520 _ACEOF
106521 cat confdefs.h >>conftest.$ac_ext
106522 cat >>conftest.$ac_ext <<_ACEOF
106523 /* end confdefs.h. */
106524 $ac_includes_default
106525 #include <gm.h>
106526 _ACEOF
106527 rm -f conftest.$ac_objext
106528 if { (ac_try="$ac_compile"
106529 case "(($ac_try" in
106530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
106531 *) ac_try_echo=$ac_try;;
106533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
106534 (eval "$ac_compile") 2>conftest.er1
106535 ac_status=$?
106536 grep -v '^ *+' conftest.er1 >conftest.err
106537 rm -f conftest.er1
106538 cat conftest.err >&5
106539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
106540 (exit $ac_status); } && {
106541 test -z "$ac_c_werror_flag" ||
106542 test ! -s conftest.err
106543 } && test -s conftest.$ac_objext; then
106544 ac_header_compiler=yes
106546 echo "$as_me: failed program was:" >&5
106547 sed 's/^/| /' conftest.$ac_ext >&5
106549 ac_header_compiler=no
106552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
106553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
106554 echo "${ECHO_T}$ac_header_compiler" >&6; }
106556 # Is the header present?
106557 { echo "$as_me:$LINENO: checking gm.h presence" >&5
106558 echo $ECHO_N "checking gm.h presence... $ECHO_C" >&6; }
106559 cat >conftest.$ac_ext <<_ACEOF
106560 /* confdefs.h. */
106561 _ACEOF
106562 cat confdefs.h >>conftest.$ac_ext
106563 cat >>conftest.$ac_ext <<_ACEOF
106564 /* end confdefs.h. */
106565 #include <gm.h>
106566 _ACEOF
106567 if { (ac_try="$ac_cpp conftest.$ac_ext"
106568 case "(($ac_try" in
106569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
106570 *) ac_try_echo=$ac_try;;
106572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
106573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
106574 ac_status=$?
106575 grep -v '^ *+' conftest.er1 >conftest.err
106576 rm -f conftest.er1
106577 cat conftest.err >&5
106578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
106579 (exit $ac_status); } >/dev/null && {
106580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
106581 test ! -s conftest.err
106582 }; then
106583 ac_header_preproc=yes
106585 echo "$as_me: failed program was:" >&5
106586 sed 's/^/| /' conftest.$ac_ext >&5
106588 ac_header_preproc=no
106591 rm -f conftest.err conftest.$ac_ext
106592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
106593 echo "${ECHO_T}$ac_header_preproc" >&6; }
106595 # So? What about this header?
106596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
106597 yes:no: )
106598 { echo "$as_me:$LINENO: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&5
106599 echo "$as_me: WARNING: gm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
106600 { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the compiler's result" >&5
106601 echo "$as_me: WARNING: gm.h: proceeding with the compiler's result" >&2;}
106602 ac_header_preproc=yes
106604 no:yes:* )
106605 { echo "$as_me:$LINENO: WARNING: gm.h: present but cannot be compiled" >&5
106606 echo "$as_me: WARNING: gm.h: present but cannot be compiled" >&2;}
106607 { echo "$as_me:$LINENO: WARNING: gm.h: check for missing prerequisite headers?" >&5
106608 echo "$as_me: WARNING: gm.h: check for missing prerequisite headers?" >&2;}
106609 { echo "$as_me:$LINENO: WARNING: gm.h: see the Autoconf documentation" >&5
106610 echo "$as_me: WARNING: gm.h: see the Autoconf documentation" >&2;}
106611 { echo "$as_me:$LINENO: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&5
106612 echo "$as_me: WARNING: gm.h: section \"Present But Cannot Be Compiled\"" >&2;}
106613 { echo "$as_me:$LINENO: WARNING: gm.h: proceeding with the preprocessor's result" >&5
106614 echo "$as_me: WARNING: gm.h: proceeding with the preprocessor's result" >&2;}
106615 { echo "$as_me:$LINENO: WARNING: gm.h: in the future, the compiler will take precedence" >&5
106616 echo "$as_me: WARNING: gm.h: in the future, the compiler will take precedence" >&2;}
106617 ( cat <<\_ASBOX
106618 ## ------------------------------------------------------ ##
106619 ## Report this to http://www.open-mpi.org/community/help/ ##
106620 ## ------------------------------------------------------ ##
106621 _ASBOX
106622 ) | sed "s/^/$as_me: WARNING: /" >&2
106625 { echo "$as_me:$LINENO: checking for gm.h" >&5
106626 echo $ECHO_N "checking for gm.h... $ECHO_C" >&6; }
106627 if test "${ac_cv_header_gm_h+set}" = set; then
106628 echo $ECHO_N "(cached) $ECHO_C" >&6
106630 ac_cv_header_gm_h=$ac_header_preproc
106632 { echo "$as_me:$LINENO: result: $ac_cv_header_gm_h" >&5
106633 echo "${ECHO_T}$ac_cv_header_gm_h" >&6; }
106636 if test $ac_cv_header_gm_h = yes; then
106638 # This is stolen from autoconf to peek under the covers to get the
106639 # cache variable for the library check. one should not copy this
106640 # code into other places unless you want much pain and suffering
106642 # see comment above
106643 unset ac_cv_lib_gm_gm_init
106644 ompi_check_package_lib_happy="no"
106645 if test "$ompi_check_gm_libdir" != ""; then
106646 # libdir was specified - search only there
106647 mpool_gm_LDFLAGS="$mpool_gm_LDFLAGS -L$ompi_check_gm_libdir"
106648 LDFLAGS="$LDFLAGS -L$ompi_check_gm_libdir"
106649 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
106650 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
106651 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
106652 echo $ECHO_N "(cached) $ECHO_C" >&6
106654 ac_check_lib_save_LIBS=$LIBS
106655 LIBS="-lgm $LIBS"
106656 cat >conftest.$ac_ext <<_ACEOF
106657 /* confdefs.h. */
106658 _ACEOF
106659 cat confdefs.h >>conftest.$ac_ext
106660 cat >>conftest.$ac_ext <<_ACEOF
106661 /* end confdefs.h. */
106663 /* Override any GCC internal prototype to avoid an error.
106664 Use char because int might match the return type of a GCC
106665 builtin and then its argument prototype would still apply. */
106666 #ifdef __cplusplus
106667 extern "C"
106668 #endif
106669 char gm_init ();
106671 main ()
106673 return gm_init ();
106675 return 0;
106677 _ACEOF
106678 rm -f conftest.$ac_objext conftest$ac_exeext
106679 if { (ac_try="$ac_link"
106680 case "(($ac_try" in
106681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
106682 *) ac_try_echo=$ac_try;;
106684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
106685 (eval "$ac_link") 2>conftest.er1
106686 ac_status=$?
106687 grep -v '^ *+' conftest.er1 >conftest.err
106688 rm -f conftest.er1
106689 cat conftest.err >&5
106690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
106691 (exit $ac_status); } && {
106692 test -z "$ac_c_werror_flag" ||
106693 test ! -s conftest.err
106694 } && test -s conftest$ac_exeext &&
106695 $as_test_x conftest$ac_exeext; then
106696 ac_cv_lib_gm_gm_init=yes
106698 echo "$as_me: failed program was:" >&5
106699 sed 's/^/| /' conftest.$ac_ext >&5
106701 ac_cv_lib_gm_gm_init=no
106704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
106705 conftest$ac_exeext conftest.$ac_ext
106706 LIBS=$ac_check_lib_save_LIBS
106708 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
106709 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
106710 if test $ac_cv_lib_gm_gm_init = yes; then
106711 ompi_check_package_lib_happy="yes"
106713 ompi_check_package_lib_happy="no"
106716 if test "$ompi_check_package_lib_happy" = "no"; then
106717 LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
106718 mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
106719 unset ac_cv_lib_gm_gm_init
106723 # libdir was not specified - go through search path
106724 ompi_check_package_libdir="$ompi_check_gm_dir"
106725 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
106726 # try as is...
106727 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
106728 echo "${ECHO_T}looking for library without search path" >&6; }
106729 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
106730 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
106731 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
106732 echo $ECHO_N "(cached) $ECHO_C" >&6
106734 ac_check_lib_save_LIBS=$LIBS
106735 LIBS="-lgm $LIBS"
106736 cat >conftest.$ac_ext <<_ACEOF
106737 /* confdefs.h. */
106738 _ACEOF
106739 cat confdefs.h >>conftest.$ac_ext
106740 cat >>conftest.$ac_ext <<_ACEOF
106741 /* end confdefs.h. */
106743 /* Override any GCC internal prototype to avoid an error.
106744 Use char because int might match the return type of a GCC
106745 builtin and then its argument prototype would still apply. */
106746 #ifdef __cplusplus
106747 extern "C"
106748 #endif
106749 char gm_init ();
106751 main ()
106753 return gm_init ();
106755 return 0;
106757 _ACEOF
106758 rm -f conftest.$ac_objext conftest$ac_exeext
106759 if { (ac_try="$ac_link"
106760 case "(($ac_try" in
106761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
106762 *) ac_try_echo=$ac_try;;
106764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
106765 (eval "$ac_link") 2>conftest.er1
106766 ac_status=$?
106767 grep -v '^ *+' conftest.er1 >conftest.err
106768 rm -f conftest.er1
106769 cat conftest.err >&5
106770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
106771 (exit $ac_status); } && {
106772 test -z "$ac_c_werror_flag" ||
106773 test ! -s conftest.err
106774 } && test -s conftest$ac_exeext &&
106775 $as_test_x conftest$ac_exeext; then
106776 ac_cv_lib_gm_gm_init=yes
106778 echo "$as_me: failed program was:" >&5
106779 sed 's/^/| /' conftest.$ac_ext >&5
106781 ac_cv_lib_gm_gm_init=no
106784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
106785 conftest$ac_exeext conftest.$ac_ext
106786 LIBS=$ac_check_lib_save_LIBS
106788 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
106789 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
106790 if test $ac_cv_lib_gm_gm_init = yes; then
106791 ompi_check_package_lib_happy="yes"
106793 ompi_check_package_lib_happy="no"
106796 if test "$ompi_check_package_lib_happy" = "no"; then
106797 # no go on the as is.. see what happens later...
106798 LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
106799 mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
106800 unset ac_cv_lib_gm_gm_init
106806 if test "$ompi_check_package_lib_happy" = "no"; then
106807 if test "$ompi_check_package_libdir" != ""; then
106808 mpool_gm_LDFLAGS="$mpool_gm_LDFLAGS -L$ompi_check_package_libdir/lib"
106809 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
106810 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
106811 echo "${ECHO_T}looking for library in lib" >&6; }
106812 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
106813 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
106814 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
106815 echo $ECHO_N "(cached) $ECHO_C" >&6
106817 ac_check_lib_save_LIBS=$LIBS
106818 LIBS="-lgm $LIBS"
106819 cat >conftest.$ac_ext <<_ACEOF
106820 /* confdefs.h. */
106821 _ACEOF
106822 cat confdefs.h >>conftest.$ac_ext
106823 cat >>conftest.$ac_ext <<_ACEOF
106824 /* end confdefs.h. */
106826 /* Override any GCC internal prototype to avoid an error.
106827 Use char because int might match the return type of a GCC
106828 builtin and then its argument prototype would still apply. */
106829 #ifdef __cplusplus
106830 extern "C"
106831 #endif
106832 char gm_init ();
106834 main ()
106836 return gm_init ();
106838 return 0;
106840 _ACEOF
106841 rm -f conftest.$ac_objext conftest$ac_exeext
106842 if { (ac_try="$ac_link"
106843 case "(($ac_try" in
106844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
106845 *) ac_try_echo=$ac_try;;
106847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
106848 (eval "$ac_link") 2>conftest.er1
106849 ac_status=$?
106850 grep -v '^ *+' conftest.er1 >conftest.err
106851 rm -f conftest.er1
106852 cat conftest.err >&5
106853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
106854 (exit $ac_status); } && {
106855 test -z "$ac_c_werror_flag" ||
106856 test ! -s conftest.err
106857 } && test -s conftest$ac_exeext &&
106858 $as_test_x conftest$ac_exeext; then
106859 ac_cv_lib_gm_gm_init=yes
106861 echo "$as_me: failed program was:" >&5
106862 sed 's/^/| /' conftest.$ac_ext >&5
106864 ac_cv_lib_gm_gm_init=no
106867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
106868 conftest$ac_exeext conftest.$ac_ext
106869 LIBS=$ac_check_lib_save_LIBS
106871 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
106872 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
106873 if test $ac_cv_lib_gm_gm_init = yes; then
106874 ompi_check_package_lib_happy="yes"
106876 ompi_check_package_lib_happy="no"
106879 if test "$ompi_check_package_lib_happy" = "no"; then
106880 # no go on the as is.. see what happens later...
106881 LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
106882 mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
106883 unset ac_cv_lib_gm_gm_init
106891 if test "$ompi_check_package_lib_happy" = "no"; then
106892 if test "$ompi_check_package_libdir" != ""; then
106893 mpool_gm_LDFLAGS="$mpool_gm_LDFLAGS -L$ompi_check_package_libdir/lib64"
106894 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
106895 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
106896 echo "${ECHO_T}looking for library in lib64" >&6; }
106897 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
106898 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
106899 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
106900 echo $ECHO_N "(cached) $ECHO_C" >&6
106902 ac_check_lib_save_LIBS=$LIBS
106903 LIBS="-lgm $LIBS"
106904 cat >conftest.$ac_ext <<_ACEOF
106905 /* confdefs.h. */
106906 _ACEOF
106907 cat confdefs.h >>conftest.$ac_ext
106908 cat >>conftest.$ac_ext <<_ACEOF
106909 /* end confdefs.h. */
106911 /* Override any GCC internal prototype to avoid an error.
106912 Use char because int might match the return type of a GCC
106913 builtin and then its argument prototype would still apply. */
106914 #ifdef __cplusplus
106915 extern "C"
106916 #endif
106917 char gm_init ();
106919 main ()
106921 return gm_init ();
106923 return 0;
106925 _ACEOF
106926 rm -f conftest.$ac_objext conftest$ac_exeext
106927 if { (ac_try="$ac_link"
106928 case "(($ac_try" in
106929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
106930 *) ac_try_echo=$ac_try;;
106932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
106933 (eval "$ac_link") 2>conftest.er1
106934 ac_status=$?
106935 grep -v '^ *+' conftest.er1 >conftest.err
106936 rm -f conftest.er1
106937 cat conftest.err >&5
106938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
106939 (exit $ac_status); } && {
106940 test -z "$ac_c_werror_flag" ||
106941 test ! -s conftest.err
106942 } && test -s conftest$ac_exeext &&
106943 $as_test_x conftest$ac_exeext; then
106944 ac_cv_lib_gm_gm_init=yes
106946 echo "$as_me: failed program was:" >&5
106947 sed 's/^/| /' conftest.$ac_ext >&5
106949 ac_cv_lib_gm_gm_init=no
106952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
106953 conftest$ac_exeext conftest.$ac_ext
106954 LIBS=$ac_check_lib_save_LIBS
106956 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
106957 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
106958 if test $ac_cv_lib_gm_gm_init = yes; then
106959 ompi_check_package_lib_happy="yes"
106961 ompi_check_package_lib_happy="no"
106964 if test "$ompi_check_package_lib_happy" = "no"; then
106965 # no go on the as is.. see what happens later...
106966 LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
106967 mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
106968 unset ac_cv_lib_gm_gm_init
106978 if test "$ompi_check_package_lib_happy" = "yes"; then
106979 ompi_check_package_happy="yes"
106981 ompi_check_package_happy="no"
106987 ompi_check_package_happy="no"
106993 # This is stolen from autoconf to peek under the covers to get the
106994 # cache variable for the library check. one should not copy this
106995 # code into other places unless you want much pain and suffering
106997 # see comment above
106998 unset ac_cv_lib_gm_gm_init
106999 ompi_check_package_lib_happy="no"
107000 if test "$ompi_check_gm_libdir" != ""; then
107001 # libdir was specified - search only there
107002 mpool_gm_LDFLAGS="$mpool_gm_LDFLAGS -L$ompi_check_gm_libdir"
107003 LDFLAGS="$LDFLAGS -L$ompi_check_gm_libdir"
107004 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
107005 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
107006 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
107007 echo $ECHO_N "(cached) $ECHO_C" >&6
107009 ac_check_lib_save_LIBS=$LIBS
107010 LIBS="-lgm $LIBS"
107011 cat >conftest.$ac_ext <<_ACEOF
107012 /* confdefs.h. */
107013 _ACEOF
107014 cat confdefs.h >>conftest.$ac_ext
107015 cat >>conftest.$ac_ext <<_ACEOF
107016 /* end confdefs.h. */
107018 /* Override any GCC internal prototype to avoid an error.
107019 Use char because int might match the return type of a GCC
107020 builtin and then its argument prototype would still apply. */
107021 #ifdef __cplusplus
107022 extern "C"
107023 #endif
107024 char gm_init ();
107026 main ()
107028 return gm_init ();
107030 return 0;
107032 _ACEOF
107033 rm -f conftest.$ac_objext conftest$ac_exeext
107034 if { (ac_try="$ac_link"
107035 case "(($ac_try" in
107036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107037 *) ac_try_echo=$ac_try;;
107039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
107040 (eval "$ac_link") 2>conftest.er1
107041 ac_status=$?
107042 grep -v '^ *+' conftest.er1 >conftest.err
107043 rm -f conftest.er1
107044 cat conftest.err >&5
107045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
107046 (exit $ac_status); } && {
107047 test -z "$ac_c_werror_flag" ||
107048 test ! -s conftest.err
107049 } && test -s conftest$ac_exeext &&
107050 $as_test_x conftest$ac_exeext; then
107051 ac_cv_lib_gm_gm_init=yes
107053 echo "$as_me: failed program was:" >&5
107054 sed 's/^/| /' conftest.$ac_ext >&5
107056 ac_cv_lib_gm_gm_init=no
107059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
107060 conftest$ac_exeext conftest.$ac_ext
107061 LIBS=$ac_check_lib_save_LIBS
107063 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
107064 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
107065 if test $ac_cv_lib_gm_gm_init = yes; then
107066 ompi_check_package_lib_happy="yes"
107068 ompi_check_package_lib_happy="no"
107071 if test "$ompi_check_package_lib_happy" = "no"; then
107072 LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
107073 mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
107074 unset ac_cv_lib_gm_gm_init
107078 # libdir was not specified - go through search path
107079 ompi_check_package_libdir="$ompi_check_gm_dir"
107080 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
107081 # try as is...
107082 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
107083 echo "${ECHO_T}looking for library without search path" >&6; }
107084 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
107085 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
107086 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
107087 echo $ECHO_N "(cached) $ECHO_C" >&6
107089 ac_check_lib_save_LIBS=$LIBS
107090 LIBS="-lgm $LIBS"
107091 cat >conftest.$ac_ext <<_ACEOF
107092 /* confdefs.h. */
107093 _ACEOF
107094 cat confdefs.h >>conftest.$ac_ext
107095 cat >>conftest.$ac_ext <<_ACEOF
107096 /* end confdefs.h. */
107098 /* Override any GCC internal prototype to avoid an error.
107099 Use char because int might match the return type of a GCC
107100 builtin and then its argument prototype would still apply. */
107101 #ifdef __cplusplus
107102 extern "C"
107103 #endif
107104 char gm_init ();
107106 main ()
107108 return gm_init ();
107110 return 0;
107112 _ACEOF
107113 rm -f conftest.$ac_objext conftest$ac_exeext
107114 if { (ac_try="$ac_link"
107115 case "(($ac_try" in
107116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107117 *) ac_try_echo=$ac_try;;
107119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
107120 (eval "$ac_link") 2>conftest.er1
107121 ac_status=$?
107122 grep -v '^ *+' conftest.er1 >conftest.err
107123 rm -f conftest.er1
107124 cat conftest.err >&5
107125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
107126 (exit $ac_status); } && {
107127 test -z "$ac_c_werror_flag" ||
107128 test ! -s conftest.err
107129 } && test -s conftest$ac_exeext &&
107130 $as_test_x conftest$ac_exeext; then
107131 ac_cv_lib_gm_gm_init=yes
107133 echo "$as_me: failed program was:" >&5
107134 sed 's/^/| /' conftest.$ac_ext >&5
107136 ac_cv_lib_gm_gm_init=no
107139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
107140 conftest$ac_exeext conftest.$ac_ext
107141 LIBS=$ac_check_lib_save_LIBS
107143 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
107144 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
107145 if test $ac_cv_lib_gm_gm_init = yes; then
107146 ompi_check_package_lib_happy="yes"
107148 ompi_check_package_lib_happy="no"
107151 if test "$ompi_check_package_lib_happy" = "no"; then
107152 # no go on the as is.. see what happens later...
107153 LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
107154 mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
107155 unset ac_cv_lib_gm_gm_init
107161 if test "$ompi_check_package_lib_happy" = "no"; then
107162 if test "$ompi_check_package_libdir" != ""; then
107163 mpool_gm_LDFLAGS="$mpool_gm_LDFLAGS -L$ompi_check_package_libdir/lib"
107164 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
107165 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
107166 echo "${ECHO_T}looking for library in lib" >&6; }
107167 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
107168 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
107169 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
107170 echo $ECHO_N "(cached) $ECHO_C" >&6
107172 ac_check_lib_save_LIBS=$LIBS
107173 LIBS="-lgm $LIBS"
107174 cat >conftest.$ac_ext <<_ACEOF
107175 /* confdefs.h. */
107176 _ACEOF
107177 cat confdefs.h >>conftest.$ac_ext
107178 cat >>conftest.$ac_ext <<_ACEOF
107179 /* end confdefs.h. */
107181 /* Override any GCC internal prototype to avoid an error.
107182 Use char because int might match the return type of a GCC
107183 builtin and then its argument prototype would still apply. */
107184 #ifdef __cplusplus
107185 extern "C"
107186 #endif
107187 char gm_init ();
107189 main ()
107191 return gm_init ();
107193 return 0;
107195 _ACEOF
107196 rm -f conftest.$ac_objext conftest$ac_exeext
107197 if { (ac_try="$ac_link"
107198 case "(($ac_try" in
107199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107200 *) ac_try_echo=$ac_try;;
107202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
107203 (eval "$ac_link") 2>conftest.er1
107204 ac_status=$?
107205 grep -v '^ *+' conftest.er1 >conftest.err
107206 rm -f conftest.er1
107207 cat conftest.err >&5
107208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
107209 (exit $ac_status); } && {
107210 test -z "$ac_c_werror_flag" ||
107211 test ! -s conftest.err
107212 } && test -s conftest$ac_exeext &&
107213 $as_test_x conftest$ac_exeext; then
107214 ac_cv_lib_gm_gm_init=yes
107216 echo "$as_me: failed program was:" >&5
107217 sed 's/^/| /' conftest.$ac_ext >&5
107219 ac_cv_lib_gm_gm_init=no
107222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
107223 conftest$ac_exeext conftest.$ac_ext
107224 LIBS=$ac_check_lib_save_LIBS
107226 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
107227 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
107228 if test $ac_cv_lib_gm_gm_init = yes; then
107229 ompi_check_package_lib_happy="yes"
107231 ompi_check_package_lib_happy="no"
107234 if test "$ompi_check_package_lib_happy" = "no"; then
107235 # no go on the as is.. see what happens later...
107236 LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
107237 mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
107238 unset ac_cv_lib_gm_gm_init
107246 if test "$ompi_check_package_lib_happy" = "no"; then
107247 if test "$ompi_check_package_libdir" != ""; then
107248 mpool_gm_LDFLAGS="$mpool_gm_LDFLAGS -L$ompi_check_package_libdir/lib64"
107249 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
107250 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
107251 echo "${ECHO_T}looking for library in lib64" >&6; }
107252 { echo "$as_me:$LINENO: checking for gm_init in -lgm" >&5
107253 echo $ECHO_N "checking for gm_init in -lgm... $ECHO_C" >&6; }
107254 if test "${ac_cv_lib_gm_gm_init+set}" = set; then
107255 echo $ECHO_N "(cached) $ECHO_C" >&6
107257 ac_check_lib_save_LIBS=$LIBS
107258 LIBS="-lgm $LIBS"
107259 cat >conftest.$ac_ext <<_ACEOF
107260 /* confdefs.h. */
107261 _ACEOF
107262 cat confdefs.h >>conftest.$ac_ext
107263 cat >>conftest.$ac_ext <<_ACEOF
107264 /* end confdefs.h. */
107266 /* Override any GCC internal prototype to avoid an error.
107267 Use char because int might match the return type of a GCC
107268 builtin and then its argument prototype would still apply. */
107269 #ifdef __cplusplus
107270 extern "C"
107271 #endif
107272 char gm_init ();
107274 main ()
107276 return gm_init ();
107278 return 0;
107280 _ACEOF
107281 rm -f conftest.$ac_objext conftest$ac_exeext
107282 if { (ac_try="$ac_link"
107283 case "(($ac_try" in
107284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107285 *) ac_try_echo=$ac_try;;
107287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
107288 (eval "$ac_link") 2>conftest.er1
107289 ac_status=$?
107290 grep -v '^ *+' conftest.er1 >conftest.err
107291 rm -f conftest.er1
107292 cat conftest.err >&5
107293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
107294 (exit $ac_status); } && {
107295 test -z "$ac_c_werror_flag" ||
107296 test ! -s conftest.err
107297 } && test -s conftest$ac_exeext &&
107298 $as_test_x conftest$ac_exeext; then
107299 ac_cv_lib_gm_gm_init=yes
107301 echo "$as_me: failed program was:" >&5
107302 sed 's/^/| /' conftest.$ac_ext >&5
107304 ac_cv_lib_gm_gm_init=no
107307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
107308 conftest$ac_exeext conftest.$ac_ext
107309 LIBS=$ac_check_lib_save_LIBS
107311 { echo "$as_me:$LINENO: result: $ac_cv_lib_gm_gm_init" >&5
107312 echo "${ECHO_T}$ac_cv_lib_gm_gm_init" >&6; }
107313 if test $ac_cv_lib_gm_gm_init = yes; then
107314 ompi_check_package_lib_happy="yes"
107316 ompi_check_package_lib_happy="no"
107319 if test "$ompi_check_package_lib_happy" = "no"; then
107320 # no go on the as is.. see what happens later...
107321 LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
107322 mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
107323 unset ac_cv_lib_gm_gm_init
107333 if test "$ompi_check_package_lib_happy" = "yes"; then
107334 ompi_check_package_happy="yes"
107336 ompi_check_package_happy="no"
107343 unset ompi_check_package_header_happy
107345 if test "$ompi_check_package_happy" = "yes"; then
107346 ompi_check_gm_happy="yes"
107347 mpool_gm_LIBS="-lgm "
107349 mpool_gm_CPPFLAGS="$ompi_check_package_mpool_gm_orig_CPPFLAGS"
107350 mpool_gm_LDFLAGS="$ompi_check_package_mpool_gm_orig_LDFLAGS"
107351 mpool_gm_LIBS="$ompi_check_package_mpool_gm_orig_LIBS"
107352 ompi_check_gm_happy="no"
107356 CPPFLAGS="$ompi_check_package_mpool_gm_save_CPPFLAGS"
107357 LDFLAGS="$ompi_check_package_mpool_gm_save_LDFLAGS"
107358 LIBS="$ompi_check_package_mpool_gm_save_LIBS"
107361 ompi_check_gm_happy="no"
107365 if test "$ompi_check_gm_happy" = "yes"; then
107367 u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS="$CPPFLAGS"
107368 u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS="$LDFLAGS"
107369 u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS="$LIBS"
107371 CPPFLAGS="$CPPFLAGS $mpool_gm_CPPFLAGS"
107372 LDFLAGS="$LDFLAGS $mpool_gm_LDFLAGS"
107373 LIBS="$LIBS $mpool_gm_LIBS"
107376 # See if we have GM_API_VERSION. If we do, use it. If not, find the
107377 # highest one available. It seems that GM_API_VERSION was introduced
107378 # somewhere after 1.3 but before 1.6. :-\
107380 { echo "$as_me:$LINENO: checking for GM_API_VERSION" >&5
107381 echo $ECHO_N "checking for GM_API_VERSION... $ECHO_C" >&6; }
107382 cat >conftest.$ac_ext <<_ACEOF
107383 /* confdefs.h. */
107384 _ACEOF
107385 cat confdefs.h >>conftest.$ac_ext
107386 cat >>conftest.$ac_ext <<_ACEOF
107387 /* end confdefs.h. */
107388 #include<gm.h>
107390 main ()
107392 int foo = GM_API_VERSION;
107394 return 0;
107396 _ACEOF
107397 rm -f conftest.$ac_objext
107398 if { (ac_try="$ac_compile"
107399 case "(($ac_try" in
107400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107401 *) ac_try_echo=$ac_try;;
107403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
107404 (eval "$ac_compile") 2>conftest.er1
107405 ac_status=$?
107406 grep -v '^ *+' conftest.er1 >conftest.err
107407 rm -f conftest.er1
107408 cat conftest.err >&5
107409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
107410 (exit $ac_status); } && {
107411 test -z "$ac_c_werror_flag" ||
107412 test ! -s conftest.err
107413 } && test -s conftest.$ac_objext; then
107414 have_gm_api_ver_msg=yes gm_api_ver=GM_API_VERSION
107416 echo "$as_me: failed program was:" >&5
107417 sed 's/^/| /' conftest.$ac_ext >&5
107419 have_gm_api_ver_msg=no gm_api_ver=""
107422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107423 { echo "$as_me:$LINENO: result: $have_gm_api_ver_msg" >&5
107424 echo "${ECHO_T}$have_gm_api_ver_msg" >&6; }
107425 if test "$gm_api_ver" = ""; then
107426 found=0
107427 for val in 5 4 3; do
107428 if test "$found" = "0"; then
107429 var="GM_API_VERSION_1_$val"
107430 { echo "$as_me:$LINENO: checking for $var" >&5
107431 echo $ECHO_N "checking for $var... $ECHO_C" >&6; }
107432 cat >conftest.$ac_ext <<_ACEOF
107433 /* confdefs.h. */
107434 _ACEOF
107435 cat confdefs.h >>conftest.$ac_ext
107436 cat >>conftest.$ac_ext <<_ACEOF
107437 /* end confdefs.h. */
107438 #include<gm.h>
107440 main ()
107442 int foo = $var;
107444 return 0;
107446 _ACEOF
107447 rm -f conftest.$ac_objext
107448 if { (ac_try="$ac_compile"
107449 case "(($ac_try" in
107450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107451 *) ac_try_echo=$ac_try;;
107453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
107454 (eval "$ac_compile") 2>conftest.er1
107455 ac_status=$?
107456 grep -v '^ *+' conftest.er1 >conftest.err
107457 rm -f conftest.er1
107458 cat conftest.err >&5
107459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
107460 (exit $ac_status); } && {
107461 test -z "$ac_c_werror_flag" ||
107462 test ! -s conftest.err
107463 } && test -s conftest.$ac_objext; then
107464 msg=yes found=1 gm_api_ver=$var
107466 echo "$as_me: failed program was:" >&5
107467 sed 's/^/| /' conftest.$ac_ext >&5
107469 msg=no found=0 gm_api_ver=""
107472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107473 { echo "$as_me:$LINENO: result: $msg" >&5
107474 echo "${ECHO_T}$msg" >&6; }
107478 if test "$gm_api_ver" = ""; then
107479 { echo "$as_me:$LINENO: WARNING: *** Could not find a supported GM_API_VERSION" >&5
107480 echo "$as_me: WARNING: *** Could not find a supported GM_API_VERSION" >&2;}
107481 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5
107482 echo "$as_me: error: *** Cannot continue" >&2;}
107483 { (exit 1); exit 1; }; }
107486 cat >>confdefs.h <<_ACEOF
107487 #define OMPI_MCA_MPOOL_GM_API_VERSION $gm_api_ver
107488 _ACEOF
107490 unset gm_api_ver have_gm_api_ver_msg found val msg
107493 # Do we have gm_put()?
107494 # gm_put() was introduced in gm 2.0, and is exactly identical to gm
107495 # 1.6's gm_directed_send_with_callback(). The name was simply changed
107496 # for consistency/symmtery with gm_get().
107498 { echo "$as_me:$LINENO: checking for gm_put()" >&5
107499 echo $ECHO_N "checking for gm_put()... $ECHO_C" >&6; }
107500 cat >conftest.$ac_ext <<_ACEOF
107501 /* confdefs.h. */
107502 _ACEOF
107503 cat confdefs.h >>conftest.$ac_ext
107504 cat >>conftest.$ac_ext <<_ACEOF
107505 /* end confdefs.h. */
107506 #include<gm.h>
107509 main ()
107511 gm_put(0, 0, 0, 0, 0, 0, 0, 0, 0);
107513 return 0;
107515 _ACEOF
107516 rm -f conftest.$ac_objext conftest$ac_exeext
107517 if { (ac_try="$ac_link"
107518 case "(($ac_try" in
107519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107520 *) ac_try_echo=$ac_try;;
107522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
107523 (eval "$ac_link") 2>conftest.er1
107524 ac_status=$?
107525 grep -v '^ *+' conftest.er1 >conftest.err
107526 rm -f conftest.er1
107527 cat conftest.err >&5
107528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
107529 (exit $ac_status); } && {
107530 test -z "$ac_c_werror_flag" ||
107531 test ! -s conftest.err
107532 } && test -s conftest$ac_exeext &&
107533 $as_test_x conftest$ac_exeext; then
107534 HAVE_RDMA_PUT=1 MSG=yes
107536 echo "$as_me: failed program was:" >&5
107537 sed 's/^/| /' conftest.$ac_ext >&5
107539 HAVE_RDMA_PUT=0 MSG="no, use gm_directed_send_with_callback()"
107542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
107543 conftest$ac_exeext conftest.$ac_ext
107545 cat >>confdefs.h <<_ACEOF
107546 #define OMPI_MCA_MPOOL_GM_HAVE_RDMA_PUT $HAVE_RDMA_PUT
107547 _ACEOF
107549 { echo "$as_me:$LINENO: result: $MSG" >&5
107550 echo "${ECHO_T}$MSG" >&6; }
107553 # Do we have gm_get()?
107554 # gm_get() was introduced in gm 2.0.
107556 { echo "$as_me:$LINENO: checking for gm_get()" >&5
107557 echo $ECHO_N "checking for gm_get()... $ECHO_C" >&6; }
107558 cat >conftest.$ac_ext <<_ACEOF
107559 /* confdefs.h. */
107560 _ACEOF
107561 cat confdefs.h >>conftest.$ac_ext
107562 cat >>conftest.$ac_ext <<_ACEOF
107563 /* end confdefs.h. */
107564 #include<gm.h>
107567 main ()
107569 gm_get(0, 0, 0, 0, 0, 0, 0, 0, 0);
107571 return 0;
107573 _ACEOF
107574 rm -f conftest.$ac_objext conftest$ac_exeext
107575 if { (ac_try="$ac_link"
107576 case "(($ac_try" in
107577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107578 *) ac_try_echo=$ac_try;;
107580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
107581 (eval "$ac_link") 2>conftest.er1
107582 ac_status=$?
107583 grep -v '^ *+' conftest.er1 >conftest.err
107584 rm -f conftest.er1
107585 cat conftest.err >&5
107586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
107587 (exit $ac_status); } && {
107588 test -z "$ac_c_werror_flag" ||
107589 test ! -s conftest.err
107590 } && test -s conftest$ac_exeext &&
107591 $as_test_x conftest$ac_exeext; then
107592 HAVE_RDMA_GET=1 MSG=yes
107594 echo "$as_me: failed program was:" >&5
107595 sed 's/^/| /' conftest.$ac_ext >&5
107597 HAVE_RDMA_GET=0 MSG=no
107600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
107601 conftest$ac_exeext conftest.$ac_ext
107603 cat >>confdefs.h <<_ACEOF
107604 #define OMPI_MCA_MPOOL_GM_HAVE_RDMA_GET $HAVE_RDMA_GET
107605 _ACEOF
107607 { echo "$as_me:$LINENO: result: $MSG" >&5
107608 echo "${ECHO_T}$MSG" >&6; }
107610 # Now test to see if the targetted GM is a broken one broken gm builds
107611 { echo "$as_me:$LINENO: checking for broken GM 2.x RDMA gets build" >&5
107612 echo $ECHO_N "checking for broken GM 2.x RDMA gets build... $ECHO_C" >&6; }
107613 cat >conftest.$ac_ext <<_ACEOF
107614 /* confdefs.h. */
107615 _ACEOF
107616 cat confdefs.h >>conftest.$ac_ext
107617 cat >>conftest.$ac_ext <<_ACEOF
107618 /* end confdefs.h. */
107620 #include <gm.h>
107623 main ()
107626 #if GM_API_VERSION_2_0 && \
107627 ((GM_API_VERSION_2_1_0 && GM_API_VERSION < 0x20102) || \
107628 GM_API_VERSION < 0x2000c)
107629 #error GM build is broken
107630 #endif
107632 return 0;
107634 _ACEOF
107635 rm -f conftest.$ac_objext
107636 if { (ac_try="$ac_compile"
107637 case "(($ac_try" in
107638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107639 *) ac_try_echo=$ac_try;;
107641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
107642 (eval "$ac_compile") 2>conftest.er1
107643 ac_status=$?
107644 grep -v '^ *+' conftest.er1 >conftest.err
107645 rm -f conftest.er1
107646 cat conftest.err >&5
107647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
107648 (exit $ac_status); } && {
107649 test -z "$ac_c_werror_flag" ||
107650 test ! -s conftest.err
107651 } && test -s conftest.$ac_objext; then
107652 mca_gm_broken=0 gm_build_broken=no
107654 echo "$as_me: failed program was:" >&5
107655 sed 's/^/| /' conftest.$ac_ext >&5
107657 mca_gm_broken=1 gm_build_broken=yes
107660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107661 { echo "$as_me:$LINENO: result: $gm_build_broken " >&5
107662 echo "${ECHO_T}$gm_build_broken " >&6; }
107664 cat >>confdefs.h <<_ACEOF
107665 #define OMPI_MCA_MPOOL_GM_GET_BROKEN $mca_gm_broken
107666 _ACEOF
107668 unset gm_build_broken mca_gm_broken
107671 cat >>confdefs.h <<_ACEOF
107672 #define OMPI_MCA_MPOOL_GM_SUPPORT_REGISTERING 1
107673 _ACEOF
107676 CPPFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_CPPFLAGS"
107677 LDFLAGS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LDFLAGS"
107678 LIBS="$u_OMPI_CHECK_GM_CONFIG_SAVE_LIBS"
107680 mpool_gm_happy="yes"
107682 if test ! -z "$with_gm" -a "$with_gm" != "no"; then
107683 { { echo "$as_me:$LINENO: error: GM support requested but not found. Aborting" >&5
107684 echo "$as_me: error: GM support requested but not found. Aborting" >&2;}
107685 { (exit 1); exit 1; }; }
107688 mpool_gm_happy="no"
107693 if test "$mpool_gm_happy" = "yes"; then
107694 mpool_gm_WRAPPER_EXTRA_LDFLAGS="$mpool_gm_LDFLAGS"
107695 mpool_gm_WRAPPER_EXTRA_LIBS="$mpool_gm_LIBS"
107696 should_build=1
107698 should_build=0
107702 # substitute in the things needed to build gm
107711 if test "$should_build" = "1"; then
107713 project=ompi
107714 framework=mpool
107715 component=gm
107717 # See if it dropped an output file for us to pick up some
107718 # shell variables in.
107719 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
107721 # Add this subdir to the mast list of all MCA component subdirs
107722 all_components="$all_components $component"
107724 if test "$compile_mode" = "dso" ; then
107725 dso_components="$dso_components $component"
107727 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
107728 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
107729 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
107730 static_components="$static_components $component"
107733 # Output pretty results
107734 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
107735 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
107736 { echo "$as_me:$LINENO: result: yes" >&5
107737 echo "${ECHO_T}yes" >&6; }
107739 # If there's an output file, add the values to
107740 # scope_EXTRA_flags.
107741 if test -f $infile; then
107743 # First check for the ABORT tag
107744 line="`grep ABORT= $infile | cut -d= -f2-`"
107745 if test -n "$line" -a "$line" != "no"; then
107746 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
107747 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
107748 { { echo "$as_me:$LINENO: error: cannot continue" >&5
107749 echo "$as_me: error: cannot continue" >&2;}
107750 { (exit 1); exit 1; }; }
107753 # Check for flags passed up from the component. If we're
107754 # compiling statically, then take all flags passed up from the
107755 # component.
107756 if test "$compile_mode" = "static"; then
107757 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
107758 eval "line=$line"
107759 if test -n "$line"; then
107760 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
107762 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
107763 eval "line=$line"
107764 if test -n "$line"; then
107765 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
107769 if test "$DIRECT_mpool" = "$component" ; then
107770 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
107771 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
107772 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
107773 eval $str
107775 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
107776 *** does not appear to support direct calling.
107777 *** Aborting" >&5
107778 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
107779 *** does not appear to support direct calling.
107780 *** Aborting" >&2;}
107781 { (exit 1); exit 1; }; }
107785 # were we supposed to have found something in the
107786 # post_configure.sh, but the file didn't exist?
107787 if test "$DIRECT_mpool" = "$component" ; then
107788 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
107789 *** does not appear to support direct calling.
107790 *** Aborting" >&5
107791 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
107792 *** does not appear to support direct calling.
107793 *** Aborting" >&2;}
107794 { (exit 1); exit 1; }; }
107798 # now add the flags that were set in the environment variables
107799 # framework_component_FOO (for example, the flags set by
107800 # m4_configure components)
107802 # Check for flags passed up from the component. If we're
107803 # compiling statically, then take all flags passed up from the
107804 # component.
107805 if test "$compile_mode" = "static"; then
107806 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
107807 eval "$str"
107808 if test -n "$line" ; then
107809 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
107811 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
107812 eval "$str"
107813 if test -n "$line" ; then
107814 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
107820 { echo "$as_me:$LINENO: checking if MCA component mpool:gm can compile" >&5
107821 echo $ECHO_N "checking if MCA component mpool:gm can compile... $ECHO_C" >&6; }
107822 { echo "$as_me:$LINENO: result: no" >&5
107823 echo "${ECHO_T}no" >&6; }
107825 # If this component was requested as the default for this
107826 # type, then abort.
107827 if test "$with_mpool" = "gm" ; then
107828 { echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5
107829 echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;}
107830 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
107831 echo "$as_me: WARNING: This component was selected as the default" >&2;}
107832 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
107833 echo "$as_me: error: Cannot continue" >&2;}
107834 { (exit 1); exit 1; }; }
107835 exit 1
107838 if test ! -z "$DIRECT_mpool" ; then
107839 if test "$DIRECT_mpool" = "gm" ; then
107840 { echo "$as_me:$LINENO: WARNING: MCA component \"gm\" failed to configure properly" >&5
107841 echo "$as_me: WARNING: MCA component \"gm\" failed to configure properly" >&2;}
107842 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
107843 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
107844 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
107845 echo "$as_me: error: Cannot continue" >&2;}
107846 { (exit 1); exit 1; }; }
107847 exit 1
107851 # add component to all component list
107852 all_components="$all_components gm"
107856 # set the AM_CONDITIONAL on how we should build
107857 if test "$compile_mode" = "dso"; then
107858 BUILD_mpool_gm_DSO=1
107860 BUILD_mpool_gm_DSO=0
107865 if test "$BUILD_mpool_gm_DSO" = "1"; then
107866 OMPI_BUILD_mpool_gm_DSO_TRUE=
107867 OMPI_BUILD_mpool_gm_DSO_FALSE='#'
107869 OMPI_BUILD_mpool_gm_DSO_TRUE='#'
107870 OMPI_BUILD_mpool_gm_DSO_FALSE=
107874 if test "$should_build" = "1"; then
107875 components_looking_for_succeed="$happy_value"
107879 unset compile_mode
107881 ompi_show_subsubsubtitle "MCA component mpool:mvapi (m4 configuration macro)"
107884 project=ompi
107885 framework=mpool
107886 component=mvapi
107887 component_path="$srcdir/$project/mca/$framework/$component"
107888 want_component=0
107890 # build if:
107891 # - the component type is direct and we are that component
107892 # - there is no ompi_ignore file
107893 # - there is an ompi_ignore, but there is an empty ompi_unignore
107894 # - there is an ompi_ignore, but username is in ompi_unignore
107895 if test -d $component_path ; then
107896 # decide if we want the component to be built or not. This
107897 # is spread out because some of the logic is a little complex
107898 # and test's syntax isn't exactly the greatest. We want to
107899 # build the component by default.
107900 want_component=1
107901 if test -f $component_path/.ompi_ignore ; then
107902 # If there is an ompi_ignore file, don't build
107903 # the component. Note that this decision can be
107904 # overriden by the unignore logic below.
107905 want_component=0
107907 if test -f $component_path/.ompi_unignore ; then
107908 # if there is an empty ompi_unignore, that is
107909 # equivalent to having your userid in the unignore file.
107910 # If userid is in the file, unignore the ignore file.
107911 if test ! -s $component_path/.ompi_unignore ; then
107912 want_component=1
107913 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
107914 want_component=1
107917 # if this component type is direct and we are not it, we don't want
107918 # to be built. Otherwise, we do want to be built.
107919 if test ! -z "$DIRECT_mpool" ; then
107920 if test "$DIRECT_mpool" = "$component" ; then
107921 want_component=1
107923 want_component=0
107928 # if we were explicitly disabled, don't build :)
107929 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
107930 eval $str
107931 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
107932 want_component=0
107935 if test "$want_component" = "1"; then
107936 should_build=$components_looking_for_succeed
107938 should_build=0
107942 # Allow the component to override the build mode if it really wants to.
107943 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
107945 project=ompi
107946 framework=mpool
107947 component=mvapi
107949 # Is this component going to built staic or shared? $component
107950 # might not be known until configure time, so have to use eval
107951 # tricks - can't set variable names at autogen time.
107952 str="SHARED_FRAMEWORK=\$DSO_$framework"
107953 eval $str
107954 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
107955 eval $str
107957 str="STATIC_FRAMEWORK=\$STATIC_$framework"
107958 eval $str
107959 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
107960 eval $str
107962 shared_mode_override=static
107964 # Setup for either shared or static
107965 if test "$STATIC_FRAMEWORK" = "1" -o \
107966 "$STATIC_COMPONENT" = "1" -o \
107967 "$STATIC_all" = "1" ; then
107968 compile_mode="static"
107969 elif test "$shared_mode_override" = "dso" -o \
107970 "$SHARED_FRAMEWORK" = "1" -o \
107971 "$SHARED_COMPONENT" = "1" -o \
107972 "$DSO_all" = "1"; then
107973 compile_mode="dso"
107975 compile_mode="static"
107978 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
107979 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
107980 if test "$DIRECT_mpool" = "$component" ; then
107981 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
107982 echo "${ECHO_T}$compile_mode - direct" >&6; }
107984 { echo "$as_me:$LINENO: result: $compile_mode" >&5
107985 echo "${ECHO_T}$compile_mode" >&6; }
107989 # try to configure the component. pay no attention to
107990 # --enable-dist, since we'll always have makefiles.
107991 if test "$should_build" = "1"; then
107995 # Check whether --with-mvapi was given.
107996 if test "${with_mvapi+set}" = set; then
107997 withval=$with_mvapi;
108001 # Check whether --with-mvapi-libdir was given.
108002 if test "${with_mvapi_libdir+set}" = set; then
108003 withval=$with_mvapi_libdir;
108007 if test ! -z "$with_mvapi" -a "$with_mvapi" != "yes"; then
108008 ompi_check_mvapi_dir="$with_mvapi"
108011 if test ! -z "$with_mvapi_libdir" -a "$with_mvapi_libdir" != "yes"; then
108012 ompi_check_mvapi_libdir="$with_mvapi_libdir"
108016 if test "$with_mvapi" != "no"; then
108017 # check for pthreads and emit a warning that
108018 # things might go south...
108019 if test "$HAVE_POSIX_THREADS" != "1"; then
108020 { echo "$as_me:$LINENO: WARNING: POSIX threads not enabled. May not be able to link with mvapi" >&5
108021 echo "$as_me: WARNING: POSIX threads not enabled. May not be able to link with mvapi" >&2;}
108025 ompi_check_mvapimpool_mvapi_save_CFLAGS="$CFLAGS"
108026 ompi_check_mvapimpool_mvapi_save_CPPFLAGS="$CPPFLAGS"
108028 # ugly hack for topspin which stores include files in include/vapi
108029 if test -d "$ompi_check_mvapi_dir/include/vapi"; then
108030 CPPFLAGS="$CPPFLAGS -I $ompi_check_mvapi_dir/include/vapi"
108031 mpool_mvapi_CPPFLAGS="$mpool_mvapi_CPPFLAGS -I $ompi_check_mvapi_dir/include/vapi"
108035 # some mellanox vapi implemenations only need lvapi and lmosal
108037 ompi_check_package_mpool_mvapi_save_CPPFLAGS="$CPPFLAGS"
108038 ompi_check_package_mpool_mvapi_save_LDFLAGS="$LDFLAGS"
108039 ompi_check_package_mpool_mvapi_save_LIBS="$LIBS"
108041 ompi_check_package_mpool_mvapi_orig_CPPFLAGS="$mpool_mvapi_CPPFLAGS"
108042 ompi_check_package_mpool_mvapi_orig_LDFLAGS="$mpool_mvapi_LDFLAGS"
108043 ompi_check_package_mpool_mvapi_orig_LIBS="$mpool_mvapi_LIBS"
108046 # This is stolen from autoconf to peek under the covers to get the
108047 # cache variable for the library check. one should not copy this
108048 # code into other places unless you want much pain and suffering
108051 # so this sucks, but there's no way to get through the progression
108052 # of header includes without killing off the cache variable and trying
108053 # again...
108054 unset ac_cv_header_vapi_h
108056 ompi_check_package_header_happy="no"
108057 if test "$ompi_check_mvapi_dir" = "/usr" -o "$ompi_check_mvapi_dir" = "/usr/local"; then
108058 # try as is...
108059 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
108060 echo "${ECHO_T}looking for header without includes" >&6; }
108061 if test "${ac_cv_header_vapi_h+set}" = set; then
108062 { echo "$as_me:$LINENO: checking for vapi.h" >&5
108063 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
108064 if test "${ac_cv_header_vapi_h+set}" = set; then
108065 echo $ECHO_N "(cached) $ECHO_C" >&6
108067 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
108068 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
108070 # Is the header compilable?
108071 { echo "$as_me:$LINENO: checking vapi.h usability" >&5
108072 echo $ECHO_N "checking vapi.h usability... $ECHO_C" >&6; }
108073 cat >conftest.$ac_ext <<_ACEOF
108074 /* confdefs.h. */
108075 _ACEOF
108076 cat confdefs.h >>conftest.$ac_ext
108077 cat >>conftest.$ac_ext <<_ACEOF
108078 /* end confdefs.h. */
108079 $ac_includes_default
108080 #include <vapi.h>
108081 _ACEOF
108082 rm -f conftest.$ac_objext
108083 if { (ac_try="$ac_compile"
108084 case "(($ac_try" in
108085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108086 *) ac_try_echo=$ac_try;;
108088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
108089 (eval "$ac_compile") 2>conftest.er1
108090 ac_status=$?
108091 grep -v '^ *+' conftest.er1 >conftest.err
108092 rm -f conftest.er1
108093 cat conftest.err >&5
108094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
108095 (exit $ac_status); } && {
108096 test -z "$ac_c_werror_flag" ||
108097 test ! -s conftest.err
108098 } && test -s conftest.$ac_objext; then
108099 ac_header_compiler=yes
108101 echo "$as_me: failed program was:" >&5
108102 sed 's/^/| /' conftest.$ac_ext >&5
108104 ac_header_compiler=no
108107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
108108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
108109 echo "${ECHO_T}$ac_header_compiler" >&6; }
108111 # Is the header present?
108112 { echo "$as_me:$LINENO: checking vapi.h presence" >&5
108113 echo $ECHO_N "checking vapi.h presence... $ECHO_C" >&6; }
108114 cat >conftest.$ac_ext <<_ACEOF
108115 /* confdefs.h. */
108116 _ACEOF
108117 cat confdefs.h >>conftest.$ac_ext
108118 cat >>conftest.$ac_ext <<_ACEOF
108119 /* end confdefs.h. */
108120 #include <vapi.h>
108121 _ACEOF
108122 if { (ac_try="$ac_cpp conftest.$ac_ext"
108123 case "(($ac_try" in
108124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108125 *) ac_try_echo=$ac_try;;
108127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
108128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
108129 ac_status=$?
108130 grep -v '^ *+' conftest.er1 >conftest.err
108131 rm -f conftest.er1
108132 cat conftest.err >&5
108133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
108134 (exit $ac_status); } >/dev/null && {
108135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
108136 test ! -s conftest.err
108137 }; then
108138 ac_header_preproc=yes
108140 echo "$as_me: failed program was:" >&5
108141 sed 's/^/| /' conftest.$ac_ext >&5
108143 ac_header_preproc=no
108146 rm -f conftest.err conftest.$ac_ext
108147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
108148 echo "${ECHO_T}$ac_header_preproc" >&6; }
108150 # So? What about this header?
108151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
108152 yes:no: )
108153 { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
108154 echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
108155 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
108156 echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
108157 ac_header_preproc=yes
108159 no:yes:* )
108160 { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
108161 echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
108162 { echo "$as_me:$LINENO: WARNING: vapi.h: check for missing prerequisite headers?" >&5
108163 echo "$as_me: WARNING: vapi.h: check for missing prerequisite headers?" >&2;}
108164 { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
108165 echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
108166 { echo "$as_me:$LINENO: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&5
108167 echo "$as_me: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
108168 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
108169 echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
108170 { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
108171 echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
108172 ( cat <<\_ASBOX
108173 ## ------------------------------------------------------ ##
108174 ## Report this to http://www.open-mpi.org/community/help/ ##
108175 ## ------------------------------------------------------ ##
108176 _ASBOX
108177 ) | sed "s/^/$as_me: WARNING: /" >&2
108180 { echo "$as_me:$LINENO: checking for vapi.h" >&5
108181 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
108182 if test "${ac_cv_header_vapi_h+set}" = set; then
108183 echo $ECHO_N "(cached) $ECHO_C" >&6
108185 ac_cv_header_vapi_h=$ac_header_preproc
108187 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
108188 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
108191 if test $ac_cv_header_vapi_h = yes; then
108192 ompi_check_package_header_happy="yes"
108194 ompi_check_package_header_happy="no"
108198 if test "$ompi_check_package_header_happy" = "no"; then
108199 # no go on the as is - reset the cache and try again
108200 unset ac_cv_header_vapi_h
108206 if test "$ompi_check_package_header_happy" = "no"; then
108207 if test "$ompi_check_mvapi_dir" != ""; then
108208 mpool_mvapi_CPPFLAGS="$mpool_mvapi_CPPFLAGS -I$ompi_check_mvapi_dir/include"
108209 CPPFLAGS="$CPPFLAGS -I$ompi_check_mvapi_dir/include"
108212 if test "${ac_cv_header_vapi_h+set}" = set; then
108213 { echo "$as_me:$LINENO: checking for vapi.h" >&5
108214 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
108215 if test "${ac_cv_header_vapi_h+set}" = set; then
108216 echo $ECHO_N "(cached) $ECHO_C" >&6
108218 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
108219 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
108221 # Is the header compilable?
108222 { echo "$as_me:$LINENO: checking vapi.h usability" >&5
108223 echo $ECHO_N "checking vapi.h usability... $ECHO_C" >&6; }
108224 cat >conftest.$ac_ext <<_ACEOF
108225 /* confdefs.h. */
108226 _ACEOF
108227 cat confdefs.h >>conftest.$ac_ext
108228 cat >>conftest.$ac_ext <<_ACEOF
108229 /* end confdefs.h. */
108230 $ac_includes_default
108231 #include <vapi.h>
108232 _ACEOF
108233 rm -f conftest.$ac_objext
108234 if { (ac_try="$ac_compile"
108235 case "(($ac_try" in
108236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108237 *) ac_try_echo=$ac_try;;
108239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
108240 (eval "$ac_compile") 2>conftest.er1
108241 ac_status=$?
108242 grep -v '^ *+' conftest.er1 >conftest.err
108243 rm -f conftest.er1
108244 cat conftest.err >&5
108245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
108246 (exit $ac_status); } && {
108247 test -z "$ac_c_werror_flag" ||
108248 test ! -s conftest.err
108249 } && test -s conftest.$ac_objext; then
108250 ac_header_compiler=yes
108252 echo "$as_me: failed program was:" >&5
108253 sed 's/^/| /' conftest.$ac_ext >&5
108255 ac_header_compiler=no
108258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
108259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
108260 echo "${ECHO_T}$ac_header_compiler" >&6; }
108262 # Is the header present?
108263 { echo "$as_me:$LINENO: checking vapi.h presence" >&5
108264 echo $ECHO_N "checking vapi.h presence... $ECHO_C" >&6; }
108265 cat >conftest.$ac_ext <<_ACEOF
108266 /* confdefs.h. */
108267 _ACEOF
108268 cat confdefs.h >>conftest.$ac_ext
108269 cat >>conftest.$ac_ext <<_ACEOF
108270 /* end confdefs.h. */
108271 #include <vapi.h>
108272 _ACEOF
108273 if { (ac_try="$ac_cpp conftest.$ac_ext"
108274 case "(($ac_try" in
108275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108276 *) ac_try_echo=$ac_try;;
108278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
108279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
108280 ac_status=$?
108281 grep -v '^ *+' conftest.er1 >conftest.err
108282 rm -f conftest.er1
108283 cat conftest.err >&5
108284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
108285 (exit $ac_status); } >/dev/null && {
108286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
108287 test ! -s conftest.err
108288 }; then
108289 ac_header_preproc=yes
108291 echo "$as_me: failed program was:" >&5
108292 sed 's/^/| /' conftest.$ac_ext >&5
108294 ac_header_preproc=no
108297 rm -f conftest.err conftest.$ac_ext
108298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
108299 echo "${ECHO_T}$ac_header_preproc" >&6; }
108301 # So? What about this header?
108302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
108303 yes:no: )
108304 { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
108305 echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
108306 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
108307 echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
108308 ac_header_preproc=yes
108310 no:yes:* )
108311 { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
108312 echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
108313 { echo "$as_me:$LINENO: WARNING: vapi.h: check for missing prerequisite headers?" >&5
108314 echo "$as_me: WARNING: vapi.h: check for missing prerequisite headers?" >&2;}
108315 { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
108316 echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
108317 { echo "$as_me:$LINENO: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&5
108318 echo "$as_me: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
108319 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
108320 echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
108321 { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
108322 echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
108323 ( cat <<\_ASBOX
108324 ## ------------------------------------------------------ ##
108325 ## Report this to http://www.open-mpi.org/community/help/ ##
108326 ## ------------------------------------------------------ ##
108327 _ASBOX
108328 ) | sed "s/^/$as_me: WARNING: /" >&2
108331 { echo "$as_me:$LINENO: checking for vapi.h" >&5
108332 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
108333 if test "${ac_cv_header_vapi_h+set}" = set; then
108334 echo $ECHO_N "(cached) $ECHO_C" >&6
108336 ac_cv_header_vapi_h=$ac_header_preproc
108338 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
108339 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
108342 if test $ac_cv_header_vapi_h = yes; then
108344 # This is stolen from autoconf to peek under the covers to get the
108345 # cache variable for the library check. one should not copy this
108346 # code into other places unless you want much pain and suffering
108348 # see comment above
108349 unset ac_cv_lib_vapi_VAPI_open_hca
108350 ompi_check_package_lib_happy="no"
108351 if test "$ompi_check_mvapi_libdir" != ""; then
108352 # libdir was specified - search only there
108353 mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
108354 LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
108355 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
108356 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
108357 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
108358 echo $ECHO_N "(cached) $ECHO_C" >&6
108360 ac_check_lib_save_LIBS=$LIBS
108361 LIBS="-lvapi -lmosal $LIBS"
108362 cat >conftest.$ac_ext <<_ACEOF
108363 /* confdefs.h. */
108364 _ACEOF
108365 cat confdefs.h >>conftest.$ac_ext
108366 cat >>conftest.$ac_ext <<_ACEOF
108367 /* end confdefs.h. */
108369 /* Override any GCC internal prototype to avoid an error.
108370 Use char because int might match the return type of a GCC
108371 builtin and then its argument prototype would still apply. */
108372 #ifdef __cplusplus
108373 extern "C"
108374 #endif
108375 char VAPI_open_hca ();
108377 main ()
108379 return VAPI_open_hca ();
108381 return 0;
108383 _ACEOF
108384 rm -f conftest.$ac_objext conftest$ac_exeext
108385 if { (ac_try="$ac_link"
108386 case "(($ac_try" in
108387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108388 *) ac_try_echo=$ac_try;;
108390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
108391 (eval "$ac_link") 2>conftest.er1
108392 ac_status=$?
108393 grep -v '^ *+' conftest.er1 >conftest.err
108394 rm -f conftest.er1
108395 cat conftest.err >&5
108396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
108397 (exit $ac_status); } && {
108398 test -z "$ac_c_werror_flag" ||
108399 test ! -s conftest.err
108400 } && test -s conftest$ac_exeext &&
108401 $as_test_x conftest$ac_exeext; then
108402 ac_cv_lib_vapi_VAPI_open_hca=yes
108404 echo "$as_me: failed program was:" >&5
108405 sed 's/^/| /' conftest.$ac_ext >&5
108407 ac_cv_lib_vapi_VAPI_open_hca=no
108410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
108411 conftest$ac_exeext conftest.$ac_ext
108412 LIBS=$ac_check_lib_save_LIBS
108414 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
108415 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
108416 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
108417 ompi_check_package_lib_happy="yes"
108419 ompi_check_package_lib_happy="no"
108422 if test "$ompi_check_package_lib_happy" = "no"; then
108423 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
108424 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
108425 unset ac_cv_lib_vapi_VAPI_open_hca
108429 # libdir was not specified - go through search path
108430 ompi_check_package_libdir="$ompi_check_mvapi_dir"
108431 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
108432 # try as is...
108433 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
108434 echo "${ECHO_T}looking for library without search path" >&6; }
108435 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
108436 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
108437 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
108438 echo $ECHO_N "(cached) $ECHO_C" >&6
108440 ac_check_lib_save_LIBS=$LIBS
108441 LIBS="-lvapi -lmosal $LIBS"
108442 cat >conftest.$ac_ext <<_ACEOF
108443 /* confdefs.h. */
108444 _ACEOF
108445 cat confdefs.h >>conftest.$ac_ext
108446 cat >>conftest.$ac_ext <<_ACEOF
108447 /* end confdefs.h. */
108449 /* Override any GCC internal prototype to avoid an error.
108450 Use char because int might match the return type of a GCC
108451 builtin and then its argument prototype would still apply. */
108452 #ifdef __cplusplus
108453 extern "C"
108454 #endif
108455 char VAPI_open_hca ();
108457 main ()
108459 return VAPI_open_hca ();
108461 return 0;
108463 _ACEOF
108464 rm -f conftest.$ac_objext conftest$ac_exeext
108465 if { (ac_try="$ac_link"
108466 case "(($ac_try" in
108467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108468 *) ac_try_echo=$ac_try;;
108470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
108471 (eval "$ac_link") 2>conftest.er1
108472 ac_status=$?
108473 grep -v '^ *+' conftest.er1 >conftest.err
108474 rm -f conftest.er1
108475 cat conftest.err >&5
108476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
108477 (exit $ac_status); } && {
108478 test -z "$ac_c_werror_flag" ||
108479 test ! -s conftest.err
108480 } && test -s conftest$ac_exeext &&
108481 $as_test_x conftest$ac_exeext; then
108482 ac_cv_lib_vapi_VAPI_open_hca=yes
108484 echo "$as_me: failed program was:" >&5
108485 sed 's/^/| /' conftest.$ac_ext >&5
108487 ac_cv_lib_vapi_VAPI_open_hca=no
108490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
108491 conftest$ac_exeext conftest.$ac_ext
108492 LIBS=$ac_check_lib_save_LIBS
108494 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
108495 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
108496 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
108497 ompi_check_package_lib_happy="yes"
108499 ompi_check_package_lib_happy="no"
108502 if test "$ompi_check_package_lib_happy" = "no"; then
108503 # no go on the as is.. see what happens later...
108504 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
108505 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
108506 unset ac_cv_lib_vapi_VAPI_open_hca
108512 if test "$ompi_check_package_lib_happy" = "no"; then
108513 if test "$ompi_check_package_libdir" != ""; then
108514 mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
108515 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
108516 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
108517 echo "${ECHO_T}looking for library in lib" >&6; }
108518 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
108519 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
108520 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
108521 echo $ECHO_N "(cached) $ECHO_C" >&6
108523 ac_check_lib_save_LIBS=$LIBS
108524 LIBS="-lvapi -lmosal $LIBS"
108525 cat >conftest.$ac_ext <<_ACEOF
108526 /* confdefs.h. */
108527 _ACEOF
108528 cat confdefs.h >>conftest.$ac_ext
108529 cat >>conftest.$ac_ext <<_ACEOF
108530 /* end confdefs.h. */
108532 /* Override any GCC internal prototype to avoid an error.
108533 Use char because int might match the return type of a GCC
108534 builtin and then its argument prototype would still apply. */
108535 #ifdef __cplusplus
108536 extern "C"
108537 #endif
108538 char VAPI_open_hca ();
108540 main ()
108542 return VAPI_open_hca ();
108544 return 0;
108546 _ACEOF
108547 rm -f conftest.$ac_objext conftest$ac_exeext
108548 if { (ac_try="$ac_link"
108549 case "(($ac_try" in
108550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108551 *) ac_try_echo=$ac_try;;
108553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
108554 (eval "$ac_link") 2>conftest.er1
108555 ac_status=$?
108556 grep -v '^ *+' conftest.er1 >conftest.err
108557 rm -f conftest.er1
108558 cat conftest.err >&5
108559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
108560 (exit $ac_status); } && {
108561 test -z "$ac_c_werror_flag" ||
108562 test ! -s conftest.err
108563 } && test -s conftest$ac_exeext &&
108564 $as_test_x conftest$ac_exeext; then
108565 ac_cv_lib_vapi_VAPI_open_hca=yes
108567 echo "$as_me: failed program was:" >&5
108568 sed 's/^/| /' conftest.$ac_ext >&5
108570 ac_cv_lib_vapi_VAPI_open_hca=no
108573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
108574 conftest$ac_exeext conftest.$ac_ext
108575 LIBS=$ac_check_lib_save_LIBS
108577 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
108578 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
108579 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
108580 ompi_check_package_lib_happy="yes"
108582 ompi_check_package_lib_happy="no"
108585 if test "$ompi_check_package_lib_happy" = "no"; then
108586 # no go on the as is.. see what happens later...
108587 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
108588 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
108589 unset ac_cv_lib_vapi_VAPI_open_hca
108597 if test "$ompi_check_package_lib_happy" = "no"; then
108598 if test "$ompi_check_package_libdir" != ""; then
108599 mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
108600 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
108601 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
108602 echo "${ECHO_T}looking for library in lib64" >&6; }
108603 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
108604 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
108605 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
108606 echo $ECHO_N "(cached) $ECHO_C" >&6
108608 ac_check_lib_save_LIBS=$LIBS
108609 LIBS="-lvapi -lmosal $LIBS"
108610 cat >conftest.$ac_ext <<_ACEOF
108611 /* confdefs.h. */
108612 _ACEOF
108613 cat confdefs.h >>conftest.$ac_ext
108614 cat >>conftest.$ac_ext <<_ACEOF
108615 /* end confdefs.h. */
108617 /* Override any GCC internal prototype to avoid an error.
108618 Use char because int might match the return type of a GCC
108619 builtin and then its argument prototype would still apply. */
108620 #ifdef __cplusplus
108621 extern "C"
108622 #endif
108623 char VAPI_open_hca ();
108625 main ()
108627 return VAPI_open_hca ();
108629 return 0;
108631 _ACEOF
108632 rm -f conftest.$ac_objext conftest$ac_exeext
108633 if { (ac_try="$ac_link"
108634 case "(($ac_try" in
108635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108636 *) ac_try_echo=$ac_try;;
108638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
108639 (eval "$ac_link") 2>conftest.er1
108640 ac_status=$?
108641 grep -v '^ *+' conftest.er1 >conftest.err
108642 rm -f conftest.er1
108643 cat conftest.err >&5
108644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
108645 (exit $ac_status); } && {
108646 test -z "$ac_c_werror_flag" ||
108647 test ! -s conftest.err
108648 } && test -s conftest$ac_exeext &&
108649 $as_test_x conftest$ac_exeext; then
108650 ac_cv_lib_vapi_VAPI_open_hca=yes
108652 echo "$as_me: failed program was:" >&5
108653 sed 's/^/| /' conftest.$ac_ext >&5
108655 ac_cv_lib_vapi_VAPI_open_hca=no
108658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
108659 conftest$ac_exeext conftest.$ac_ext
108660 LIBS=$ac_check_lib_save_LIBS
108662 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
108663 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
108664 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
108665 ompi_check_package_lib_happy="yes"
108667 ompi_check_package_lib_happy="no"
108670 if test "$ompi_check_package_lib_happy" = "no"; then
108671 # no go on the as is.. see what happens later...
108672 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
108673 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
108674 unset ac_cv_lib_vapi_VAPI_open_hca
108684 if test "$ompi_check_package_lib_happy" = "yes"; then
108685 ompi_check_package_happy="yes"
108687 ompi_check_package_happy="no"
108693 ompi_check_package_happy="no"
108699 # This is stolen from autoconf to peek under the covers to get the
108700 # cache variable for the library check. one should not copy this
108701 # code into other places unless you want much pain and suffering
108703 # see comment above
108704 unset ac_cv_lib_vapi_VAPI_open_hca
108705 ompi_check_package_lib_happy="no"
108706 if test "$ompi_check_mvapi_libdir" != ""; then
108707 # libdir was specified - search only there
108708 mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
108709 LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
108710 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
108711 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
108712 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
108713 echo $ECHO_N "(cached) $ECHO_C" >&6
108715 ac_check_lib_save_LIBS=$LIBS
108716 LIBS="-lvapi -lmosal $LIBS"
108717 cat >conftest.$ac_ext <<_ACEOF
108718 /* confdefs.h. */
108719 _ACEOF
108720 cat confdefs.h >>conftest.$ac_ext
108721 cat >>conftest.$ac_ext <<_ACEOF
108722 /* end confdefs.h. */
108724 /* Override any GCC internal prototype to avoid an error.
108725 Use char because int might match the return type of a GCC
108726 builtin and then its argument prototype would still apply. */
108727 #ifdef __cplusplus
108728 extern "C"
108729 #endif
108730 char VAPI_open_hca ();
108732 main ()
108734 return VAPI_open_hca ();
108736 return 0;
108738 _ACEOF
108739 rm -f conftest.$ac_objext conftest$ac_exeext
108740 if { (ac_try="$ac_link"
108741 case "(($ac_try" in
108742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108743 *) ac_try_echo=$ac_try;;
108745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
108746 (eval "$ac_link") 2>conftest.er1
108747 ac_status=$?
108748 grep -v '^ *+' conftest.er1 >conftest.err
108749 rm -f conftest.er1
108750 cat conftest.err >&5
108751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
108752 (exit $ac_status); } && {
108753 test -z "$ac_c_werror_flag" ||
108754 test ! -s conftest.err
108755 } && test -s conftest$ac_exeext &&
108756 $as_test_x conftest$ac_exeext; then
108757 ac_cv_lib_vapi_VAPI_open_hca=yes
108759 echo "$as_me: failed program was:" >&5
108760 sed 's/^/| /' conftest.$ac_ext >&5
108762 ac_cv_lib_vapi_VAPI_open_hca=no
108765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
108766 conftest$ac_exeext conftest.$ac_ext
108767 LIBS=$ac_check_lib_save_LIBS
108769 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
108770 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
108771 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
108772 ompi_check_package_lib_happy="yes"
108774 ompi_check_package_lib_happy="no"
108777 if test "$ompi_check_package_lib_happy" = "no"; then
108778 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
108779 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
108780 unset ac_cv_lib_vapi_VAPI_open_hca
108784 # libdir was not specified - go through search path
108785 ompi_check_package_libdir="$ompi_check_mvapi_dir"
108786 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
108787 # try as is...
108788 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
108789 echo "${ECHO_T}looking for library without search path" >&6; }
108790 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
108791 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
108792 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
108793 echo $ECHO_N "(cached) $ECHO_C" >&6
108795 ac_check_lib_save_LIBS=$LIBS
108796 LIBS="-lvapi -lmosal $LIBS"
108797 cat >conftest.$ac_ext <<_ACEOF
108798 /* confdefs.h. */
108799 _ACEOF
108800 cat confdefs.h >>conftest.$ac_ext
108801 cat >>conftest.$ac_ext <<_ACEOF
108802 /* end confdefs.h. */
108804 /* Override any GCC internal prototype to avoid an error.
108805 Use char because int might match the return type of a GCC
108806 builtin and then its argument prototype would still apply. */
108807 #ifdef __cplusplus
108808 extern "C"
108809 #endif
108810 char VAPI_open_hca ();
108812 main ()
108814 return VAPI_open_hca ();
108816 return 0;
108818 _ACEOF
108819 rm -f conftest.$ac_objext conftest$ac_exeext
108820 if { (ac_try="$ac_link"
108821 case "(($ac_try" in
108822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108823 *) ac_try_echo=$ac_try;;
108825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
108826 (eval "$ac_link") 2>conftest.er1
108827 ac_status=$?
108828 grep -v '^ *+' conftest.er1 >conftest.err
108829 rm -f conftest.er1
108830 cat conftest.err >&5
108831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
108832 (exit $ac_status); } && {
108833 test -z "$ac_c_werror_flag" ||
108834 test ! -s conftest.err
108835 } && test -s conftest$ac_exeext &&
108836 $as_test_x conftest$ac_exeext; then
108837 ac_cv_lib_vapi_VAPI_open_hca=yes
108839 echo "$as_me: failed program was:" >&5
108840 sed 's/^/| /' conftest.$ac_ext >&5
108842 ac_cv_lib_vapi_VAPI_open_hca=no
108845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
108846 conftest$ac_exeext conftest.$ac_ext
108847 LIBS=$ac_check_lib_save_LIBS
108849 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
108850 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
108851 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
108852 ompi_check_package_lib_happy="yes"
108854 ompi_check_package_lib_happy="no"
108857 if test "$ompi_check_package_lib_happy" = "no"; then
108858 # no go on the as is.. see what happens later...
108859 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
108860 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
108861 unset ac_cv_lib_vapi_VAPI_open_hca
108867 if test "$ompi_check_package_lib_happy" = "no"; then
108868 if test "$ompi_check_package_libdir" != ""; then
108869 mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
108870 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
108871 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
108872 echo "${ECHO_T}looking for library in lib" >&6; }
108873 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
108874 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
108875 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
108876 echo $ECHO_N "(cached) $ECHO_C" >&6
108878 ac_check_lib_save_LIBS=$LIBS
108879 LIBS="-lvapi -lmosal $LIBS"
108880 cat >conftest.$ac_ext <<_ACEOF
108881 /* confdefs.h. */
108882 _ACEOF
108883 cat confdefs.h >>conftest.$ac_ext
108884 cat >>conftest.$ac_ext <<_ACEOF
108885 /* end confdefs.h. */
108887 /* Override any GCC internal prototype to avoid an error.
108888 Use char because int might match the return type of a GCC
108889 builtin and then its argument prototype would still apply. */
108890 #ifdef __cplusplus
108891 extern "C"
108892 #endif
108893 char VAPI_open_hca ();
108895 main ()
108897 return VAPI_open_hca ();
108899 return 0;
108901 _ACEOF
108902 rm -f conftest.$ac_objext conftest$ac_exeext
108903 if { (ac_try="$ac_link"
108904 case "(($ac_try" in
108905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108906 *) ac_try_echo=$ac_try;;
108908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
108909 (eval "$ac_link") 2>conftest.er1
108910 ac_status=$?
108911 grep -v '^ *+' conftest.er1 >conftest.err
108912 rm -f conftest.er1
108913 cat conftest.err >&5
108914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
108915 (exit $ac_status); } && {
108916 test -z "$ac_c_werror_flag" ||
108917 test ! -s conftest.err
108918 } && test -s conftest$ac_exeext &&
108919 $as_test_x conftest$ac_exeext; then
108920 ac_cv_lib_vapi_VAPI_open_hca=yes
108922 echo "$as_me: failed program was:" >&5
108923 sed 's/^/| /' conftest.$ac_ext >&5
108925 ac_cv_lib_vapi_VAPI_open_hca=no
108928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
108929 conftest$ac_exeext conftest.$ac_ext
108930 LIBS=$ac_check_lib_save_LIBS
108932 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
108933 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
108934 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
108935 ompi_check_package_lib_happy="yes"
108937 ompi_check_package_lib_happy="no"
108940 if test "$ompi_check_package_lib_happy" = "no"; then
108941 # no go on the as is.. see what happens later...
108942 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
108943 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
108944 unset ac_cv_lib_vapi_VAPI_open_hca
108952 if test "$ompi_check_package_lib_happy" = "no"; then
108953 if test "$ompi_check_package_libdir" != ""; then
108954 mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
108955 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
108956 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
108957 echo "${ECHO_T}looking for library in lib64" >&6; }
108958 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
108959 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
108960 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
108961 echo $ECHO_N "(cached) $ECHO_C" >&6
108963 ac_check_lib_save_LIBS=$LIBS
108964 LIBS="-lvapi -lmosal $LIBS"
108965 cat >conftest.$ac_ext <<_ACEOF
108966 /* confdefs.h. */
108967 _ACEOF
108968 cat confdefs.h >>conftest.$ac_ext
108969 cat >>conftest.$ac_ext <<_ACEOF
108970 /* end confdefs.h. */
108972 /* Override any GCC internal prototype to avoid an error.
108973 Use char because int might match the return type of a GCC
108974 builtin and then its argument prototype would still apply. */
108975 #ifdef __cplusplus
108976 extern "C"
108977 #endif
108978 char VAPI_open_hca ();
108980 main ()
108982 return VAPI_open_hca ();
108984 return 0;
108986 _ACEOF
108987 rm -f conftest.$ac_objext conftest$ac_exeext
108988 if { (ac_try="$ac_link"
108989 case "(($ac_try" in
108990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108991 *) ac_try_echo=$ac_try;;
108993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
108994 (eval "$ac_link") 2>conftest.er1
108995 ac_status=$?
108996 grep -v '^ *+' conftest.er1 >conftest.err
108997 rm -f conftest.er1
108998 cat conftest.err >&5
108999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
109000 (exit $ac_status); } && {
109001 test -z "$ac_c_werror_flag" ||
109002 test ! -s conftest.err
109003 } && test -s conftest$ac_exeext &&
109004 $as_test_x conftest$ac_exeext; then
109005 ac_cv_lib_vapi_VAPI_open_hca=yes
109007 echo "$as_me: failed program was:" >&5
109008 sed 's/^/| /' conftest.$ac_ext >&5
109010 ac_cv_lib_vapi_VAPI_open_hca=no
109013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
109014 conftest$ac_exeext conftest.$ac_ext
109015 LIBS=$ac_check_lib_save_LIBS
109017 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
109018 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
109019 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
109020 ompi_check_package_lib_happy="yes"
109022 ompi_check_package_lib_happy="no"
109025 if test "$ompi_check_package_lib_happy" = "no"; then
109026 # no go on the as is.. see what happens later...
109027 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
109028 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
109029 unset ac_cv_lib_vapi_VAPI_open_hca
109039 if test "$ompi_check_package_lib_happy" = "yes"; then
109040 ompi_check_package_happy="yes"
109042 ompi_check_package_happy="no"
109049 unset ompi_check_package_header_happy
109051 if test "$ompi_check_package_happy" = "yes"; then
109052 ompi_check_mvapi_happy="yes"
109053 mpool_mvapi_LIBS="-lvapi -lmosal"
109055 mpool_mvapi_CPPFLAGS="$ompi_check_package_mpool_mvapi_orig_CPPFLAGS"
109056 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
109057 mpool_mvapi_LIBS="$ompi_check_package_mpool_mvapi_orig_LIBS"
109058 ompi_check_mvapi_happy="no"
109062 CPPFLAGS="$ompi_check_package_mpool_mvapi_save_CPPFLAGS"
109063 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
109064 LIBS="$ompi_check_package_mpool_mvapi_save_LIBS"
109067 # if needed use both lmpga and lmtl_common
109068 if test "$ompi_check_mvapi_happy" = "no"; then
109070 ompi_check_package_mpool_mvapi_save_CPPFLAGS="$CPPFLAGS"
109071 ompi_check_package_mpool_mvapi_save_LDFLAGS="$LDFLAGS"
109072 ompi_check_package_mpool_mvapi_save_LIBS="$LIBS"
109074 ompi_check_package_mpool_mvapi_orig_CPPFLAGS="$mpool_mvapi_CPPFLAGS"
109075 ompi_check_package_mpool_mvapi_orig_LDFLAGS="$mpool_mvapi_LDFLAGS"
109076 ompi_check_package_mpool_mvapi_orig_LIBS="$mpool_mvapi_LIBS"
109079 # This is stolen from autoconf to peek under the covers to get the
109080 # cache variable for the library check. one should not copy this
109081 # code into other places unless you want much pain and suffering
109084 # so this sucks, but there's no way to get through the progression
109085 # of header includes without killing off the cache variable and trying
109086 # again...
109087 unset ac_cv_header_vapi_h
109089 ompi_check_package_header_happy="no"
109090 if test "$ompi_check_mvapi_dir" = "/usr" -o "$ompi_check_mvapi_dir" = "/usr/local"; then
109091 # try as is...
109092 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
109093 echo "${ECHO_T}looking for header without includes" >&6; }
109094 if test "${ac_cv_header_vapi_h+set}" = set; then
109095 { echo "$as_me:$LINENO: checking for vapi.h" >&5
109096 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
109097 if test "${ac_cv_header_vapi_h+set}" = set; then
109098 echo $ECHO_N "(cached) $ECHO_C" >&6
109100 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
109101 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
109103 # Is the header compilable?
109104 { echo "$as_me:$LINENO: checking vapi.h usability" >&5
109105 echo $ECHO_N "checking vapi.h usability... $ECHO_C" >&6; }
109106 cat >conftest.$ac_ext <<_ACEOF
109107 /* confdefs.h. */
109108 _ACEOF
109109 cat confdefs.h >>conftest.$ac_ext
109110 cat >>conftest.$ac_ext <<_ACEOF
109111 /* end confdefs.h. */
109112 $ac_includes_default
109113 #include <vapi.h>
109114 _ACEOF
109115 rm -f conftest.$ac_objext
109116 if { (ac_try="$ac_compile"
109117 case "(($ac_try" in
109118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109119 *) ac_try_echo=$ac_try;;
109121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
109122 (eval "$ac_compile") 2>conftest.er1
109123 ac_status=$?
109124 grep -v '^ *+' conftest.er1 >conftest.err
109125 rm -f conftest.er1
109126 cat conftest.err >&5
109127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
109128 (exit $ac_status); } && {
109129 test -z "$ac_c_werror_flag" ||
109130 test ! -s conftest.err
109131 } && test -s conftest.$ac_objext; then
109132 ac_header_compiler=yes
109134 echo "$as_me: failed program was:" >&5
109135 sed 's/^/| /' conftest.$ac_ext >&5
109137 ac_header_compiler=no
109140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
109141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
109142 echo "${ECHO_T}$ac_header_compiler" >&6; }
109144 # Is the header present?
109145 { echo "$as_me:$LINENO: checking vapi.h presence" >&5
109146 echo $ECHO_N "checking vapi.h presence... $ECHO_C" >&6; }
109147 cat >conftest.$ac_ext <<_ACEOF
109148 /* confdefs.h. */
109149 _ACEOF
109150 cat confdefs.h >>conftest.$ac_ext
109151 cat >>conftest.$ac_ext <<_ACEOF
109152 /* end confdefs.h. */
109153 #include <vapi.h>
109154 _ACEOF
109155 if { (ac_try="$ac_cpp conftest.$ac_ext"
109156 case "(($ac_try" in
109157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109158 *) ac_try_echo=$ac_try;;
109160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
109161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
109162 ac_status=$?
109163 grep -v '^ *+' conftest.er1 >conftest.err
109164 rm -f conftest.er1
109165 cat conftest.err >&5
109166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
109167 (exit $ac_status); } >/dev/null && {
109168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
109169 test ! -s conftest.err
109170 }; then
109171 ac_header_preproc=yes
109173 echo "$as_me: failed program was:" >&5
109174 sed 's/^/| /' conftest.$ac_ext >&5
109176 ac_header_preproc=no
109179 rm -f conftest.err conftest.$ac_ext
109180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
109181 echo "${ECHO_T}$ac_header_preproc" >&6; }
109183 # So? What about this header?
109184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
109185 yes:no: )
109186 { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
109187 echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
109188 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
109189 echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
109190 ac_header_preproc=yes
109192 no:yes:* )
109193 { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
109194 echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
109195 { echo "$as_me:$LINENO: WARNING: vapi.h: check for missing prerequisite headers?" >&5
109196 echo "$as_me: WARNING: vapi.h: check for missing prerequisite headers?" >&2;}
109197 { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
109198 echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
109199 { echo "$as_me:$LINENO: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&5
109200 echo "$as_me: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
109201 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
109202 echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
109203 { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
109204 echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
109205 ( cat <<\_ASBOX
109206 ## ------------------------------------------------------ ##
109207 ## Report this to http://www.open-mpi.org/community/help/ ##
109208 ## ------------------------------------------------------ ##
109209 _ASBOX
109210 ) | sed "s/^/$as_me: WARNING: /" >&2
109213 { echo "$as_me:$LINENO: checking for vapi.h" >&5
109214 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
109215 if test "${ac_cv_header_vapi_h+set}" = set; then
109216 echo $ECHO_N "(cached) $ECHO_C" >&6
109218 ac_cv_header_vapi_h=$ac_header_preproc
109220 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
109221 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
109224 if test $ac_cv_header_vapi_h = yes; then
109225 ompi_check_package_header_happy="yes"
109227 ompi_check_package_header_happy="no"
109231 if test "$ompi_check_package_header_happy" = "no"; then
109232 # no go on the as is - reset the cache and try again
109233 unset ac_cv_header_vapi_h
109239 if test "$ompi_check_package_header_happy" = "no"; then
109240 if test "$ompi_check_mvapi_dir" != ""; then
109241 mpool_mvapi_CPPFLAGS="$mpool_mvapi_CPPFLAGS -I$ompi_check_mvapi_dir/include"
109242 CPPFLAGS="$CPPFLAGS -I$ompi_check_mvapi_dir/include"
109245 if test "${ac_cv_header_vapi_h+set}" = set; then
109246 { echo "$as_me:$LINENO: checking for vapi.h" >&5
109247 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
109248 if test "${ac_cv_header_vapi_h+set}" = set; then
109249 echo $ECHO_N "(cached) $ECHO_C" >&6
109251 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
109252 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
109254 # Is the header compilable?
109255 { echo "$as_me:$LINENO: checking vapi.h usability" >&5
109256 echo $ECHO_N "checking vapi.h usability... $ECHO_C" >&6; }
109257 cat >conftest.$ac_ext <<_ACEOF
109258 /* confdefs.h. */
109259 _ACEOF
109260 cat confdefs.h >>conftest.$ac_ext
109261 cat >>conftest.$ac_ext <<_ACEOF
109262 /* end confdefs.h. */
109263 $ac_includes_default
109264 #include <vapi.h>
109265 _ACEOF
109266 rm -f conftest.$ac_objext
109267 if { (ac_try="$ac_compile"
109268 case "(($ac_try" in
109269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109270 *) ac_try_echo=$ac_try;;
109272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
109273 (eval "$ac_compile") 2>conftest.er1
109274 ac_status=$?
109275 grep -v '^ *+' conftest.er1 >conftest.err
109276 rm -f conftest.er1
109277 cat conftest.err >&5
109278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
109279 (exit $ac_status); } && {
109280 test -z "$ac_c_werror_flag" ||
109281 test ! -s conftest.err
109282 } && test -s conftest.$ac_objext; then
109283 ac_header_compiler=yes
109285 echo "$as_me: failed program was:" >&5
109286 sed 's/^/| /' conftest.$ac_ext >&5
109288 ac_header_compiler=no
109291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
109292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
109293 echo "${ECHO_T}$ac_header_compiler" >&6; }
109295 # Is the header present?
109296 { echo "$as_me:$LINENO: checking vapi.h presence" >&5
109297 echo $ECHO_N "checking vapi.h presence... $ECHO_C" >&6; }
109298 cat >conftest.$ac_ext <<_ACEOF
109299 /* confdefs.h. */
109300 _ACEOF
109301 cat confdefs.h >>conftest.$ac_ext
109302 cat >>conftest.$ac_ext <<_ACEOF
109303 /* end confdefs.h. */
109304 #include <vapi.h>
109305 _ACEOF
109306 if { (ac_try="$ac_cpp conftest.$ac_ext"
109307 case "(($ac_try" in
109308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109309 *) ac_try_echo=$ac_try;;
109311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
109312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
109313 ac_status=$?
109314 grep -v '^ *+' conftest.er1 >conftest.err
109315 rm -f conftest.er1
109316 cat conftest.err >&5
109317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
109318 (exit $ac_status); } >/dev/null && {
109319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
109320 test ! -s conftest.err
109321 }; then
109322 ac_header_preproc=yes
109324 echo "$as_me: failed program was:" >&5
109325 sed 's/^/| /' conftest.$ac_ext >&5
109327 ac_header_preproc=no
109330 rm -f conftest.err conftest.$ac_ext
109331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
109332 echo "${ECHO_T}$ac_header_preproc" >&6; }
109334 # So? What about this header?
109335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
109336 yes:no: )
109337 { echo "$as_me:$LINENO: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
109338 echo "$as_me: WARNING: vapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
109339 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the compiler's result" >&5
109340 echo "$as_me: WARNING: vapi.h: proceeding with the compiler's result" >&2;}
109341 ac_header_preproc=yes
109343 no:yes:* )
109344 { echo "$as_me:$LINENO: WARNING: vapi.h: present but cannot be compiled" >&5
109345 echo "$as_me: WARNING: vapi.h: present but cannot be compiled" >&2;}
109346 { echo "$as_me:$LINENO: WARNING: vapi.h: check for missing prerequisite headers?" >&5
109347 echo "$as_me: WARNING: vapi.h: check for missing prerequisite headers?" >&2;}
109348 { echo "$as_me:$LINENO: WARNING: vapi.h: see the Autoconf documentation" >&5
109349 echo "$as_me: WARNING: vapi.h: see the Autoconf documentation" >&2;}
109350 { echo "$as_me:$LINENO: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&5
109351 echo "$as_me: WARNING: vapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
109352 { echo "$as_me:$LINENO: WARNING: vapi.h: proceeding with the preprocessor's result" >&5
109353 echo "$as_me: WARNING: vapi.h: proceeding with the preprocessor's result" >&2;}
109354 { echo "$as_me:$LINENO: WARNING: vapi.h: in the future, the compiler will take precedence" >&5
109355 echo "$as_me: WARNING: vapi.h: in the future, the compiler will take precedence" >&2;}
109356 ( cat <<\_ASBOX
109357 ## ------------------------------------------------------ ##
109358 ## Report this to http://www.open-mpi.org/community/help/ ##
109359 ## ------------------------------------------------------ ##
109360 _ASBOX
109361 ) | sed "s/^/$as_me: WARNING: /" >&2
109364 { echo "$as_me:$LINENO: checking for vapi.h" >&5
109365 echo $ECHO_N "checking for vapi.h... $ECHO_C" >&6; }
109366 if test "${ac_cv_header_vapi_h+set}" = set; then
109367 echo $ECHO_N "(cached) $ECHO_C" >&6
109369 ac_cv_header_vapi_h=$ac_header_preproc
109371 { echo "$as_me:$LINENO: result: $ac_cv_header_vapi_h" >&5
109372 echo "${ECHO_T}$ac_cv_header_vapi_h" >&6; }
109375 if test $ac_cv_header_vapi_h = yes; then
109377 # This is stolen from autoconf to peek under the covers to get the
109378 # cache variable for the library check. one should not copy this
109379 # code into other places unless you want much pain and suffering
109381 # see comment above
109382 unset ac_cv_lib_vapi_VAPI_open_hca
109383 ompi_check_package_lib_happy="no"
109384 if test "$ompi_check_mvapi_libdir" != ""; then
109385 # libdir was specified - search only there
109386 mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
109387 LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
109388 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
109389 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
109390 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
109391 echo $ECHO_N "(cached) $ECHO_C" >&6
109393 ac_check_lib_save_LIBS=$LIBS
109394 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
109395 cat >conftest.$ac_ext <<_ACEOF
109396 /* confdefs.h. */
109397 _ACEOF
109398 cat confdefs.h >>conftest.$ac_ext
109399 cat >>conftest.$ac_ext <<_ACEOF
109400 /* end confdefs.h. */
109402 /* Override any GCC internal prototype to avoid an error.
109403 Use char because int might match the return type of a GCC
109404 builtin and then its argument prototype would still apply. */
109405 #ifdef __cplusplus
109406 extern "C"
109407 #endif
109408 char VAPI_open_hca ();
109410 main ()
109412 return VAPI_open_hca ();
109414 return 0;
109416 _ACEOF
109417 rm -f conftest.$ac_objext conftest$ac_exeext
109418 if { (ac_try="$ac_link"
109419 case "(($ac_try" in
109420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109421 *) ac_try_echo=$ac_try;;
109423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
109424 (eval "$ac_link") 2>conftest.er1
109425 ac_status=$?
109426 grep -v '^ *+' conftest.er1 >conftest.err
109427 rm -f conftest.er1
109428 cat conftest.err >&5
109429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
109430 (exit $ac_status); } && {
109431 test -z "$ac_c_werror_flag" ||
109432 test ! -s conftest.err
109433 } && test -s conftest$ac_exeext &&
109434 $as_test_x conftest$ac_exeext; then
109435 ac_cv_lib_vapi_VAPI_open_hca=yes
109437 echo "$as_me: failed program was:" >&5
109438 sed 's/^/| /' conftest.$ac_ext >&5
109440 ac_cv_lib_vapi_VAPI_open_hca=no
109443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
109444 conftest$ac_exeext conftest.$ac_ext
109445 LIBS=$ac_check_lib_save_LIBS
109447 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
109448 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
109449 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
109450 ompi_check_package_lib_happy="yes"
109452 ompi_check_package_lib_happy="no"
109455 if test "$ompi_check_package_lib_happy" = "no"; then
109456 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
109457 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
109458 unset ac_cv_lib_vapi_VAPI_open_hca
109462 # libdir was not specified - go through search path
109463 ompi_check_package_libdir="$ompi_check_mvapi_dir"
109464 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
109465 # try as is...
109466 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
109467 echo "${ECHO_T}looking for library without search path" >&6; }
109468 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
109469 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
109470 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
109471 echo $ECHO_N "(cached) $ECHO_C" >&6
109473 ac_check_lib_save_LIBS=$LIBS
109474 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
109475 cat >conftest.$ac_ext <<_ACEOF
109476 /* confdefs.h. */
109477 _ACEOF
109478 cat confdefs.h >>conftest.$ac_ext
109479 cat >>conftest.$ac_ext <<_ACEOF
109480 /* end confdefs.h. */
109482 /* Override any GCC internal prototype to avoid an error.
109483 Use char because int might match the return type of a GCC
109484 builtin and then its argument prototype would still apply. */
109485 #ifdef __cplusplus
109486 extern "C"
109487 #endif
109488 char VAPI_open_hca ();
109490 main ()
109492 return VAPI_open_hca ();
109494 return 0;
109496 _ACEOF
109497 rm -f conftest.$ac_objext conftest$ac_exeext
109498 if { (ac_try="$ac_link"
109499 case "(($ac_try" in
109500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109501 *) ac_try_echo=$ac_try;;
109503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
109504 (eval "$ac_link") 2>conftest.er1
109505 ac_status=$?
109506 grep -v '^ *+' conftest.er1 >conftest.err
109507 rm -f conftest.er1
109508 cat conftest.err >&5
109509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
109510 (exit $ac_status); } && {
109511 test -z "$ac_c_werror_flag" ||
109512 test ! -s conftest.err
109513 } && test -s conftest$ac_exeext &&
109514 $as_test_x conftest$ac_exeext; then
109515 ac_cv_lib_vapi_VAPI_open_hca=yes
109517 echo "$as_me: failed program was:" >&5
109518 sed 's/^/| /' conftest.$ac_ext >&5
109520 ac_cv_lib_vapi_VAPI_open_hca=no
109523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
109524 conftest$ac_exeext conftest.$ac_ext
109525 LIBS=$ac_check_lib_save_LIBS
109527 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
109528 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
109529 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
109530 ompi_check_package_lib_happy="yes"
109532 ompi_check_package_lib_happy="no"
109535 if test "$ompi_check_package_lib_happy" = "no"; then
109536 # no go on the as is.. see what happens later...
109537 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
109538 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
109539 unset ac_cv_lib_vapi_VAPI_open_hca
109545 if test "$ompi_check_package_lib_happy" = "no"; then
109546 if test "$ompi_check_package_libdir" != ""; then
109547 mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
109548 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
109549 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
109550 echo "${ECHO_T}looking for library in lib" >&6; }
109551 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
109552 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
109553 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
109554 echo $ECHO_N "(cached) $ECHO_C" >&6
109556 ac_check_lib_save_LIBS=$LIBS
109557 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
109558 cat >conftest.$ac_ext <<_ACEOF
109559 /* confdefs.h. */
109560 _ACEOF
109561 cat confdefs.h >>conftest.$ac_ext
109562 cat >>conftest.$ac_ext <<_ACEOF
109563 /* end confdefs.h. */
109565 /* Override any GCC internal prototype to avoid an error.
109566 Use char because int might match the return type of a GCC
109567 builtin and then its argument prototype would still apply. */
109568 #ifdef __cplusplus
109569 extern "C"
109570 #endif
109571 char VAPI_open_hca ();
109573 main ()
109575 return VAPI_open_hca ();
109577 return 0;
109579 _ACEOF
109580 rm -f conftest.$ac_objext conftest$ac_exeext
109581 if { (ac_try="$ac_link"
109582 case "(($ac_try" in
109583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109584 *) ac_try_echo=$ac_try;;
109586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
109587 (eval "$ac_link") 2>conftest.er1
109588 ac_status=$?
109589 grep -v '^ *+' conftest.er1 >conftest.err
109590 rm -f conftest.er1
109591 cat conftest.err >&5
109592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
109593 (exit $ac_status); } && {
109594 test -z "$ac_c_werror_flag" ||
109595 test ! -s conftest.err
109596 } && test -s conftest$ac_exeext &&
109597 $as_test_x conftest$ac_exeext; then
109598 ac_cv_lib_vapi_VAPI_open_hca=yes
109600 echo "$as_me: failed program was:" >&5
109601 sed 's/^/| /' conftest.$ac_ext >&5
109603 ac_cv_lib_vapi_VAPI_open_hca=no
109606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
109607 conftest$ac_exeext conftest.$ac_ext
109608 LIBS=$ac_check_lib_save_LIBS
109610 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
109611 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
109612 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
109613 ompi_check_package_lib_happy="yes"
109615 ompi_check_package_lib_happy="no"
109618 if test "$ompi_check_package_lib_happy" = "no"; then
109619 # no go on the as is.. see what happens later...
109620 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
109621 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
109622 unset ac_cv_lib_vapi_VAPI_open_hca
109630 if test "$ompi_check_package_lib_happy" = "no"; then
109631 if test "$ompi_check_package_libdir" != ""; then
109632 mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
109633 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
109634 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
109635 echo "${ECHO_T}looking for library in lib64" >&6; }
109636 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
109637 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
109638 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
109639 echo $ECHO_N "(cached) $ECHO_C" >&6
109641 ac_check_lib_save_LIBS=$LIBS
109642 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
109643 cat >conftest.$ac_ext <<_ACEOF
109644 /* confdefs.h. */
109645 _ACEOF
109646 cat confdefs.h >>conftest.$ac_ext
109647 cat >>conftest.$ac_ext <<_ACEOF
109648 /* end confdefs.h. */
109650 /* Override any GCC internal prototype to avoid an error.
109651 Use char because int might match the return type of a GCC
109652 builtin and then its argument prototype would still apply. */
109653 #ifdef __cplusplus
109654 extern "C"
109655 #endif
109656 char VAPI_open_hca ();
109658 main ()
109660 return VAPI_open_hca ();
109662 return 0;
109664 _ACEOF
109665 rm -f conftest.$ac_objext conftest$ac_exeext
109666 if { (ac_try="$ac_link"
109667 case "(($ac_try" in
109668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109669 *) ac_try_echo=$ac_try;;
109671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
109672 (eval "$ac_link") 2>conftest.er1
109673 ac_status=$?
109674 grep -v '^ *+' conftest.er1 >conftest.err
109675 rm -f conftest.er1
109676 cat conftest.err >&5
109677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
109678 (exit $ac_status); } && {
109679 test -z "$ac_c_werror_flag" ||
109680 test ! -s conftest.err
109681 } && test -s conftest$ac_exeext &&
109682 $as_test_x conftest$ac_exeext; then
109683 ac_cv_lib_vapi_VAPI_open_hca=yes
109685 echo "$as_me: failed program was:" >&5
109686 sed 's/^/| /' conftest.$ac_ext >&5
109688 ac_cv_lib_vapi_VAPI_open_hca=no
109691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
109692 conftest$ac_exeext conftest.$ac_ext
109693 LIBS=$ac_check_lib_save_LIBS
109695 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
109696 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
109697 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
109698 ompi_check_package_lib_happy="yes"
109700 ompi_check_package_lib_happy="no"
109703 if test "$ompi_check_package_lib_happy" = "no"; then
109704 # no go on the as is.. see what happens later...
109705 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
109706 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
109707 unset ac_cv_lib_vapi_VAPI_open_hca
109717 if test "$ompi_check_package_lib_happy" = "yes"; then
109718 ompi_check_package_happy="yes"
109720 ompi_check_package_happy="no"
109726 ompi_check_package_happy="no"
109732 # This is stolen from autoconf to peek under the covers to get the
109733 # cache variable for the library check. one should not copy this
109734 # code into other places unless you want much pain and suffering
109736 # see comment above
109737 unset ac_cv_lib_vapi_VAPI_open_hca
109738 ompi_check_package_lib_happy="no"
109739 if test "$ompi_check_mvapi_libdir" != ""; then
109740 # libdir was specified - search only there
109741 mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_mvapi_libdir"
109742 LDFLAGS="$LDFLAGS -L$ompi_check_mvapi_libdir"
109743 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
109744 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
109745 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
109746 echo $ECHO_N "(cached) $ECHO_C" >&6
109748 ac_check_lib_save_LIBS=$LIBS
109749 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
109750 cat >conftest.$ac_ext <<_ACEOF
109751 /* confdefs.h. */
109752 _ACEOF
109753 cat confdefs.h >>conftest.$ac_ext
109754 cat >>conftest.$ac_ext <<_ACEOF
109755 /* end confdefs.h. */
109757 /* Override any GCC internal prototype to avoid an error.
109758 Use char because int might match the return type of a GCC
109759 builtin and then its argument prototype would still apply. */
109760 #ifdef __cplusplus
109761 extern "C"
109762 #endif
109763 char VAPI_open_hca ();
109765 main ()
109767 return VAPI_open_hca ();
109769 return 0;
109771 _ACEOF
109772 rm -f conftest.$ac_objext conftest$ac_exeext
109773 if { (ac_try="$ac_link"
109774 case "(($ac_try" in
109775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109776 *) ac_try_echo=$ac_try;;
109778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
109779 (eval "$ac_link") 2>conftest.er1
109780 ac_status=$?
109781 grep -v '^ *+' conftest.er1 >conftest.err
109782 rm -f conftest.er1
109783 cat conftest.err >&5
109784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
109785 (exit $ac_status); } && {
109786 test -z "$ac_c_werror_flag" ||
109787 test ! -s conftest.err
109788 } && test -s conftest$ac_exeext &&
109789 $as_test_x conftest$ac_exeext; then
109790 ac_cv_lib_vapi_VAPI_open_hca=yes
109792 echo "$as_me: failed program was:" >&5
109793 sed 's/^/| /' conftest.$ac_ext >&5
109795 ac_cv_lib_vapi_VAPI_open_hca=no
109798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
109799 conftest$ac_exeext conftest.$ac_ext
109800 LIBS=$ac_check_lib_save_LIBS
109802 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
109803 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
109804 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
109805 ompi_check_package_lib_happy="yes"
109807 ompi_check_package_lib_happy="no"
109810 if test "$ompi_check_package_lib_happy" = "no"; then
109811 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
109812 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
109813 unset ac_cv_lib_vapi_VAPI_open_hca
109817 # libdir was not specified - go through search path
109818 ompi_check_package_libdir="$ompi_check_mvapi_dir"
109819 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
109820 # try as is...
109821 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
109822 echo "${ECHO_T}looking for library without search path" >&6; }
109823 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
109824 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
109825 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
109826 echo $ECHO_N "(cached) $ECHO_C" >&6
109828 ac_check_lib_save_LIBS=$LIBS
109829 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
109830 cat >conftest.$ac_ext <<_ACEOF
109831 /* confdefs.h. */
109832 _ACEOF
109833 cat confdefs.h >>conftest.$ac_ext
109834 cat >>conftest.$ac_ext <<_ACEOF
109835 /* end confdefs.h. */
109837 /* Override any GCC internal prototype to avoid an error.
109838 Use char because int might match the return type of a GCC
109839 builtin and then its argument prototype would still apply. */
109840 #ifdef __cplusplus
109841 extern "C"
109842 #endif
109843 char VAPI_open_hca ();
109845 main ()
109847 return VAPI_open_hca ();
109849 return 0;
109851 _ACEOF
109852 rm -f conftest.$ac_objext conftest$ac_exeext
109853 if { (ac_try="$ac_link"
109854 case "(($ac_try" in
109855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109856 *) ac_try_echo=$ac_try;;
109858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
109859 (eval "$ac_link") 2>conftest.er1
109860 ac_status=$?
109861 grep -v '^ *+' conftest.er1 >conftest.err
109862 rm -f conftest.er1
109863 cat conftest.err >&5
109864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
109865 (exit $ac_status); } && {
109866 test -z "$ac_c_werror_flag" ||
109867 test ! -s conftest.err
109868 } && test -s conftest$ac_exeext &&
109869 $as_test_x conftest$ac_exeext; then
109870 ac_cv_lib_vapi_VAPI_open_hca=yes
109872 echo "$as_me: failed program was:" >&5
109873 sed 's/^/| /' conftest.$ac_ext >&5
109875 ac_cv_lib_vapi_VAPI_open_hca=no
109878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
109879 conftest$ac_exeext conftest.$ac_ext
109880 LIBS=$ac_check_lib_save_LIBS
109882 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
109883 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
109884 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
109885 ompi_check_package_lib_happy="yes"
109887 ompi_check_package_lib_happy="no"
109890 if test "$ompi_check_package_lib_happy" = "no"; then
109891 # no go on the as is.. see what happens later...
109892 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
109893 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
109894 unset ac_cv_lib_vapi_VAPI_open_hca
109900 if test "$ompi_check_package_lib_happy" = "no"; then
109901 if test "$ompi_check_package_libdir" != ""; then
109902 mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib"
109903 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
109904 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
109905 echo "${ECHO_T}looking for library in lib" >&6; }
109906 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
109907 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
109908 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
109909 echo $ECHO_N "(cached) $ECHO_C" >&6
109911 ac_check_lib_save_LIBS=$LIBS
109912 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
109913 cat >conftest.$ac_ext <<_ACEOF
109914 /* confdefs.h. */
109915 _ACEOF
109916 cat confdefs.h >>conftest.$ac_ext
109917 cat >>conftest.$ac_ext <<_ACEOF
109918 /* end confdefs.h. */
109920 /* Override any GCC internal prototype to avoid an error.
109921 Use char because int might match the return type of a GCC
109922 builtin and then its argument prototype would still apply. */
109923 #ifdef __cplusplus
109924 extern "C"
109925 #endif
109926 char VAPI_open_hca ();
109928 main ()
109930 return VAPI_open_hca ();
109932 return 0;
109934 _ACEOF
109935 rm -f conftest.$ac_objext conftest$ac_exeext
109936 if { (ac_try="$ac_link"
109937 case "(($ac_try" in
109938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109939 *) ac_try_echo=$ac_try;;
109941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
109942 (eval "$ac_link") 2>conftest.er1
109943 ac_status=$?
109944 grep -v '^ *+' conftest.er1 >conftest.err
109945 rm -f conftest.er1
109946 cat conftest.err >&5
109947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
109948 (exit $ac_status); } && {
109949 test -z "$ac_c_werror_flag" ||
109950 test ! -s conftest.err
109951 } && test -s conftest$ac_exeext &&
109952 $as_test_x conftest$ac_exeext; then
109953 ac_cv_lib_vapi_VAPI_open_hca=yes
109955 echo "$as_me: failed program was:" >&5
109956 sed 's/^/| /' conftest.$ac_ext >&5
109958 ac_cv_lib_vapi_VAPI_open_hca=no
109961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
109962 conftest$ac_exeext conftest.$ac_ext
109963 LIBS=$ac_check_lib_save_LIBS
109965 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
109966 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
109967 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
109968 ompi_check_package_lib_happy="yes"
109970 ompi_check_package_lib_happy="no"
109973 if test "$ompi_check_package_lib_happy" = "no"; then
109974 # no go on the as is.. see what happens later...
109975 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
109976 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
109977 unset ac_cv_lib_vapi_VAPI_open_hca
109985 if test "$ompi_check_package_lib_happy" = "no"; then
109986 if test "$ompi_check_package_libdir" != ""; then
109987 mpool_mvapi_LDFLAGS="$mpool_mvapi_LDFLAGS -L$ompi_check_package_libdir/lib64"
109988 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
109989 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
109990 echo "${ECHO_T}looking for library in lib64" >&6; }
109991 { echo "$as_me:$LINENO: checking for VAPI_open_hca in -lvapi" >&5
109992 echo $ECHO_N "checking for VAPI_open_hca in -lvapi... $ECHO_C" >&6; }
109993 if test "${ac_cv_lib_vapi_VAPI_open_hca+set}" = set; then
109994 echo $ECHO_N "(cached) $ECHO_C" >&6
109996 ac_check_lib_save_LIBS=$LIBS
109997 LIBS="-lvapi -lmosal -lmpga -lmtl_common $LIBS"
109998 cat >conftest.$ac_ext <<_ACEOF
109999 /* confdefs.h. */
110000 _ACEOF
110001 cat confdefs.h >>conftest.$ac_ext
110002 cat >>conftest.$ac_ext <<_ACEOF
110003 /* end confdefs.h. */
110005 /* Override any GCC internal prototype to avoid an error.
110006 Use char because int might match the return type of a GCC
110007 builtin and then its argument prototype would still apply. */
110008 #ifdef __cplusplus
110009 extern "C"
110010 #endif
110011 char VAPI_open_hca ();
110013 main ()
110015 return VAPI_open_hca ();
110017 return 0;
110019 _ACEOF
110020 rm -f conftest.$ac_objext conftest$ac_exeext
110021 if { (ac_try="$ac_link"
110022 case "(($ac_try" in
110023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
110024 *) ac_try_echo=$ac_try;;
110026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
110027 (eval "$ac_link") 2>conftest.er1
110028 ac_status=$?
110029 grep -v '^ *+' conftest.er1 >conftest.err
110030 rm -f conftest.er1
110031 cat conftest.err >&5
110032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
110033 (exit $ac_status); } && {
110034 test -z "$ac_c_werror_flag" ||
110035 test ! -s conftest.err
110036 } && test -s conftest$ac_exeext &&
110037 $as_test_x conftest$ac_exeext; then
110038 ac_cv_lib_vapi_VAPI_open_hca=yes
110040 echo "$as_me: failed program was:" >&5
110041 sed 's/^/| /' conftest.$ac_ext >&5
110043 ac_cv_lib_vapi_VAPI_open_hca=no
110046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
110047 conftest$ac_exeext conftest.$ac_ext
110048 LIBS=$ac_check_lib_save_LIBS
110050 { echo "$as_me:$LINENO: result: $ac_cv_lib_vapi_VAPI_open_hca" >&5
110051 echo "${ECHO_T}$ac_cv_lib_vapi_VAPI_open_hca" >&6; }
110052 if test $ac_cv_lib_vapi_VAPI_open_hca = yes; then
110053 ompi_check_package_lib_happy="yes"
110055 ompi_check_package_lib_happy="no"
110058 if test "$ompi_check_package_lib_happy" = "no"; then
110059 # no go on the as is.. see what happens later...
110060 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
110061 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
110062 unset ac_cv_lib_vapi_VAPI_open_hca
110072 if test "$ompi_check_package_lib_happy" = "yes"; then
110073 ompi_check_package_happy="yes"
110075 ompi_check_package_happy="no"
110082 unset ompi_check_package_header_happy
110084 if test "$ompi_check_package_happy" = "yes"; then
110085 ompi_check_mvapi_happy="yes"
110086 mpool_mvapi_LIBS="-lvapi -lmosal -lmpga -lmtl_common"
110088 mpool_mvapi_CPPFLAGS="$ompi_check_package_mpool_mvapi_orig_CPPFLAGS"
110089 mpool_mvapi_LDFLAGS="$ompi_check_package_mpool_mvapi_orig_LDFLAGS"
110090 mpool_mvapi_LIBS="$ompi_check_package_mpool_mvapi_orig_LIBS"
110091 ompi_check_mvapi_happy="no"
110095 CPPFLAGS="$ompi_check_package_mpool_mvapi_save_CPPFLAGS"
110096 LDFLAGS="$ompi_check_package_mpool_mvapi_save_LDFLAGS"
110097 LIBS="$ompi_check_package_mpool_mvapi_save_LIBS"
110102 if test "$ompi_check_mvapi_happy" = "yes" -a "$enable_progress_threads" = "yes"; then
110103 { echo "$as_me:$LINENO: WARNING: MVAPI driver does not currently support progress threads. Disabling BTL." >&5
110104 echo "$as_me: WARNING: MVAPI driver does not currently support progress threads. Disabling BTL." >&2;}
110105 ompi_check_mvapi_happy="no"
110109 CPPFLAGS="$ompi_check_mvapimpool_mvapi_save_CPPFLAGS"
110111 ompi_check_mvapi_happy="no"
110115 if test "$ompi_check_mvapi_happy" = "yes"; then
110116 mpool_mvapi_happy="yes"
110118 if test ! -z "$with_mvapi" -a "$with_mvapi" != "no"; then
110119 { { echo "$as_me:$LINENO: error: MVAPI support requested but not found. Aborting" >&5
110120 echo "$as_me: error: MVAPI support requested but not found. Aborting" >&2;}
110121 { (exit 1); exit 1; }; }
110124 mpool_mvapi_happy="no"
110129 if test "$mpool_mvapi_happy" = "yes"; then
110130 mpool_mvapi_WRAPPER_EXTRA_LDFLAGS="$mpool_mvapi_LDFLAGS"
110131 mpool_mvapi_WRAPPER_EXTRA_LIBS="$mpool_mvapi_LIBS"
110132 should_build=1
110134 should_build=0
110138 # Many of the vapi.h files floating around don't obey ISO99 C
110139 # standard, so cause oodles of warnings with -pedantic and
110140 # -Wundef. Remove them from CFLAGS, which is then used to
110141 # forcefully override CFLAGS in the makefile for MVAPI
110142 # components
110143 mpool_mvapi_CFLAGS="`echo $CFLAGS | sed 's/-pedantic//g'`"
110144 mpool_mvapi_CFLAGS="`echo $mpool_mvapi_CFLAGS | sed 's/-Wundef//g'`"
110145 if test "$mpool_mvapi_CFLAGS" != "$CFLAGS" -a "$mpool_mvapi_happy" = "yes"; then
110146 { echo "$as_me:$LINENO: WARNING: Removed -pedantic and -Wundef from CFLAGS for
110147 mvapi component because some vapi.h files are not really ANSI C" >&5
110148 echo "$as_me: WARNING: Removed -pedantic and -Wundef from CFLAGS for
110149 mvapi component because some vapi.h files are not really ANSI C" >&2;}
110153 # substitute in the things needed to build Portals
110162 if test "$should_build" = "1"; then
110164 project=ompi
110165 framework=mpool
110166 component=mvapi
110168 # See if it dropped an output file for us to pick up some
110169 # shell variables in.
110170 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
110172 # Add this subdir to the mast list of all MCA component subdirs
110173 all_components="$all_components $component"
110175 if test "$compile_mode" = "dso" ; then
110176 dso_components="$dso_components $component"
110178 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
110179 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
110180 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
110181 static_components="$static_components $component"
110184 # Output pretty results
110185 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
110186 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
110187 { echo "$as_me:$LINENO: result: yes" >&5
110188 echo "${ECHO_T}yes" >&6; }
110190 # If there's an output file, add the values to
110191 # scope_EXTRA_flags.
110192 if test -f $infile; then
110194 # First check for the ABORT tag
110195 line="`grep ABORT= $infile | cut -d= -f2-`"
110196 if test -n "$line" -a "$line" != "no"; then
110197 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
110198 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
110199 { { echo "$as_me:$LINENO: error: cannot continue" >&5
110200 echo "$as_me: error: cannot continue" >&2;}
110201 { (exit 1); exit 1; }; }
110204 # Check for flags passed up from the component. If we're
110205 # compiling statically, then take all flags passed up from the
110206 # component.
110207 if test "$compile_mode" = "static"; then
110208 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
110209 eval "line=$line"
110210 if test -n "$line"; then
110211 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
110213 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
110214 eval "line=$line"
110215 if test -n "$line"; then
110216 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
110220 if test "$DIRECT_mpool" = "$component" ; then
110221 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
110222 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
110223 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
110224 eval $str
110226 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
110227 *** does not appear to support direct calling.
110228 *** Aborting" >&5
110229 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
110230 *** does not appear to support direct calling.
110231 *** Aborting" >&2;}
110232 { (exit 1); exit 1; }; }
110236 # were we supposed to have found something in the
110237 # post_configure.sh, but the file didn't exist?
110238 if test "$DIRECT_mpool" = "$component" ; then
110239 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
110240 *** does not appear to support direct calling.
110241 *** Aborting" >&5
110242 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
110243 *** does not appear to support direct calling.
110244 *** Aborting" >&2;}
110245 { (exit 1); exit 1; }; }
110249 # now add the flags that were set in the environment variables
110250 # framework_component_FOO (for example, the flags set by
110251 # m4_configure components)
110253 # Check for flags passed up from the component. If we're
110254 # compiling statically, then take all flags passed up from the
110255 # component.
110256 if test "$compile_mode" = "static"; then
110257 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
110258 eval "$str"
110259 if test -n "$line" ; then
110260 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
110262 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
110263 eval "$str"
110264 if test -n "$line" ; then
110265 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
110271 { echo "$as_me:$LINENO: checking if MCA component mpool:mvapi can compile" >&5
110272 echo $ECHO_N "checking if MCA component mpool:mvapi can compile... $ECHO_C" >&6; }
110273 { echo "$as_me:$LINENO: result: no" >&5
110274 echo "${ECHO_T}no" >&6; }
110276 # If this component was requested as the default for this
110277 # type, then abort.
110278 if test "$with_mpool" = "mvapi" ; then
110279 { echo "$as_me:$LINENO: WARNING: MCA component \"mvapi\" failed to configure properly" >&5
110280 echo "$as_me: WARNING: MCA component \"mvapi\" failed to configure properly" >&2;}
110281 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
110282 echo "$as_me: WARNING: This component was selected as the default" >&2;}
110283 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
110284 echo "$as_me: error: Cannot continue" >&2;}
110285 { (exit 1); exit 1; }; }
110286 exit 1
110289 if test ! -z "$DIRECT_mpool" ; then
110290 if test "$DIRECT_mpool" = "mvapi" ; then
110291 { echo "$as_me:$LINENO: WARNING: MCA component \"mvapi\" failed to configure properly" >&5
110292 echo "$as_me: WARNING: MCA component \"mvapi\" failed to configure properly" >&2;}
110293 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
110294 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
110295 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
110296 echo "$as_me: error: Cannot continue" >&2;}
110297 { (exit 1); exit 1; }; }
110298 exit 1
110302 # add component to all component list
110303 all_components="$all_components mvapi"
110307 # set the AM_CONDITIONAL on how we should build
110308 if test "$compile_mode" = "dso"; then
110309 BUILD_mpool_mvapi_DSO=1
110311 BUILD_mpool_mvapi_DSO=0
110316 if test "$BUILD_mpool_mvapi_DSO" = "1"; then
110317 OMPI_BUILD_mpool_mvapi_DSO_TRUE=
110318 OMPI_BUILD_mpool_mvapi_DSO_FALSE='#'
110320 OMPI_BUILD_mpool_mvapi_DSO_TRUE='#'
110321 OMPI_BUILD_mpool_mvapi_DSO_FALSE=
110325 if test "$should_build" = "1"; then
110326 components_looking_for_succeed="$happy_value"
110330 unset compile_mode
110332 ompi_show_subsubsubtitle "MCA component mpool:openib (m4 configuration macro)"
110335 project=ompi
110336 framework=mpool
110337 component=openib
110338 component_path="$srcdir/$project/mca/$framework/$component"
110339 want_component=0
110341 # build if:
110342 # - the component type is direct and we are that component
110343 # - there is no ompi_ignore file
110344 # - there is an ompi_ignore, but there is an empty ompi_unignore
110345 # - there is an ompi_ignore, but username is in ompi_unignore
110346 if test -d $component_path ; then
110347 # decide if we want the component to be built or not. This
110348 # is spread out because some of the logic is a little complex
110349 # and test's syntax isn't exactly the greatest. We want to
110350 # build the component by default.
110351 want_component=1
110352 if test -f $component_path/.ompi_ignore ; then
110353 # If there is an ompi_ignore file, don't build
110354 # the component. Note that this decision can be
110355 # overriden by the unignore logic below.
110356 want_component=0
110358 if test -f $component_path/.ompi_unignore ; then
110359 # if there is an empty ompi_unignore, that is
110360 # equivalent to having your userid in the unignore file.
110361 # If userid is in the file, unignore the ignore file.
110362 if test ! -s $component_path/.ompi_unignore ; then
110363 want_component=1
110364 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
110365 want_component=1
110368 # if this component type is direct and we are not it, we don't want
110369 # to be built. Otherwise, we do want to be built.
110370 if test ! -z "$DIRECT_mpool" ; then
110371 if test "$DIRECT_mpool" = "$component" ; then
110372 want_component=1
110374 want_component=0
110379 # if we were explicitly disabled, don't build :)
110380 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
110381 eval $str
110382 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
110383 want_component=0
110386 if test "$want_component" = "1"; then
110387 should_build=$components_looking_for_succeed
110389 should_build=0
110393 # Allow the component to override the build mode if it really wants to.
110394 # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
110396 project=ompi
110397 framework=mpool
110398 component=openib
110400 # Is this component going to built staic or shared? $component
110401 # might not be known until configure time, so have to use eval
110402 # tricks - can't set variable names at autogen time.
110403 str="SHARED_FRAMEWORK=\$DSO_$framework"
110404 eval $str
110405 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
110406 eval $str
110408 str="STATIC_FRAMEWORK=\$STATIC_$framework"
110409 eval $str
110410 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
110411 eval $str
110413 shared_mode_override=static
110415 # Setup for either shared or static
110416 if test "$STATIC_FRAMEWORK" = "1" -o \
110417 "$STATIC_COMPONENT" = "1" -o \
110418 "$STATIC_all" = "1" ; then
110419 compile_mode="static"
110420 elif test "$shared_mode_override" = "dso" -o \
110421 "$SHARED_FRAMEWORK" = "1" -o \
110422 "$SHARED_COMPONENT" = "1" -o \
110423 "$DSO_all" = "1"; then
110424 compile_mode="dso"
110426 compile_mode="static"
110429 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
110430 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
110431 if test "$DIRECT_mpool" = "$component" ; then
110432 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
110433 echo "${ECHO_T}$compile_mode - direct" >&6; }
110435 { echo "$as_me:$LINENO: result: $compile_mode" >&5
110436 echo "${ECHO_T}$compile_mode" >&6; }
110440 # try to configure the component. pay no attention to
110441 # --enable-dist, since we'll always have makefiles.
110442 if test "$should_build" = "1"; then
110446 # Check whether --with-openib was given.
110447 if test "${with_openib+set}" = set; then
110448 withval=$with_openib;
110452 # Check whether --with-openib-libdir was given.
110453 if test "${with_openib_libdir+set}" = set; then
110454 withval=$with_openib_libdir;
110458 if test ! -z "$with_openib" -a "$with_openib" != "yes"; then
110459 ompi_check_openib_dir="$with_openib"
110462 if test ! -z "$with_openib_libdir" -a "$with_openib_libdir" != "yes"; then
110463 ompi_check_openib_libdir="$with_openib_libdir"
110466 if test "$with_openib" != "no"; then
110467 # check for pthreads and emit a warning that things might go south...
110468 if test "$HAVE_POSIX_THREADS" != "1"; then
110469 { echo "$as_me:$LINENO: WARNING: POSIX threads not enabled. May not be able to link with OpenIB" >&5
110470 echo "$as_me: WARNING: POSIX threads not enabled. May not be able to link with OpenIB" >&2;}
110474 ompi_check_openib_mpool_openib_save_CPPFLAGS="$CPPFLAGS"
110475 ompi_check_openib_mpool_openib_save_LDFLAGS="$LDFLAGS"
110476 ompi_check_openib_mpool_openib_save_LIBS="$LIBS"
110478 { echo "$as_me:$LINENO: checking for sysfs_open_class in -lsysfs" >&5
110479 echo $ECHO_N "checking for sysfs_open_class in -lsysfs... $ECHO_C" >&6; }
110480 if test "${ac_cv_lib_sysfs_sysfs_open_class+set}" = set; then
110481 echo $ECHO_N "(cached) $ECHO_C" >&6
110483 ac_check_lib_save_LIBS=$LIBS
110484 LIBS="-lsysfs $LIBS"
110485 cat >conftest.$ac_ext <<_ACEOF
110486 /* confdefs.h. */
110487 _ACEOF
110488 cat confdefs.h >>conftest.$ac_ext
110489 cat >>conftest.$ac_ext <<_ACEOF
110490 /* end confdefs.h. */
110492 /* Override any GCC internal prototype to avoid an error.
110493 Use char because int might match the return type of a GCC
110494 builtin and then its argument prototype would still apply. */
110495 #ifdef __cplusplus
110496 extern "C"
110497 #endif
110498 char sysfs_open_class ();
110500 main ()
110502 return sysfs_open_class ();
110504 return 0;
110506 _ACEOF
110507 rm -f conftest.$ac_objext conftest$ac_exeext
110508 if { (ac_try="$ac_link"
110509 case "(($ac_try" in
110510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
110511 *) ac_try_echo=$ac_try;;
110513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
110514 (eval "$ac_link") 2>conftest.er1
110515 ac_status=$?
110516 grep -v '^ *+' conftest.er1 >conftest.err
110517 rm -f conftest.er1
110518 cat conftest.err >&5
110519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
110520 (exit $ac_status); } && {
110521 test -z "$ac_c_werror_flag" ||
110522 test ! -s conftest.err
110523 } && test -s conftest$ac_exeext &&
110524 $as_test_x conftest$ac_exeext; then
110525 ac_cv_lib_sysfs_sysfs_open_class=yes
110527 echo "$as_me: failed program was:" >&5
110528 sed 's/^/| /' conftest.$ac_ext >&5
110530 ac_cv_lib_sysfs_sysfs_open_class=no
110533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
110534 conftest$ac_exeext conftest.$ac_ext
110535 LIBS=$ac_check_lib_save_LIBS
110537 { echo "$as_me:$LINENO: result: $ac_cv_lib_sysfs_sysfs_open_class" >&5
110538 echo "${ECHO_T}$ac_cv_lib_sysfs_sysfs_open_class" >&6; }
110539 if test $ac_cv_lib_sysfs_sysfs_open_class = yes; then
110540 ompi_check_openib_sysfs=yes
110541 LIBS="$LIBS -lsysfs"
110542 mpool_openib_LIBS="-lsysfs"
110544 ompi_check_openib_sysfs=no
110548 if test "$ompi_check_openib_sysfs" != "yes"; then
110549 if test ! -z "$with_openib" -a "$with_openib" != "no"; then
110550 { { echo "$as_me:$LINENO: error: OpenIB support requested but required sysfs not found. Aborting" >&5
110551 echo "$as_me: error: OpenIB support requested but required sysfs not found. Aborting" >&2;}
110552 { (exit 1); exit 1; }; }
110558 if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
110559 { echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
110560 echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6; }
110561 if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
110562 echo $ECHO_N "(cached) $ECHO_C" >&6
110564 { echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
110565 echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6; }
110567 # Is the header compilable?
110568 { echo "$as_me:$LINENO: checking sysfs/libsysfs.h usability" >&5
110569 echo $ECHO_N "checking sysfs/libsysfs.h usability... $ECHO_C" >&6; }
110570 cat >conftest.$ac_ext <<_ACEOF
110571 /* confdefs.h. */
110572 _ACEOF
110573 cat confdefs.h >>conftest.$ac_ext
110574 cat >>conftest.$ac_ext <<_ACEOF
110575 /* end confdefs.h. */
110576 $ac_includes_default
110577 #include <sysfs/libsysfs.h>
110578 _ACEOF
110579 rm -f conftest.$ac_objext
110580 if { (ac_try="$ac_compile"
110581 case "(($ac_try" in
110582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
110583 *) ac_try_echo=$ac_try;;
110585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
110586 (eval "$ac_compile") 2>conftest.er1
110587 ac_status=$?
110588 grep -v '^ *+' conftest.er1 >conftest.err
110589 rm -f conftest.er1
110590 cat conftest.err >&5
110591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
110592 (exit $ac_status); } && {
110593 test -z "$ac_c_werror_flag" ||
110594 test ! -s conftest.err
110595 } && test -s conftest.$ac_objext; then
110596 ac_header_compiler=yes
110598 echo "$as_me: failed program was:" >&5
110599 sed 's/^/| /' conftest.$ac_ext >&5
110601 ac_header_compiler=no
110604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
110605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
110606 echo "${ECHO_T}$ac_header_compiler" >&6; }
110608 # Is the header present?
110609 { echo "$as_me:$LINENO: checking sysfs/libsysfs.h presence" >&5
110610 echo $ECHO_N "checking sysfs/libsysfs.h presence... $ECHO_C" >&6; }
110611 cat >conftest.$ac_ext <<_ACEOF
110612 /* confdefs.h. */
110613 _ACEOF
110614 cat confdefs.h >>conftest.$ac_ext
110615 cat >>conftest.$ac_ext <<_ACEOF
110616 /* end confdefs.h. */
110617 #include <sysfs/libsysfs.h>
110618 _ACEOF
110619 if { (ac_try="$ac_cpp conftest.$ac_ext"
110620 case "(($ac_try" in
110621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
110622 *) ac_try_echo=$ac_try;;
110624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
110625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
110626 ac_status=$?
110627 grep -v '^ *+' conftest.er1 >conftest.err
110628 rm -f conftest.er1
110629 cat conftest.err >&5
110630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
110631 (exit $ac_status); } >/dev/null && {
110632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
110633 test ! -s conftest.err
110634 }; then
110635 ac_header_preproc=yes
110637 echo "$as_me: failed program was:" >&5
110638 sed 's/^/| /' conftest.$ac_ext >&5
110640 ac_header_preproc=no
110643 rm -f conftest.err conftest.$ac_ext
110644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
110645 echo "${ECHO_T}$ac_header_preproc" >&6; }
110647 # So? What about this header?
110648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
110649 yes:no: )
110650 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
110651 echo "$as_me: WARNING: sysfs/libsysfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
110652 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&5
110653 echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the compiler's result" >&2;}
110654 ac_header_preproc=yes
110656 no:yes:* )
110657 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&5
110658 echo "$as_me: WARNING: sysfs/libsysfs.h: present but cannot be compiled" >&2;}
110659 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: check for missing prerequisite headers?" >&5
110660 echo "$as_me: WARNING: sysfs/libsysfs.h: check for missing prerequisite headers?" >&2;}
110661 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&5
110662 echo "$as_me: WARNING: sysfs/libsysfs.h: see the Autoconf documentation" >&2;}
110663 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: section \"Present But Cannot Be Compiled\"" >&5
110664 echo "$as_me: WARNING: sysfs/libsysfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
110665 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&5
110666 echo "$as_me: WARNING: sysfs/libsysfs.h: proceeding with the preprocessor's result" >&2;}
110667 { echo "$as_me:$LINENO: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&5
110668 echo "$as_me: WARNING: sysfs/libsysfs.h: in the future, the compiler will take precedence" >&2;}
110669 ( cat <<\_ASBOX
110670 ## ------------------------------------------------------ ##
110671 ## Report this to http://www.open-mpi.org/community/help/ ##
110672 ## ------------------------------------------------------ ##
110673 _ASBOX
110674 ) | sed "s/^/$as_me: WARNING: /" >&2
110677 { echo "$as_me:$LINENO: checking for sysfs/libsysfs.h" >&5
110678 echo $ECHO_N "checking for sysfs/libsysfs.h... $ECHO_C" >&6; }
110679 if test "${ac_cv_header_sysfs_libsysfs_h+set}" = set; then
110680 echo $ECHO_N "(cached) $ECHO_C" >&6
110682 ac_cv_header_sysfs_libsysfs_h=$ac_header_preproc
110684 { echo "$as_me:$LINENO: result: $ac_cv_header_sysfs_libsysfs_h" >&5
110685 echo "${ECHO_T}$ac_cv_header_sysfs_libsysfs_h" >&6; }
110688 if test $ac_cv_header_sysfs_libsysfs_h = yes; then
110689 ompi_check_openib_sysfs_h=yes
110691 ompi_check_openib_sysfs_h=no
110696 if test "$ompi_check_openib_sysfs_h" != "yes"; then
110697 if test ! -z "$with_openib" -a "$with_openib" != "no"; then
110698 { { echo "$as_me:$LINENO: error: OpenIB support requested but required sysfs/libsysfs.h not found. Aborting" >&5
110699 echo "$as_me: error: OpenIB support requested but required sysfs/libsysfs.h not found. Aborting" >&2;}
110700 { (exit 1); exit 1; }; }
110706 if test "$ompi_check_openib_libdir" = ""; then
110707 ompi_check_openib_my_libdir=$ompi_check_openib_dir
110709 ompi_check_openib_my_libdir=$ompi_check_openib_libdir
110713 if test -d "$ompi_check_openib_my_libdir/lib64/infiniband"; then
110714 ompi_check_openib_libflag=" -L$ompi_check_openib_my_libdir/lib64/infiniband"
110715 LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib64/infiniband"
110717 if test -d "$ompi_check_openib_my_libdir/lib/infiniband"; then
110718 ompi_check_openib_libflag=" -L$ompi_check_openib_my_libdir/lib/infiniband"
110719 LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib/infiniband"
110725 if test -d "$ompi_check_openib_my_libdir/lib64"; then
110726 ompi_check_openib_libflag="$ompi_check_openib_libflag -L$ompi_check_openib_my_libdir/lib64"
110727 LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib64"
110729 if test -d "$ompi_check_openib_my_libdir/lib"; then
110730 ompi_check_openib_libflag="$ompi_check_openib_libflag -L$ompi_check_openib_my_libdir/lib"
110731 LDFLAGS="$LDFLAGS -L$ompi_check_openib_my_libdir/lib"
110737 { echo "$as_me:$LINENO: checking for cm_timeout in -lcm" >&5
110738 echo $ECHO_N "checking for cm_timeout in -lcm... $ECHO_C" >&6; }
110739 if test "${ac_cv_lib_cm_cm_timeout+set}" = set; then
110740 echo $ECHO_N "(cached) $ECHO_C" >&6
110742 ac_check_lib_save_LIBS=$LIBS
110743 LIBS="-lcm $LIBS"
110744 cat >conftest.$ac_ext <<_ACEOF
110745 /* confdefs.h. */
110746 _ACEOF
110747 cat confdefs.h >>conftest.$ac_ext
110748 cat >>conftest.$ac_ext <<_ACEOF
110749 /* end confdefs.h. */
110751 /* Override any GCC internal prototype to avoid an error.
110752 Use char because int might match the return type of a GCC
110753 builtin and then its argument prototype would still apply. */
110754 #ifdef __cplusplus
110755 extern "C"
110756 #endif
110757 char cm_timeout ();
110759 main ()
110761 return cm_timeout ();
110763 return 0;
110765 _ACEOF
110766 rm -f conftest.$ac_objext conftest$ac_exeext
110767 if { (ac_try="$ac_link"
110768 case "(($ac_try" in
110769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
110770 *) ac_try_echo=$ac_try;;
110772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
110773 (eval "$ac_link") 2>conftest.er1
110774 ac_status=$?
110775 grep -v '^ *+' conftest.er1 >conftest.err
110776 rm -f conftest.er1
110777 cat conftest.err >&5
110778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
110779 (exit $ac_status); } && {
110780 test -z "$ac_c_werror_flag" ||
110781 test ! -s conftest.err
110782 } && test -s conftest$ac_exeext &&
110783 $as_test_x conftest$ac_exeext; then
110784 ac_cv_lib_cm_cm_timeout=yes
110786 echo "$as_me: failed program was:" >&5
110787 sed 's/^/| /' conftest.$ac_ext >&5
110789 ac_cv_lib_cm_cm_timeout=no
110792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
110793 conftest$ac_exeext conftest.$ac_ext
110794 LIBS=$ac_check_lib_save_LIBS
110796 { echo "$as_me:$LINENO: result: $ac_cv_lib_cm_cm_timeout" >&5
110797 echo "${ECHO_T}$ac_cv_lib_cm_cm_timeout" >&6; }
110798 if test $ac_cv_lib_cm_cm_timeout = yes; then
110799 ompi_check_openib_libdeps="-lcm"
110800 ompi_check_openib_libdeps=""
110805 ompi_check_package_mpool_openib_save_CPPFLAGS="$CPPFLAGS"
110806 ompi_check_package_mpool_openib_save_LDFLAGS="$LDFLAGS"
110807 ompi_check_package_mpool_openib_save_LIBS="$LIBS"
110809 ompi_check_package_mpool_openib_orig_CPPFLAGS="$mpool_openib_CPPFLAGS"
110810 ompi_check_package_mpool_openib_orig_LDFLAGS="$mpool_openib_LDFLAGS"
110811 ompi_check_package_mpool_openib_orig_LIBS="$mpool_openib_LIBS"
110814 # This is stolen from autoconf to peek under the covers to get the
110815 # cache variable for the library check. one should not copy this
110816 # code into other places unless you want much pain and suffering
110819 # so this sucks, but there's no way to get through the progression
110820 # of header includes without killing off the cache variable and trying
110821 # again...
110822 unset ac_cv_header_infiniband_verbs_h
110824 ompi_check_package_header_happy="no"
110825 if test "$ompi_check_openib_dir" = "/usr" -o "$ompi_check_openib_dir" = "/usr/local"; then
110826 # try as is...
110827 { echo "$as_me:$LINENO: result: looking for header without includes" >&5
110828 echo "${ECHO_T}looking for header without includes" >&6; }
110829 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
110830 { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
110831 echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; }
110832 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
110833 echo $ECHO_N "(cached) $ECHO_C" >&6
110835 { echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
110836 echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; }
110838 # Is the header compilable?
110839 { echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
110840 echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6; }
110841 cat >conftest.$ac_ext <<_ACEOF
110842 /* confdefs.h. */
110843 _ACEOF
110844 cat confdefs.h >>conftest.$ac_ext
110845 cat >>conftest.$ac_ext <<_ACEOF
110846 /* end confdefs.h. */
110847 $ac_includes_default
110848 #include <infiniband/verbs.h>
110849 _ACEOF
110850 rm -f conftest.$ac_objext
110851 if { (ac_try="$ac_compile"
110852 case "(($ac_try" in
110853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
110854 *) ac_try_echo=$ac_try;;
110856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
110857 (eval "$ac_compile") 2>conftest.er1
110858 ac_status=$?
110859 grep -v '^ *+' conftest.er1 >conftest.err
110860 rm -f conftest.er1
110861 cat conftest.err >&5
110862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
110863 (exit $ac_status); } && {
110864 test -z "$ac_c_werror_flag" ||
110865 test ! -s conftest.err
110866 } && test -s conftest.$ac_objext; then
110867 ac_header_compiler=yes
110869 echo "$as_me: failed program was:" >&5
110870 sed 's/^/| /' conftest.$ac_ext >&5
110872 ac_header_compiler=no
110875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
110876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
110877 echo "${ECHO_T}$ac_header_compiler" >&6; }
110879 # Is the header present?
110880 { echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
110881 echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6; }
110882 cat >conftest.$ac_ext <<_ACEOF
110883 /* confdefs.h. */
110884 _ACEOF
110885 cat confdefs.h >>conftest.$ac_ext
110886 cat >>conftest.$ac_ext <<_ACEOF
110887 /* end confdefs.h. */
110888 #include <infiniband/verbs.h>
110889 _ACEOF
110890 if { (ac_try="$ac_cpp conftest.$ac_ext"
110891 case "(($ac_try" in
110892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
110893 *) ac_try_echo=$ac_try;;
110895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
110896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
110897 ac_status=$?
110898 grep -v '^ *+' conftest.er1 >conftest.err
110899 rm -f conftest.er1
110900 cat conftest.err >&5
110901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
110902 (exit $ac_status); } >/dev/null && {
110903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
110904 test ! -s conftest.err
110905 }; then
110906 ac_header_preproc=yes
110908 echo "$as_me: failed program was:" >&5
110909 sed 's/^/| /' conftest.$ac_ext >&5
110911 ac_header_preproc=no
110914 rm -f conftest.err conftest.$ac_ext
110915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
110916 echo "${ECHO_T}$ac_header_preproc" >&6; }
110918 # So? What about this header?
110919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
110920 yes:no: )
110921 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
110922 echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
110923 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
110924 echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
110925 ac_header_preproc=yes
110927 no:yes:* )
110928 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
110929 echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
110930 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5
110931 echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;}
110932 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
110933 echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
110934 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5
110935 echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
110936 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
110937 echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
110938 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
110939 echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;}
110940 ( cat <<\_ASBOX
110941 ## ------------------------------------------------------ ##
110942 ## Report this to http://www.open-mpi.org/community/help/ ##
110943 ## ------------------------------------------------------ ##
110944 _ASBOX
110945 ) | sed "s/^/$as_me: WARNING: /" >&2
110948 { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
110949 echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; }
110950 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
110951 echo $ECHO_N "(cached) $ECHO_C" >&6
110953 ac_cv_header_infiniband_verbs_h=$ac_header_preproc
110955 { echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
110956 echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; }
110959 if test $ac_cv_header_infiniband_verbs_h = yes; then
110960 ompi_check_package_header_happy="yes"
110962 ompi_check_package_header_happy="no"
110966 if test "$ompi_check_package_header_happy" = "no"; then
110967 # no go on the as is - reset the cache and try again
110968 unset ac_cv_header_infiniband_verbs_h
110974 if test "$ompi_check_package_header_happy" = "no"; then
110975 if test "$ompi_check_openib_dir" != ""; then
110976 mpool_openib_CPPFLAGS="$mpool_openib_CPPFLAGS -I$ompi_check_openib_dir/include"
110977 CPPFLAGS="$CPPFLAGS -I$ompi_check_openib_dir/include"
110980 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
110981 { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
110982 echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; }
110983 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
110984 echo $ECHO_N "(cached) $ECHO_C" >&6
110986 { echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
110987 echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; }
110989 # Is the header compilable?
110990 { echo "$as_me:$LINENO: checking infiniband/verbs.h usability" >&5
110991 echo $ECHO_N "checking infiniband/verbs.h usability... $ECHO_C" >&6; }
110992 cat >conftest.$ac_ext <<_ACEOF
110993 /* confdefs.h. */
110994 _ACEOF
110995 cat confdefs.h >>conftest.$ac_ext
110996 cat >>conftest.$ac_ext <<_ACEOF
110997 /* end confdefs.h. */
110998 $ac_includes_default
110999 #include <infiniband/verbs.h>
111000 _ACEOF
111001 rm -f conftest.$ac_objext
111002 if { (ac_try="$ac_compile"
111003 case "(($ac_try" in
111004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111005 *) ac_try_echo=$ac_try;;
111007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
111008 (eval "$ac_compile") 2>conftest.er1
111009 ac_status=$?
111010 grep -v '^ *+' conftest.er1 >conftest.err
111011 rm -f conftest.er1
111012 cat conftest.err >&5
111013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
111014 (exit $ac_status); } && {
111015 test -z "$ac_c_werror_flag" ||
111016 test ! -s conftest.err
111017 } && test -s conftest.$ac_objext; then
111018 ac_header_compiler=yes
111020 echo "$as_me: failed program was:" >&5
111021 sed 's/^/| /' conftest.$ac_ext >&5
111023 ac_header_compiler=no
111026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
111027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
111028 echo "${ECHO_T}$ac_header_compiler" >&6; }
111030 # Is the header present?
111031 { echo "$as_me:$LINENO: checking infiniband/verbs.h presence" >&5
111032 echo $ECHO_N "checking infiniband/verbs.h presence... $ECHO_C" >&6; }
111033 cat >conftest.$ac_ext <<_ACEOF
111034 /* confdefs.h. */
111035 _ACEOF
111036 cat confdefs.h >>conftest.$ac_ext
111037 cat >>conftest.$ac_ext <<_ACEOF
111038 /* end confdefs.h. */
111039 #include <infiniband/verbs.h>
111040 _ACEOF
111041 if { (ac_try="$ac_cpp conftest.$ac_ext"
111042 case "(($ac_try" in
111043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111044 *) ac_try_echo=$ac_try;;
111046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
111047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
111048 ac_status=$?
111049 grep -v '^ *+' conftest.er1 >conftest.err
111050 rm -f conftest.er1
111051 cat conftest.err >&5
111052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
111053 (exit $ac_status); } >/dev/null && {
111054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
111055 test ! -s conftest.err
111056 }; then
111057 ac_header_preproc=yes
111059 echo "$as_me: failed program was:" >&5
111060 sed 's/^/| /' conftest.$ac_ext >&5
111062 ac_header_preproc=no
111065 rm -f conftest.err conftest.$ac_ext
111066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
111067 echo "${ECHO_T}$ac_header_preproc" >&6; }
111069 # So? What about this header?
111070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
111071 yes:no: )
111072 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
111073 echo "$as_me: WARNING: infiniband/verbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
111074 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&5
111075 echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the compiler's result" >&2;}
111076 ac_header_preproc=yes
111078 no:yes:* )
111079 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: present but cannot be compiled" >&5
111080 echo "$as_me: WARNING: infiniband/verbs.h: present but cannot be compiled" >&2;}
111081 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&5
111082 echo "$as_me: WARNING: infiniband/verbs.h: check for missing prerequisite headers?" >&2;}
111083 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&5
111084 echo "$as_me: WARNING: infiniband/verbs.h: see the Autoconf documentation" >&2;}
111085 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&5
111086 echo "$as_me: WARNING: infiniband/verbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
111087 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&5
111088 echo "$as_me: WARNING: infiniband/verbs.h: proceeding with the preprocessor's result" >&2;}
111089 { echo "$as_me:$LINENO: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&5
111090 echo "$as_me: WARNING: infiniband/verbs.h: in the future, the compiler will take precedence" >&2;}
111091 ( cat <<\_ASBOX
111092 ## ------------------------------------------------------ ##
111093 ## Report this to http://www.open-mpi.org/community/help/ ##
111094 ## ------------------------------------------------------ ##
111095 _ASBOX
111096 ) | sed "s/^/$as_me: WARNING: /" >&2
111099 { echo "$as_me:$LINENO: checking for infiniband/verbs.h" >&5
111100 echo $ECHO_N "checking for infiniband/verbs.h... $ECHO_C" >&6; }
111101 if test "${ac_cv_header_infiniband_verbs_h+set}" = set; then
111102 echo $ECHO_N "(cached) $ECHO_C" >&6
111104 ac_cv_header_infiniband_verbs_h=$ac_header_preproc
111106 { echo "$as_me:$LINENO: result: $ac_cv_header_infiniband_verbs_h" >&5
111107 echo "${ECHO_T}$ac_cv_header_infiniband_verbs_h" >&6; }
111110 if test $ac_cv_header_infiniband_verbs_h = yes; then
111112 # This is stolen from autoconf to peek under the covers to get the
111113 # cache variable for the library check. one should not copy this
111114 # code into other places unless you want much pain and suffering
111116 # see comment above
111117 unset ac_cv_lib_ibverbs_ibv_open_device
111118 ompi_check_package_lib_happy="no"
111119 if test "$ompi_check_openib_libdir" != ""; then
111120 # libdir was specified - search only there
111121 mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS -L$ompi_check_openib_libdir"
111122 LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
111123 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
111124 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
111125 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
111126 echo $ECHO_N "(cached) $ECHO_C" >&6
111128 ac_check_lib_save_LIBS=$LIBS
111129 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
111130 cat >conftest.$ac_ext <<_ACEOF
111131 /* confdefs.h. */
111132 _ACEOF
111133 cat confdefs.h >>conftest.$ac_ext
111134 cat >>conftest.$ac_ext <<_ACEOF
111135 /* end confdefs.h. */
111137 /* Override any GCC internal prototype to avoid an error.
111138 Use char because int might match the return type of a GCC
111139 builtin and then its argument prototype would still apply. */
111140 #ifdef __cplusplus
111141 extern "C"
111142 #endif
111143 char ibv_open_device ();
111145 main ()
111147 return ibv_open_device ();
111149 return 0;
111151 _ACEOF
111152 rm -f conftest.$ac_objext conftest$ac_exeext
111153 if { (ac_try="$ac_link"
111154 case "(($ac_try" in
111155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111156 *) ac_try_echo=$ac_try;;
111158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
111159 (eval "$ac_link") 2>conftest.er1
111160 ac_status=$?
111161 grep -v '^ *+' conftest.er1 >conftest.err
111162 rm -f conftest.er1
111163 cat conftest.err >&5
111164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
111165 (exit $ac_status); } && {
111166 test -z "$ac_c_werror_flag" ||
111167 test ! -s conftest.err
111168 } && test -s conftest$ac_exeext &&
111169 $as_test_x conftest$ac_exeext; then
111170 ac_cv_lib_ibverbs_ibv_open_device=yes
111172 echo "$as_me: failed program was:" >&5
111173 sed 's/^/| /' conftest.$ac_ext >&5
111175 ac_cv_lib_ibverbs_ibv_open_device=no
111178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
111179 conftest$ac_exeext conftest.$ac_ext
111180 LIBS=$ac_check_lib_save_LIBS
111182 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
111183 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
111184 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
111185 ompi_check_package_lib_happy="yes"
111187 ompi_check_package_lib_happy="no"
111190 if test "$ompi_check_package_lib_happy" = "no"; then
111191 LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
111192 mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
111193 unset ac_cv_lib_ibverbs_ibv_open_device
111197 # libdir was not specified - go through search path
111198 ompi_check_package_libdir="$ompi_check_openib_dir"
111199 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
111200 # try as is...
111201 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
111202 echo "${ECHO_T}looking for library without search path" >&6; }
111203 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
111204 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
111205 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
111206 echo $ECHO_N "(cached) $ECHO_C" >&6
111208 ac_check_lib_save_LIBS=$LIBS
111209 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
111210 cat >conftest.$ac_ext <<_ACEOF
111211 /* confdefs.h. */
111212 _ACEOF
111213 cat confdefs.h >>conftest.$ac_ext
111214 cat >>conftest.$ac_ext <<_ACEOF
111215 /* end confdefs.h. */
111217 /* Override any GCC internal prototype to avoid an error.
111218 Use char because int might match the return type of a GCC
111219 builtin and then its argument prototype would still apply. */
111220 #ifdef __cplusplus
111221 extern "C"
111222 #endif
111223 char ibv_open_device ();
111225 main ()
111227 return ibv_open_device ();
111229 return 0;
111231 _ACEOF
111232 rm -f conftest.$ac_objext conftest$ac_exeext
111233 if { (ac_try="$ac_link"
111234 case "(($ac_try" in
111235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111236 *) ac_try_echo=$ac_try;;
111238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
111239 (eval "$ac_link") 2>conftest.er1
111240 ac_status=$?
111241 grep -v '^ *+' conftest.er1 >conftest.err
111242 rm -f conftest.er1
111243 cat conftest.err >&5
111244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
111245 (exit $ac_status); } && {
111246 test -z "$ac_c_werror_flag" ||
111247 test ! -s conftest.err
111248 } && test -s conftest$ac_exeext &&
111249 $as_test_x conftest$ac_exeext; then
111250 ac_cv_lib_ibverbs_ibv_open_device=yes
111252 echo "$as_me: failed program was:" >&5
111253 sed 's/^/| /' conftest.$ac_ext >&5
111255 ac_cv_lib_ibverbs_ibv_open_device=no
111258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
111259 conftest$ac_exeext conftest.$ac_ext
111260 LIBS=$ac_check_lib_save_LIBS
111262 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
111263 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
111264 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
111265 ompi_check_package_lib_happy="yes"
111267 ompi_check_package_lib_happy="no"
111270 if test "$ompi_check_package_lib_happy" = "no"; then
111271 # no go on the as is.. see what happens later...
111272 LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
111273 mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
111274 unset ac_cv_lib_ibverbs_ibv_open_device
111280 if test "$ompi_check_package_lib_happy" = "no"; then
111281 if test "$ompi_check_package_libdir" != ""; then
111282 mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS -L$ompi_check_package_libdir/lib"
111283 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
111284 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
111285 echo "${ECHO_T}looking for library in lib" >&6; }
111286 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
111287 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
111288 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
111289 echo $ECHO_N "(cached) $ECHO_C" >&6
111291 ac_check_lib_save_LIBS=$LIBS
111292 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
111293 cat >conftest.$ac_ext <<_ACEOF
111294 /* confdefs.h. */
111295 _ACEOF
111296 cat confdefs.h >>conftest.$ac_ext
111297 cat >>conftest.$ac_ext <<_ACEOF
111298 /* end confdefs.h. */
111300 /* Override any GCC internal prototype to avoid an error.
111301 Use char because int might match the return type of a GCC
111302 builtin and then its argument prototype would still apply. */
111303 #ifdef __cplusplus
111304 extern "C"
111305 #endif
111306 char ibv_open_device ();
111308 main ()
111310 return ibv_open_device ();
111312 return 0;
111314 _ACEOF
111315 rm -f conftest.$ac_objext conftest$ac_exeext
111316 if { (ac_try="$ac_link"
111317 case "(($ac_try" in
111318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111319 *) ac_try_echo=$ac_try;;
111321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
111322 (eval "$ac_link") 2>conftest.er1
111323 ac_status=$?
111324 grep -v '^ *+' conftest.er1 >conftest.err
111325 rm -f conftest.er1
111326 cat conftest.err >&5
111327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
111328 (exit $ac_status); } && {
111329 test -z "$ac_c_werror_flag" ||
111330 test ! -s conftest.err
111331 } && test -s conftest$ac_exeext &&
111332 $as_test_x conftest$ac_exeext; then
111333 ac_cv_lib_ibverbs_ibv_open_device=yes
111335 echo "$as_me: failed program was:" >&5
111336 sed 's/^/| /' conftest.$ac_ext >&5
111338 ac_cv_lib_ibverbs_ibv_open_device=no
111341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
111342 conftest$ac_exeext conftest.$ac_ext
111343 LIBS=$ac_check_lib_save_LIBS
111345 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
111346 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
111347 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
111348 ompi_check_package_lib_happy="yes"
111350 ompi_check_package_lib_happy="no"
111353 if test "$ompi_check_package_lib_happy" = "no"; then
111354 # no go on the as is.. see what happens later...
111355 LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
111356 mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
111357 unset ac_cv_lib_ibverbs_ibv_open_device
111365 if test "$ompi_check_package_lib_happy" = "no"; then
111366 if test "$ompi_check_package_libdir" != ""; then
111367 mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS -L$ompi_check_package_libdir/lib64"
111368 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
111369 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
111370 echo "${ECHO_T}looking for library in lib64" >&6; }
111371 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
111372 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
111373 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
111374 echo $ECHO_N "(cached) $ECHO_C" >&6
111376 ac_check_lib_save_LIBS=$LIBS
111377 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
111378 cat >conftest.$ac_ext <<_ACEOF
111379 /* confdefs.h. */
111380 _ACEOF
111381 cat confdefs.h >>conftest.$ac_ext
111382 cat >>conftest.$ac_ext <<_ACEOF
111383 /* end confdefs.h. */
111385 /* Override any GCC internal prototype to avoid an error.
111386 Use char because int might match the return type of a GCC
111387 builtin and then its argument prototype would still apply. */
111388 #ifdef __cplusplus
111389 extern "C"
111390 #endif
111391 char ibv_open_device ();
111393 main ()
111395 return ibv_open_device ();
111397 return 0;
111399 _ACEOF
111400 rm -f conftest.$ac_objext conftest$ac_exeext
111401 if { (ac_try="$ac_link"
111402 case "(($ac_try" in
111403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111404 *) ac_try_echo=$ac_try;;
111406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
111407 (eval "$ac_link") 2>conftest.er1
111408 ac_status=$?
111409 grep -v '^ *+' conftest.er1 >conftest.err
111410 rm -f conftest.er1
111411 cat conftest.err >&5
111412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
111413 (exit $ac_status); } && {
111414 test -z "$ac_c_werror_flag" ||
111415 test ! -s conftest.err
111416 } && test -s conftest$ac_exeext &&
111417 $as_test_x conftest$ac_exeext; then
111418 ac_cv_lib_ibverbs_ibv_open_device=yes
111420 echo "$as_me: failed program was:" >&5
111421 sed 's/^/| /' conftest.$ac_ext >&5
111423 ac_cv_lib_ibverbs_ibv_open_device=no
111426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
111427 conftest$ac_exeext conftest.$ac_ext
111428 LIBS=$ac_check_lib_save_LIBS
111430 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
111431 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
111432 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
111433 ompi_check_package_lib_happy="yes"
111435 ompi_check_package_lib_happy="no"
111438 if test "$ompi_check_package_lib_happy" = "no"; then
111439 # no go on the as is.. see what happens later...
111440 LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
111441 mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
111442 unset ac_cv_lib_ibverbs_ibv_open_device
111452 if test "$ompi_check_package_lib_happy" = "yes"; then
111453 ompi_check_package_happy="yes"
111455 ompi_check_package_happy="no"
111461 ompi_check_package_happy="no"
111467 # This is stolen from autoconf to peek under the covers to get the
111468 # cache variable for the library check. one should not copy this
111469 # code into other places unless you want much pain and suffering
111471 # see comment above
111472 unset ac_cv_lib_ibverbs_ibv_open_device
111473 ompi_check_package_lib_happy="no"
111474 if test "$ompi_check_openib_libdir" != ""; then
111475 # libdir was specified - search only there
111476 mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS -L$ompi_check_openib_libdir"
111477 LDFLAGS="$LDFLAGS -L$ompi_check_openib_libdir"
111478 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
111479 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
111480 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
111481 echo $ECHO_N "(cached) $ECHO_C" >&6
111483 ac_check_lib_save_LIBS=$LIBS
111484 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
111485 cat >conftest.$ac_ext <<_ACEOF
111486 /* confdefs.h. */
111487 _ACEOF
111488 cat confdefs.h >>conftest.$ac_ext
111489 cat >>conftest.$ac_ext <<_ACEOF
111490 /* end confdefs.h. */
111492 /* Override any GCC internal prototype to avoid an error.
111493 Use char because int might match the return type of a GCC
111494 builtin and then its argument prototype would still apply. */
111495 #ifdef __cplusplus
111496 extern "C"
111497 #endif
111498 char ibv_open_device ();
111500 main ()
111502 return ibv_open_device ();
111504 return 0;
111506 _ACEOF
111507 rm -f conftest.$ac_objext conftest$ac_exeext
111508 if { (ac_try="$ac_link"
111509 case "(($ac_try" in
111510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111511 *) ac_try_echo=$ac_try;;
111513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
111514 (eval "$ac_link") 2>conftest.er1
111515 ac_status=$?
111516 grep -v '^ *+' conftest.er1 >conftest.err
111517 rm -f conftest.er1
111518 cat conftest.err >&5
111519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
111520 (exit $ac_status); } && {
111521 test -z "$ac_c_werror_flag" ||
111522 test ! -s conftest.err
111523 } && test -s conftest$ac_exeext &&
111524 $as_test_x conftest$ac_exeext; then
111525 ac_cv_lib_ibverbs_ibv_open_device=yes
111527 echo "$as_me: failed program was:" >&5
111528 sed 's/^/| /' conftest.$ac_ext >&5
111530 ac_cv_lib_ibverbs_ibv_open_device=no
111533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
111534 conftest$ac_exeext conftest.$ac_ext
111535 LIBS=$ac_check_lib_save_LIBS
111537 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
111538 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
111539 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
111540 ompi_check_package_lib_happy="yes"
111542 ompi_check_package_lib_happy="no"
111545 if test "$ompi_check_package_lib_happy" = "no"; then
111546 LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
111547 mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
111548 unset ac_cv_lib_ibverbs_ibv_open_device
111552 # libdir was not specified - go through search path
111553 ompi_check_package_libdir="$ompi_check_openib_dir"
111554 if test "$ompi_check_package_libdir" = "" -o "$ompi_check_package_libdir" = "/usr" -o "$ompi_check_package_libdir" = "/usr/local"; then
111555 # try as is...
111556 { echo "$as_me:$LINENO: result: looking for library without search path" >&5
111557 echo "${ECHO_T}looking for library without search path" >&6; }
111558 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
111559 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
111560 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
111561 echo $ECHO_N "(cached) $ECHO_C" >&6
111563 ac_check_lib_save_LIBS=$LIBS
111564 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
111565 cat >conftest.$ac_ext <<_ACEOF
111566 /* confdefs.h. */
111567 _ACEOF
111568 cat confdefs.h >>conftest.$ac_ext
111569 cat >>conftest.$ac_ext <<_ACEOF
111570 /* end confdefs.h. */
111572 /* Override any GCC internal prototype to avoid an error.
111573 Use char because int might match the return type of a GCC
111574 builtin and then its argument prototype would still apply. */
111575 #ifdef __cplusplus
111576 extern "C"
111577 #endif
111578 char ibv_open_device ();
111580 main ()
111582 return ibv_open_device ();
111584 return 0;
111586 _ACEOF
111587 rm -f conftest.$ac_objext conftest$ac_exeext
111588 if { (ac_try="$ac_link"
111589 case "(($ac_try" in
111590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111591 *) ac_try_echo=$ac_try;;
111593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
111594 (eval "$ac_link") 2>conftest.er1
111595 ac_status=$?
111596 grep -v '^ *+' conftest.er1 >conftest.err
111597 rm -f conftest.er1
111598 cat conftest.err >&5
111599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
111600 (exit $ac_status); } && {
111601 test -z "$ac_c_werror_flag" ||
111602 test ! -s conftest.err
111603 } && test -s conftest$ac_exeext &&
111604 $as_test_x conftest$ac_exeext; then
111605 ac_cv_lib_ibverbs_ibv_open_device=yes
111607 echo "$as_me: failed program was:" >&5
111608 sed 's/^/| /' conftest.$ac_ext >&5
111610 ac_cv_lib_ibverbs_ibv_open_device=no
111613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
111614 conftest$ac_exeext conftest.$ac_ext
111615 LIBS=$ac_check_lib_save_LIBS
111617 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
111618 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
111619 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
111620 ompi_check_package_lib_happy="yes"
111622 ompi_check_package_lib_happy="no"
111625 if test "$ompi_check_package_lib_happy" = "no"; then
111626 # no go on the as is.. see what happens later...
111627 LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
111628 mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
111629 unset ac_cv_lib_ibverbs_ibv_open_device
111635 if test "$ompi_check_package_lib_happy" = "no"; then
111636 if test "$ompi_check_package_libdir" != ""; then
111637 mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS -L$ompi_check_package_libdir/lib"
111638 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib"
111639 { echo "$as_me:$LINENO: result: looking for library in lib" >&5
111640 echo "${ECHO_T}looking for library in lib" >&6; }
111641 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
111642 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
111643 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
111644 echo $ECHO_N "(cached) $ECHO_C" >&6
111646 ac_check_lib_save_LIBS=$LIBS
111647 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
111648 cat >conftest.$ac_ext <<_ACEOF
111649 /* confdefs.h. */
111650 _ACEOF
111651 cat confdefs.h >>conftest.$ac_ext
111652 cat >>conftest.$ac_ext <<_ACEOF
111653 /* end confdefs.h. */
111655 /* Override any GCC internal prototype to avoid an error.
111656 Use char because int might match the return type of a GCC
111657 builtin and then its argument prototype would still apply. */
111658 #ifdef __cplusplus
111659 extern "C"
111660 #endif
111661 char ibv_open_device ();
111663 main ()
111665 return ibv_open_device ();
111667 return 0;
111669 _ACEOF
111670 rm -f conftest.$ac_objext conftest$ac_exeext
111671 if { (ac_try="$ac_link"
111672 case "(($ac_try" in
111673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111674 *) ac_try_echo=$ac_try;;
111676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
111677 (eval "$ac_link") 2>conftest.er1
111678 ac_status=$?
111679 grep -v '^ *+' conftest.er1 >conftest.err
111680 rm -f conftest.er1
111681 cat conftest.err >&5
111682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
111683 (exit $ac_status); } && {
111684 test -z "$ac_c_werror_flag" ||
111685 test ! -s conftest.err
111686 } && test -s conftest$ac_exeext &&
111687 $as_test_x conftest$ac_exeext; then
111688 ac_cv_lib_ibverbs_ibv_open_device=yes
111690 echo "$as_me: failed program was:" >&5
111691 sed 's/^/| /' conftest.$ac_ext >&5
111693 ac_cv_lib_ibverbs_ibv_open_device=no
111696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
111697 conftest$ac_exeext conftest.$ac_ext
111698 LIBS=$ac_check_lib_save_LIBS
111700 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
111701 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
111702 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
111703 ompi_check_package_lib_happy="yes"
111705 ompi_check_package_lib_happy="no"
111708 if test "$ompi_check_package_lib_happy" = "no"; then
111709 # no go on the as is.. see what happens later...
111710 LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
111711 mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
111712 unset ac_cv_lib_ibverbs_ibv_open_device
111720 if test "$ompi_check_package_lib_happy" = "no"; then
111721 if test "$ompi_check_package_libdir" != ""; then
111722 mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS -L$ompi_check_package_libdir/lib64"
111723 LDFLAGS="$LDFLAGS -L$ompi_check_package_libdir/lib64"
111724 { echo "$as_me:$LINENO: result: looking for library in lib64" >&5
111725 echo "${ECHO_T}looking for library in lib64" >&6; }
111726 { echo "$as_me:$LINENO: checking for ibv_open_device in -libverbs" >&5
111727 echo $ECHO_N "checking for ibv_open_device in -libverbs... $ECHO_C" >&6; }
111728 if test "${ac_cv_lib_ibverbs_ibv_open_device+set}" = set; then
111729 echo $ECHO_N "(cached) $ECHO_C" >&6
111731 ac_check_lib_save_LIBS=$LIBS
111732 LIBS="-libverbs $ompi_check_openib_libdeps $LIBS"
111733 cat >conftest.$ac_ext <<_ACEOF
111734 /* confdefs.h. */
111735 _ACEOF
111736 cat confdefs.h >>conftest.$ac_ext
111737 cat >>conftest.$ac_ext <<_ACEOF
111738 /* end confdefs.h. */
111740 /* Override any GCC internal prototype to avoid an error.
111741 Use char because int might match the return type of a GCC
111742 builtin and then its argument prototype would still apply. */
111743 #ifdef __cplusplus
111744 extern "C"
111745 #endif
111746 char ibv_open_device ();
111748 main ()
111750 return ibv_open_device ();
111752 return 0;
111754 _ACEOF
111755 rm -f conftest.$ac_objext conftest$ac_exeext
111756 if { (ac_try="$ac_link"
111757 case "(($ac_try" in
111758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111759 *) ac_try_echo=$ac_try;;
111761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
111762 (eval "$ac_link") 2>conftest.er1
111763 ac_status=$?
111764 grep -v '^ *+' conftest.er1 >conftest.err
111765 rm -f conftest.er1
111766 cat conftest.err >&5
111767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
111768 (exit $ac_status); } && {
111769 test -z "$ac_c_werror_flag" ||
111770 test ! -s conftest.err
111771 } && test -s conftest$ac_exeext &&
111772 $as_test_x conftest$ac_exeext; then
111773 ac_cv_lib_ibverbs_ibv_open_device=yes
111775 echo "$as_me: failed program was:" >&5
111776 sed 's/^/| /' conftest.$ac_ext >&5
111778 ac_cv_lib_ibverbs_ibv_open_device=no
111781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
111782 conftest$ac_exeext conftest.$ac_ext
111783 LIBS=$ac_check_lib_save_LIBS
111785 { echo "$as_me:$LINENO: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5
111786 echo "${ECHO_T}$ac_cv_lib_ibverbs_ibv_open_device" >&6; }
111787 if test $ac_cv_lib_ibverbs_ibv_open_device = yes; then
111788 ompi_check_package_lib_happy="yes"
111790 ompi_check_package_lib_happy="no"
111793 if test "$ompi_check_package_lib_happy" = "no"; then
111794 # no go on the as is.. see what happens later...
111795 LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
111796 mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
111797 unset ac_cv_lib_ibverbs_ibv_open_device
111807 if test "$ompi_check_package_lib_happy" = "yes"; then
111808 ompi_check_package_happy="yes"
111810 ompi_check_package_happy="no"
111817 unset ompi_check_package_header_happy
111819 if test "$ompi_check_package_happy" = "yes"; then
111820 ompi_check_openib_happy="yes"
111821 mpool_openib_LIBS="-libverbs $ompi_check_openib_libdeps"
111823 mpool_openib_CPPFLAGS="$ompi_check_package_mpool_openib_orig_CPPFLAGS"
111824 mpool_openib_LDFLAGS="$ompi_check_package_mpool_openib_orig_LDFLAGS"
111825 mpool_openib_LIBS="$ompi_check_package_mpool_openib_orig_LIBS"
111826 ompi_check_openib_happy="no"
111830 CPPFLAGS="$ompi_check_package_mpool_openib_save_CPPFLAGS"
111831 LDFLAGS="$ompi_check_package_mpool_openib_save_LDFLAGS"
111832 LIBS="$ompi_check_package_mpool_openib_save_LIBS"
111835 # ok, now see if ibv_create_cq takes 3 arguments or 6
111836 CPPFLAGS="$CPPFLAGS $mpool_openib_CPPFLAGS"
111837 LDFLAGS="$LDFLAGS $mpool_openib_LDFLAGS"
111838 LIBS="$LIBS $mpool_openib_LIBS"
111840 if test "$ompi_check_openib_happy" = "yes"; then
111841 { echo "$as_me:$LINENO: checking number of arguments to ibv_create_cq" >&5
111842 echo $ECHO_N "checking number of arguments to ibv_create_cq... $ECHO_C" >&6; }
111843 if test "${ompi_cv_func_ibv_create_cq_args+set}" = set; then
111844 echo $ECHO_N "(cached) $ECHO_C" >&6
111846 cat >conftest.$ac_ext <<_ACEOF
111847 /* confdefs.h. */
111848 _ACEOF
111849 cat confdefs.h >>conftest.$ac_ext
111850 cat >>conftest.$ac_ext <<_ACEOF
111851 /* end confdefs.h. */
111852 #include <infiniband/verbs.h>
111854 main ()
111856 ibv_create_cq(NULL, 0, NULL, NULL, 0);
111858 return 0;
111860 _ACEOF
111861 rm -f conftest.$ac_objext conftest$ac_exeext
111862 if { (ac_try="$ac_link"
111863 case "(($ac_try" in
111864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111865 *) ac_try_echo=$ac_try;;
111867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
111868 (eval "$ac_link") 2>conftest.er1
111869 ac_status=$?
111870 grep -v '^ *+' conftest.er1 >conftest.err
111871 rm -f conftest.er1
111872 cat conftest.err >&5
111873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
111874 (exit $ac_status); } && {
111875 test -z "$ac_c_werror_flag" ||
111876 test ! -s conftest.err
111877 } && test -s conftest$ac_exeext &&
111878 $as_test_x conftest$ac_exeext; then
111879 ompi_cv_func_ibv_create_cq_args=5
111881 echo "$as_me: failed program was:" >&5
111882 sed 's/^/| /' conftest.$ac_ext >&5
111884 cat >conftest.$ac_ext <<_ACEOF
111885 /* confdefs.h. */
111886 _ACEOF
111887 cat confdefs.h >>conftest.$ac_ext
111888 cat >>conftest.$ac_ext <<_ACEOF
111889 /* end confdefs.h. */
111890 #include <infiniband/verbs.h>
111892 main ()
111894 ibv_create_cq(NULL, 0, NULL);
111896 return 0;
111898 _ACEOF
111899 rm -f conftest.$ac_objext conftest$ac_exeext
111900 if { (ac_try="$ac_link"
111901 case "(($ac_try" in
111902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111903 *) ac_try_echo=$ac_try;;
111905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
111906 (eval "$ac_link") 2>conftest.er1
111907 ac_status=$?
111908 grep -v '^ *+' conftest.er1 >conftest.err
111909 rm -f conftest.er1
111910 cat conftest.err >&5
111911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
111912 (exit $ac_status); } && {
111913 test -z "$ac_c_werror_flag" ||
111914 test ! -s conftest.err
111915 } && test -s conftest$ac_exeext &&
111916 $as_test_x conftest$ac_exeext; then
111917 ompi_cv_func_ibv_create_cq_args=3
111919 echo "$as_me: failed program was:" >&5
111920 sed 's/^/| /' conftest.$ac_ext >&5
111922 ompi_cv_func_ibv_create_cq_args="unknown"
111925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
111926 conftest$ac_exeext conftest.$ac_ext
111929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
111930 conftest$ac_exeext conftest.$ac_ext
111932 { echo "$as_me:$LINENO: result: $ompi_cv_func_ibv_create_cq_args" >&5
111933 echo "${ECHO_T}$ompi_cv_func_ibv_create_cq_args" >&6; }
111934 if test "$ompi_cv_func_ibv_create_cq_args" = "unknown"; then
111935 { { echo "$as_me:$LINENO: error: Can not determine number of args to ibv_create_cq. Aborting" >&5
111936 echo "$as_me: error: Can not determine number of args to ibv_create_cq. Aborting" >&2;}
111937 { (exit 1); exit 1; }; }
111940 cat >>confdefs.h <<_ACEOF
111941 #define OMPI_MCA_MPOOL_OPENIB_IBV_CREATE_CQ_ARGS $ompi_cv_func_ibv_create_cq_args
111942 _ACEOF
111950 for ac_func in ibv_create_srq
111952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
111953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
111954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
111955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
111956 echo $ECHO_N "(cached) $ECHO_C" >&6
111958 cat >conftest.$ac_ext <<_ACEOF
111959 /* confdefs.h. */
111960 _ACEOF
111961 cat confdefs.h >>conftest.$ac_ext
111962 cat >>conftest.$ac_ext <<_ACEOF
111963 /* end confdefs.h. */
111964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
111965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
111966 #define $ac_func innocuous_$ac_func
111968 /* System header to define __stub macros and hopefully few prototypes,
111969 which can conflict with char $ac_func (); below.
111970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
111971 <limits.h> exists even on freestanding compilers. */
111973 #ifdef __STDC__
111974 # include <limits.h>
111975 #else
111976 # include <assert.h>
111977 #endif
111979 #undef $ac_func
111981 /* Override any GCC internal prototype to avoid an error.
111982 Use char because int might match the return type of a GCC
111983 builtin and then its argument prototype would still apply. */
111984 #ifdef __cplusplus
111985 extern "C"
111986 #endif
111987 char $ac_func ();
111988 /* The GNU C library defines this for functions which it implements
111989 to always fail with ENOSYS. Some functions are actually named
111990 something starting with __ and the normal name is an alias. */
111991 #if defined __stub_$ac_func || defined __stub___$ac_func
111992 choke me
111993 #endif
111996 main ()
111998 return $ac_func ();
112000 return 0;
112002 _ACEOF
112003 rm -f conftest.$ac_objext conftest$ac_exeext
112004 if { (ac_try="$ac_link"
112005 case "(($ac_try" in
112006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
112007 *) ac_try_echo=$ac_try;;
112009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
112010 (eval "$ac_link") 2>conftest.er1
112011 ac_status=$?
112012 grep -v '^ *+' conftest.er1 >conftest.err
112013 rm -f conftest.er1
112014 cat conftest.err >&5
112015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
112016 (exit $ac_status); } && {
112017 test -z "$ac_c_werror_flag" ||
112018 test ! -s conftest.err
112019 } && test -s conftest$ac_exeext &&
112020 $as_test_x conftest$ac_exeext; then
112021 eval "$as_ac_var=yes"
112023 echo "$as_me: failed program was:" >&5
112024 sed 's/^/| /' conftest.$ac_ext >&5
112026 eval "$as_ac_var=no"
112029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
112030 conftest$ac_exeext conftest.$ac_ext
112032 ac_res=`eval echo '${'$as_ac_var'}'`
112033 { echo "$as_me:$LINENO: result: $ac_res" >&5
112034 echo "${ECHO_T}$ac_res" >&6; }
112035 if test `eval echo '${'$as_ac_var'}'` = yes; then
112036 cat >>confdefs.h <<_ACEOF
112037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
112038 _ACEOF
112039 ompi_check_openib_have_srq=1
112041 ompi_check_openib_have_srq=0
112046 cat >>confdefs.h <<_ACEOF
112047 #define OMPI_MCA_MPOOL_OPENIB_HAVE_SRQ $ompi_check_openib_have_srq
112048 _ACEOF
112052 for ac_func in ibv_get_device_list
112054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
112055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
112056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
112057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
112058 echo $ECHO_N "(cached) $ECHO_C" >&6
112060 cat >conftest.$ac_ext <<_ACEOF
112061 /* confdefs.h. */
112062 _ACEOF
112063 cat confdefs.h >>conftest.$ac_ext
112064 cat >>conftest.$ac_ext <<_ACEOF
112065 /* end confdefs.h. */
112066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
112067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
112068 #define $ac_func innocuous_$ac_func
112070 /* System header to define __stub macros and hopefully few prototypes,
112071 which can conflict with char $ac_func (); below.
112072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
112073 <limits.h> exists even on freestanding compilers. */
112075 #ifdef __STDC__
112076 # include <limits.h>
112077 #else
112078 # include <assert.h>
112079 #endif
112081 #undef $ac_func
112083 /* Override any GCC internal prototype to avoid an error.
112084 Use char because int might match the return type of a GCC
112085 builtin and then its argument prototype would still apply. */
112086 #ifdef __cplusplus
112087 extern "C"
112088 #endif
112089 char $ac_func ();
112090 /* The GNU C library defines this for functions which it implements
112091 to always fail with ENOSYS. Some functions are actually named
112092 something starting with __ and the normal name is an alias. */
112093 #if defined __stub_$ac_func || defined __stub___$ac_func
112094 choke me
112095 #endif
112098 main ()
112100 return $ac_func ();
112102 return 0;
112104 _ACEOF
112105 rm -f conftest.$ac_objext conftest$ac_exeext
112106 if { (ac_try="$ac_link"
112107 case "(($ac_try" in
112108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
112109 *) ac_try_echo=$ac_try;;
112111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
112112 (eval "$ac_link") 2>conftest.er1
112113 ac_status=$?
112114 grep -v '^ *+' conftest.er1 >conftest.err
112115 rm -f conftest.er1
112116 cat conftest.err >&5
112117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
112118 (exit $ac_status); } && {
112119 test -z "$ac_c_werror_flag" ||
112120 test ! -s conftest.err
112121 } && test -s conftest$ac_exeext &&
112122 $as_test_x conftest$ac_exeext; then
112123 eval "$as_ac_var=yes"
112125 echo "$as_me: failed program was:" >&5
112126 sed 's/^/| /' conftest.$ac_ext >&5
112128 eval "$as_ac_var=no"
112131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
112132 conftest$ac_exeext conftest.$ac_ext
112134 ac_res=`eval echo '${'$as_ac_var'}'`
112135 { echo "$as_me:$LINENO: result: $ac_res" >&5
112136 echo "${ECHO_T}$ac_res" >&6; }
112137 if test `eval echo '${'$as_ac_var'}'` = yes; then
112138 cat >>confdefs.h <<_ACEOF
112139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
112140 _ACEOF
112141 ompi_check_openib_have_device_list=1
112143 ompi_check_openib_have_device_list=0
112148 cat >>confdefs.h <<_ACEOF
112149 #define OMPI_MCA_MPOOL_OPENIB_HAVE_DEVICE_LIST $ompi_check_openib_have_device_list
112150 _ACEOF
112153 CPPFLAGS="$ompi_check_openib_mpool_openib_save_CPPFLAGS"
112154 LDFLAGS="$ompi_check_openib_mpool_openib_save_LDFLAGS"
112155 LIBS="$ompi_check_openib_mpool_openib_save_LIBS"
112157 ompi_check_openib_happy="no"
112161 if test "$ompi_check_openib_happy" = "yes" -a "$enable_progress_threads" = "yes"; then
112162 { echo "$as_me:$LINENO: WARNING: OpenIB driver does not currently support progress threads. Disabling BTL." >&5
112163 echo "$as_me: WARNING: OpenIB driver does not currently support progress threads. Disabling BTL." >&2;}
112164 ompi_check_openib_happy="no"
112168 if test "$ompi_check_openib_happy" = "yes"; then
112169 mpool_openib_happy="yes"
112171 if test ! -z "$with_openib" -a "$with_openib" != "no"; then
112172 { { echo "$as_me:$LINENO: error: OpenIB support requested but not found. Aborting" >&5
112173 echo "$as_me: error: OpenIB support requested but not found. Aborting" >&2;}
112174 { (exit 1); exit 1; }; }
112177 mpool_openib_happy="no"
112181 mpool_openib_LDFLAGS="$mpool_openib_LDFLAGS $ompi_check_openib_libflag"
112184 if test "$mpool_openib_happy" = "yes"; then
112185 mpool_openib_WRAPPER_EXTRA_LDFLAGS="$mpool_openib_LDFLAGS"
112186 mpool_openib_WRAPPER_EXTRA_LIBS="$mpool_openib_LIBS"
112187 should_build=1
112189 should_build=0
112193 # substitute in the things needed to build openib
112202 if test "$should_build" = "1"; then
112204 project=ompi
112205 framework=mpool
112206 component=openib
112208 # See if it dropped an output file for us to pick up some
112209 # shell variables in.
112210 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
112212 # Add this subdir to the mast list of all MCA component subdirs
112213 all_components="$all_components $component"
112215 if test "$compile_mode" = "dso" ; then
112216 dso_components="$dso_components $component"
112218 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
112219 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
112220 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
112221 static_components="$static_components $component"
112224 # Output pretty results
112225 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
112226 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
112227 { echo "$as_me:$LINENO: result: yes" >&5
112228 echo "${ECHO_T}yes" >&6; }
112230 # If there's an output file, add the values to
112231 # scope_EXTRA_flags.
112232 if test -f $infile; then
112234 # First check for the ABORT tag
112235 line="`grep ABORT= $infile | cut -d= -f2-`"
112236 if test -n "$line" -a "$line" != "no"; then
112237 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
112238 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
112239 { { echo "$as_me:$LINENO: error: cannot continue" >&5
112240 echo "$as_me: error: cannot continue" >&2;}
112241 { (exit 1); exit 1; }; }
112244 # Check for flags passed up from the component. If we're
112245 # compiling statically, then take all flags passed up from the
112246 # component.
112247 if test "$compile_mode" = "static"; then
112248 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
112249 eval "line=$line"
112250 if test -n "$line"; then
112251 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
112253 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
112254 eval "line=$line"
112255 if test -n "$line"; then
112256 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
112260 if test "$DIRECT_mpool" = "$component" ; then
112261 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
112262 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
112263 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
112264 eval $str
112266 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
112267 *** does not appear to support direct calling.
112268 *** Aborting" >&5
112269 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
112270 *** does not appear to support direct calling.
112271 *** Aborting" >&2;}
112272 { (exit 1); exit 1; }; }
112276 # were we supposed to have found something in the
112277 # post_configure.sh, but the file didn't exist?
112278 if test "$DIRECT_mpool" = "$component" ; then
112279 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
112280 *** does not appear to support direct calling.
112281 *** Aborting" >&5
112282 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
112283 *** does not appear to support direct calling.
112284 *** Aborting" >&2;}
112285 { (exit 1); exit 1; }; }
112289 # now add the flags that were set in the environment variables
112290 # framework_component_FOO (for example, the flags set by
112291 # m4_configure components)
112293 # Check for flags passed up from the component. If we're
112294 # compiling statically, then take all flags passed up from the
112295 # component.
112296 if test "$compile_mode" = "static"; then
112297 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
112298 eval "$str"
112299 if test -n "$line" ; then
112300 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
112302 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
112303 eval "$str"
112304 if test -n "$line" ; then
112305 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
112311 { echo "$as_me:$LINENO: checking if MCA component mpool:openib can compile" >&5
112312 echo $ECHO_N "checking if MCA component mpool:openib can compile... $ECHO_C" >&6; }
112313 { echo "$as_me:$LINENO: result: no" >&5
112314 echo "${ECHO_T}no" >&6; }
112316 # If this component was requested as the default for this
112317 # type, then abort.
112318 if test "$with_mpool" = "openib" ; then
112319 { echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5
112320 echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;}
112321 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
112322 echo "$as_me: WARNING: This component was selected as the default" >&2;}
112323 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
112324 echo "$as_me: error: Cannot continue" >&2;}
112325 { (exit 1); exit 1; }; }
112326 exit 1
112329 if test ! -z "$DIRECT_mpool" ; then
112330 if test "$DIRECT_mpool" = "openib" ; then
112331 { echo "$as_me:$LINENO: WARNING: MCA component \"openib\" failed to configure properly" >&5
112332 echo "$as_me: WARNING: MCA component \"openib\" failed to configure properly" >&2;}
112333 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
112334 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
112335 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
112336 echo "$as_me: error: Cannot continue" >&2;}
112337 { (exit 1); exit 1; }; }
112338 exit 1
112342 # add component to all component list
112343 all_components="$all_components openib"
112347 # set the AM_CONDITIONAL on how we should build
112348 if test "$compile_mode" = "dso"; then
112349 BUILD_mpool_openib_DSO=1
112351 BUILD_mpool_openib_DSO=0
112356 if test "$BUILD_mpool_openib_DSO" = "1"; then
112357 OMPI_BUILD_mpool_openib_DSO_TRUE=
112358 OMPI_BUILD_mpool_openib_DSO_FALSE='#'
112360 OMPI_BUILD_mpool_openib_DSO_TRUE='#'
112361 OMPI_BUILD_mpool_openib_DSO_FALSE=
112365 if test "$should_build" = "1"; then
112366 components_looking_for_succeed="$happy_value"
112370 unset compile_mode
112373 # configure components that provide their own configure script.
112374 # It would be really hard to run these for "find first that
112375 # works", so we don't :)
112376 if test "$happy_value" = "1"; then
112378 for component_path in $srcdir/ompi/mca/mpool/* ; do
112379 component="`basename $component_path`"
112380 if test -d $component_path -a -x $component_path/configure ; then
112381 ompi_show_subsubsubtitle "MCA component mpool:$component (need to configure)"
112384 project=ompi
112385 framework=mpool
112386 component=$component
112387 component_path="$srcdir/$project/mca/$framework/$component"
112388 want_component=0
112390 # build if:
112391 # - the component type is direct and we are that component
112392 # - there is no ompi_ignore file
112393 # - there is an ompi_ignore, but there is an empty ompi_unignore
112394 # - there is an ompi_ignore, but username is in ompi_unignore
112395 if test -d $component_path ; then
112396 # decide if we want the component to be built or not. This
112397 # is spread out because some of the logic is a little complex
112398 # and test's syntax isn't exactly the greatest. We want to
112399 # build the component by default.
112400 want_component=1
112401 if test -f $component_path/.ompi_ignore ; then
112402 # If there is an ompi_ignore file, don't build
112403 # the component. Note that this decision can be
112404 # overriden by the unignore logic below.
112405 want_component=0
112407 if test -f $component_path/.ompi_unignore ; then
112408 # if there is an empty ompi_unignore, that is
112409 # equivalent to having your userid in the unignore file.
112410 # If userid is in the file, unignore the ignore file.
112411 if test ! -s $component_path/.ompi_unignore ; then
112412 want_component=1
112413 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
112414 want_component=1
112417 # if this component type is direct and we are not it, we don't want
112418 # to be built. Otherwise, we do want to be built.
112419 if test ! -z "$DIRECT_mpool" ; then
112420 if test "$DIRECT_mpool" = "$component" ; then
112421 want_component=1
112423 want_component=0
112428 # if we were explicitly disabled, don't build :)
112429 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
112430 eval $str
112431 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
112432 want_component=0
112435 if test "$want_component" = "1"; then
112436 should_build=1
112438 should_build=0
112443 project=ompi
112444 framework=mpool
112445 component=$component
112447 # Is this component going to built staic or shared? $component
112448 # might not be known until configure time, so have to use eval
112449 # tricks - can't set variable names at autogen time.
112450 str="SHARED_FRAMEWORK=\$DSO_$framework"
112451 eval $str
112452 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
112453 eval $str
112455 str="STATIC_FRAMEWORK=\$STATIC_$framework"
112456 eval $str
112457 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
112458 eval $str
112460 shared_mode_override=static
112462 # Setup for either shared or static
112463 if test "$STATIC_FRAMEWORK" = "1" -o \
112464 "$STATIC_COMPONENT" = "1" -o \
112465 "$STATIC_all" = "1" ; then
112466 compile_mode="static"
112467 elif test "$shared_mode_override" = "dso" -o \
112468 "$SHARED_FRAMEWORK" = "1" -o \
112469 "$SHARED_COMPONENT" = "1" -o \
112470 "$DSO_all" = "1"; then
112471 compile_mode="dso"
112473 compile_mode="static"
112476 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
112477 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
112478 if test "$DIRECT_mpool" = "$component" ; then
112479 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
112480 echo "${ECHO_T}$compile_mode - direct" >&6; }
112482 { echo "$as_me:$LINENO: result: $compile_mode" >&5
112483 echo "${ECHO_T}$compile_mode" >&6; }
112487 if test "$should_build" = "1" ; then
112490 # Invoke configure in a specific subdirectory.
112492 # ompi/mca/mpool/$component is the directory to invoke in
112493 # $ompi_subdir_args is the list of arguments to pass
112494 # should_build=1 is actions to execute upon success
112495 # should_build=2 is actions to execute upon failure
112497 subdir_dir="ompi/mca/mpool/$component"
112498 subdir_args="$ompi_subdir_args"
112499 subdir_success="should_build=1"
112500 subdir_failure="should_build=2"
112503 # Sanity checks
112506 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
112507 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
112508 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
112511 # Gotta check where srcdir is for VPATH builds. If srcdir is not
112512 # ., then we need to mkdir the subdir. Otherwise, we can just cd
112513 # into it.
112516 case $srcdir in
112520 { case $subdir_dir in
112521 [\\/]* | ?:[\\/]* ) total_dir=;;
112522 *) total_dir=.;;
112524 temp=$subdir_dir
112525 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
112526 case $dir_part in
112527 # Skip DOS drivespec
112528 ?:) total_dir=$dir_part ;;
112529 *) total_dir=$total_dir/$dir_part
112530 test -d "$total_dir" ||
112531 mkdir "$total_dir" ||
112532 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
112533 echo "$as_me: error: cannot create $subdir_dir" >&2;}
112534 { (exit 1); exit 1; }; }
112537 done; }
112539 if test -d ./$subdir_dir; then :;
112541 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
112542 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
112543 { (exit 1); exit 1; }; }
112549 # Move into the target directory
112552 subdir_parent=`pwd`
112553 cd $subdir_dir
112556 # Make a "../" for each directory in $subdir_dir.
112559 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
112561 # Construct the --srcdir argument
112564 case $srcdir in
112566 # In place
112567 subdir_srcdir="$srcdir"
112569 [\\/]* | ?:[\\/]* )
112570 # Absolute path
112571 subdir_srcdir="$srcdir/$subdir_dir"
112574 # Relative path
112575 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
112580 # Construct the --cache-file argument
112583 # BWB - subdir caching is a pain since we change CFLAGS and all that.
112584 # Just disable it for now
112585 subdir_cache_file="/dev/null"
112588 # Invoke the configure script in the subdirectory
112591 export CFLAGS CPPFLAGS
112592 export CXXFLAGS CXXCPPFLAGS
112593 export FFLAGS
112594 export LDFLAGS LIBS
112595 sub_configure="$SHELL '$subdir_srcdir/configure'"
112596 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
112597 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
112598 eval "$sub_configure $subdir_args \
112599 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
112600 if test "$?" = "0"; then
112601 eval $subdir_success
112602 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
112603 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
112605 eval $subdir_failure
112606 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
112607 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
112611 # Go back to the topdir
112614 cd $subdir_parent
112618 # Clean up
112621 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
112622 unset subdir_args subdir_dots total_dir dir_part temp
112625 if test "$should_build" = "1" ; then
112627 project=ompi
112628 framework=mpool
112629 component=$component
112631 # See if it dropped an output file for us to pick up some
112632 # shell variables in.
112633 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
112635 # Add this subdir to the mast list of all MCA component subdirs
112636 all_components="$all_components $component"
112638 if test "$compile_mode" = "dso" ; then
112639 dso_components="$dso_components $component"
112641 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
112642 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
112643 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
112644 static_components="$static_components $component"
112647 # Output pretty results
112648 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
112649 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
112650 { echo "$as_me:$LINENO: result: yes" >&5
112651 echo "${ECHO_T}yes" >&6; }
112653 # If there's an output file, add the values to
112654 # scope_EXTRA_flags.
112655 if test -f $infile; then
112657 # First check for the ABORT tag
112658 line="`grep ABORT= $infile | cut -d= -f2-`"
112659 if test -n "$line" -a "$line" != "no"; then
112660 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
112661 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
112662 { { echo "$as_me:$LINENO: error: cannot continue" >&5
112663 echo "$as_me: error: cannot continue" >&2;}
112664 { (exit 1); exit 1; }; }
112667 # Check for flags passed up from the component. If we're
112668 # compiling statically, then take all flags passed up from the
112669 # component.
112670 if test "$compile_mode" = "static"; then
112671 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
112672 eval "line=$line"
112673 if test -n "$line"; then
112674 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
112676 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
112677 eval "line=$line"
112678 if test -n "$line"; then
112679 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
112683 if test "$DIRECT_mpool" = "$component" ; then
112684 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
112685 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
112686 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
112687 eval $str
112689 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
112690 *** does not appear to support direct calling.
112691 *** Aborting" >&5
112692 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
112693 *** does not appear to support direct calling.
112694 *** Aborting" >&2;}
112695 { (exit 1); exit 1; }; }
112699 # were we supposed to have found something in the
112700 # post_configure.sh, but the file didn't exist?
112701 if test "$DIRECT_mpool" = "$component" ; then
112702 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
112703 *** does not appear to support direct calling.
112704 *** Aborting" >&5
112705 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
112706 *** does not appear to support direct calling.
112707 *** Aborting" >&2;}
112708 { (exit 1); exit 1; }; }
112712 # now add the flags that were set in the environment variables
112713 # framework_component_FOO (for example, the flags set by
112714 # m4_configure components)
112716 # Check for flags passed up from the component. If we're
112717 # compiling statically, then take all flags passed up from the
112718 # component.
112719 if test "$compile_mode" = "static"; then
112720 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
112721 eval "$str"
112722 if test -n "$line" ; then
112723 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
112725 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
112726 eval "$str"
112727 if test -n "$line" ; then
112728 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
112734 { echo "$as_me:$LINENO: checking if MCA component mpool:$component can compile" >&5
112735 echo $ECHO_N "checking if MCA component mpool:$component can compile... $ECHO_C" >&6; }
112736 { echo "$as_me:$LINENO: result: no" >&5
112737 echo "${ECHO_T}no" >&6; }
112739 # If this component was requested as the default for this
112740 # type, then abort.
112741 if test "$with_mpool" = "$component" ; then
112742 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
112743 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
112744 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
112745 echo "$as_me: WARNING: This component was selected as the default" >&2;}
112746 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
112747 echo "$as_me: error: Cannot continue" >&2;}
112748 { (exit 1); exit 1; }; }
112749 exit 1
112752 if test ! -z "$DIRECT_mpool" ; then
112753 if test "$DIRECT_mpool" = "$component" ; then
112754 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
112755 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
112756 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
112757 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
112758 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
112759 echo "$as_me: error: Cannot continue" >&2;}
112760 { (exit 1); exit 1; }; }
112761 exit 1
112772 MCA_mpool_ALL_COMPONENTS="$all_components"
112773 MCA_mpool_STATIC_COMPONENTS="$static_components"
112774 MCA_mpool_DSO_COMPONENTS="$dso_components"
112775 MCA_mpool_STATIC_LTLIBS="$static_ltlibs"
112783 MCA_mpool_ALL_SUBDIRS=
112784 for item in $all_components ; do
112785 MCA_mpool_ALL_SUBDIRS="$MCA_mpool_ALL_SUBDIRS mca/mpool/$item"
112790 MCA_mpool_STATIC_SUBDIRS=
112791 for item in $static_components ; do
112792 MCA_mpool_STATIC_SUBDIRS="$MCA_mpool_STATIC_SUBDIRS mca/mpool/$item"
112797 MCA_mpool_DSO_SUBDIRS=
112798 for item in $dso_components ; do
112799 MCA_mpool_DSO_SUBDIRS="$MCA_mpool_DSO_SUBDIRS mca/mpool/$item"
112804 # add all the makefiles for the framework to the CONFIG_FILES.
112805 # Don't add common/base, since it doesn't exist
112806 ac_config_files="$ac_config_files ompi/mca/mpool/Makefile"
112809 # Create the final .h file that will be included in the type's
112810 # top-level glue. This lists all the static components. We don't
112811 # need to do this for "common".
112812 if test "mpool" != "common"; then
112813 cat > $outfile <<EOF
112815 * \$HEADER\$
112818 `cat $outfile.extern`
112820 const mca_base_component_t *mca_mpool_base_static_components[] = {
112821 `cat $outfile.struct`
112825 # Only replace the header file if a) it doesn't previously
112826 # exist, or b) the contents are different. Do this to not
112827 # trigger recompilation of certain .c files just because the
112828 # timestamp changed on $outfile_real (similar to the way AC
112829 # handles AC_CONFIG_HEADER files).
112830 diff $outfile $outfile_real > /dev/null 2>&1
112831 if test "$?" != "0"; then
112832 mv $outfile $outfile_real
112834 rm -f $outfile
112837 rm -f $outfile.struct $outfile.extern
112839 unset all_components static_components dso_components outfile outfile_real
112840 # common has to go up front
112841 if test "osc" = "common" ; then
112842 MCA_ompi_FRAMEWORKS="osc $MCA_ompi_FRAMEWORKS"
112843 MCA_ompi_FRAMEWORKS_SUBDIRS="mca/osc $MCA_ompi_FRAMEWORKS_SUBDIRS"
112844 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_osc_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
112845 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_osc_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
112846 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_osc_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
112848 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS osc"
112849 MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/osc"
112850 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_osc_ALL_SUBDIRS)"
112851 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_osc_DSO_SUBDIRS)"
112852 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_osc_STATIC_SUBDIRS)"
112854 if test "osc" != "common" ; then
112855 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/osc/libmca_osc.la"
112857 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_osc_STATIC_LTLIBS)"
112859 ompi_show_subsubtitle "Configuring MCA framework osc"
112861 # setup for framework
112862 all_components=
112863 static_components=
112864 dso_components=
112865 static_ltlibs=
112867 # Ensure that the directory where the #include file is to live
112868 # exists. Need to do this for VPATH builds, because the directory
112869 # may not exist yet. For the "common" type, it's not really a
112870 # component, so it doesn't have a base.
112871 if test "osc" = "common" ; then
112872 outdir=ompi/mca/common
112874 outdir=ompi/mca/osc/base
112876 { as_dir=$outdir
112877 case $as_dir in #(
112878 -*) as_dir=./$as_dir;;
112880 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
112881 as_dirs=
112882 while :; do
112883 case $as_dir in #(
112884 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
112885 *) as_qdir=$as_dir;;
112887 as_dirs="'$as_qdir' $as_dirs"
112888 as_dir=`$as_dirname -- "$as_dir" ||
112889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
112890 X"$as_dir" : 'X\(//\)[^/]' \| \
112891 X"$as_dir" : 'X\(//\)$' \| \
112892 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
112893 echo X"$as_dir" |
112894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
112895 s//\1/
112898 /^X\(\/\/\)[^/].*/{
112899 s//\1/
112902 /^X\(\/\/\)$/{
112903 s//\1/
112906 /^X\(\/\).*/{
112907 s//\1/
112910 s/.*/./; q'`
112911 test -d "$as_dir" && break
112913 test -z "$as_dirs" || eval "mkdir $as_dirs"
112914 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
112915 echo "$as_me: error: cannot create directory $as_dir" >&2;}
112916 { (exit 1); exit 1; }; }; }
112918 # remove any previously generated #include files
112919 outfile_real=$outdir/static-components.h
112920 outfile=$outfile_real.new
112921 rm -f $outfile $outfile.struct $outfile.extern
112922 touch $outfile.struct $outfile.extern
112924 # print some nice messages about what we're about to do...
112925 { echo "$as_me:$LINENO: checking for no configure components in framework osc" >&5
112926 echo $ECHO_N "checking for no configure components in framework osc... $ECHO_C" >&6; }
112927 { echo "$as_me:$LINENO: result: pt2pt" >&5
112928 echo "${ECHO_T}pt2pt" >&6; }
112929 { echo "$as_me:$LINENO: checking for m4 configure components in framework osc" >&5
112930 echo $ECHO_N "checking for m4 configure components in framework osc... $ECHO_C" >&6; }
112931 { echo "$as_me:$LINENO: result: " >&5
112932 echo "${ECHO_T}" >&6; }
112934 # if we only want the first successful component, set the variable
112935 # happy_value to 0 so we stop on first assignment. Otherwise, set
112936 # it to zero so that components_looking_for_succeed is always 1
112937 happy_value=1
112939 components_looking_for_succeed=1
112941 # configure components that don't have any component-specific
112942 # configuration. See comment in CONFIGURE_PROJECT about the
112943 # m4_ifval
112944 # if there isn't a component list, abort
112947 ompi_show_subsubsubtitle "MCA component osc:pt2pt (no configuration)"
112950 project=ompi
112951 framework=osc
112952 component=pt2pt
112953 component_path="$srcdir/$project/mca/$framework/$component"
112954 want_component=0
112956 # build if:
112957 # - the component type is direct and we are that component
112958 # - there is no ompi_ignore file
112959 # - there is an ompi_ignore, but there is an empty ompi_unignore
112960 # - there is an ompi_ignore, but username is in ompi_unignore
112961 if test -d $component_path ; then
112962 # decide if we want the component to be built or not. This
112963 # is spread out because some of the logic is a little complex
112964 # and test's syntax isn't exactly the greatest. We want to
112965 # build the component by default.
112966 want_component=1
112967 if test -f $component_path/.ompi_ignore ; then
112968 # If there is an ompi_ignore file, don't build
112969 # the component. Note that this decision can be
112970 # overriden by the unignore logic below.
112971 want_component=0
112973 if test -f $component_path/.ompi_unignore ; then
112974 # if there is an empty ompi_unignore, that is
112975 # equivalent to having your userid in the unignore file.
112976 # If userid is in the file, unignore the ignore file.
112977 if test ! -s $component_path/.ompi_unignore ; then
112978 want_component=1
112979 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
112980 want_component=1
112983 # if this component type is direct and we are not it, we don't want
112984 # to be built. Otherwise, we do want to be built.
112985 if test ! -z "$DIRECT_osc" ; then
112986 if test "$DIRECT_osc" = "$component" ; then
112987 want_component=1
112989 want_component=0
112994 # if we were explicitly disabled, don't build :)
112995 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
112996 eval $str
112997 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
112998 want_component=0
113001 if test "$want_component" = "1"; then
113002 should_build=$components_looking_for_succeed
113004 should_build=0
113009 project=ompi
113010 framework=osc
113011 component=pt2pt
113013 # Is this component going to built staic or shared? $component
113014 # might not be known until configure time, so have to use eval
113015 # tricks - can't set variable names at autogen time.
113016 str="SHARED_FRAMEWORK=\$DSO_$framework"
113017 eval $str
113018 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
113019 eval $str
113021 str="STATIC_FRAMEWORK=\$STATIC_$framework"
113022 eval $str
113023 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
113024 eval $str
113026 shared_mode_override=static
113028 # Setup for either shared or static
113029 if test "$STATIC_FRAMEWORK" = "1" -o \
113030 "$STATIC_COMPONENT" = "1" -o \
113031 "$STATIC_all" = "1" ; then
113032 compile_mode="static"
113033 elif test "$shared_mode_override" = "dso" -o \
113034 "$SHARED_FRAMEWORK" = "1" -o \
113035 "$SHARED_COMPONENT" = "1" -o \
113036 "$DSO_all" = "1"; then
113037 compile_mode="dso"
113039 compile_mode="static"
113042 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
113043 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
113044 if test "$DIRECT_osc" = "$component" ; then
113045 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
113046 echo "${ECHO_T}$compile_mode - direct" >&6; }
113048 { echo "$as_me:$LINENO: result: $compile_mode" >&5
113049 echo "${ECHO_T}$compile_mode" >&6; }
113053 if test "$should_build" = "1" ; then
113055 project=ompi
113056 framework=osc
113057 component=pt2pt
113059 # See if it dropped an output file for us to pick up some
113060 # shell variables in.
113061 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
113063 # Add this subdir to the mast list of all MCA component subdirs
113064 all_components="$all_components $component"
113066 if test "$compile_mode" = "dso" ; then
113067 dso_components="$dso_components $component"
113069 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
113070 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
113071 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
113072 static_components="$static_components $component"
113075 # Output pretty results
113076 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
113077 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
113078 { echo "$as_me:$LINENO: result: yes" >&5
113079 echo "${ECHO_T}yes" >&6; }
113081 # If there's an output file, add the values to
113082 # scope_EXTRA_flags.
113083 if test -f $infile; then
113085 # First check for the ABORT tag
113086 line="`grep ABORT= $infile | cut -d= -f2-`"
113087 if test -n "$line" -a "$line" != "no"; then
113088 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
113089 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
113090 { { echo "$as_me:$LINENO: error: cannot continue" >&5
113091 echo "$as_me: error: cannot continue" >&2;}
113092 { (exit 1); exit 1; }; }
113095 # Check for flags passed up from the component. If we're
113096 # compiling statically, then take all flags passed up from the
113097 # component.
113098 if test "$compile_mode" = "static"; then
113099 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
113100 eval "line=$line"
113101 if test -n "$line"; then
113102 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
113104 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
113105 eval "line=$line"
113106 if test -n "$line"; then
113107 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
113111 if test "$DIRECT_osc" = "$component" ; then
113112 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
113113 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
113114 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
113115 eval $str
113117 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
113118 *** does not appear to support direct calling.
113119 *** Aborting" >&5
113120 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
113121 *** does not appear to support direct calling.
113122 *** Aborting" >&2;}
113123 { (exit 1); exit 1; }; }
113127 # were we supposed to have found something in the
113128 # post_configure.sh, but the file didn't exist?
113129 if test "$DIRECT_osc" = "$component" ; then
113130 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
113131 *** does not appear to support direct calling.
113132 *** Aborting" >&5
113133 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
113134 *** does not appear to support direct calling.
113135 *** Aborting" >&2;}
113136 { (exit 1); exit 1; }; }
113140 # now add the flags that were set in the environment variables
113141 # framework_component_FOO (for example, the flags set by
113142 # m4_configure components)
113144 # Check for flags passed up from the component. If we're
113145 # compiling statically, then take all flags passed up from the
113146 # component.
113147 if test "$compile_mode" = "static"; then
113148 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
113149 eval "$str"
113150 if test -n "$line" ; then
113151 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
113153 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
113154 eval "$str"
113155 if test -n "$line" ; then
113156 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
113162 { echo "$as_me:$LINENO: checking if MCA component osc:pt2pt can compile" >&5
113163 echo $ECHO_N "checking if MCA component osc:pt2pt can compile... $ECHO_C" >&6; }
113164 { echo "$as_me:$LINENO: result: no" >&5
113165 echo "${ECHO_T}no" >&6; }
113167 # If this component was requested as the default for this
113168 # type, then abort.
113169 if test "$with_osc" = "pt2pt" ; then
113170 { echo "$as_me:$LINENO: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5
113171 echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;}
113172 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
113173 echo "$as_me: WARNING: This component was selected as the default" >&2;}
113174 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
113175 echo "$as_me: error: Cannot continue" >&2;}
113176 { (exit 1); exit 1; }; }
113177 exit 1
113180 if test ! -z "$DIRECT_osc" ; then
113181 if test "$DIRECT_osc" = "pt2pt" ; then
113182 { echo "$as_me:$LINENO: WARNING: MCA component \"pt2pt\" failed to configure properly" >&5
113183 echo "$as_me: WARNING: MCA component \"pt2pt\" failed to configure properly" >&2;}
113184 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
113185 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
113186 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
113187 echo "$as_me: error: Cannot continue" >&2;}
113188 { (exit 1); exit 1; }; }
113189 exit 1
113193 # add component to all component list
113194 all_components="$all_components pt2pt"
113197 # set the AM_CONDITIONAL on how we should build
113198 if test "$compile_mode" = "dso" ; then
113199 BUILD_osc_pt2pt_DSO=1
113201 BUILD_osc_pt2pt_DSO=0
113205 if test "$BUILD_osc_pt2pt_DSO" = "1"; then
113206 OMPI_BUILD_osc_pt2pt_DSO_TRUE=
113207 OMPI_BUILD_osc_pt2pt_DSO_FALSE='#'
113209 OMPI_BUILD_osc_pt2pt_DSO_TRUE='#'
113210 OMPI_BUILD_osc_pt2pt_DSO_FALSE=
113214 unset compile_mode
113217 # configure components that use built-in configuration scripts
113218 # see comment in CONFIGURE_PROJECT about the m4_ifval
113219 # if there isn't a component list, abort
113223 # configure components that provide their own configure script.
113224 # It would be really hard to run these for "find first that
113225 # works", so we don't :)
113226 if test "$happy_value" = "1"; then
113228 for component_path in $srcdir/ompi/mca/osc/* ; do
113229 component="`basename $component_path`"
113230 if test -d $component_path -a -x $component_path/configure ; then
113231 ompi_show_subsubsubtitle "MCA component osc:$component (need to configure)"
113234 project=ompi
113235 framework=osc
113236 component=$component
113237 component_path="$srcdir/$project/mca/$framework/$component"
113238 want_component=0
113240 # build if:
113241 # - the component type is direct and we are that component
113242 # - there is no ompi_ignore file
113243 # - there is an ompi_ignore, but there is an empty ompi_unignore
113244 # - there is an ompi_ignore, but username is in ompi_unignore
113245 if test -d $component_path ; then
113246 # decide if we want the component to be built or not. This
113247 # is spread out because some of the logic is a little complex
113248 # and test's syntax isn't exactly the greatest. We want to
113249 # build the component by default.
113250 want_component=1
113251 if test -f $component_path/.ompi_ignore ; then
113252 # If there is an ompi_ignore file, don't build
113253 # the component. Note that this decision can be
113254 # overriden by the unignore logic below.
113255 want_component=0
113257 if test -f $component_path/.ompi_unignore ; then
113258 # if there is an empty ompi_unignore, that is
113259 # equivalent to having your userid in the unignore file.
113260 # If userid is in the file, unignore the ignore file.
113261 if test ! -s $component_path/.ompi_unignore ; then
113262 want_component=1
113263 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
113264 want_component=1
113267 # if this component type is direct and we are not it, we don't want
113268 # to be built. Otherwise, we do want to be built.
113269 if test ! -z "$DIRECT_osc" ; then
113270 if test "$DIRECT_osc" = "$component" ; then
113271 want_component=1
113273 want_component=0
113278 # if we were explicitly disabled, don't build :)
113279 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
113280 eval $str
113281 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
113282 want_component=0
113285 if test "$want_component" = "1"; then
113286 should_build=1
113288 should_build=0
113293 project=ompi
113294 framework=osc
113295 component=$component
113297 # Is this component going to built staic or shared? $component
113298 # might not be known until configure time, so have to use eval
113299 # tricks - can't set variable names at autogen time.
113300 str="SHARED_FRAMEWORK=\$DSO_$framework"
113301 eval $str
113302 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
113303 eval $str
113305 str="STATIC_FRAMEWORK=\$STATIC_$framework"
113306 eval $str
113307 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
113308 eval $str
113310 shared_mode_override=static
113312 # Setup for either shared or static
113313 if test "$STATIC_FRAMEWORK" = "1" -o \
113314 "$STATIC_COMPONENT" = "1" -o \
113315 "$STATIC_all" = "1" ; then
113316 compile_mode="static"
113317 elif test "$shared_mode_override" = "dso" -o \
113318 "$SHARED_FRAMEWORK" = "1" -o \
113319 "$SHARED_COMPONENT" = "1" -o \
113320 "$DSO_all" = "1"; then
113321 compile_mode="dso"
113323 compile_mode="static"
113326 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
113327 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
113328 if test "$DIRECT_osc" = "$component" ; then
113329 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
113330 echo "${ECHO_T}$compile_mode - direct" >&6; }
113332 { echo "$as_me:$LINENO: result: $compile_mode" >&5
113333 echo "${ECHO_T}$compile_mode" >&6; }
113337 if test "$should_build" = "1" ; then
113340 # Invoke configure in a specific subdirectory.
113342 # ompi/mca/osc/$component is the directory to invoke in
113343 # $ompi_subdir_args is the list of arguments to pass
113344 # should_build=1 is actions to execute upon success
113345 # should_build=2 is actions to execute upon failure
113347 subdir_dir="ompi/mca/osc/$component"
113348 subdir_args="$ompi_subdir_args"
113349 subdir_success="should_build=1"
113350 subdir_failure="should_build=2"
113353 # Sanity checks
113356 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
113357 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
113358 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
113361 # Gotta check where srcdir is for VPATH builds. If srcdir is not
113362 # ., then we need to mkdir the subdir. Otherwise, we can just cd
113363 # into it.
113366 case $srcdir in
113370 { case $subdir_dir in
113371 [\\/]* | ?:[\\/]* ) total_dir=;;
113372 *) total_dir=.;;
113374 temp=$subdir_dir
113375 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
113376 case $dir_part in
113377 # Skip DOS drivespec
113378 ?:) total_dir=$dir_part ;;
113379 *) total_dir=$total_dir/$dir_part
113380 test -d "$total_dir" ||
113381 mkdir "$total_dir" ||
113382 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
113383 echo "$as_me: error: cannot create $subdir_dir" >&2;}
113384 { (exit 1); exit 1; }; }
113387 done; }
113389 if test -d ./$subdir_dir; then :;
113391 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
113392 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
113393 { (exit 1); exit 1; }; }
113399 # Move into the target directory
113402 subdir_parent=`pwd`
113403 cd $subdir_dir
113406 # Make a "../" for each directory in $subdir_dir.
113409 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
113411 # Construct the --srcdir argument
113414 case $srcdir in
113416 # In place
113417 subdir_srcdir="$srcdir"
113419 [\\/]* | ?:[\\/]* )
113420 # Absolute path
113421 subdir_srcdir="$srcdir/$subdir_dir"
113424 # Relative path
113425 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
113430 # Construct the --cache-file argument
113433 # BWB - subdir caching is a pain since we change CFLAGS and all that.
113434 # Just disable it for now
113435 subdir_cache_file="/dev/null"
113438 # Invoke the configure script in the subdirectory
113441 export CFLAGS CPPFLAGS
113442 export CXXFLAGS CXXCPPFLAGS
113443 export FFLAGS
113444 export LDFLAGS LIBS
113445 sub_configure="$SHELL '$subdir_srcdir/configure'"
113446 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
113447 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
113448 eval "$sub_configure $subdir_args \
113449 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
113450 if test "$?" = "0"; then
113451 eval $subdir_success
113452 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
113453 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
113455 eval $subdir_failure
113456 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
113457 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
113461 # Go back to the topdir
113464 cd $subdir_parent
113468 # Clean up
113471 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
113472 unset subdir_args subdir_dots total_dir dir_part temp
113475 if test "$should_build" = "1" ; then
113477 project=ompi
113478 framework=osc
113479 component=$component
113481 # See if it dropped an output file for us to pick up some
113482 # shell variables in.
113483 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
113485 # Add this subdir to the mast list of all MCA component subdirs
113486 all_components="$all_components $component"
113488 if test "$compile_mode" = "dso" ; then
113489 dso_components="$dso_components $component"
113491 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
113492 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
113493 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
113494 static_components="$static_components $component"
113497 # Output pretty results
113498 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
113499 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
113500 { echo "$as_me:$LINENO: result: yes" >&5
113501 echo "${ECHO_T}yes" >&6; }
113503 # If there's an output file, add the values to
113504 # scope_EXTRA_flags.
113505 if test -f $infile; then
113507 # First check for the ABORT tag
113508 line="`grep ABORT= $infile | cut -d= -f2-`"
113509 if test -n "$line" -a "$line" != "no"; then
113510 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
113511 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
113512 { { echo "$as_me:$LINENO: error: cannot continue" >&5
113513 echo "$as_me: error: cannot continue" >&2;}
113514 { (exit 1); exit 1; }; }
113517 # Check for flags passed up from the component. If we're
113518 # compiling statically, then take all flags passed up from the
113519 # component.
113520 if test "$compile_mode" = "static"; then
113521 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
113522 eval "line=$line"
113523 if test -n "$line"; then
113524 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
113526 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
113527 eval "line=$line"
113528 if test -n "$line"; then
113529 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
113533 if test "$DIRECT_osc" = "$component" ; then
113534 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
113535 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
113536 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
113537 eval $str
113539 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
113540 *** does not appear to support direct calling.
113541 *** Aborting" >&5
113542 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
113543 *** does not appear to support direct calling.
113544 *** Aborting" >&2;}
113545 { (exit 1); exit 1; }; }
113549 # were we supposed to have found something in the
113550 # post_configure.sh, but the file didn't exist?
113551 if test "$DIRECT_osc" = "$component" ; then
113552 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
113553 *** does not appear to support direct calling.
113554 *** Aborting" >&5
113555 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
113556 *** does not appear to support direct calling.
113557 *** Aborting" >&2;}
113558 { (exit 1); exit 1; }; }
113562 # now add the flags that were set in the environment variables
113563 # framework_component_FOO (for example, the flags set by
113564 # m4_configure components)
113566 # Check for flags passed up from the component. If we're
113567 # compiling statically, then take all flags passed up from the
113568 # component.
113569 if test "$compile_mode" = "static"; then
113570 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
113571 eval "$str"
113572 if test -n "$line" ; then
113573 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
113575 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
113576 eval "$str"
113577 if test -n "$line" ; then
113578 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
113584 { echo "$as_me:$LINENO: checking if MCA component osc:$component can compile" >&5
113585 echo $ECHO_N "checking if MCA component osc:$component can compile... $ECHO_C" >&6; }
113586 { echo "$as_me:$LINENO: result: no" >&5
113587 echo "${ECHO_T}no" >&6; }
113589 # If this component was requested as the default for this
113590 # type, then abort.
113591 if test "$with_osc" = "$component" ; then
113592 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
113593 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
113594 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
113595 echo "$as_me: WARNING: This component was selected as the default" >&2;}
113596 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
113597 echo "$as_me: error: Cannot continue" >&2;}
113598 { (exit 1); exit 1; }; }
113599 exit 1
113602 if test ! -z "$DIRECT_osc" ; then
113603 if test "$DIRECT_osc" = "$component" ; then
113604 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
113605 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
113606 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
113607 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
113608 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
113609 echo "$as_me: error: Cannot continue" >&2;}
113610 { (exit 1); exit 1; }; }
113611 exit 1
113622 MCA_osc_ALL_COMPONENTS="$all_components"
113623 MCA_osc_STATIC_COMPONENTS="$static_components"
113624 MCA_osc_DSO_COMPONENTS="$dso_components"
113625 MCA_osc_STATIC_LTLIBS="$static_ltlibs"
113633 MCA_osc_ALL_SUBDIRS=
113634 for item in $all_components ; do
113635 MCA_osc_ALL_SUBDIRS="$MCA_osc_ALL_SUBDIRS mca/osc/$item"
113640 MCA_osc_STATIC_SUBDIRS=
113641 for item in $static_components ; do
113642 MCA_osc_STATIC_SUBDIRS="$MCA_osc_STATIC_SUBDIRS mca/osc/$item"
113647 MCA_osc_DSO_SUBDIRS=
113648 for item in $dso_components ; do
113649 MCA_osc_DSO_SUBDIRS="$MCA_osc_DSO_SUBDIRS mca/osc/$item"
113654 # add all the makefiles for the framework to the CONFIG_FILES.
113655 # Don't add common/base, since it doesn't exist
113656 ac_config_files="$ac_config_files ompi/mca/osc/Makefile"
113659 # Create the final .h file that will be included in the type's
113660 # top-level glue. This lists all the static components. We don't
113661 # need to do this for "common".
113662 if test "osc" != "common"; then
113663 cat > $outfile <<EOF
113665 * \$HEADER\$
113668 `cat $outfile.extern`
113670 const mca_base_component_t *mca_osc_base_static_components[] = {
113671 `cat $outfile.struct`
113675 # Only replace the header file if a) it doesn't previously
113676 # exist, or b) the contents are different. Do this to not
113677 # trigger recompilation of certain .c files just because the
113678 # timestamp changed on $outfile_real (similar to the way AC
113679 # handles AC_CONFIG_HEADER files).
113680 diff $outfile $outfile_real > /dev/null 2>&1
113681 if test "$?" != "0"; then
113682 mv $outfile $outfile_real
113684 rm -f $outfile
113687 rm -f $outfile.struct $outfile.extern
113689 unset all_components static_components dso_components outfile outfile_real
113690 # common has to go up front
113691 if test "pml" = "common" ; then
113692 MCA_ompi_FRAMEWORKS="pml $MCA_ompi_FRAMEWORKS"
113693 MCA_ompi_FRAMEWORKS_SUBDIRS="mca/pml $MCA_ompi_FRAMEWORKS_SUBDIRS"
113694 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pml_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
113695 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pml_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
113696 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pml_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
113698 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS pml"
113699 MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/pml"
113700 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pml_ALL_SUBDIRS)"
113701 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pml_DSO_SUBDIRS)"
113702 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pml_STATIC_SUBDIRS)"
113704 if test "pml" != "common" ; then
113705 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/pml/libmca_pml.la"
113707 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_pml_STATIC_LTLIBS)"
113709 ompi_show_subsubtitle "Configuring MCA framework pml"
113711 # setup for framework
113712 all_components=
113713 static_components=
113714 dso_components=
113715 static_ltlibs=
113717 # Ensure that the directory where the #include file is to live
113718 # exists. Need to do this for VPATH builds, because the directory
113719 # may not exist yet. For the "common" type, it's not really a
113720 # component, so it doesn't have a base.
113721 if test "pml" = "common" ; then
113722 outdir=ompi/mca/common
113724 outdir=ompi/mca/pml/base
113726 { as_dir=$outdir
113727 case $as_dir in #(
113728 -*) as_dir=./$as_dir;;
113730 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
113731 as_dirs=
113732 while :; do
113733 case $as_dir in #(
113734 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
113735 *) as_qdir=$as_dir;;
113737 as_dirs="'$as_qdir' $as_dirs"
113738 as_dir=`$as_dirname -- "$as_dir" ||
113739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
113740 X"$as_dir" : 'X\(//\)[^/]' \| \
113741 X"$as_dir" : 'X\(//\)$' \| \
113742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
113743 echo X"$as_dir" |
113744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
113745 s//\1/
113748 /^X\(\/\/\)[^/].*/{
113749 s//\1/
113752 /^X\(\/\/\)$/{
113753 s//\1/
113756 /^X\(\/\).*/{
113757 s//\1/
113760 s/.*/./; q'`
113761 test -d "$as_dir" && break
113763 test -z "$as_dirs" || eval "mkdir $as_dirs"
113764 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
113765 echo "$as_me: error: cannot create directory $as_dir" >&2;}
113766 { (exit 1); exit 1; }; }; }
113768 # remove any previously generated #include files
113769 outfile_real=$outdir/static-components.h
113770 outfile=$outfile_real.new
113771 rm -f $outfile $outfile.struct $outfile.extern
113772 touch $outfile.struct $outfile.extern
113774 # print some nice messages about what we're about to do...
113775 { echo "$as_me:$LINENO: checking for no configure components in framework pml" >&5
113776 echo $ECHO_N "checking for no configure components in framework pml... $ECHO_C" >&6; }
113777 { echo "$as_me:$LINENO: result: ob1" >&5
113778 echo "${ECHO_T}ob1" >&6; }
113779 { echo "$as_me:$LINENO: checking for m4 configure components in framework pml" >&5
113780 echo $ECHO_N "checking for m4 configure components in framework pml... $ECHO_C" >&6; }
113781 { echo "$as_me:$LINENO: result: " >&5
113782 echo "${ECHO_T}" >&6; }
113784 # if we only want the first successful component, set the variable
113785 # happy_value to 0 so we stop on first assignment. Otherwise, set
113786 # it to zero so that components_looking_for_succeed is always 1
113787 happy_value=1
113789 components_looking_for_succeed=1
113791 # configure components that don't have any component-specific
113792 # configuration. See comment in CONFIGURE_PROJECT about the
113793 # m4_ifval
113794 # if there isn't a component list, abort
113797 ompi_show_subsubsubtitle "MCA component pml:ob1 (no configuration)"
113800 project=ompi
113801 framework=pml
113802 component=ob1
113803 component_path="$srcdir/$project/mca/$framework/$component"
113804 want_component=0
113806 # build if:
113807 # - the component type is direct and we are that component
113808 # - there is no ompi_ignore file
113809 # - there is an ompi_ignore, but there is an empty ompi_unignore
113810 # - there is an ompi_ignore, but username is in ompi_unignore
113811 if test -d $component_path ; then
113812 # decide if we want the component to be built or not. This
113813 # is spread out because some of the logic is a little complex
113814 # and test's syntax isn't exactly the greatest. We want to
113815 # build the component by default.
113816 want_component=1
113817 if test -f $component_path/.ompi_ignore ; then
113818 # If there is an ompi_ignore file, don't build
113819 # the component. Note that this decision can be
113820 # overriden by the unignore logic below.
113821 want_component=0
113823 if test -f $component_path/.ompi_unignore ; then
113824 # if there is an empty ompi_unignore, that is
113825 # equivalent to having your userid in the unignore file.
113826 # If userid is in the file, unignore the ignore file.
113827 if test ! -s $component_path/.ompi_unignore ; then
113828 want_component=1
113829 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
113830 want_component=1
113833 # if this component type is direct and we are not it, we don't want
113834 # to be built. Otherwise, we do want to be built.
113835 if test ! -z "$DIRECT_pml" ; then
113836 if test "$DIRECT_pml" = "$component" ; then
113837 want_component=1
113839 want_component=0
113844 # if we were explicitly disabled, don't build :)
113845 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
113846 eval $str
113847 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
113848 want_component=0
113851 if test "$want_component" = "1"; then
113852 should_build=$components_looking_for_succeed
113854 should_build=0
113859 project=ompi
113860 framework=pml
113861 component=ob1
113863 # Is this component going to built staic or shared? $component
113864 # might not be known until configure time, so have to use eval
113865 # tricks - can't set variable names at autogen time.
113866 str="SHARED_FRAMEWORK=\$DSO_$framework"
113867 eval $str
113868 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
113869 eval $str
113871 str="STATIC_FRAMEWORK=\$STATIC_$framework"
113872 eval $str
113873 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
113874 eval $str
113876 shared_mode_override=static
113878 # Setup for either shared or static
113879 if test "$STATIC_FRAMEWORK" = "1" -o \
113880 "$STATIC_COMPONENT" = "1" -o \
113881 "$STATIC_all" = "1" ; then
113882 compile_mode="static"
113883 elif test "$shared_mode_override" = "dso" -o \
113884 "$SHARED_FRAMEWORK" = "1" -o \
113885 "$SHARED_COMPONENT" = "1" -o \
113886 "$DSO_all" = "1"; then
113887 compile_mode="dso"
113889 compile_mode="static"
113892 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
113893 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
113894 if test "$DIRECT_pml" = "$component" ; then
113895 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
113896 echo "${ECHO_T}$compile_mode - direct" >&6; }
113898 { echo "$as_me:$LINENO: result: $compile_mode" >&5
113899 echo "${ECHO_T}$compile_mode" >&6; }
113903 if test "$should_build" = "1" ; then
113905 project=ompi
113906 framework=pml
113907 component=ob1
113909 # See if it dropped an output file for us to pick up some
113910 # shell variables in.
113911 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
113913 # Add this subdir to the mast list of all MCA component subdirs
113914 all_components="$all_components $component"
113916 if test "$compile_mode" = "dso" ; then
113917 dso_components="$dso_components $component"
113919 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
113920 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
113921 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
113922 static_components="$static_components $component"
113925 # Output pretty results
113926 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
113927 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
113928 { echo "$as_me:$LINENO: result: yes" >&5
113929 echo "${ECHO_T}yes" >&6; }
113931 # If there's an output file, add the values to
113932 # scope_EXTRA_flags.
113933 if test -f $infile; then
113935 # First check for the ABORT tag
113936 line="`grep ABORT= $infile | cut -d= -f2-`"
113937 if test -n "$line" -a "$line" != "no"; then
113938 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
113939 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
113940 { { echo "$as_me:$LINENO: error: cannot continue" >&5
113941 echo "$as_me: error: cannot continue" >&2;}
113942 { (exit 1); exit 1; }; }
113945 # Check for flags passed up from the component. If we're
113946 # compiling statically, then take all flags passed up from the
113947 # component.
113948 if test "$compile_mode" = "static"; then
113949 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
113950 eval "line=$line"
113951 if test -n "$line"; then
113952 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
113954 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
113955 eval "line=$line"
113956 if test -n "$line"; then
113957 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
113961 if test "$DIRECT_pml" = "$component" ; then
113962 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
113963 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
113964 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
113965 eval $str
113967 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
113968 *** does not appear to support direct calling.
113969 *** Aborting" >&5
113970 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
113971 *** does not appear to support direct calling.
113972 *** Aborting" >&2;}
113973 { (exit 1); exit 1; }; }
113977 # were we supposed to have found something in the
113978 # post_configure.sh, but the file didn't exist?
113979 if test "$DIRECT_pml" = "$component" ; then
113980 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
113981 *** does not appear to support direct calling.
113982 *** Aborting" >&5
113983 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
113984 *** does not appear to support direct calling.
113985 *** Aborting" >&2;}
113986 { (exit 1); exit 1; }; }
113990 # now add the flags that were set in the environment variables
113991 # framework_component_FOO (for example, the flags set by
113992 # m4_configure components)
113994 # Check for flags passed up from the component. If we're
113995 # compiling statically, then take all flags passed up from the
113996 # component.
113997 if test "$compile_mode" = "static"; then
113998 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
113999 eval "$str"
114000 if test -n "$line" ; then
114001 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
114003 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
114004 eval "$str"
114005 if test -n "$line" ; then
114006 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
114012 { echo "$as_me:$LINENO: checking if MCA component pml:ob1 can compile" >&5
114013 echo $ECHO_N "checking if MCA component pml:ob1 can compile... $ECHO_C" >&6; }
114014 { echo "$as_me:$LINENO: result: no" >&5
114015 echo "${ECHO_T}no" >&6; }
114017 # If this component was requested as the default for this
114018 # type, then abort.
114019 if test "$with_pml" = "ob1" ; then
114020 { echo "$as_me:$LINENO: WARNING: MCA component \"ob1\" failed to configure properly" >&5
114021 echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;}
114022 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
114023 echo "$as_me: WARNING: This component was selected as the default" >&2;}
114024 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
114025 echo "$as_me: error: Cannot continue" >&2;}
114026 { (exit 1); exit 1; }; }
114027 exit 1
114030 if test ! -z "$DIRECT_pml" ; then
114031 if test "$DIRECT_pml" = "ob1" ; then
114032 { echo "$as_me:$LINENO: WARNING: MCA component \"ob1\" failed to configure properly" >&5
114033 echo "$as_me: WARNING: MCA component \"ob1\" failed to configure properly" >&2;}
114034 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
114035 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
114036 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
114037 echo "$as_me: error: Cannot continue" >&2;}
114038 { (exit 1); exit 1; }; }
114039 exit 1
114043 # add component to all component list
114044 all_components="$all_components ob1"
114047 # set the AM_CONDITIONAL on how we should build
114048 if test "$compile_mode" = "dso" ; then
114049 BUILD_pml_ob1_DSO=1
114051 BUILD_pml_ob1_DSO=0
114055 if test "$BUILD_pml_ob1_DSO" = "1"; then
114056 OMPI_BUILD_pml_ob1_DSO_TRUE=
114057 OMPI_BUILD_pml_ob1_DSO_FALSE='#'
114059 OMPI_BUILD_pml_ob1_DSO_TRUE='#'
114060 OMPI_BUILD_pml_ob1_DSO_FALSE=
114064 unset compile_mode
114067 # configure components that use built-in configuration scripts
114068 # see comment in CONFIGURE_PROJECT about the m4_ifval
114069 # if there isn't a component list, abort
114073 # configure components that provide their own configure script.
114074 # It would be really hard to run these for "find first that
114075 # works", so we don't :)
114076 if test "$happy_value" = "1"; then
114078 for component_path in $srcdir/ompi/mca/pml/* ; do
114079 component="`basename $component_path`"
114080 if test -d $component_path -a -x $component_path/configure ; then
114081 ompi_show_subsubsubtitle "MCA component pml:$component (need to configure)"
114084 project=ompi
114085 framework=pml
114086 component=$component
114087 component_path="$srcdir/$project/mca/$framework/$component"
114088 want_component=0
114090 # build if:
114091 # - the component type is direct and we are that component
114092 # - there is no ompi_ignore file
114093 # - there is an ompi_ignore, but there is an empty ompi_unignore
114094 # - there is an ompi_ignore, but username is in ompi_unignore
114095 if test -d $component_path ; then
114096 # decide if we want the component to be built or not. This
114097 # is spread out because some of the logic is a little complex
114098 # and test's syntax isn't exactly the greatest. We want to
114099 # build the component by default.
114100 want_component=1
114101 if test -f $component_path/.ompi_ignore ; then
114102 # If there is an ompi_ignore file, don't build
114103 # the component. Note that this decision can be
114104 # overriden by the unignore logic below.
114105 want_component=0
114107 if test -f $component_path/.ompi_unignore ; then
114108 # if there is an empty ompi_unignore, that is
114109 # equivalent to having your userid in the unignore file.
114110 # If userid is in the file, unignore the ignore file.
114111 if test ! -s $component_path/.ompi_unignore ; then
114112 want_component=1
114113 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
114114 want_component=1
114117 # if this component type is direct and we are not it, we don't want
114118 # to be built. Otherwise, we do want to be built.
114119 if test ! -z "$DIRECT_pml" ; then
114120 if test "$DIRECT_pml" = "$component" ; then
114121 want_component=1
114123 want_component=0
114128 # if we were explicitly disabled, don't build :)
114129 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
114130 eval $str
114131 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
114132 want_component=0
114135 if test "$want_component" = "1"; then
114136 should_build=1
114138 should_build=0
114143 project=ompi
114144 framework=pml
114145 component=$component
114147 # Is this component going to built staic or shared? $component
114148 # might not be known until configure time, so have to use eval
114149 # tricks - can't set variable names at autogen time.
114150 str="SHARED_FRAMEWORK=\$DSO_$framework"
114151 eval $str
114152 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
114153 eval $str
114155 str="STATIC_FRAMEWORK=\$STATIC_$framework"
114156 eval $str
114157 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
114158 eval $str
114160 shared_mode_override=static
114162 # Setup for either shared or static
114163 if test "$STATIC_FRAMEWORK" = "1" -o \
114164 "$STATIC_COMPONENT" = "1" -o \
114165 "$STATIC_all" = "1" ; then
114166 compile_mode="static"
114167 elif test "$shared_mode_override" = "dso" -o \
114168 "$SHARED_FRAMEWORK" = "1" -o \
114169 "$SHARED_COMPONENT" = "1" -o \
114170 "$DSO_all" = "1"; then
114171 compile_mode="dso"
114173 compile_mode="static"
114176 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
114177 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
114178 if test "$DIRECT_pml" = "$component" ; then
114179 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
114180 echo "${ECHO_T}$compile_mode - direct" >&6; }
114182 { echo "$as_me:$LINENO: result: $compile_mode" >&5
114183 echo "${ECHO_T}$compile_mode" >&6; }
114187 if test "$should_build" = "1" ; then
114190 # Invoke configure in a specific subdirectory.
114192 # ompi/mca/pml/$component is the directory to invoke in
114193 # $ompi_subdir_args is the list of arguments to pass
114194 # should_build=1 is actions to execute upon success
114195 # should_build=2 is actions to execute upon failure
114197 subdir_dir="ompi/mca/pml/$component"
114198 subdir_args="$ompi_subdir_args"
114199 subdir_success="should_build=1"
114200 subdir_failure="should_build=2"
114203 # Sanity checks
114206 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
114207 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
114208 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
114211 # Gotta check where srcdir is for VPATH builds. If srcdir is not
114212 # ., then we need to mkdir the subdir. Otherwise, we can just cd
114213 # into it.
114216 case $srcdir in
114220 { case $subdir_dir in
114221 [\\/]* | ?:[\\/]* ) total_dir=;;
114222 *) total_dir=.;;
114224 temp=$subdir_dir
114225 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
114226 case $dir_part in
114227 # Skip DOS drivespec
114228 ?:) total_dir=$dir_part ;;
114229 *) total_dir=$total_dir/$dir_part
114230 test -d "$total_dir" ||
114231 mkdir "$total_dir" ||
114232 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
114233 echo "$as_me: error: cannot create $subdir_dir" >&2;}
114234 { (exit 1); exit 1; }; }
114237 done; }
114239 if test -d ./$subdir_dir; then :;
114241 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
114242 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
114243 { (exit 1); exit 1; }; }
114249 # Move into the target directory
114252 subdir_parent=`pwd`
114253 cd $subdir_dir
114256 # Make a "../" for each directory in $subdir_dir.
114259 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
114261 # Construct the --srcdir argument
114264 case $srcdir in
114266 # In place
114267 subdir_srcdir="$srcdir"
114269 [\\/]* | ?:[\\/]* )
114270 # Absolute path
114271 subdir_srcdir="$srcdir/$subdir_dir"
114274 # Relative path
114275 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
114280 # Construct the --cache-file argument
114283 # BWB - subdir caching is a pain since we change CFLAGS and all that.
114284 # Just disable it for now
114285 subdir_cache_file="/dev/null"
114288 # Invoke the configure script in the subdirectory
114291 export CFLAGS CPPFLAGS
114292 export CXXFLAGS CXXCPPFLAGS
114293 export FFLAGS
114294 export LDFLAGS LIBS
114295 sub_configure="$SHELL '$subdir_srcdir/configure'"
114296 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
114297 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
114298 eval "$sub_configure $subdir_args \
114299 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
114300 if test "$?" = "0"; then
114301 eval $subdir_success
114302 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
114303 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
114305 eval $subdir_failure
114306 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
114307 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
114311 # Go back to the topdir
114314 cd $subdir_parent
114318 # Clean up
114321 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
114322 unset subdir_args subdir_dots total_dir dir_part temp
114325 if test "$should_build" = "1" ; then
114327 project=ompi
114328 framework=pml
114329 component=$component
114331 # See if it dropped an output file for us to pick up some
114332 # shell variables in.
114333 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
114335 # Add this subdir to the mast list of all MCA component subdirs
114336 all_components="$all_components $component"
114338 if test "$compile_mode" = "dso" ; then
114339 dso_components="$dso_components $component"
114341 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
114342 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
114343 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
114344 static_components="$static_components $component"
114347 # Output pretty results
114348 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
114349 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
114350 { echo "$as_me:$LINENO: result: yes" >&5
114351 echo "${ECHO_T}yes" >&6; }
114353 # If there's an output file, add the values to
114354 # scope_EXTRA_flags.
114355 if test -f $infile; then
114357 # First check for the ABORT tag
114358 line="`grep ABORT= $infile | cut -d= -f2-`"
114359 if test -n "$line" -a "$line" != "no"; then
114360 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
114361 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
114362 { { echo "$as_me:$LINENO: error: cannot continue" >&5
114363 echo "$as_me: error: cannot continue" >&2;}
114364 { (exit 1); exit 1; }; }
114367 # Check for flags passed up from the component. If we're
114368 # compiling statically, then take all flags passed up from the
114369 # component.
114370 if test "$compile_mode" = "static"; then
114371 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
114372 eval "line=$line"
114373 if test -n "$line"; then
114374 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
114376 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
114377 eval "line=$line"
114378 if test -n "$line"; then
114379 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
114383 if test "$DIRECT_pml" = "$component" ; then
114384 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
114385 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
114386 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
114387 eval $str
114389 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
114390 *** does not appear to support direct calling.
114391 *** Aborting" >&5
114392 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
114393 *** does not appear to support direct calling.
114394 *** Aborting" >&2;}
114395 { (exit 1); exit 1; }; }
114399 # were we supposed to have found something in the
114400 # post_configure.sh, but the file didn't exist?
114401 if test "$DIRECT_pml" = "$component" ; then
114402 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
114403 *** does not appear to support direct calling.
114404 *** Aborting" >&5
114405 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
114406 *** does not appear to support direct calling.
114407 *** Aborting" >&2;}
114408 { (exit 1); exit 1; }; }
114412 # now add the flags that were set in the environment variables
114413 # framework_component_FOO (for example, the flags set by
114414 # m4_configure components)
114416 # Check for flags passed up from the component. If we're
114417 # compiling statically, then take all flags passed up from the
114418 # component.
114419 if test "$compile_mode" = "static"; then
114420 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
114421 eval "$str"
114422 if test -n "$line" ; then
114423 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
114425 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
114426 eval "$str"
114427 if test -n "$line" ; then
114428 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
114434 { echo "$as_me:$LINENO: checking if MCA component pml:$component can compile" >&5
114435 echo $ECHO_N "checking if MCA component pml:$component can compile... $ECHO_C" >&6; }
114436 { echo "$as_me:$LINENO: result: no" >&5
114437 echo "${ECHO_T}no" >&6; }
114439 # If this component was requested as the default for this
114440 # type, then abort.
114441 if test "$with_pml" = "$component" ; then
114442 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
114443 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
114444 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
114445 echo "$as_me: WARNING: This component was selected as the default" >&2;}
114446 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
114447 echo "$as_me: error: Cannot continue" >&2;}
114448 { (exit 1); exit 1; }; }
114449 exit 1
114452 if test ! -z "$DIRECT_pml" ; then
114453 if test "$DIRECT_pml" = "$component" ; then
114454 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
114455 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
114456 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
114457 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
114458 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
114459 echo "$as_me: error: Cannot continue" >&2;}
114460 { (exit 1); exit 1; }; }
114461 exit 1
114472 MCA_pml_ALL_COMPONENTS="$all_components"
114473 MCA_pml_STATIC_COMPONENTS="$static_components"
114474 MCA_pml_DSO_COMPONENTS="$dso_components"
114475 MCA_pml_STATIC_LTLIBS="$static_ltlibs"
114483 MCA_pml_ALL_SUBDIRS=
114484 for item in $all_components ; do
114485 MCA_pml_ALL_SUBDIRS="$MCA_pml_ALL_SUBDIRS mca/pml/$item"
114490 MCA_pml_STATIC_SUBDIRS=
114491 for item in $static_components ; do
114492 MCA_pml_STATIC_SUBDIRS="$MCA_pml_STATIC_SUBDIRS mca/pml/$item"
114497 MCA_pml_DSO_SUBDIRS=
114498 for item in $dso_components ; do
114499 MCA_pml_DSO_SUBDIRS="$MCA_pml_DSO_SUBDIRS mca/pml/$item"
114504 # add all the makefiles for the framework to the CONFIG_FILES.
114505 # Don't add common/base, since it doesn't exist
114506 ac_config_files="$ac_config_files ompi/mca/pml/Makefile"
114509 # Create the final .h file that will be included in the type's
114510 # top-level glue. This lists all the static components. We don't
114511 # need to do this for "common".
114512 if test "pml" != "common"; then
114513 cat > $outfile <<EOF
114515 * \$HEADER\$
114518 `cat $outfile.extern`
114520 const mca_base_component_t *mca_pml_base_static_components[] = {
114521 `cat $outfile.struct`
114525 # Only replace the header file if a) it doesn't previously
114526 # exist, or b) the contents are different. Do this to not
114527 # trigger recompilation of certain .c files just because the
114528 # timestamp changed on $outfile_real (similar to the way AC
114529 # handles AC_CONFIG_HEADER files).
114530 diff $outfile $outfile_real > /dev/null 2>&1
114531 if test "$?" != "0"; then
114532 mv $outfile $outfile_real
114534 rm -f $outfile
114537 rm -f $outfile.struct $outfile.extern
114539 unset all_components static_components dso_components outfile outfile_real
114540 # common has to go up front
114541 if test "rcache" = "common" ; then
114542 MCA_ompi_FRAMEWORKS="rcache $MCA_ompi_FRAMEWORKS"
114543 MCA_ompi_FRAMEWORKS_SUBDIRS="mca/rcache $MCA_ompi_FRAMEWORKS_SUBDIRS"
114544 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_rcache_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
114545 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_rcache_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
114546 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_rcache_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
114548 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS rcache"
114549 MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/rcache"
114550 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_rcache_ALL_SUBDIRS)"
114551 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_rcache_DSO_SUBDIRS)"
114552 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_rcache_STATIC_SUBDIRS)"
114554 if test "rcache" != "common" ; then
114555 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/rcache/libmca_rcache.la"
114557 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_rcache_STATIC_LTLIBS)"
114559 ompi_show_subsubtitle "Configuring MCA framework rcache"
114561 # setup for framework
114562 all_components=
114563 static_components=
114564 dso_components=
114565 static_ltlibs=
114567 # Ensure that the directory where the #include file is to live
114568 # exists. Need to do this for VPATH builds, because the directory
114569 # may not exist yet. For the "common" type, it's not really a
114570 # component, so it doesn't have a base.
114571 if test "rcache" = "common" ; then
114572 outdir=ompi/mca/common
114574 outdir=ompi/mca/rcache/base
114576 { as_dir=$outdir
114577 case $as_dir in #(
114578 -*) as_dir=./$as_dir;;
114580 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
114581 as_dirs=
114582 while :; do
114583 case $as_dir in #(
114584 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
114585 *) as_qdir=$as_dir;;
114587 as_dirs="'$as_qdir' $as_dirs"
114588 as_dir=`$as_dirname -- "$as_dir" ||
114589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
114590 X"$as_dir" : 'X\(//\)[^/]' \| \
114591 X"$as_dir" : 'X\(//\)$' \| \
114592 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
114593 echo X"$as_dir" |
114594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
114595 s//\1/
114598 /^X\(\/\/\)[^/].*/{
114599 s//\1/
114602 /^X\(\/\/\)$/{
114603 s//\1/
114606 /^X\(\/\).*/{
114607 s//\1/
114610 s/.*/./; q'`
114611 test -d "$as_dir" && break
114613 test -z "$as_dirs" || eval "mkdir $as_dirs"
114614 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
114615 echo "$as_me: error: cannot create directory $as_dir" >&2;}
114616 { (exit 1); exit 1; }; }; }
114618 # remove any previously generated #include files
114619 outfile_real=$outdir/static-components.h
114620 outfile=$outfile_real.new
114621 rm -f $outfile $outfile.struct $outfile.extern
114622 touch $outfile.struct $outfile.extern
114624 # print some nice messages about what we're about to do...
114625 { echo "$as_me:$LINENO: checking for no configure components in framework rcache" >&5
114626 echo $ECHO_N "checking for no configure components in framework rcache... $ECHO_C" >&6; }
114627 { echo "$as_me:$LINENO: result: rb" >&5
114628 echo "${ECHO_T}rb" >&6; }
114629 { echo "$as_me:$LINENO: checking for m4 configure components in framework rcache" >&5
114630 echo $ECHO_N "checking for m4 configure components in framework rcache... $ECHO_C" >&6; }
114631 { echo "$as_me:$LINENO: result: " >&5
114632 echo "${ECHO_T}" >&6; }
114634 # if we only want the first successful component, set the variable
114635 # happy_value to 0 so we stop on first assignment. Otherwise, set
114636 # it to zero so that components_looking_for_succeed is always 1
114637 happy_value=1
114639 components_looking_for_succeed=1
114641 # configure components that don't have any component-specific
114642 # configuration. See comment in CONFIGURE_PROJECT about the
114643 # m4_ifval
114644 # if there isn't a component list, abort
114647 ompi_show_subsubsubtitle "MCA component rcache:rb (no configuration)"
114650 project=ompi
114651 framework=rcache
114652 component=rb
114653 component_path="$srcdir/$project/mca/$framework/$component"
114654 want_component=0
114656 # build if:
114657 # - the component type is direct and we are that component
114658 # - there is no ompi_ignore file
114659 # - there is an ompi_ignore, but there is an empty ompi_unignore
114660 # - there is an ompi_ignore, but username is in ompi_unignore
114661 if test -d $component_path ; then
114662 # decide if we want the component to be built or not. This
114663 # is spread out because some of the logic is a little complex
114664 # and test's syntax isn't exactly the greatest. We want to
114665 # build the component by default.
114666 want_component=1
114667 if test -f $component_path/.ompi_ignore ; then
114668 # If there is an ompi_ignore file, don't build
114669 # the component. Note that this decision can be
114670 # overriden by the unignore logic below.
114671 want_component=0
114673 if test -f $component_path/.ompi_unignore ; then
114674 # if there is an empty ompi_unignore, that is
114675 # equivalent to having your userid in the unignore file.
114676 # If userid is in the file, unignore the ignore file.
114677 if test ! -s $component_path/.ompi_unignore ; then
114678 want_component=1
114679 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
114680 want_component=1
114683 # if this component type is direct and we are not it, we don't want
114684 # to be built. Otherwise, we do want to be built.
114685 if test ! -z "$DIRECT_rcache" ; then
114686 if test "$DIRECT_rcache" = "$component" ; then
114687 want_component=1
114689 want_component=0
114694 # if we were explicitly disabled, don't build :)
114695 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
114696 eval $str
114697 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
114698 want_component=0
114701 if test "$want_component" = "1"; then
114702 should_build=$components_looking_for_succeed
114704 should_build=0
114709 project=ompi
114710 framework=rcache
114711 component=rb
114713 # Is this component going to built staic or shared? $component
114714 # might not be known until configure time, so have to use eval
114715 # tricks - can't set variable names at autogen time.
114716 str="SHARED_FRAMEWORK=\$DSO_$framework"
114717 eval $str
114718 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
114719 eval $str
114721 str="STATIC_FRAMEWORK=\$STATIC_$framework"
114722 eval $str
114723 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
114724 eval $str
114726 shared_mode_override=static
114728 # Setup for either shared or static
114729 if test "$STATIC_FRAMEWORK" = "1" -o \
114730 "$STATIC_COMPONENT" = "1" -o \
114731 "$STATIC_all" = "1" ; then
114732 compile_mode="static"
114733 elif test "$shared_mode_override" = "dso" -o \
114734 "$SHARED_FRAMEWORK" = "1" -o \
114735 "$SHARED_COMPONENT" = "1" -o \
114736 "$DSO_all" = "1"; then
114737 compile_mode="dso"
114739 compile_mode="static"
114742 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
114743 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
114744 if test "$DIRECT_rcache" = "$component" ; then
114745 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
114746 echo "${ECHO_T}$compile_mode - direct" >&6; }
114748 { echo "$as_me:$LINENO: result: $compile_mode" >&5
114749 echo "${ECHO_T}$compile_mode" >&6; }
114753 if test "$should_build" = "1" ; then
114755 project=ompi
114756 framework=rcache
114757 component=rb
114759 # See if it dropped an output file for us to pick up some
114760 # shell variables in.
114761 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
114763 # Add this subdir to the mast list of all MCA component subdirs
114764 all_components="$all_components $component"
114766 if test "$compile_mode" = "dso" ; then
114767 dso_components="$dso_components $component"
114769 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
114770 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
114771 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
114772 static_components="$static_components $component"
114775 # Output pretty results
114776 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
114777 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
114778 { echo "$as_me:$LINENO: result: yes" >&5
114779 echo "${ECHO_T}yes" >&6; }
114781 # If there's an output file, add the values to
114782 # scope_EXTRA_flags.
114783 if test -f $infile; then
114785 # First check for the ABORT tag
114786 line="`grep ABORT= $infile | cut -d= -f2-`"
114787 if test -n "$line" -a "$line" != "no"; then
114788 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
114789 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
114790 { { echo "$as_me:$LINENO: error: cannot continue" >&5
114791 echo "$as_me: error: cannot continue" >&2;}
114792 { (exit 1); exit 1; }; }
114795 # Check for flags passed up from the component. If we're
114796 # compiling statically, then take all flags passed up from the
114797 # component.
114798 if test "$compile_mode" = "static"; then
114799 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
114800 eval "line=$line"
114801 if test -n "$line"; then
114802 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
114804 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
114805 eval "line=$line"
114806 if test -n "$line"; then
114807 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
114811 if test "$DIRECT_rcache" = "$component" ; then
114812 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
114813 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
114814 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
114815 eval $str
114817 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
114818 *** does not appear to support direct calling.
114819 *** Aborting" >&5
114820 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
114821 *** does not appear to support direct calling.
114822 *** Aborting" >&2;}
114823 { (exit 1); exit 1; }; }
114827 # were we supposed to have found something in the
114828 # post_configure.sh, but the file didn't exist?
114829 if test "$DIRECT_rcache" = "$component" ; then
114830 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
114831 *** does not appear to support direct calling.
114832 *** Aborting" >&5
114833 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
114834 *** does not appear to support direct calling.
114835 *** Aborting" >&2;}
114836 { (exit 1); exit 1; }; }
114840 # now add the flags that were set in the environment variables
114841 # framework_component_FOO (for example, the flags set by
114842 # m4_configure components)
114844 # Check for flags passed up from the component. If we're
114845 # compiling statically, then take all flags passed up from the
114846 # component.
114847 if test "$compile_mode" = "static"; then
114848 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
114849 eval "$str"
114850 if test -n "$line" ; then
114851 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
114853 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
114854 eval "$str"
114855 if test -n "$line" ; then
114856 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
114862 { echo "$as_me:$LINENO: checking if MCA component rcache:rb can compile" >&5
114863 echo $ECHO_N "checking if MCA component rcache:rb can compile... $ECHO_C" >&6; }
114864 { echo "$as_me:$LINENO: result: no" >&5
114865 echo "${ECHO_T}no" >&6; }
114867 # If this component was requested as the default for this
114868 # type, then abort.
114869 if test "$with_rcache" = "rb" ; then
114870 { echo "$as_me:$LINENO: WARNING: MCA component \"rb\" failed to configure properly" >&5
114871 echo "$as_me: WARNING: MCA component \"rb\" failed to configure properly" >&2;}
114872 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
114873 echo "$as_me: WARNING: This component was selected as the default" >&2;}
114874 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
114875 echo "$as_me: error: Cannot continue" >&2;}
114876 { (exit 1); exit 1; }; }
114877 exit 1
114880 if test ! -z "$DIRECT_rcache" ; then
114881 if test "$DIRECT_rcache" = "rb" ; then
114882 { echo "$as_me:$LINENO: WARNING: MCA component \"rb\" failed to configure properly" >&5
114883 echo "$as_me: WARNING: MCA component \"rb\" failed to configure properly" >&2;}
114884 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
114885 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
114886 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
114887 echo "$as_me: error: Cannot continue" >&2;}
114888 { (exit 1); exit 1; }; }
114889 exit 1
114893 # add component to all component list
114894 all_components="$all_components rb"
114897 # set the AM_CONDITIONAL on how we should build
114898 if test "$compile_mode" = "dso" ; then
114899 BUILD_rcache_rb_DSO=1
114901 BUILD_rcache_rb_DSO=0
114905 if test "$BUILD_rcache_rb_DSO" = "1"; then
114906 OMPI_BUILD_rcache_rb_DSO_TRUE=
114907 OMPI_BUILD_rcache_rb_DSO_FALSE='#'
114909 OMPI_BUILD_rcache_rb_DSO_TRUE='#'
114910 OMPI_BUILD_rcache_rb_DSO_FALSE=
114914 unset compile_mode
114917 # configure components that use built-in configuration scripts
114918 # see comment in CONFIGURE_PROJECT about the m4_ifval
114919 # if there isn't a component list, abort
114923 # configure components that provide their own configure script.
114924 # It would be really hard to run these for "find first that
114925 # works", so we don't :)
114926 if test "$happy_value" = "1"; then
114928 for component_path in $srcdir/ompi/mca/rcache/* ; do
114929 component="`basename $component_path`"
114930 if test -d $component_path -a -x $component_path/configure ; then
114931 ompi_show_subsubsubtitle "MCA component rcache:$component (need to configure)"
114934 project=ompi
114935 framework=rcache
114936 component=$component
114937 component_path="$srcdir/$project/mca/$framework/$component"
114938 want_component=0
114940 # build if:
114941 # - the component type is direct and we are that component
114942 # - there is no ompi_ignore file
114943 # - there is an ompi_ignore, but there is an empty ompi_unignore
114944 # - there is an ompi_ignore, but username is in ompi_unignore
114945 if test -d $component_path ; then
114946 # decide if we want the component to be built or not. This
114947 # is spread out because some of the logic is a little complex
114948 # and test's syntax isn't exactly the greatest. We want to
114949 # build the component by default.
114950 want_component=1
114951 if test -f $component_path/.ompi_ignore ; then
114952 # If there is an ompi_ignore file, don't build
114953 # the component. Note that this decision can be
114954 # overriden by the unignore logic below.
114955 want_component=0
114957 if test -f $component_path/.ompi_unignore ; then
114958 # if there is an empty ompi_unignore, that is
114959 # equivalent to having your userid in the unignore file.
114960 # If userid is in the file, unignore the ignore file.
114961 if test ! -s $component_path/.ompi_unignore ; then
114962 want_component=1
114963 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
114964 want_component=1
114967 # if this component type is direct and we are not it, we don't want
114968 # to be built. Otherwise, we do want to be built.
114969 if test ! -z "$DIRECT_rcache" ; then
114970 if test "$DIRECT_rcache" = "$component" ; then
114971 want_component=1
114973 want_component=0
114978 # if we were explicitly disabled, don't build :)
114979 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
114980 eval $str
114981 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
114982 want_component=0
114985 if test "$want_component" = "1"; then
114986 should_build=1
114988 should_build=0
114993 project=ompi
114994 framework=rcache
114995 component=$component
114997 # Is this component going to built staic or shared? $component
114998 # might not be known until configure time, so have to use eval
114999 # tricks - can't set variable names at autogen time.
115000 str="SHARED_FRAMEWORK=\$DSO_$framework"
115001 eval $str
115002 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
115003 eval $str
115005 str="STATIC_FRAMEWORK=\$STATIC_$framework"
115006 eval $str
115007 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
115008 eval $str
115010 shared_mode_override=static
115012 # Setup for either shared or static
115013 if test "$STATIC_FRAMEWORK" = "1" -o \
115014 "$STATIC_COMPONENT" = "1" -o \
115015 "$STATIC_all" = "1" ; then
115016 compile_mode="static"
115017 elif test "$shared_mode_override" = "dso" -o \
115018 "$SHARED_FRAMEWORK" = "1" -o \
115019 "$SHARED_COMPONENT" = "1" -o \
115020 "$DSO_all" = "1"; then
115021 compile_mode="dso"
115023 compile_mode="static"
115026 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
115027 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
115028 if test "$DIRECT_rcache" = "$component" ; then
115029 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
115030 echo "${ECHO_T}$compile_mode - direct" >&6; }
115032 { echo "$as_me:$LINENO: result: $compile_mode" >&5
115033 echo "${ECHO_T}$compile_mode" >&6; }
115037 if test "$should_build" = "1" ; then
115040 # Invoke configure in a specific subdirectory.
115042 # ompi/mca/rcache/$component is the directory to invoke in
115043 # $ompi_subdir_args is the list of arguments to pass
115044 # should_build=1 is actions to execute upon success
115045 # should_build=2 is actions to execute upon failure
115047 subdir_dir="ompi/mca/rcache/$component"
115048 subdir_args="$ompi_subdir_args"
115049 subdir_success="should_build=1"
115050 subdir_failure="should_build=2"
115053 # Sanity checks
115056 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
115057 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
115058 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
115061 # Gotta check where srcdir is for VPATH builds. If srcdir is not
115062 # ., then we need to mkdir the subdir. Otherwise, we can just cd
115063 # into it.
115066 case $srcdir in
115070 { case $subdir_dir in
115071 [\\/]* | ?:[\\/]* ) total_dir=;;
115072 *) total_dir=.;;
115074 temp=$subdir_dir
115075 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
115076 case $dir_part in
115077 # Skip DOS drivespec
115078 ?:) total_dir=$dir_part ;;
115079 *) total_dir=$total_dir/$dir_part
115080 test -d "$total_dir" ||
115081 mkdir "$total_dir" ||
115082 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
115083 echo "$as_me: error: cannot create $subdir_dir" >&2;}
115084 { (exit 1); exit 1; }; }
115087 done; }
115089 if test -d ./$subdir_dir; then :;
115091 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
115092 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
115093 { (exit 1); exit 1; }; }
115099 # Move into the target directory
115102 subdir_parent=`pwd`
115103 cd $subdir_dir
115106 # Make a "../" for each directory in $subdir_dir.
115109 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
115111 # Construct the --srcdir argument
115114 case $srcdir in
115116 # In place
115117 subdir_srcdir="$srcdir"
115119 [\\/]* | ?:[\\/]* )
115120 # Absolute path
115121 subdir_srcdir="$srcdir/$subdir_dir"
115124 # Relative path
115125 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
115130 # Construct the --cache-file argument
115133 # BWB - subdir caching is a pain since we change CFLAGS and all that.
115134 # Just disable it for now
115135 subdir_cache_file="/dev/null"
115138 # Invoke the configure script in the subdirectory
115141 export CFLAGS CPPFLAGS
115142 export CXXFLAGS CXXCPPFLAGS
115143 export FFLAGS
115144 export LDFLAGS LIBS
115145 sub_configure="$SHELL '$subdir_srcdir/configure'"
115146 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
115147 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
115148 eval "$sub_configure $subdir_args \
115149 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
115150 if test "$?" = "0"; then
115151 eval $subdir_success
115152 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
115153 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
115155 eval $subdir_failure
115156 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
115157 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
115161 # Go back to the topdir
115164 cd $subdir_parent
115168 # Clean up
115171 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
115172 unset subdir_args subdir_dots total_dir dir_part temp
115175 if test "$should_build" = "1" ; then
115177 project=ompi
115178 framework=rcache
115179 component=$component
115181 # See if it dropped an output file for us to pick up some
115182 # shell variables in.
115183 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
115185 # Add this subdir to the mast list of all MCA component subdirs
115186 all_components="$all_components $component"
115188 if test "$compile_mode" = "dso" ; then
115189 dso_components="$dso_components $component"
115191 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
115192 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
115193 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
115194 static_components="$static_components $component"
115197 # Output pretty results
115198 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
115199 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
115200 { echo "$as_me:$LINENO: result: yes" >&5
115201 echo "${ECHO_T}yes" >&6; }
115203 # If there's an output file, add the values to
115204 # scope_EXTRA_flags.
115205 if test -f $infile; then
115207 # First check for the ABORT tag
115208 line="`grep ABORT= $infile | cut -d= -f2-`"
115209 if test -n "$line" -a "$line" != "no"; then
115210 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
115211 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
115212 { { echo "$as_me:$LINENO: error: cannot continue" >&5
115213 echo "$as_me: error: cannot continue" >&2;}
115214 { (exit 1); exit 1; }; }
115217 # Check for flags passed up from the component. If we're
115218 # compiling statically, then take all flags passed up from the
115219 # component.
115220 if test "$compile_mode" = "static"; then
115221 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
115222 eval "line=$line"
115223 if test -n "$line"; then
115224 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
115226 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
115227 eval "line=$line"
115228 if test -n "$line"; then
115229 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
115233 if test "$DIRECT_rcache" = "$component" ; then
115234 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
115235 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
115236 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
115237 eval $str
115239 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
115240 *** does not appear to support direct calling.
115241 *** Aborting" >&5
115242 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
115243 *** does not appear to support direct calling.
115244 *** Aborting" >&2;}
115245 { (exit 1); exit 1; }; }
115249 # were we supposed to have found something in the
115250 # post_configure.sh, but the file didn't exist?
115251 if test "$DIRECT_rcache" = "$component" ; then
115252 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
115253 *** does not appear to support direct calling.
115254 *** Aborting" >&5
115255 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
115256 *** does not appear to support direct calling.
115257 *** Aborting" >&2;}
115258 { (exit 1); exit 1; }; }
115262 # now add the flags that were set in the environment variables
115263 # framework_component_FOO (for example, the flags set by
115264 # m4_configure components)
115266 # Check for flags passed up from the component. If we're
115267 # compiling statically, then take all flags passed up from the
115268 # component.
115269 if test "$compile_mode" = "static"; then
115270 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
115271 eval "$str"
115272 if test -n "$line" ; then
115273 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
115275 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
115276 eval "$str"
115277 if test -n "$line" ; then
115278 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
115284 { echo "$as_me:$LINENO: checking if MCA component rcache:$component can compile" >&5
115285 echo $ECHO_N "checking if MCA component rcache:$component can compile... $ECHO_C" >&6; }
115286 { echo "$as_me:$LINENO: result: no" >&5
115287 echo "${ECHO_T}no" >&6; }
115289 # If this component was requested as the default for this
115290 # type, then abort.
115291 if test "$with_rcache" = "$component" ; then
115292 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
115293 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
115294 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
115295 echo "$as_me: WARNING: This component was selected as the default" >&2;}
115296 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
115297 echo "$as_me: error: Cannot continue" >&2;}
115298 { (exit 1); exit 1; }; }
115299 exit 1
115302 if test ! -z "$DIRECT_rcache" ; then
115303 if test "$DIRECT_rcache" = "$component" ; then
115304 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
115305 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
115306 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
115307 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
115308 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
115309 echo "$as_me: error: Cannot continue" >&2;}
115310 { (exit 1); exit 1; }; }
115311 exit 1
115322 MCA_rcache_ALL_COMPONENTS="$all_components"
115323 MCA_rcache_STATIC_COMPONENTS="$static_components"
115324 MCA_rcache_DSO_COMPONENTS="$dso_components"
115325 MCA_rcache_STATIC_LTLIBS="$static_ltlibs"
115333 MCA_rcache_ALL_SUBDIRS=
115334 for item in $all_components ; do
115335 MCA_rcache_ALL_SUBDIRS="$MCA_rcache_ALL_SUBDIRS mca/rcache/$item"
115340 MCA_rcache_STATIC_SUBDIRS=
115341 for item in $static_components ; do
115342 MCA_rcache_STATIC_SUBDIRS="$MCA_rcache_STATIC_SUBDIRS mca/rcache/$item"
115347 MCA_rcache_DSO_SUBDIRS=
115348 for item in $dso_components ; do
115349 MCA_rcache_DSO_SUBDIRS="$MCA_rcache_DSO_SUBDIRS mca/rcache/$item"
115354 # add all the makefiles for the framework to the CONFIG_FILES.
115355 # Don't add common/base, since it doesn't exist
115356 ac_config_files="$ac_config_files ompi/mca/rcache/Makefile"
115359 # Create the final .h file that will be included in the type's
115360 # top-level glue. This lists all the static components. We don't
115361 # need to do this for "common".
115362 if test "rcache" != "common"; then
115363 cat > $outfile <<EOF
115365 * \$HEADER\$
115368 `cat $outfile.extern`
115370 const mca_base_component_t *mca_rcache_base_static_components[] = {
115371 `cat $outfile.struct`
115375 # Only replace the header file if a) it doesn't previously
115376 # exist, or b) the contents are different. Do this to not
115377 # trigger recompilation of certain .c files just because the
115378 # timestamp changed on $outfile_real (similar to the way AC
115379 # handles AC_CONFIG_HEADER files).
115380 diff $outfile $outfile_real > /dev/null 2>&1
115381 if test "$?" != "0"; then
115382 mv $outfile $outfile_real
115384 rm -f $outfile
115387 rm -f $outfile.struct $outfile.extern
115389 unset all_components static_components dso_components outfile outfile_real
115390 # common has to go up front
115391 if test "topo" = "common" ; then
115392 MCA_ompi_FRAMEWORKS="topo $MCA_ompi_FRAMEWORKS"
115393 MCA_ompi_FRAMEWORKS_SUBDIRS="mca/topo $MCA_ompi_FRAMEWORKS_SUBDIRS"
115394 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_topo_ALL_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
115395 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_topo_DSO_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
115396 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_topo_STATIC_SUBDIRS) $MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
115398 MCA_ompi_FRAMEWORKS="$MCA_ompi_FRAMEWORKS topo"
115399 MCA_ompi_FRAMEWORKS_SUBDIRS="$MCA_ompi_FRAMEWORKS_SUBDIRS mca/topo"
115400 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_topo_ALL_SUBDIRS)"
115401 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_topo_DSO_SUBDIRS)"
115402 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_topo_STATIC_SUBDIRS)"
115404 if test "topo" != "common" ; then
115405 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS mca/topo/libmca_topo.la"
115407 MCA_ompi_FRAMEWORK_LIBS="$MCA_ompi_FRAMEWORK_LIBS \$(MCA_topo_STATIC_LTLIBS)"
115409 ompi_show_subsubtitle "Configuring MCA framework topo"
115411 # setup for framework
115412 all_components=
115413 static_components=
115414 dso_components=
115415 static_ltlibs=
115417 # Ensure that the directory where the #include file is to live
115418 # exists. Need to do this for VPATH builds, because the directory
115419 # may not exist yet. For the "common" type, it's not really a
115420 # component, so it doesn't have a base.
115421 if test "topo" = "common" ; then
115422 outdir=ompi/mca/common
115424 outdir=ompi/mca/topo/base
115426 { as_dir=$outdir
115427 case $as_dir in #(
115428 -*) as_dir=./$as_dir;;
115430 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
115431 as_dirs=
115432 while :; do
115433 case $as_dir in #(
115434 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
115435 *) as_qdir=$as_dir;;
115437 as_dirs="'$as_qdir' $as_dirs"
115438 as_dir=`$as_dirname -- "$as_dir" ||
115439 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
115440 X"$as_dir" : 'X\(//\)[^/]' \| \
115441 X"$as_dir" : 'X\(//\)$' \| \
115442 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
115443 echo X"$as_dir" |
115444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
115445 s//\1/
115448 /^X\(\/\/\)[^/].*/{
115449 s//\1/
115452 /^X\(\/\/\)$/{
115453 s//\1/
115456 /^X\(\/\).*/{
115457 s//\1/
115460 s/.*/./; q'`
115461 test -d "$as_dir" && break
115463 test -z "$as_dirs" || eval "mkdir $as_dirs"
115464 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
115465 echo "$as_me: error: cannot create directory $as_dir" >&2;}
115466 { (exit 1); exit 1; }; }; }
115468 # remove any previously generated #include files
115469 outfile_real=$outdir/static-components.h
115470 outfile=$outfile_real.new
115471 rm -f $outfile $outfile.struct $outfile.extern
115472 touch $outfile.struct $outfile.extern
115474 # print some nice messages about what we're about to do...
115475 { echo "$as_me:$LINENO: checking for no configure components in framework topo" >&5
115476 echo $ECHO_N "checking for no configure components in framework topo... $ECHO_C" >&6; }
115477 { echo "$as_me:$LINENO: result: unity" >&5
115478 echo "${ECHO_T}unity" >&6; }
115479 { echo "$as_me:$LINENO: checking for m4 configure components in framework topo" >&5
115480 echo $ECHO_N "checking for m4 configure components in framework topo... $ECHO_C" >&6; }
115481 { echo "$as_me:$LINENO: result: " >&5
115482 echo "${ECHO_T}" >&6; }
115484 # if we only want the first successful component, set the variable
115485 # happy_value to 0 so we stop on first assignment. Otherwise, set
115486 # it to zero so that components_looking_for_succeed is always 1
115487 happy_value=1
115489 components_looking_for_succeed=1
115491 # configure components that don't have any component-specific
115492 # configuration. See comment in CONFIGURE_PROJECT about the
115493 # m4_ifval
115494 # if there isn't a component list, abort
115497 ompi_show_subsubsubtitle "MCA component topo:unity (no configuration)"
115500 project=ompi
115501 framework=topo
115502 component=unity
115503 component_path="$srcdir/$project/mca/$framework/$component"
115504 want_component=0
115506 # build if:
115507 # - the component type is direct and we are that component
115508 # - there is no ompi_ignore file
115509 # - there is an ompi_ignore, but there is an empty ompi_unignore
115510 # - there is an ompi_ignore, but username is in ompi_unignore
115511 if test -d $component_path ; then
115512 # decide if we want the component to be built or not. This
115513 # is spread out because some of the logic is a little complex
115514 # and test's syntax isn't exactly the greatest. We want to
115515 # build the component by default.
115516 want_component=1
115517 if test -f $component_path/.ompi_ignore ; then
115518 # If there is an ompi_ignore file, don't build
115519 # the component. Note that this decision can be
115520 # overriden by the unignore logic below.
115521 want_component=0
115523 if test -f $component_path/.ompi_unignore ; then
115524 # if there is an empty ompi_unignore, that is
115525 # equivalent to having your userid in the unignore file.
115526 # If userid is in the file, unignore the ignore file.
115527 if test ! -s $component_path/.ompi_unignore ; then
115528 want_component=1
115529 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
115530 want_component=1
115533 # if this component type is direct and we are not it, we don't want
115534 # to be built. Otherwise, we do want to be built.
115535 if test ! -z "$DIRECT_topo" ; then
115536 if test "$DIRECT_topo" = "$component" ; then
115537 want_component=1
115539 want_component=0
115544 # if we were explicitly disabled, don't build :)
115545 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
115546 eval $str
115547 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
115548 want_component=0
115551 if test "$want_component" = "1"; then
115552 should_build=$components_looking_for_succeed
115554 should_build=0
115559 project=ompi
115560 framework=topo
115561 component=unity
115563 # Is this component going to built staic or shared? $component
115564 # might not be known until configure time, so have to use eval
115565 # tricks - can't set variable names at autogen time.
115566 str="SHARED_FRAMEWORK=\$DSO_$framework"
115567 eval $str
115568 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
115569 eval $str
115571 str="STATIC_FRAMEWORK=\$STATIC_$framework"
115572 eval $str
115573 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
115574 eval $str
115576 shared_mode_override=static
115578 # Setup for either shared or static
115579 if test "$STATIC_FRAMEWORK" = "1" -o \
115580 "$STATIC_COMPONENT" = "1" -o \
115581 "$STATIC_all" = "1" ; then
115582 compile_mode="static"
115583 elif test "$shared_mode_override" = "dso" -o \
115584 "$SHARED_FRAMEWORK" = "1" -o \
115585 "$SHARED_COMPONENT" = "1" -o \
115586 "$DSO_all" = "1"; then
115587 compile_mode="dso"
115589 compile_mode="static"
115592 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
115593 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
115594 if test "$DIRECT_topo" = "$component" ; then
115595 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
115596 echo "${ECHO_T}$compile_mode - direct" >&6; }
115598 { echo "$as_me:$LINENO: result: $compile_mode" >&5
115599 echo "${ECHO_T}$compile_mode" >&6; }
115603 if test "$should_build" = "1" ; then
115605 project=ompi
115606 framework=topo
115607 component=unity
115609 # See if it dropped an output file for us to pick up some
115610 # shell variables in.
115611 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
115613 # Add this subdir to the mast list of all MCA component subdirs
115614 all_components="$all_components $component"
115616 if test "$compile_mode" = "dso" ; then
115617 dso_components="$dso_components $component"
115619 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
115620 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
115621 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
115622 static_components="$static_components $component"
115625 # Output pretty results
115626 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
115627 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
115628 { echo "$as_me:$LINENO: result: yes" >&5
115629 echo "${ECHO_T}yes" >&6; }
115631 # If there's an output file, add the values to
115632 # scope_EXTRA_flags.
115633 if test -f $infile; then
115635 # First check for the ABORT tag
115636 line="`grep ABORT= $infile | cut -d= -f2-`"
115637 if test -n "$line" -a "$line" != "no"; then
115638 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
115639 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
115640 { { echo "$as_me:$LINENO: error: cannot continue" >&5
115641 echo "$as_me: error: cannot continue" >&2;}
115642 { (exit 1); exit 1; }; }
115645 # Check for flags passed up from the component. If we're
115646 # compiling statically, then take all flags passed up from the
115647 # component.
115648 if test "$compile_mode" = "static"; then
115649 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
115650 eval "line=$line"
115651 if test -n "$line"; then
115652 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
115654 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
115655 eval "line=$line"
115656 if test -n "$line"; then
115657 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
115661 if test "$DIRECT_topo" = "$component" ; then
115662 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
115663 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
115664 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
115665 eval $str
115667 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
115668 *** does not appear to support direct calling.
115669 *** Aborting" >&5
115670 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
115671 *** does not appear to support direct calling.
115672 *** Aborting" >&2;}
115673 { (exit 1); exit 1; }; }
115677 # were we supposed to have found something in the
115678 # post_configure.sh, but the file didn't exist?
115679 if test "$DIRECT_topo" = "$component" ; then
115680 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
115681 *** does not appear to support direct calling.
115682 *** Aborting" >&5
115683 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
115684 *** does not appear to support direct calling.
115685 *** Aborting" >&2;}
115686 { (exit 1); exit 1; }; }
115690 # now add the flags that were set in the environment variables
115691 # framework_component_FOO (for example, the flags set by
115692 # m4_configure components)
115694 # Check for flags passed up from the component. If we're
115695 # compiling statically, then take all flags passed up from the
115696 # component.
115697 if test "$compile_mode" = "static"; then
115698 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
115699 eval "$str"
115700 if test -n "$line" ; then
115701 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
115703 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
115704 eval "$str"
115705 if test -n "$line" ; then
115706 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
115712 { echo "$as_me:$LINENO: checking if MCA component topo:unity can compile" >&5
115713 echo $ECHO_N "checking if MCA component topo:unity can compile... $ECHO_C" >&6; }
115714 { echo "$as_me:$LINENO: result: no" >&5
115715 echo "${ECHO_T}no" >&6; }
115717 # If this component was requested as the default for this
115718 # type, then abort.
115719 if test "$with_topo" = "unity" ; then
115720 { echo "$as_me:$LINENO: WARNING: MCA component \"unity\" failed to configure properly" >&5
115721 echo "$as_me: WARNING: MCA component \"unity\" failed to configure properly" >&2;}
115722 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
115723 echo "$as_me: WARNING: This component was selected as the default" >&2;}
115724 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
115725 echo "$as_me: error: Cannot continue" >&2;}
115726 { (exit 1); exit 1; }; }
115727 exit 1
115730 if test ! -z "$DIRECT_topo" ; then
115731 if test "$DIRECT_topo" = "unity" ; then
115732 { echo "$as_me:$LINENO: WARNING: MCA component \"unity\" failed to configure properly" >&5
115733 echo "$as_me: WARNING: MCA component \"unity\" failed to configure properly" >&2;}
115734 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
115735 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
115736 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
115737 echo "$as_me: error: Cannot continue" >&2;}
115738 { (exit 1); exit 1; }; }
115739 exit 1
115743 # add component to all component list
115744 all_components="$all_components unity"
115747 # set the AM_CONDITIONAL on how we should build
115748 if test "$compile_mode" = "dso" ; then
115749 BUILD_topo_unity_DSO=1
115751 BUILD_topo_unity_DSO=0
115755 if test "$BUILD_topo_unity_DSO" = "1"; then
115756 OMPI_BUILD_topo_unity_DSO_TRUE=
115757 OMPI_BUILD_topo_unity_DSO_FALSE='#'
115759 OMPI_BUILD_topo_unity_DSO_TRUE='#'
115760 OMPI_BUILD_topo_unity_DSO_FALSE=
115764 unset compile_mode
115767 # configure components that use built-in configuration scripts
115768 # see comment in CONFIGURE_PROJECT about the m4_ifval
115769 # if there isn't a component list, abort
115773 # configure components that provide their own configure script.
115774 # It would be really hard to run these for "find first that
115775 # works", so we don't :)
115776 if test "$happy_value" = "1"; then
115778 for component_path in $srcdir/ompi/mca/topo/* ; do
115779 component="`basename $component_path`"
115780 if test -d $component_path -a -x $component_path/configure ; then
115781 ompi_show_subsubsubtitle "MCA component topo:$component (need to configure)"
115784 project=ompi
115785 framework=topo
115786 component=$component
115787 component_path="$srcdir/$project/mca/$framework/$component"
115788 want_component=0
115790 # build if:
115791 # - the component type is direct and we are that component
115792 # - there is no ompi_ignore file
115793 # - there is an ompi_ignore, but there is an empty ompi_unignore
115794 # - there is an ompi_ignore, but username is in ompi_unignore
115795 if test -d $component_path ; then
115796 # decide if we want the component to be built or not. This
115797 # is spread out because some of the logic is a little complex
115798 # and test's syntax isn't exactly the greatest. We want to
115799 # build the component by default.
115800 want_component=1
115801 if test -f $component_path/.ompi_ignore ; then
115802 # If there is an ompi_ignore file, don't build
115803 # the component. Note that this decision can be
115804 # overriden by the unignore logic below.
115805 want_component=0
115807 if test -f $component_path/.ompi_unignore ; then
115808 # if there is an empty ompi_unignore, that is
115809 # equivalent to having your userid in the unignore file.
115810 # If userid is in the file, unignore the ignore file.
115811 if test ! -s $component_path/.ompi_unignore ; then
115812 want_component=1
115813 elif test ! -z "`grep $USER $component_path/.ompi_unignore`" ; then
115814 want_component=1
115817 # if this component type is direct and we are not it, we don't want
115818 # to be built. Otherwise, we do want to be built.
115819 if test ! -z "$DIRECT_topo" ; then
115820 if test "$DIRECT_topo" = "$component" ; then
115821 want_component=1
115823 want_component=0
115828 # if we were explicitly disabled, don't build :)
115829 str="DISABLED_COMPONENT_CHECK=\$DISABLE_${framework}_$component"
115830 eval $str
115831 if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
115832 want_component=0
115835 if test "$want_component" = "1"; then
115836 should_build=1
115838 should_build=0
115843 project=ompi
115844 framework=topo
115845 component=$component
115847 # Is this component going to built staic or shared? $component
115848 # might not be known until configure time, so have to use eval
115849 # tricks - can't set variable names at autogen time.
115850 str="SHARED_FRAMEWORK=\$DSO_$framework"
115851 eval $str
115852 str="SHARED_COMPONENT=\$DSO_${framework}_$component"
115853 eval $str
115855 str="STATIC_FRAMEWORK=\$STATIC_$framework"
115856 eval $str
115857 str="STATIC_COMPONENT=\$STATIC_${framework}_$component"
115858 eval $str
115860 shared_mode_override=static
115862 # Setup for either shared or static
115863 if test "$STATIC_FRAMEWORK" = "1" -o \
115864 "$STATIC_COMPONENT" = "1" -o \
115865 "$STATIC_all" = "1" ; then
115866 compile_mode="static"
115867 elif test "$shared_mode_override" = "dso" -o \
115868 "$SHARED_FRAMEWORK" = "1" -o \
115869 "$SHARED_COMPONENT" = "1" -o \
115870 "$DSO_all" = "1"; then
115871 compile_mode="dso"
115873 compile_mode="static"
115876 { echo "$as_me:$LINENO: checking for MCA component $framework:$component compile mode" >&5
115877 echo $ECHO_N "checking for MCA component $framework:$component compile mode... $ECHO_C" >&6; }
115878 if test "$DIRECT_topo" = "$component" ; then
115879 { echo "$as_me:$LINENO: result: $compile_mode - direct" >&5
115880 echo "${ECHO_T}$compile_mode - direct" >&6; }
115882 { echo "$as_me:$LINENO: result: $compile_mode" >&5
115883 echo "${ECHO_T}$compile_mode" >&6; }
115887 if test "$should_build" = "1" ; then
115890 # Invoke configure in a specific subdirectory.
115892 # ompi/mca/topo/$component is the directory to invoke in
115893 # $ompi_subdir_args is the list of arguments to pass
115894 # should_build=1 is actions to execute upon success
115895 # should_build=2 is actions to execute upon failure
115897 subdir_dir="ompi/mca/topo/$component"
115898 subdir_args="$ompi_subdir_args"
115899 subdir_success="should_build=1"
115900 subdir_failure="should_build=2"
115903 # Sanity checks
115906 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
115907 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
115908 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
115911 # Gotta check where srcdir is for VPATH builds. If srcdir is not
115912 # ., then we need to mkdir the subdir. Otherwise, we can just cd
115913 # into it.
115916 case $srcdir in
115920 { case $subdir_dir in
115921 [\\/]* | ?:[\\/]* ) total_dir=;;
115922 *) total_dir=.;;
115924 temp=$subdir_dir
115925 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
115926 case $dir_part in
115927 # Skip DOS drivespec
115928 ?:) total_dir=$dir_part ;;
115929 *) total_dir=$total_dir/$dir_part
115930 test -d "$total_dir" ||
115931 mkdir "$total_dir" ||
115932 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
115933 echo "$as_me: error: cannot create $subdir_dir" >&2;}
115934 { (exit 1); exit 1; }; }
115937 done; }
115939 if test -d ./$subdir_dir; then :;
115941 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
115942 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
115943 { (exit 1); exit 1; }; }
115949 # Move into the target directory
115952 subdir_parent=`pwd`
115953 cd $subdir_dir
115956 # Make a "../" for each directory in $subdir_dir.
115959 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
115961 # Construct the --srcdir argument
115964 case $srcdir in
115966 # In place
115967 subdir_srcdir="$srcdir"
115969 [\\/]* | ?:[\\/]* )
115970 # Absolute path
115971 subdir_srcdir="$srcdir/$subdir_dir"
115974 # Relative path
115975 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
115980 # Construct the --cache-file argument
115983 # BWB - subdir caching is a pain since we change CFLAGS and all that.
115984 # Just disable it for now
115985 subdir_cache_file="/dev/null"
115988 # Invoke the configure script in the subdirectory
115991 export CFLAGS CPPFLAGS
115992 export CXXFLAGS CXXCPPFLAGS
115993 export FFLAGS
115994 export LDFLAGS LIBS
115995 sub_configure="$SHELL '$subdir_srcdir/configure'"
115996 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
115997 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
115998 eval "$sub_configure $subdir_args \
115999 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
116000 if test "$?" = "0"; then
116001 eval $subdir_success
116002 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
116003 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
116005 eval $subdir_failure
116006 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
116007 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
116011 # Go back to the topdir
116014 cd $subdir_parent
116018 # Clean up
116021 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
116022 unset subdir_args subdir_dots total_dir dir_part temp
116025 if test "$should_build" = "1" ; then
116027 project=ompi
116028 framework=topo
116029 component=$component
116031 # See if it dropped an output file for us to pick up some
116032 # shell variables in.
116033 infile="$srcdir/$project/mca/$framework/$component/post_configure.sh"
116035 # Add this subdir to the mast list of all MCA component subdirs
116036 all_components="$all_components $component"
116038 if test "$compile_mode" = "dso" ; then
116039 dso_components="$dso_components $component"
116041 static_ltlibs="mca/$framework/$component/libmca_${framework}_${component}.la $static_ltlibs"
116042 echo "extern const mca_base_component_t mca_${framework}_${component}_component;" >> $outfile.extern
116043 echo " &mca_${framework}_${component}_component, " >> $outfile.struct
116044 static_components="$static_components $component"
116047 # Output pretty results
116048 { echo "$as_me:$LINENO: checking if MCA component $framework:$component can compile" >&5
116049 echo $ECHO_N "checking if MCA component $framework:$component can compile... $ECHO_C" >&6; }
116050 { echo "$as_me:$LINENO: result: yes" >&5
116051 echo "${ECHO_T}yes" >&6; }
116053 # If there's an output file, add the values to
116054 # scope_EXTRA_flags.
116055 if test -f $infile; then
116057 # First check for the ABORT tag
116058 line="`grep ABORT= $infile | cut -d= -f2-`"
116059 if test -n "$line" -a "$line" != "no"; then
116060 { echo "$as_me:$LINENO: WARNING: MCA component configure script told me to abort" >&5
116061 echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
116062 { { echo "$as_me:$LINENO: error: cannot continue" >&5
116063 echo "$as_me: error: cannot continue" >&2;}
116064 { (exit 1); exit 1; }; }
116067 # Check for flags passed up from the component. If we're
116068 # compiling statically, then take all flags passed up from the
116069 # component.
116070 if test "$compile_mode" = "static"; then
116071 line="`grep WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
116072 eval "line=$line"
116073 if test -n "$line"; then
116074 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
116076 line="`grep WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
116077 eval "line=$line"
116078 if test -n "$line"; then
116079 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
116083 if test "$DIRECT_topo" = "$component" ; then
116084 if test "`grep DIRECT_CALL_HEADER $infile`" != "" ; then
116085 line="`grep DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
116086 str="MCA_${framework}_DIRECT_CALL_HEADER=\\\"$line\\\""
116087 eval $str
116089 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
116090 *** does not appear to support direct calling.
116091 *** Aborting" >&5
116092 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
116093 *** does not appear to support direct calling.
116094 *** Aborting" >&2;}
116095 { (exit 1); exit 1; }; }
116099 # were we supposed to have found something in the
116100 # post_configure.sh, but the file didn't exist?
116101 if test "$DIRECT_topo" = "$component" ; then
116102 { { echo "$as_me:$LINENO: error: *** ${framework} component ${component} was supposed to be direct-called, but
116103 *** does not appear to support direct calling.
116104 *** Aborting" >&5
116105 echo "$as_me: error: *** ${framework} component ${component} was supposed to be direct-called, but
116106 *** does not appear to support direct calling.
116107 *** Aborting" >&2;}
116108 { (exit 1); exit 1; }; }
116112 # now add the flags that were set in the environment variables
116113 # framework_component_FOO (for example, the flags set by
116114 # m4_configure components)
116116 # Check for flags passed up from the component. If we're
116117 # compiling statically, then take all flags passed up from the
116118 # component.
116119 if test "$compile_mode" = "static"; then
116120 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LDFLAGS"
116121 eval "$str"
116122 if test -n "$line" ; then
116123 ompi_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $line"
116125 str="line=\$${framework}_${component}_WRAPPER_EXTRA_LIBS"
116126 eval "$str"
116127 if test -n "$line" ; then
116128 ompi_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $line"
116134 { echo "$as_me:$LINENO: checking if MCA component topo:$component can compile" >&5
116135 echo $ECHO_N "checking if MCA component topo:$component can compile... $ECHO_C" >&6; }
116136 { echo "$as_me:$LINENO: result: no" >&5
116137 echo "${ECHO_T}no" >&6; }
116139 # If this component was requested as the default for this
116140 # type, then abort.
116141 if test "$with_topo" = "$component" ; then
116142 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
116143 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
116144 { echo "$as_me:$LINENO: WARNING: This component was selected as the default" >&5
116145 echo "$as_me: WARNING: This component was selected as the default" >&2;}
116146 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
116147 echo "$as_me: error: Cannot continue" >&2;}
116148 { (exit 1); exit 1; }; }
116149 exit 1
116152 if test ! -z "$DIRECT_topo" ; then
116153 if test "$DIRECT_topo" = "$component" ; then
116154 { echo "$as_me:$LINENO: WARNING: MCA component \"$component\" failed to configure properly" >&5
116155 echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
116156 { echo "$as_me:$LINENO: WARNING: This component was selected as the default (direct call)" >&5
116157 echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
116158 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
116159 echo "$as_me: error: Cannot continue" >&2;}
116160 { (exit 1); exit 1; }; }
116161 exit 1
116172 MCA_topo_ALL_COMPONENTS="$all_components"
116173 MCA_topo_STATIC_COMPONENTS="$static_components"
116174 MCA_topo_DSO_COMPONENTS="$dso_components"
116175 MCA_topo_STATIC_LTLIBS="$static_ltlibs"
116183 MCA_topo_ALL_SUBDIRS=
116184 for item in $all_components ; do
116185 MCA_topo_ALL_SUBDIRS="$MCA_topo_ALL_SUBDIRS mca/topo/$item"
116190 MCA_topo_STATIC_SUBDIRS=
116191 for item in $static_components ; do
116192 MCA_topo_STATIC_SUBDIRS="$MCA_topo_STATIC_SUBDIRS mca/topo/$item"
116197 MCA_topo_DSO_SUBDIRS=
116198 for item in $dso_components ; do
116199 MCA_topo_DSO_SUBDIRS="$MCA_topo_DSO_SUBDIRS mca/topo/$item"
116204 # add all the makefiles for the framework to the CONFIG_FILES.
116205 # Don't add common/base, since it doesn't exist
116206 ac_config_files="$ac_config_files ompi/mca/topo/Makefile"
116209 # Create the final .h file that will be included in the type's
116210 # top-level glue. This lists all the static components. We don't
116211 # need to do this for "common".
116212 if test "topo" != "common"; then
116213 cat > $outfile <<EOF
116215 * \$HEADER\$
116218 `cat $outfile.extern`
116220 const mca_base_component_t *mca_topo_base_static_components[] = {
116221 `cat $outfile.struct`
116225 # Only replace the header file if a) it doesn't previously
116226 # exist, or b) the contents are different. Do this to not
116227 # trigger recompilation of certain .c files just because the
116228 # timestamp changed on $outfile_real (similar to the way AC
116229 # handles AC_CONFIG_HEADER files).
116230 diff $outfile $outfile_real > /dev/null 2>&1
116231 if test "$?" != "0"; then
116232 mv $outfile $outfile_real
116234 rm -f $outfile
116237 rm -f $outfile.struct $outfile.extern
116239 unset all_components static_components dso_components outfile outfile_real
116250 # BWB - fix me... need to automate this somehow
116252 if test ! -z "$DIRECT_pml" ; then
116253 MCA_pml_DIRECT_CALL_COMPONENT=$DIRECT_pml
116254 MCA_pml_DIRECT_CALL=1
116256 MCA_pml_DIRECT_CALL_COMPONENT=
116257 MCA_pml_DIRECT_CALL=0
116262 cat >>confdefs.h <<_ACEOF
116263 #define MCA_pml_DIRECT_CALL $MCA_pml_DIRECT_CALL
116264 _ACEOF
116267 cat >>confdefs.h <<_ACEOF
116268 #define MCA_pml_DIRECT_CALL_COMPONENT $MCA_pml_DIRECT_CALL_COMPONENT
116269 _ACEOF
116272 ac_config_files="$ac_config_files ompi/mca/pml/pml_direct_call.h.tmp:ompi/mca/pml/pml_direct_call.h.in"
116274 ac_config_commands="$ac_config_commands pml-direct"
116279 # make all the config output statements for the no configure
116280 # components
116285 ac_config_files="$ac_config_files opal/mca/maffinity/first_use/Makefile"
116289 ac_config_files="$ac_config_files opal/mca/maffinity/libnuma/Makefile"
116293 ac_config_files="$ac_config_files opal/mca/memory/darwin/Makefile"
116297 ac_config_files="$ac_config_files opal/mca/memory/malloc_hooks/Makefile"
116301 ac_config_files="$ac_config_files opal/mca/memory/ptmalloc2/Makefile"
116305 ac_config_files="$ac_config_files opal/mca/paffinity/linux/Makefile"
116309 ac_config_files="$ac_config_files opal/mca/paffinity/solaris/Makefile"
116313 ac_config_files="$ac_config_files opal/mca/paffinity/windows/Makefile"
116317 ac_config_files="$ac_config_files opal/mca/timer/aix/Makefile"
116321 ac_config_files="$ac_config_files opal/mca/timer/altix/Makefile"
116325 ac_config_files="$ac_config_files opal/mca/timer/darwin/Makefile"
116329 ac_config_files="$ac_config_files opal/mca/timer/linux/Makefile"
116333 ac_config_files="$ac_config_files opal/mca/timer/solaris/Makefile"
116337 ac_config_files="$ac_config_files opal/mca/timer/windows/Makefile"
116341 ac_config_files="$ac_config_files orte/mca/gpr/null/Makefile"
116345 ac_config_files="$ac_config_files orte/mca/gpr/proxy/Makefile"
116349 ac_config_files="$ac_config_files orte/mca/gpr/replica/Makefile"
116351 ac_config_files="$ac_config_files orte/mca/gpr/replica/api_layer/Makefile"
116353 ac_config_files="$ac_config_files orte/mca/gpr/replica/transition_layer/Makefile"
116355 ac_config_files="$ac_config_files orte/mca/gpr/replica/functional_layer/Makefile"
116357 ac_config_files="$ac_config_files orte/mca/gpr/replica/communications/Makefile"
116361 ac_config_files="$ac_config_files orte/mca/iof/proxy/Makefile"
116365 ac_config_files="$ac_config_files orte/mca/iof/svc/Makefile"
116369 ac_config_files="$ac_config_files orte/mca/ns/proxy/Makefile"
116373 ac_config_files="$ac_config_files orte/mca/ns/replica/Makefile"
116377 ac_config_files="$ac_config_files orte/mca/oob/tcp/Makefile"
116381 ac_config_files="$ac_config_files orte/mca/pls/bproc/Makefile"
116385 ac_config_files="$ac_config_files orte/mca/pls/bproc_orted/Makefile"
116389 ac_config_files="$ac_config_files orte/mca/pls/fork/Makefile"
116393 ac_config_files="$ac_config_files orte/mca/pls/poe/Makefile"
116397 ac_config_files="$ac_config_files orte/mca/pls/rsh/Makefile"
116401 ac_config_files="$ac_config_files orte/mca/pls/slurm/Makefile"
116405 ac_config_files="$ac_config_files orte/mca/pls/tm/Makefile"
116409 ac_config_files="$ac_config_files orte/mca/pls/xgrid/Makefile"
116413 ac_config_files="$ac_config_files orte/mca/ras/bjs/Makefile"
116417 ac_config_files="$ac_config_files orte/mca/ras/dash_host/Makefile"
116421 ac_config_files="$ac_config_files orte/mca/ras/hostfile/Makefile"
116425 ac_config_files="$ac_config_files orte/mca/ras/loadleveler/Makefile"
116429 ac_config_files="$ac_config_files orte/mca/ras/localhost/Makefile"
116433 ac_config_files="$ac_config_files orte/mca/ras/lsf_bproc/Makefile"
116437 ac_config_files="$ac_config_files orte/mca/ras/poe/Makefile"
116441 ac_config_files="$ac_config_files orte/mca/ras/slurm/Makefile"
116445 ac_config_files="$ac_config_files orte/mca/ras/tm/Makefile"
116449 ac_config_files="$ac_config_files orte/mca/ras/xgrid/Makefile"
116453 ac_config_files="$ac_config_files orte/mca/rds/hostfile/Makefile"
116457 ac_config_files="$ac_config_files orte/mca/rds/resfile/Makefile"
116461 ac_config_files="$ac_config_files orte/mca/rmaps/round_robin/Makefile"
116465 ac_config_files="$ac_config_files orte/mca/rmgr/cnos/Makefile"
116469 ac_config_files="$ac_config_files orte/mca/rmgr/proxy/Makefile"
116473 ac_config_files="$ac_config_files orte/mca/rmgr/urm/Makefile"
116477 ac_config_files="$ac_config_files orte/mca/rml/cnos/Makefile"
116481 ac_config_files="$ac_config_files orte/mca/rml/oob/Makefile"
116485 ac_config_files="$ac_config_files orte/mca/sds/bproc/Makefile"
116489 ac_config_files="$ac_config_files orte/mca/sds/cnos/Makefile"
116493 ac_config_files="$ac_config_files orte/mca/sds/env/Makefile"
116497 ac_config_files="$ac_config_files orte/mca/sds/pipe/Makefile"
116501 ac_config_files="$ac_config_files orte/mca/sds/portals_utcp/Makefile"
116505 ac_config_files="$ac_config_files orte/mca/sds/seed/Makefile"
116509 ac_config_files="$ac_config_files orte/mca/sds/singleton/Makefile"
116513 ac_config_files="$ac_config_files orte/mca/sds/slurm/Makefile"
116517 ac_config_files="$ac_config_files orte/mca/soh/bproc/Makefile"
116521 ac_config_files="$ac_config_files ompi/mca/allocator/basic/Makefile"
116525 ac_config_files="$ac_config_files ompi/mca/allocator/bucket/Makefile"
116529 ac_config_files="$ac_config_files ompi/mca/bml/r2/Makefile"
116533 ac_config_files="$ac_config_files ompi/mca/btl/gm/Makefile"
116537 ac_config_files="$ac_config_files ompi/mca/btl/mvapi/Makefile"
116541 ac_config_files="$ac_config_files ompi/mca/btl/mx/Makefile"
116545 ac_config_files="$ac_config_files ompi/mca/btl/openib/Makefile"
116549 ac_config_files="$ac_config_files ompi/mca/btl/portals/Makefile"
116553 ac_config_files="$ac_config_files ompi/mca/btl/self/Makefile"
116557 ac_config_files="$ac_config_files ompi/mca/btl/sm/Makefile"
116561 ac_config_files="$ac_config_files ompi/mca/btl/tcp/Makefile"
116565 ac_config_files="$ac_config_files ompi/mca/coll/basic/Makefile"
116569 ac_config_files="$ac_config_files ompi/mca/coll/hierarch/Makefile"
116573 ac_config_files="$ac_config_files ompi/mca/coll/self/Makefile"
116577 ac_config_files="$ac_config_files ompi/mca/coll/sm/Makefile"
116581 ac_config_files="$ac_config_files ompi/mca/coll/tuned/Makefile"
116585 ac_config_files="$ac_config_files ompi/mca/common/sm/Makefile"
116589 ac_config_files="$ac_config_files ompi/mca/io/romio/Makefile"
116593 ac_config_files="$ac_config_files ompi/mca/mpool/gm/Makefile"
116597 ac_config_files="$ac_config_files ompi/mca/mpool/mvapi/Makefile"
116601 ac_config_files="$ac_config_files ompi/mca/mpool/openib/Makefile"
116605 ac_config_files="$ac_config_files ompi/mca/mpool/sm/Makefile"
116609 ac_config_files="$ac_config_files ompi/mca/osc/pt2pt/Makefile"
116613 ac_config_files="$ac_config_files ompi/mca/pml/ob1/Makefile"
116617 ac_config_files="$ac_config_files ompi/mca/rcache/rb/Makefile"
116621 ac_config_files="$ac_config_files ompi/mca/topo/unity/Makefile"
116628 # checkpoint results
116629 cat >confcache <<\_ACEOF
116630 # This file is a shell script that caches the results of configure
116631 # tests run on this system so they can be shared between configure
116632 # scripts and configure runs, see configure's option --config-cache.
116633 # It is not useful on other systems. If it contains results you don't
116634 # want to keep, you may remove or edit it.
116636 # config.status only pays attention to the cache file if you give it
116637 # the --recheck option to rerun configure.
116639 # `ac_cv_env_foo' variables (set or unset) will be overridden when
116640 # loading this file, other *unset* `ac_cv_foo' will be assigned the
116641 # following values.
116643 _ACEOF
116645 # The following way of writing the cache mishandles newlines in values,
116646 # but we know of no workaround that is simple, portable, and efficient.
116647 # So, we kill variables containing newlines.
116648 # Ultrix sh set writes to stderr and can't be redirected directly,
116649 # and sets the high bit in the cache file unless we assign to the vars.
116651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
116652 eval ac_val=\$$ac_var
116653 case $ac_val in #(
116654 *${as_nl}*)
116655 case $ac_var in #(
116656 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
116657 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
116659 case $ac_var in #(
116660 _ | IFS | as_nl) ;; #(
116661 *) $as_unset $ac_var ;;
116662 esac ;;
116666 (set) 2>&1 |
116667 case $as_nl`(ac_space=' '; set) 2>&1` in #(
116668 *${as_nl}ac_space=\ *)
116669 # `set' does not quote correctly, so add quotes (double-quote
116670 # substitution turns \\\\ into \\, and sed turns \\ into \).
116671 sed -n \
116672 "s/'/'\\\\''/g;
116673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
116674 ;; #(
116676 # `set' quotes correctly as required by POSIX, so do not add quotes.
116677 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
116679 esac |
116682 sed '
116683 /^ac_cv_env_/b end
116684 t clear
116685 :clear
116686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
116687 t end
116688 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
116689 :end' >>confcache
116690 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
116691 if test -w "$cache_file"; then
116692 test "x$cache_file" != "x/dev/null" &&
116693 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
116694 echo "$as_me: updating cache $cache_file" >&6;}
116695 cat confcache >$cache_file
116697 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
116698 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
116701 rm -f confcache
116704 ############################################################################
116705 # Final top-level OMPI configuration
116706 ############################################################################
116708 ompi_show_title "Final top-level OMPI configuration"
116710 ############################################################################
116711 # Libevent setup
116712 ############################################################################
116714 ompi_show_subtitle "Libevent 3rd party event handler"
116715 CFLAGS_save="$CFLAGS"
116716 CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY"
116719 sources=
116722 # Check whether --with-event-rtsig was given.
116723 if test "${with_event_rtsig+set}" = set; then
116724 withval=$with_event_rtsig; usertsig=yes
116726 usertsig=no
116731 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
116732 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
116733 if test "${ac_cv_header_stdc+set}" = set; then
116734 echo $ECHO_N "(cached) $ECHO_C" >&6
116736 cat >conftest.$ac_ext <<_ACEOF
116737 /* confdefs.h. */
116738 _ACEOF
116739 cat confdefs.h >>conftest.$ac_ext
116740 cat >>conftest.$ac_ext <<_ACEOF
116741 /* end confdefs.h. */
116742 #include <stdlib.h>
116743 #include <stdarg.h>
116744 #include <string.h>
116745 #include <float.h>
116748 main ()
116752 return 0;
116754 _ACEOF
116755 rm -f conftest.$ac_objext
116756 if { (ac_try="$ac_compile"
116757 case "(($ac_try" in
116758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116759 *) ac_try_echo=$ac_try;;
116761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
116762 (eval "$ac_compile") 2>conftest.er1
116763 ac_status=$?
116764 grep -v '^ *+' conftest.er1 >conftest.err
116765 rm -f conftest.er1
116766 cat conftest.err >&5
116767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
116768 (exit $ac_status); } && {
116769 test -z "$ac_c_werror_flag" ||
116770 test ! -s conftest.err
116771 } && test -s conftest.$ac_objext; then
116772 ac_cv_header_stdc=yes
116774 echo "$as_me: failed program was:" >&5
116775 sed 's/^/| /' conftest.$ac_ext >&5
116777 ac_cv_header_stdc=no
116780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
116782 if test $ac_cv_header_stdc = yes; then
116783 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
116784 cat >conftest.$ac_ext <<_ACEOF
116785 /* confdefs.h. */
116786 _ACEOF
116787 cat confdefs.h >>conftest.$ac_ext
116788 cat >>conftest.$ac_ext <<_ACEOF
116789 /* end confdefs.h. */
116790 #include <string.h>
116792 _ACEOF
116793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
116794 $EGREP "memchr" >/dev/null 2>&1; then
116797 ac_cv_header_stdc=no
116799 rm -f conftest*
116803 if test $ac_cv_header_stdc = yes; then
116804 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
116805 cat >conftest.$ac_ext <<_ACEOF
116806 /* confdefs.h. */
116807 _ACEOF
116808 cat confdefs.h >>conftest.$ac_ext
116809 cat >>conftest.$ac_ext <<_ACEOF
116810 /* end confdefs.h. */
116811 #include <stdlib.h>
116813 _ACEOF
116814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
116815 $EGREP "free" >/dev/null 2>&1; then
116818 ac_cv_header_stdc=no
116820 rm -f conftest*
116824 if test $ac_cv_header_stdc = yes; then
116825 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
116826 if test "$cross_compiling" = yes; then
116829 cat >conftest.$ac_ext <<_ACEOF
116830 /* confdefs.h. */
116831 _ACEOF
116832 cat confdefs.h >>conftest.$ac_ext
116833 cat >>conftest.$ac_ext <<_ACEOF
116834 /* end confdefs.h. */
116835 #include <ctype.h>
116836 #include <stdlib.h>
116837 #if ((' ' & 0x0FF) == 0x020)
116838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
116839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
116840 #else
116841 # define ISLOWER(c) \
116842 (('a' <= (c) && (c) <= 'i') \
116843 || ('j' <= (c) && (c) <= 'r') \
116844 || ('s' <= (c) && (c) <= 'z'))
116845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
116846 #endif
116848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
116850 main ()
116852 int i;
116853 for (i = 0; i < 256; i++)
116854 if (XOR (islower (i), ISLOWER (i))
116855 || toupper (i) != TOUPPER (i))
116856 return 2;
116857 return 0;
116859 _ACEOF
116860 rm -f conftest$ac_exeext
116861 if { (ac_try="$ac_link"
116862 case "(($ac_try" in
116863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116864 *) ac_try_echo=$ac_try;;
116866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
116867 (eval "$ac_link") 2>&5
116868 ac_status=$?
116869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
116870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
116871 { (case "(($ac_try" in
116872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116873 *) ac_try_echo=$ac_try;;
116875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
116876 (eval "$ac_try") 2>&5
116877 ac_status=$?
116878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
116879 (exit $ac_status); }; }; then
116882 echo "$as_me: program exited with status $ac_status" >&5
116883 echo "$as_me: failed program was:" >&5
116884 sed 's/^/| /' conftest.$ac_ext >&5
116886 ( exit $ac_status )
116887 ac_cv_header_stdc=no
116889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
116895 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
116896 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
116897 if test $ac_cv_header_stdc = yes; then
116899 cat >>confdefs.h <<\_ACEOF
116900 #define STDC_HEADERS 1
116901 _ACEOF
116914 for ac_header in inttypes.h stdint.h poll.h signal.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h
116916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
116917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
116918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
116919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
116920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
116921 echo $ECHO_N "(cached) $ECHO_C" >&6
116923 ac_res=`eval echo '${'$as_ac_Header'}'`
116924 { echo "$as_me:$LINENO: result: $ac_res" >&5
116925 echo "${ECHO_T}$ac_res" >&6; }
116927 # Is the header compilable?
116928 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
116929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
116930 cat >conftest.$ac_ext <<_ACEOF
116931 /* confdefs.h. */
116932 _ACEOF
116933 cat confdefs.h >>conftest.$ac_ext
116934 cat >>conftest.$ac_ext <<_ACEOF
116935 /* end confdefs.h. */
116936 $ac_includes_default
116937 #include <$ac_header>
116938 _ACEOF
116939 rm -f conftest.$ac_objext
116940 if { (ac_try="$ac_compile"
116941 case "(($ac_try" in
116942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116943 *) ac_try_echo=$ac_try;;
116945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
116946 (eval "$ac_compile") 2>conftest.er1
116947 ac_status=$?
116948 grep -v '^ *+' conftest.er1 >conftest.err
116949 rm -f conftest.er1
116950 cat conftest.err >&5
116951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
116952 (exit $ac_status); } && {
116953 test -z "$ac_c_werror_flag" ||
116954 test ! -s conftest.err
116955 } && test -s conftest.$ac_objext; then
116956 ac_header_compiler=yes
116958 echo "$as_me: failed program was:" >&5
116959 sed 's/^/| /' conftest.$ac_ext >&5
116961 ac_header_compiler=no
116964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
116965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
116966 echo "${ECHO_T}$ac_header_compiler" >&6; }
116968 # Is the header present?
116969 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
116970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
116971 cat >conftest.$ac_ext <<_ACEOF
116972 /* confdefs.h. */
116973 _ACEOF
116974 cat confdefs.h >>conftest.$ac_ext
116975 cat >>conftest.$ac_ext <<_ACEOF
116976 /* end confdefs.h. */
116977 #include <$ac_header>
116978 _ACEOF
116979 if { (ac_try="$ac_cpp conftest.$ac_ext"
116980 case "(($ac_try" in
116981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116982 *) ac_try_echo=$ac_try;;
116984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
116985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
116986 ac_status=$?
116987 grep -v '^ *+' conftest.er1 >conftest.err
116988 rm -f conftest.er1
116989 cat conftest.err >&5
116990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
116991 (exit $ac_status); } >/dev/null && {
116992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
116993 test ! -s conftest.err
116994 }; then
116995 ac_header_preproc=yes
116997 echo "$as_me: failed program was:" >&5
116998 sed 's/^/| /' conftest.$ac_ext >&5
117000 ac_header_preproc=no
117003 rm -f conftest.err conftest.$ac_ext
117004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
117005 echo "${ECHO_T}$ac_header_preproc" >&6; }
117007 # So? What about this header?
117008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
117009 yes:no: )
117010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
117011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
117012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
117013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
117014 ac_header_preproc=yes
117016 no:yes:* )
117017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
117018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
117019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
117020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
117021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
117022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
117023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
117024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
117025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
117026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
117027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
117028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
117029 ( cat <<\_ASBOX
117030 ## ------------------------------------------------------ ##
117031 ## Report this to http://www.open-mpi.org/community/help/ ##
117032 ## ------------------------------------------------------ ##
117033 _ASBOX
117034 ) | sed "s/^/$as_me: WARNING: /" >&2
117037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
117038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
117039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
117040 echo $ECHO_N "(cached) $ECHO_C" >&6
117042 eval "$as_ac_Header=\$ac_header_preproc"
117044 ac_res=`eval echo '${'$as_ac_Header'}'`
117045 { echo "$as_me:$LINENO: result: $ac_res" >&5
117046 echo "${ECHO_T}$ac_res" >&6; }
117049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
117050 cat >>confdefs.h <<_ACEOF
117051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
117052 _ACEOF
117058 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
117059 { echo "$as_me:$LINENO: checking for TAILQ_FOREACH in sys/queue.h" >&5
117060 echo $ECHO_N "checking for TAILQ_FOREACH in sys/queue.h... $ECHO_C" >&6; }
117061 cat >conftest.$ac_ext <<_ACEOF
117062 /* confdefs.h. */
117063 _ACEOF
117064 cat confdefs.h >>conftest.$ac_ext
117065 cat >>conftest.$ac_ext <<_ACEOF
117066 /* end confdefs.h. */
117068 #include <sys/queue.h>
117069 #ifdef TAILQ_FOREACH
117071 #endif
117073 _ACEOF
117074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
117075 $EGREP "yes" >/dev/null 2>&1; then
117076 { echo "$as_me:$LINENO: result: yes" >&5
117077 echo "${ECHO_T}yes" >&6; }
117079 cat >>confdefs.h <<\_ACEOF
117080 #define HAVE_TAILQFOREACH 1
117081 _ACEOF
117084 { echo "$as_me:$LINENO: result: no" >&5
117085 echo "${ECHO_T}no" >&6; }
117088 rm -f conftest*
117092 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
117093 { echo "$as_me:$LINENO: checking for timeradd in sys/time.h" >&5
117094 echo $ECHO_N "checking for timeradd in sys/time.h... $ECHO_C" >&6; }
117095 cat >conftest.$ac_ext <<_ACEOF
117096 /* confdefs.h. */
117097 _ACEOF
117098 cat confdefs.h >>conftest.$ac_ext
117099 cat >>conftest.$ac_ext <<_ACEOF
117100 /* end confdefs.h. */
117102 #include <sys/time.h>
117103 #ifdef timeradd
117105 #endif
117107 _ACEOF
117108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
117109 $EGREP "yes" >/dev/null 2>&1; then
117111 cat >>confdefs.h <<\_ACEOF
117112 #define HAVE_TIMERADD 1
117113 _ACEOF
117115 { echo "$as_me:$LINENO: result: yes" >&5
117116 echo "${ECHO_T}yes" >&6; }
117118 { echo "$as_me:$LINENO: result: no" >&5
117119 echo "${ECHO_T}no" >&6; }
117122 rm -f conftest*
117126 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
117127 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
117128 if test "${ac_cv_header_time+set}" = set; then
117129 echo $ECHO_N "(cached) $ECHO_C" >&6
117131 cat >conftest.$ac_ext <<_ACEOF
117132 /* confdefs.h. */
117133 _ACEOF
117134 cat confdefs.h >>conftest.$ac_ext
117135 cat >>conftest.$ac_ext <<_ACEOF
117136 /* end confdefs.h. */
117137 #include <sys/types.h>
117138 #include <sys/time.h>
117139 #include <time.h>
117142 main ()
117144 if ((struct tm *) 0)
117145 return 0;
117147 return 0;
117149 _ACEOF
117150 rm -f conftest.$ac_objext
117151 if { (ac_try="$ac_compile"
117152 case "(($ac_try" in
117153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117154 *) ac_try_echo=$ac_try;;
117156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
117157 (eval "$ac_compile") 2>conftest.er1
117158 ac_status=$?
117159 grep -v '^ *+' conftest.er1 >conftest.err
117160 rm -f conftest.er1
117161 cat conftest.err >&5
117162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
117163 (exit $ac_status); } && {
117164 test -z "$ac_c_werror_flag" ||
117165 test ! -s conftest.err
117166 } && test -s conftest.$ac_objext; then
117167 ac_cv_header_time=yes
117169 echo "$as_me: failed program was:" >&5
117170 sed 's/^/| /' conftest.$ac_ext >&5
117172 ac_cv_header_time=no
117175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
117177 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
117178 echo "${ECHO_T}$ac_cv_header_time" >&6; }
117179 if test $ac_cv_header_time = yes; then
117181 cat >>confdefs.h <<\_ACEOF
117182 #define TIME_WITH_SYS_TIME 1
117183 _ACEOF
117189 for ac_func in gettimeofday
117191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
117192 { echo "$as_me:$LINENO: checking for $ac_func" >&5
117193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
117194 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
117195 echo $ECHO_N "(cached) $ECHO_C" >&6
117197 cat >conftest.$ac_ext <<_ACEOF
117198 /* confdefs.h. */
117199 _ACEOF
117200 cat confdefs.h >>conftest.$ac_ext
117201 cat >>conftest.$ac_ext <<_ACEOF
117202 /* end confdefs.h. */
117203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
117204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
117205 #define $ac_func innocuous_$ac_func
117207 /* System header to define __stub macros and hopefully few prototypes,
117208 which can conflict with char $ac_func (); below.
117209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
117210 <limits.h> exists even on freestanding compilers. */
117212 #ifdef __STDC__
117213 # include <limits.h>
117214 #else
117215 # include <assert.h>
117216 #endif
117218 #undef $ac_func
117220 /* Override any GCC internal prototype to avoid an error.
117221 Use char because int might match the return type of a GCC
117222 builtin and then its argument prototype would still apply. */
117223 #ifdef __cplusplus
117224 extern "C"
117225 #endif
117226 char $ac_func ();
117227 /* The GNU C library defines this for functions which it implements
117228 to always fail with ENOSYS. Some functions are actually named
117229 something starting with __ and the normal name is an alias. */
117230 #if defined __stub_$ac_func || defined __stub___$ac_func
117231 choke me
117232 #endif
117235 main ()
117237 return $ac_func ();
117239 return 0;
117241 _ACEOF
117242 rm -f conftest.$ac_objext conftest$ac_exeext
117243 if { (ac_try="$ac_link"
117244 case "(($ac_try" in
117245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117246 *) ac_try_echo=$ac_try;;
117248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
117249 (eval "$ac_link") 2>conftest.er1
117250 ac_status=$?
117251 grep -v '^ *+' conftest.er1 >conftest.err
117252 rm -f conftest.er1
117253 cat conftest.err >&5
117254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
117255 (exit $ac_status); } && {
117256 test -z "$ac_c_werror_flag" ||
117257 test ! -s conftest.err
117258 } && test -s conftest$ac_exeext &&
117259 $as_test_x conftest$ac_exeext; then
117260 eval "$as_ac_var=yes"
117262 echo "$as_me: failed program was:" >&5
117263 sed 's/^/| /' conftest.$ac_ext >&5
117265 eval "$as_ac_var=no"
117268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117269 conftest$ac_exeext conftest.$ac_ext
117271 ac_res=`eval echo '${'$as_ac_var'}'`
117272 { echo "$as_me:$LINENO: result: $ac_res" >&5
117273 echo "${ECHO_T}$ac_res" >&6; }
117274 if test `eval echo '${'$as_ac_var'}'` = yes; then
117275 cat >>confdefs.h <<_ACEOF
117276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
117277 _ACEOF
117283 needsignal=no
117284 haveselect=no
117286 for ac_func in select
117288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
117289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
117290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
117291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
117292 echo $ECHO_N "(cached) $ECHO_C" >&6
117294 cat >conftest.$ac_ext <<_ACEOF
117295 /* confdefs.h. */
117296 _ACEOF
117297 cat confdefs.h >>conftest.$ac_ext
117298 cat >>conftest.$ac_ext <<_ACEOF
117299 /* end confdefs.h. */
117300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
117301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
117302 #define $ac_func innocuous_$ac_func
117304 /* System header to define __stub macros and hopefully few prototypes,
117305 which can conflict with char $ac_func (); below.
117306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
117307 <limits.h> exists even on freestanding compilers. */
117309 #ifdef __STDC__
117310 # include <limits.h>
117311 #else
117312 # include <assert.h>
117313 #endif
117315 #undef $ac_func
117317 /* Override any GCC internal prototype to avoid an error.
117318 Use char because int might match the return type of a GCC
117319 builtin and then its argument prototype would still apply. */
117320 #ifdef __cplusplus
117321 extern "C"
117322 #endif
117323 char $ac_func ();
117324 /* The GNU C library defines this for functions which it implements
117325 to always fail with ENOSYS. Some functions are actually named
117326 something starting with __ and the normal name is an alias. */
117327 #if defined __stub_$ac_func || defined __stub___$ac_func
117328 choke me
117329 #endif
117332 main ()
117334 return $ac_func ();
117336 return 0;
117338 _ACEOF
117339 rm -f conftest.$ac_objext conftest$ac_exeext
117340 if { (ac_try="$ac_link"
117341 case "(($ac_try" in
117342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117343 *) ac_try_echo=$ac_try;;
117345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
117346 (eval "$ac_link") 2>conftest.er1
117347 ac_status=$?
117348 grep -v '^ *+' conftest.er1 >conftest.err
117349 rm -f conftest.er1
117350 cat conftest.err >&5
117351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
117352 (exit $ac_status); } && {
117353 test -z "$ac_c_werror_flag" ||
117354 test ! -s conftest.err
117355 } && test -s conftest$ac_exeext &&
117356 $as_test_x conftest$ac_exeext; then
117357 eval "$as_ac_var=yes"
117359 echo "$as_me: failed program was:" >&5
117360 sed 's/^/| /' conftest.$ac_ext >&5
117362 eval "$as_ac_var=no"
117365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117366 conftest$ac_exeext conftest.$ac_ext
117368 ac_res=`eval echo '${'$as_ac_var'}'`
117369 { echo "$as_me:$LINENO: result: $ac_res" >&5
117370 echo "${ECHO_T}$ac_res" >&6; }
117371 if test `eval echo '${'$as_ac_var'}'` = yes; then
117372 cat >>confdefs.h <<_ACEOF
117373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
117374 _ACEOF
117375 haveselect=yes
117379 if test "x$haveselect" = "xyes" ; then
117380 # OMPI: Don't use AC_LIBOBJ
117381 sources="select.c $sources"
117382 needsignal=yes
117385 havepoll=no
117386 havertsig=no
117388 for ac_func in poll
117390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
117391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
117392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
117393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
117394 echo $ECHO_N "(cached) $ECHO_C" >&6
117396 cat >conftest.$ac_ext <<_ACEOF
117397 /* confdefs.h. */
117398 _ACEOF
117399 cat confdefs.h >>conftest.$ac_ext
117400 cat >>conftest.$ac_ext <<_ACEOF
117401 /* end confdefs.h. */
117402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
117403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
117404 #define $ac_func innocuous_$ac_func
117406 /* System header to define __stub macros and hopefully few prototypes,
117407 which can conflict with char $ac_func (); below.
117408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
117409 <limits.h> exists even on freestanding compilers. */
117411 #ifdef __STDC__
117412 # include <limits.h>
117413 #else
117414 # include <assert.h>
117415 #endif
117417 #undef $ac_func
117419 /* Override any GCC internal prototype to avoid an error.
117420 Use char because int might match the return type of a GCC
117421 builtin and then its argument prototype would still apply. */
117422 #ifdef __cplusplus
117423 extern "C"
117424 #endif
117425 char $ac_func ();
117426 /* The GNU C library defines this for functions which it implements
117427 to always fail with ENOSYS. Some functions are actually named
117428 something starting with __ and the normal name is an alias. */
117429 #if defined __stub_$ac_func || defined __stub___$ac_func
117430 choke me
117431 #endif
117434 main ()
117436 return $ac_func ();
117438 return 0;
117440 _ACEOF
117441 rm -f conftest.$ac_objext conftest$ac_exeext
117442 if { (ac_try="$ac_link"
117443 case "(($ac_try" in
117444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117445 *) ac_try_echo=$ac_try;;
117447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
117448 (eval "$ac_link") 2>conftest.er1
117449 ac_status=$?
117450 grep -v '^ *+' conftest.er1 >conftest.err
117451 rm -f conftest.er1
117452 cat conftest.err >&5
117453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
117454 (exit $ac_status); } && {
117455 test -z "$ac_c_werror_flag" ||
117456 test ! -s conftest.err
117457 } && test -s conftest$ac_exeext &&
117458 $as_test_x conftest$ac_exeext; then
117459 eval "$as_ac_var=yes"
117461 echo "$as_me: failed program was:" >&5
117462 sed 's/^/| /' conftest.$ac_ext >&5
117464 eval "$as_ac_var=no"
117467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117468 conftest$ac_exeext conftest.$ac_ext
117470 ac_res=`eval echo '${'$as_ac_var'}'`
117471 { echo "$as_me:$LINENO: result: $ac_res" >&5
117472 echo "${ECHO_T}$ac_res" >&6; }
117473 if test `eval echo '${'$as_ac_var'}'` = yes; then
117474 cat >>confdefs.h <<_ACEOF
117475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
117476 _ACEOF
117477 havepoll=yes
117481 case "$host" in
117482 *apple-darwin*)
117483 haveworkingpoll=0
117486 if test "$havepoll" = "yes" ; then
117487 haveworkingpoll=1
117489 haveworkingpoll=0
117494 cat >>confdefs.h <<_ACEOF
117495 #define HAVE_WORKING_POLL $haveworkingpoll
117496 _ACEOF
117498 if test "x$havepoll" = "xyes" -a "$haveworkingpoll" = "1" ; then
117499 # OMPI: Don't use AC_LIBOBJ
117500 sources="poll.c $sources"
117501 needsignal=yes
117503 if test "x$usertsig" = "xyes" ; then
117505 for ac_func in sigtimedwait
117507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
117508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
117509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
117510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
117511 echo $ECHO_N "(cached) $ECHO_C" >&6
117513 cat >conftest.$ac_ext <<_ACEOF
117514 /* confdefs.h. */
117515 _ACEOF
117516 cat confdefs.h >>conftest.$ac_ext
117517 cat >>conftest.$ac_ext <<_ACEOF
117518 /* end confdefs.h. */
117519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
117520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
117521 #define $ac_func innocuous_$ac_func
117523 /* System header to define __stub macros and hopefully few prototypes,
117524 which can conflict with char $ac_func (); below.
117525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
117526 <limits.h> exists even on freestanding compilers. */
117528 #ifdef __STDC__
117529 # include <limits.h>
117530 #else
117531 # include <assert.h>
117532 #endif
117534 #undef $ac_func
117536 /* Override any GCC internal prototype to avoid an error.
117537 Use char because int might match the return type of a GCC
117538 builtin and then its argument prototype would still apply. */
117539 #ifdef __cplusplus
117540 extern "C"
117541 #endif
117542 char $ac_func ();
117543 /* The GNU C library defines this for functions which it implements
117544 to always fail with ENOSYS. Some functions are actually named
117545 something starting with __ and the normal name is an alias. */
117546 #if defined __stub_$ac_func || defined __stub___$ac_func
117547 choke me
117548 #endif
117551 main ()
117553 return $ac_func ();
117555 return 0;
117557 _ACEOF
117558 rm -f conftest.$ac_objext conftest$ac_exeext
117559 if { (ac_try="$ac_link"
117560 case "(($ac_try" in
117561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117562 *) ac_try_echo=$ac_try;;
117564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
117565 (eval "$ac_link") 2>conftest.er1
117566 ac_status=$?
117567 grep -v '^ *+' conftest.er1 >conftest.err
117568 rm -f conftest.er1
117569 cat conftest.err >&5
117570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
117571 (exit $ac_status); } && {
117572 test -z "$ac_c_werror_flag" ||
117573 test ! -s conftest.err
117574 } && test -s conftest$ac_exeext &&
117575 $as_test_x conftest$ac_exeext; then
117576 eval "$as_ac_var=yes"
117578 echo "$as_me: failed program was:" >&5
117579 sed 's/^/| /' conftest.$ac_ext >&5
117581 eval "$as_ac_var=no"
117584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117585 conftest$ac_exeext conftest.$ac_ext
117587 ac_res=`eval echo '${'$as_ac_var'}'`
117588 { echo "$as_me:$LINENO: result: $ac_res" >&5
117589 echo "${ECHO_T}$ac_res" >&6; }
117590 if test `eval echo '${'$as_ac_var'}'` = yes; then
117591 cat >>confdefs.h <<_ACEOF
117592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
117593 _ACEOF
117594 havertsig=yes
117600 if test "x$havertsig" = "xyes" ; then
117601 { echo "$as_me:$LINENO: checking for F_SETSIG in fcntl.h" >&5
117602 echo $ECHO_N "checking for F_SETSIG in fcntl.h... $ECHO_C" >&6; }
117603 cat >conftest.$ac_ext <<_ACEOF
117604 /* confdefs.h. */
117605 _ACEOF
117606 cat confdefs.h >>conftest.$ac_ext
117607 cat >>conftest.$ac_ext <<_ACEOF
117608 /* end confdefs.h. */
117610 #define _GNU_SOURCE
117611 #include <fcntl.h>
117612 #ifdef F_SETSIG
117614 #endif
117616 _ACEOF
117617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
117618 $EGREP "yes" >/dev/null 2>&1; then
117619 { echo "$as_me:$LINENO: result: yes" >&5
117620 echo "${ECHO_T}yes" >&6; }
117622 { echo "$as_me:$LINENO: result: no" >&5
117623 echo "${ECHO_T}no" >&6; }; havertsig=no
117625 rm -f conftest*
117628 if test "x$havertsig" = "xyes" ; then
117630 cat >>confdefs.h <<\_ACEOF
117631 #define HAVE_RTSIG 1
117632 _ACEOF
117634 # OMPI: Don't use AC_LIBOBJ
117635 sources="rtsig.c $sources"
117636 { echo "$as_me:$LINENO: checking for working rtsig on pipes" >&5
117637 echo $ECHO_N "checking for working rtsig on pipes... $ECHO_C" >&6; }
117638 if test "$cross_compiling" = yes; then
117639 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
117640 See \`config.log' for more details." >&5
117641 echo "$as_me: error: cannot run test program while cross compiling
117642 See \`config.log' for more details." >&2;}
117643 { (exit 1); exit 1; }; }
117645 cat >conftest.$ac_ext <<_ACEOF
117646 /* confdefs.h. */
117647 _ACEOF
117648 cat confdefs.h >>conftest.$ac_ext
117649 cat >>conftest.$ac_ext <<_ACEOF
117650 /* end confdefs.h. */
117652 #define _GNU_SOURCE
117653 #include <fcntl.h>
117654 #include <signal.h>
117655 #include <unistd.h>
117656 #include <stdlib.h>
117658 int sigio()
117660 exit(0);
117663 int main()
117665 int fd[2];
117667 pipe(fd);
117668 signal(SIGIO, sigio);
117669 fcntl(fd[0], F_SETOWN, getpid());
117670 fcntl(fd[0], F_SETSIG, SIGIO);
117671 fcntl(fd[0], F_SETFL, fcntl(fd[0], F_GETFL) | O_ASYNC);
117672 write(fd[1], "", 1);
117673 return 1;
117676 _ACEOF
117677 rm -f conftest$ac_exeext
117678 if { (ac_try="$ac_link"
117679 case "(($ac_try" in
117680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117681 *) ac_try_echo=$ac_try;;
117683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
117684 (eval "$ac_link") 2>&5
117685 ac_status=$?
117686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
117687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
117688 { (case "(($ac_try" in
117689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117690 *) ac_try_echo=$ac_try;;
117692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
117693 (eval "$ac_try") 2>&5
117694 ac_status=$?
117695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
117696 (exit $ac_status); }; }; then
117697 { echo "$as_me:$LINENO: result: yes" >&5
117698 echo "${ECHO_T}yes" >&6; }
117700 cat >>confdefs.h <<\_ACEOF
117701 #define HAVE_WORKING_RTSIG 1
117702 _ACEOF
117705 echo "$as_me: program exited with status $ac_status" >&5
117706 echo "$as_me: failed program was:" >&5
117707 sed 's/^/| /' conftest.$ac_ext >&5
117709 ( exit $ac_status )
117710 { echo "$as_me:$LINENO: result: no" >&5
117711 echo "${ECHO_T}no" >&6; }
117713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
117719 haveepoll=no
117721 for ac_func in epoll_ctl
117723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
117724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
117725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
117726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
117727 echo $ECHO_N "(cached) $ECHO_C" >&6
117729 cat >conftest.$ac_ext <<_ACEOF
117730 /* confdefs.h. */
117731 _ACEOF
117732 cat confdefs.h >>conftest.$ac_ext
117733 cat >>conftest.$ac_ext <<_ACEOF
117734 /* end confdefs.h. */
117735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
117736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
117737 #define $ac_func innocuous_$ac_func
117739 /* System header to define __stub macros and hopefully few prototypes,
117740 which can conflict with char $ac_func (); below.
117741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
117742 <limits.h> exists even on freestanding compilers. */
117744 #ifdef __STDC__
117745 # include <limits.h>
117746 #else
117747 # include <assert.h>
117748 #endif
117750 #undef $ac_func
117752 /* Override any GCC internal prototype to avoid an error.
117753 Use char because int might match the return type of a GCC
117754 builtin and then its argument prototype would still apply. */
117755 #ifdef __cplusplus
117756 extern "C"
117757 #endif
117758 char $ac_func ();
117759 /* The GNU C library defines this for functions which it implements
117760 to always fail with ENOSYS. Some functions are actually named
117761 something starting with __ and the normal name is an alias. */
117762 #if defined __stub_$ac_func || defined __stub___$ac_func
117763 choke me
117764 #endif
117767 main ()
117769 return $ac_func ();
117771 return 0;
117773 _ACEOF
117774 rm -f conftest.$ac_objext conftest$ac_exeext
117775 if { (ac_try="$ac_link"
117776 case "(($ac_try" in
117777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117778 *) ac_try_echo=$ac_try;;
117780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
117781 (eval "$ac_link") 2>conftest.er1
117782 ac_status=$?
117783 grep -v '^ *+' conftest.er1 >conftest.err
117784 rm -f conftest.er1
117785 cat conftest.err >&5
117786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
117787 (exit $ac_status); } && {
117788 test -z "$ac_c_werror_flag" ||
117789 test ! -s conftest.err
117790 } && test -s conftest$ac_exeext &&
117791 $as_test_x conftest$ac_exeext; then
117792 eval "$as_ac_var=yes"
117794 echo "$as_me: failed program was:" >&5
117795 sed 's/^/| /' conftest.$ac_ext >&5
117797 eval "$as_ac_var=no"
117800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117801 conftest$ac_exeext conftest.$ac_ext
117803 ac_res=`eval echo '${'$as_ac_var'}'`
117804 { echo "$as_me:$LINENO: result: $ac_res" >&5
117805 echo "${ECHO_T}$ac_res" >&6; }
117806 if test `eval echo '${'$as_ac_var'}'` = yes; then
117807 cat >>confdefs.h <<_ACEOF
117808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
117809 _ACEOF
117810 haveepoll=yes
117814 if test "x$haveepoll" = "xyes" -a "$cross_compiling" != "yes" ; then
117816 # OMPI: Unfortunately, this test is not sufficient on some
117817 # Linux distros (e.g., RH 9), where the function is defined
117818 # and you can link against it, but it's hardwired to return
117819 # ENOSYS -- and /usr/include/gnu/stubs.h fails to define
117820 # __stub_epoll_ctl (the usual mechanism in glibc to indicate
117821 # that a function is a stub and isn't really implemented).
117822 # Hence, the test succeeds because it thinks it can use
117823 # epoll_ctl (and friends). So we have to do a better test
117824 # after we determine that epoll_ctl is linkable. Grumble.
117825 # If we are cross compiling, just trust AC_CHECK_FUNCS
117827 { echo "$as_me:$LINENO: checking for epoll_ctl on broken Linux distros" >&5
117828 echo $ECHO_N "checking for epoll_ctl on broken Linux distros... $ECHO_C" >&6; }
117829 rm -f conftest.out
117830 if test "$cross_compiling" = yes; then
117831 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
117832 See \`config.log' for more details." >&5
117833 echo "$as_me: error: cannot run test program while cross compiling
117834 See \`config.log' for more details." >&2;}
117835 { (exit 1); exit 1; }; }
117837 cat >conftest.$ac_ext <<_ACEOF
117838 /* confdefs.h. */
117839 _ACEOF
117840 cat confdefs.h >>conftest.$ac_ext
117841 cat >>conftest.$ac_ext <<_ACEOF
117842 /* end confdefs.h. */
117844 $ac_includes_default
117845 #include <sys/epoll.h>
117847 main ()
117849 int i = epoll_create(2);
117850 FILE *fp = fopen("conftest.out", "w");
117851 fprintf(fp, "%d", i);
117852 fclose(fp);
117854 return 0;
117856 _ACEOF
117857 rm -f conftest$ac_exeext
117858 if { (ac_try="$ac_link"
117859 case "(($ac_try" in
117860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117861 *) ac_try_echo=$ac_try;;
117863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
117864 (eval "$ac_link") 2>&5
117865 ac_status=$?
117866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
117867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
117868 { (case "(($ac_try" in
117869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117870 *) ac_try_echo=$ac_try;;
117872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
117873 (eval "$ac_try") 2>&5
117874 ac_status=$?
117875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
117876 (exit $ac_status); }; }; then
117879 echo "$as_me: program exited with status $ac_status" >&5
117880 echo "$as_me: failed program was:" >&5
117881 sed 's/^/| /' conftest.$ac_ext >&5
117884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
117888 haveepoll=no
117889 if test -f conftest.out -a "`cat conftest.out`" = "0"; then
117890 haveepoll=yes
117892 rm -f conftest.out
117893 { echo "$as_me:$LINENO: result: $haveepoll" >&5
117894 echo "${ECHO_T}$haveepoll" >&6; }
117897 if test "x$haveepoll" = "xyes" ; then
117899 cat >>confdefs.h <<\_ACEOF
117900 #define HAVE_EPOLL 1
117901 _ACEOF
117903 # OMPI: Don't use AC_LIBOBJ
117904 sources="epoll.c $sources"
117905 needsignal=yes
117908 havekqueue=no
117909 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
117911 for ac_func in kqueue
117913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
117914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
117915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
117916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
117917 echo $ECHO_N "(cached) $ECHO_C" >&6
117919 cat >conftest.$ac_ext <<_ACEOF
117920 /* confdefs.h. */
117921 _ACEOF
117922 cat confdefs.h >>conftest.$ac_ext
117923 cat >>conftest.$ac_ext <<_ACEOF
117924 /* end confdefs.h. */
117925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
117926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
117927 #define $ac_func innocuous_$ac_func
117929 /* System header to define __stub macros and hopefully few prototypes,
117930 which can conflict with char $ac_func (); below.
117931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
117932 <limits.h> exists even on freestanding compilers. */
117934 #ifdef __STDC__
117935 # include <limits.h>
117936 #else
117937 # include <assert.h>
117938 #endif
117940 #undef $ac_func
117942 /* Override any GCC internal prototype to avoid an error.
117943 Use char because int might match the return type of a GCC
117944 builtin and then its argument prototype would still apply. */
117945 #ifdef __cplusplus
117946 extern "C"
117947 #endif
117948 char $ac_func ();
117949 /* The GNU C library defines this for functions which it implements
117950 to always fail with ENOSYS. Some functions are actually named
117951 something starting with __ and the normal name is an alias. */
117952 #if defined __stub_$ac_func || defined __stub___$ac_func
117953 choke me
117954 #endif
117957 main ()
117959 return $ac_func ();
117961 return 0;
117963 _ACEOF
117964 rm -f conftest.$ac_objext conftest$ac_exeext
117965 if { (ac_try="$ac_link"
117966 case "(($ac_try" in
117967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117968 *) ac_try_echo=$ac_try;;
117970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
117971 (eval "$ac_link") 2>conftest.er1
117972 ac_status=$?
117973 grep -v '^ *+' conftest.er1 >conftest.err
117974 rm -f conftest.er1
117975 cat conftest.err >&5
117976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
117977 (exit $ac_status); } && {
117978 test -z "$ac_c_werror_flag" ||
117979 test ! -s conftest.err
117980 } && test -s conftest$ac_exeext &&
117981 $as_test_x conftest$ac_exeext; then
117982 eval "$as_ac_var=yes"
117984 echo "$as_me: failed program was:" >&5
117985 sed 's/^/| /' conftest.$ac_ext >&5
117987 eval "$as_ac_var=no"
117990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117991 conftest$ac_exeext conftest.$ac_ext
117993 ac_res=`eval echo '${'$as_ac_var'}'`
117994 { echo "$as_me:$LINENO: result: $ac_res" >&5
117995 echo "${ECHO_T}$ac_res" >&6; }
117996 if test `eval echo '${'$as_ac_var'}'` = yes; then
117997 cat >>confdefs.h <<_ACEOF
117998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
117999 _ACEOF
118000 havekqueue=yes
118004 if test "x$havekqueue" = "xyes" ; then
118005 { echo "$as_me:$LINENO: checking for working kqueue" >&5
118006 echo $ECHO_N "checking for working kqueue... $ECHO_C" >&6; }
118007 if test "$cross_compiling" = yes; then
118008 { echo "$as_me:$LINENO: result: no" >&5
118009 echo "${ECHO_T}no" >&6; }
118011 cat >conftest.$ac_ext <<_ACEOF
118012 /* confdefs.h. */
118013 _ACEOF
118014 cat confdefs.h >>conftest.$ac_ext
118015 cat >>conftest.$ac_ext <<_ACEOF
118016 /* end confdefs.h. */
118017 #include <sys/types.h>
118018 #include <sys/time.h>
118019 #include <sys/event.h>
118020 #include <stdio.h>
118021 #include <unistd.h>
118022 #include <fcntl.h>
118023 #include <stdlib.h>
118026 main(int argc, char **argv)
118028 int kq;
118029 int n;
118030 int fd[2];
118031 struct kevent ev;
118032 struct timespec ts;
118033 char buf[8000];
118035 if (pipe(fd) == -1)
118036 exit(1);
118037 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
118038 exit(1);
118040 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
118043 if ((kq = kqueue()) == -1)
118044 exit(1);
118046 ev.ident = fd[1];
118047 ev.filter = EVFILT_WRITE;
118048 ev.flags = EV_ADD | EV_ENABLE;
118049 n = kevent(kq, &ev, 1, NULL, 0, NULL);
118050 if (n == -1)
118051 exit(1);
118053 read(fd[0], buf, sizeof(buf));
118055 ts.tv_sec = 0;
118056 ts.tv_nsec = 0;
118057 n = kevent(kq, NULL, 0, &ev, 1, &ts);
118058 if (n == -1 || n == 0)
118059 exit(1);
118061 exit(0);
118063 _ACEOF
118064 rm -f conftest$ac_exeext
118065 if { (ac_try="$ac_link"
118066 case "(($ac_try" in
118067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118068 *) ac_try_echo=$ac_try;;
118070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
118071 (eval "$ac_link") 2>&5
118072 ac_status=$?
118073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
118074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
118075 { (case "(($ac_try" in
118076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118077 *) ac_try_echo=$ac_try;;
118079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
118080 (eval "$ac_try") 2>&5
118081 ac_status=$?
118082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
118083 (exit $ac_status); }; }; then
118084 { echo "$as_me:$LINENO: result: yes" >&5
118085 echo "${ECHO_T}yes" >&6; }
118087 cat >>confdefs.h <<\_ACEOF
118088 #define HAVE_WORKING_KQUEUE 1
118089 _ACEOF
118091 sources="kqueue.c $sources"
118093 echo "$as_me: program exited with status $ac_status" >&5
118094 echo "$as_me: failed program was:" >&5
118095 sed 's/^/| /' conftest.$ac_ext >&5
118097 ( exit $ac_status )
118098 { echo "$as_me:$LINENO: result: no" >&5
118099 echo "${ECHO_T}no" >&6; }
118101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
118105 # OMPI: don't use AC_LIBOBJ
118109 haveepollsyscall=no
118110 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
118111 if test "x$haveepoll" = "xno" ; then
118112 { echo "$as_me:$LINENO: checking for epoll system call" >&5
118113 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
118114 if test "$cross_compiling" = yes; then
118115 { echo "$as_me:$LINENO: result: no" >&5
118116 echo "${ECHO_T}no" >&6; }
118118 cat >conftest.$ac_ext <<_ACEOF
118119 /* confdefs.h. */
118120 _ACEOF
118121 cat confdefs.h >>conftest.$ac_ext
118122 cat >>conftest.$ac_ext <<_ACEOF
118123 /* end confdefs.h. */
118124 #include <stdint.h>
118125 #include <sys/param.h>
118126 #include <sys/types.h>
118127 #include <sys/syscall.h>
118128 #include <sys/epoll.h>
118129 #include <unistd.h>
118130 #include <stdlib.h>
118133 epoll_create(int size)
118135 return (syscall(__NR_epoll_create, size));
118139 main(int argc, char **argv)
118141 int epfd;
118143 epfd = epoll_create(256);
118144 exit (epfd == -1 ? 1 : 0);
118146 _ACEOF
118147 rm -f conftest$ac_exeext
118148 if { (ac_try="$ac_link"
118149 case "(($ac_try" in
118150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118151 *) ac_try_echo=$ac_try;;
118153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
118154 (eval "$ac_link") 2>&5
118155 ac_status=$?
118156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
118157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
118158 { (case "(($ac_try" in
118159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118160 *) ac_try_echo=$ac_try;;
118162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
118163 (eval "$ac_try") 2>&5
118164 ac_status=$?
118165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
118166 (exit $ac_status); }; }; then
118167 { echo "$as_me:$LINENO: result: yes" >&5
118168 echo "${ECHO_T}yes" >&6; }
118170 cat >>confdefs.h <<\_ACEOF
118171 #define HAVE_EPOLL 1
118172 _ACEOF
118174 needsignal=yes
118175 # OMPI: don't use AC_LIBOBJ
118176 sources="epoll_sub.c epoll.c $sources"
118179 echo "$as_me: program exited with status $ac_status" >&5
118180 echo "$as_me: failed program was:" >&5
118181 sed 's/^/| /' conftest.$ac_ext >&5
118183 ( exit $ac_status )
118184 { echo "$as_me:$LINENO: result: no" >&5
118185 echo "${ECHO_T}no" >&6; }
118187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
118194 if test "x$needsignal" = "xyes" ; then
118195 # OMPI: don't use AC_LIBOBJ
118196 sources="signal.c $sources"
118199 # OMPI: AC_REPLACE_FUNCS doesn't have much meaning here because it
118200 # uses AC_LIBOBJ; use our own test
118201 #AC_REPLACE_FUNCS(err)
118202 { echo "$as_me:$LINENO: checking for err" >&5
118203 echo $ECHO_N "checking for err... $ECHO_C" >&6; }
118204 if test "${ac_cv_func_err+set}" = set; then
118205 echo $ECHO_N "(cached) $ECHO_C" >&6
118207 cat >conftest.$ac_ext <<_ACEOF
118208 /* confdefs.h. */
118209 _ACEOF
118210 cat confdefs.h >>conftest.$ac_ext
118211 cat >>conftest.$ac_ext <<_ACEOF
118212 /* end confdefs.h. */
118213 /* Define err to an innocuous variant, in case <limits.h> declares err.
118214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
118215 #define err innocuous_err
118217 /* System header to define __stub macros and hopefully few prototypes,
118218 which can conflict with char err (); below.
118219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
118220 <limits.h> exists even on freestanding compilers. */
118222 #ifdef __STDC__
118223 # include <limits.h>
118224 #else
118225 # include <assert.h>
118226 #endif
118228 #undef err
118230 /* Override any GCC internal prototype to avoid an error.
118231 Use char because int might match the return type of a GCC
118232 builtin and then its argument prototype would still apply. */
118233 #ifdef __cplusplus
118234 extern "C"
118235 #endif
118236 char err ();
118237 /* The GNU C library defines this for functions which it implements
118238 to always fail with ENOSYS. Some functions are actually named
118239 something starting with __ and the normal name is an alias. */
118240 #if defined __stub_err || defined __stub___err
118241 choke me
118242 #endif
118245 main ()
118247 return err ();
118249 return 0;
118251 _ACEOF
118252 rm -f conftest.$ac_objext conftest$ac_exeext
118253 if { (ac_try="$ac_link"
118254 case "(($ac_try" in
118255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118256 *) ac_try_echo=$ac_try;;
118258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
118259 (eval "$ac_link") 2>conftest.er1
118260 ac_status=$?
118261 grep -v '^ *+' conftest.er1 >conftest.err
118262 rm -f conftest.er1
118263 cat conftest.err >&5
118264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
118265 (exit $ac_status); } && {
118266 test -z "$ac_c_werror_flag" ||
118267 test ! -s conftest.err
118268 } && test -s conftest$ac_exeext &&
118269 $as_test_x conftest$ac_exeext; then
118270 ac_cv_func_err=yes
118272 echo "$as_me: failed program was:" >&5
118273 sed 's/^/| /' conftest.$ac_ext >&5
118275 ac_cv_func_err=no
118278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
118279 conftest$ac_exeext conftest.$ac_ext
118281 { echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
118282 echo "${ECHO_T}$ac_cv_func_err" >&6; }
118283 if test $ac_cv_func_err = yes; then
118286 sources="err.c $sources"
118290 { echo "$as_me:$LINENO: checking for pid_t" >&5
118291 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
118292 if test "${ac_cv_type_pid_t+set}" = set; then
118293 echo $ECHO_N "(cached) $ECHO_C" >&6
118295 cat >conftest.$ac_ext <<_ACEOF
118296 /* confdefs.h. */
118297 _ACEOF
118298 cat confdefs.h >>conftest.$ac_ext
118299 cat >>conftest.$ac_ext <<_ACEOF
118300 /* end confdefs.h. */
118301 $ac_includes_default
118302 typedef pid_t ac__type_new_;
118304 main ()
118306 if ((ac__type_new_ *) 0)
118307 return 0;
118308 if (sizeof (ac__type_new_))
118309 return 0;
118311 return 0;
118313 _ACEOF
118314 rm -f conftest.$ac_objext
118315 if { (ac_try="$ac_compile"
118316 case "(($ac_try" in
118317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118318 *) ac_try_echo=$ac_try;;
118320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
118321 (eval "$ac_compile") 2>conftest.er1
118322 ac_status=$?
118323 grep -v '^ *+' conftest.er1 >conftest.err
118324 rm -f conftest.er1
118325 cat conftest.err >&5
118326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
118327 (exit $ac_status); } && {
118328 test -z "$ac_c_werror_flag" ||
118329 test ! -s conftest.err
118330 } && test -s conftest.$ac_objext; then
118331 ac_cv_type_pid_t=yes
118333 echo "$as_me: failed program was:" >&5
118334 sed 's/^/| /' conftest.$ac_ext >&5
118336 ac_cv_type_pid_t=no
118339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
118341 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
118342 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
118343 if test $ac_cv_type_pid_t = yes; then
118347 cat >>confdefs.h <<_ACEOF
118348 #define pid_t int
118349 _ACEOF
118353 { echo "$as_me:$LINENO: checking for size_t" >&5
118354 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
118355 if test "${ac_cv_type_size_t+set}" = set; then
118356 echo $ECHO_N "(cached) $ECHO_C" >&6
118358 cat >conftest.$ac_ext <<_ACEOF
118359 /* confdefs.h. */
118360 _ACEOF
118361 cat confdefs.h >>conftest.$ac_ext
118362 cat >>conftest.$ac_ext <<_ACEOF
118363 /* end confdefs.h. */
118364 $ac_includes_default
118365 typedef size_t ac__type_new_;
118367 main ()
118369 if ((ac__type_new_ *) 0)
118370 return 0;
118371 if (sizeof (ac__type_new_))
118372 return 0;
118374 return 0;
118376 _ACEOF
118377 rm -f conftest.$ac_objext
118378 if { (ac_try="$ac_compile"
118379 case "(($ac_try" in
118380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118381 *) ac_try_echo=$ac_try;;
118383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
118384 (eval "$ac_compile") 2>conftest.er1
118385 ac_status=$?
118386 grep -v '^ *+' conftest.er1 >conftest.err
118387 rm -f conftest.er1
118388 cat conftest.err >&5
118389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
118390 (exit $ac_status); } && {
118391 test -z "$ac_c_werror_flag" ||
118392 test ! -s conftest.err
118393 } && test -s conftest.$ac_objext; then
118394 ac_cv_type_size_t=yes
118396 echo "$as_me: failed program was:" >&5
118397 sed 's/^/| /' conftest.$ac_ext >&5
118399 ac_cv_type_size_t=no
118402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
118404 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
118405 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
118406 if test $ac_cv_type_size_t = yes; then
118410 cat >>confdefs.h <<_ACEOF
118411 #define size_t unsigned int
118412 _ACEOF
118416 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
118417 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
118418 if test "${ac_cv_type_u_int64_t+set}" = set; then
118419 echo $ECHO_N "(cached) $ECHO_C" >&6
118421 cat >conftest.$ac_ext <<_ACEOF
118422 /* confdefs.h. */
118423 _ACEOF
118424 cat confdefs.h >>conftest.$ac_ext
118425 cat >>conftest.$ac_ext <<_ACEOF
118426 /* end confdefs.h. */
118427 $ac_includes_default
118428 typedef u_int64_t ac__type_new_;
118430 main ()
118432 if ((ac__type_new_ *) 0)
118433 return 0;
118434 if (sizeof (ac__type_new_))
118435 return 0;
118437 return 0;
118439 _ACEOF
118440 rm -f conftest.$ac_objext
118441 if { (ac_try="$ac_compile"
118442 case "(($ac_try" in
118443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118444 *) ac_try_echo=$ac_try;;
118446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
118447 (eval "$ac_compile") 2>conftest.er1
118448 ac_status=$?
118449 grep -v '^ *+' conftest.er1 >conftest.err
118450 rm -f conftest.er1
118451 cat conftest.err >&5
118452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
118453 (exit $ac_status); } && {
118454 test -z "$ac_c_werror_flag" ||
118455 test ! -s conftest.err
118456 } && test -s conftest.$ac_objext; then
118457 ac_cv_type_u_int64_t=yes
118459 echo "$as_me: failed program was:" >&5
118460 sed 's/^/| /' conftest.$ac_ext >&5
118462 ac_cv_type_u_int64_t=no
118465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
118467 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
118468 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
118469 if test $ac_cv_type_u_int64_t = yes; then
118473 cat >>confdefs.h <<_ACEOF
118474 #define u_int64_t unsigned long long
118475 _ACEOF
118479 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
118480 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
118481 if test "${ac_cv_type_u_int32_t+set}" = set; then
118482 echo $ECHO_N "(cached) $ECHO_C" >&6
118484 cat >conftest.$ac_ext <<_ACEOF
118485 /* confdefs.h. */
118486 _ACEOF
118487 cat confdefs.h >>conftest.$ac_ext
118488 cat >>conftest.$ac_ext <<_ACEOF
118489 /* end confdefs.h. */
118490 $ac_includes_default
118491 typedef u_int32_t ac__type_new_;
118493 main ()
118495 if ((ac__type_new_ *) 0)
118496 return 0;
118497 if (sizeof (ac__type_new_))
118498 return 0;
118500 return 0;
118502 _ACEOF
118503 rm -f conftest.$ac_objext
118504 if { (ac_try="$ac_compile"
118505 case "(($ac_try" in
118506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118507 *) ac_try_echo=$ac_try;;
118509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
118510 (eval "$ac_compile") 2>conftest.er1
118511 ac_status=$?
118512 grep -v '^ *+' conftest.er1 >conftest.err
118513 rm -f conftest.er1
118514 cat conftest.err >&5
118515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
118516 (exit $ac_status); } && {
118517 test -z "$ac_c_werror_flag" ||
118518 test ! -s conftest.err
118519 } && test -s conftest.$ac_objext; then
118520 ac_cv_type_u_int32_t=yes
118522 echo "$as_me: failed program was:" >&5
118523 sed 's/^/| /' conftest.$ac_ext >&5
118525 ac_cv_type_u_int32_t=no
118528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
118530 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
118531 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
118532 if test $ac_cv_type_u_int32_t = yes; then
118536 cat >>confdefs.h <<_ACEOF
118537 #define u_int32_t unsigned int
118538 _ACEOF
118542 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
118543 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
118544 if test "${ac_cv_type_u_int16_t+set}" = set; then
118545 echo $ECHO_N "(cached) $ECHO_C" >&6
118547 cat >conftest.$ac_ext <<_ACEOF
118548 /* confdefs.h. */
118549 _ACEOF
118550 cat confdefs.h >>conftest.$ac_ext
118551 cat >>conftest.$ac_ext <<_ACEOF
118552 /* end confdefs.h. */
118553 $ac_includes_default
118554 typedef u_int16_t ac__type_new_;
118556 main ()
118558 if ((ac__type_new_ *) 0)
118559 return 0;
118560 if (sizeof (ac__type_new_))
118561 return 0;
118563 return 0;
118565 _ACEOF
118566 rm -f conftest.$ac_objext
118567 if { (ac_try="$ac_compile"
118568 case "(($ac_try" in
118569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118570 *) ac_try_echo=$ac_try;;
118572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
118573 (eval "$ac_compile") 2>conftest.er1
118574 ac_status=$?
118575 grep -v '^ *+' conftest.er1 >conftest.err
118576 rm -f conftest.er1
118577 cat conftest.err >&5
118578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
118579 (exit $ac_status); } && {
118580 test -z "$ac_c_werror_flag" ||
118581 test ! -s conftest.err
118582 } && test -s conftest.$ac_objext; then
118583 ac_cv_type_u_int16_t=yes
118585 echo "$as_me: failed program was:" >&5
118586 sed 's/^/| /' conftest.$ac_ext >&5
118588 ac_cv_type_u_int16_t=no
118591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
118593 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
118594 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
118595 if test $ac_cv_type_u_int16_t = yes; then
118599 cat >>confdefs.h <<_ACEOF
118600 #define u_int16_t unsigned short
118601 _ACEOF
118605 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
118606 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
118607 if test "${ac_cv_type_u_int8_t+set}" = set; then
118608 echo $ECHO_N "(cached) $ECHO_C" >&6
118610 cat >conftest.$ac_ext <<_ACEOF
118611 /* confdefs.h. */
118612 _ACEOF
118613 cat confdefs.h >>conftest.$ac_ext
118614 cat >>conftest.$ac_ext <<_ACEOF
118615 /* end confdefs.h. */
118616 $ac_includes_default
118617 typedef u_int8_t ac__type_new_;
118619 main ()
118621 if ((ac__type_new_ *) 0)
118622 return 0;
118623 if (sizeof (ac__type_new_))
118624 return 0;
118626 return 0;
118628 _ACEOF
118629 rm -f conftest.$ac_objext
118630 if { (ac_try="$ac_compile"
118631 case "(($ac_try" in
118632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118633 *) ac_try_echo=$ac_try;;
118635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
118636 (eval "$ac_compile") 2>conftest.er1
118637 ac_status=$?
118638 grep -v '^ *+' conftest.er1 >conftest.err
118639 rm -f conftest.er1
118640 cat conftest.err >&5
118641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
118642 (exit $ac_status); } && {
118643 test -z "$ac_c_werror_flag" ||
118644 test ! -s conftest.err
118645 } && test -s conftest.$ac_objext; then
118646 ac_cv_type_u_int8_t=yes
118648 echo "$as_me: failed program was:" >&5
118649 sed 's/^/| /' conftest.$ac_ext >&5
118651 ac_cv_type_u_int8_t=no
118654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
118656 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
118657 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
118658 if test $ac_cv_type_u_int8_t = yes; then
118662 cat >>confdefs.h <<_ACEOF
118663 #define u_int8_t unsigned char
118664 _ACEOF
118670 # OMPI: Save the libobj sources
118671 OMPI_LIBEVENT_SOURCES="$sources"
118674 # OMPI: All done
118675 unset sources
118676 CFLAGS="$CFLAGS_save"
118679 ############################################################################
118680 # Libtool: part two
118681 # (after C compiler setup)
118682 ############################################################################
118684 ompi_show_subtitle "Libtool configuration"
118686 # Use convenience libltdl for the moment, because we need to force the
118687 # use of the newest libltdl (i.e., the one that ships with libtool
118688 # 1.5) because it has support for a lot more things than older
118689 # versions of libtool (which are generally installed by default).
118690 if test "$OMPI_ENABLE_DLOPEN_SUPPORT" = "1"; then
118691 case $enable_ltdl_convenience in
118692 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
118693 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
118694 { (exit 1); exit 1; }; } ;;
118695 "") enable_ltdl_convenience=yes
118696 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
118698 LIBLTDL='${top_builddir}/'opal/libltdl/libltdlc.la
118699 LTDLINCL='-I${top_srcdir}/'opal/libltdl
118700 # For backwards non-gettext consistent compatibility...
118701 INCLTDL="$LTDLINCL"
118709 # Check whether --enable-fast-install was given.
118710 if test "${enable_fast_install+set}" = set; then
118711 enableval=$enable_fast_install; p=${PACKAGE-default}
118712 case $enableval in
118713 yes) enable_fast_install=yes ;;
118714 no) enable_fast_install=no ;;
118716 enable_fast_install=no
118717 # Look at the argument we got. We use all the common list separators.
118718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
118719 for pkg in $enableval; do
118720 IFS="$lt_save_ifs"
118721 if test "X$pkg" = "X$p"; then
118722 enable_fast_install=yes
118725 IFS="$lt_save_ifs"
118729 enable_fast_install=yes
118733 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
118734 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
118735 if test "${lt_cv_path_SED+set}" = set; then
118736 echo $ECHO_N "(cached) $ECHO_C" >&6
118738 # Loop through the user's path and test for sed and gsed.
118739 # Then use that list of sed's as ones to test for truncation.
118740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118741 for as_dir in $PATH
118743 IFS=$as_save_IFS
118744 test -z "$as_dir" && as_dir=.
118745 for lt_ac_prog in sed gsed; do
118746 for ac_exec_ext in '' $ac_executable_extensions; do
118747 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
118748 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
118753 lt_ac_max=0
118754 lt_ac_count=0
118755 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
118756 # along with /bin/sed that truncates output.
118757 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
118758 test ! -f $lt_ac_sed && continue
118759 cat /dev/null > conftest.in
118760 lt_ac_count=0
118761 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
118762 # Check for GNU sed and select it if it is found.
118763 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
118764 lt_cv_path_SED=$lt_ac_sed
118765 break
118767 while true; do
118768 cat conftest.in conftest.in >conftest.tmp
118769 mv conftest.tmp conftest.in
118770 cp conftest.in conftest.nl
118771 echo >>conftest.nl
118772 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
118773 cmp -s conftest.out conftest.nl || break
118774 # 10000 chars as input seems more than enough
118775 test $lt_ac_count -gt 10 && break
118776 lt_ac_count=`expr $lt_ac_count + 1`
118777 if test $lt_ac_count -gt $lt_ac_max; then
118778 lt_ac_max=$lt_ac_count
118779 lt_cv_path_SED=$lt_ac_sed
118786 SED=$lt_cv_path_SED
118787 { echo "$as_me:$LINENO: result: $SED" >&5
118788 echo "${ECHO_T}$SED" >&6; }
118791 # Check whether --with-gnu-ld was given.
118792 if test "${with_gnu_ld+set}" = set; then
118793 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
118795 with_gnu_ld=no
118798 ac_prog=ld
118799 if test "$GCC" = yes; then
118800 # Check if gcc -print-prog-name=ld gives a path.
118801 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
118802 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
118803 case $host in
118804 *-*-mingw*)
118805 # gcc leaves a trailing carriage return which upsets mingw
118806 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
118808 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
118810 case $ac_prog in
118811 # Accept absolute paths.
118812 [\\/]* | ?:[\\/]*)
118813 re_direlt='/[^/][^/]*/\.\./'
118814 # Canonicalize the pathname of ld
118815 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
118816 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
118817 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
118819 test -z "$LD" && LD="$ac_prog"
118822 # If it fails, then pretend we aren't using GCC.
118823 ac_prog=ld
118826 # If it is relative, then search for the first ld in PATH.
118827 with_gnu_ld=unknown
118830 elif test "$with_gnu_ld" = yes; then
118831 { echo "$as_me:$LINENO: checking for GNU ld" >&5
118832 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
118834 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
118835 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
118837 if test "${lt_cv_path_LD+set}" = set; then
118838 echo $ECHO_N "(cached) $ECHO_C" >&6
118840 if test -z "$LD"; then
118841 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
118842 for ac_dir in $PATH; do
118843 IFS="$lt_save_ifs"
118844 test -z "$ac_dir" && ac_dir=.
118845 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
118846 lt_cv_path_LD="$ac_dir/$ac_prog"
118847 # Check to see if the program is GNU ld. I'd rather use --version,
118848 # but apparently some variants of GNU ld only accept -v.
118849 # Break only if it was the GNU/non-GNU ld that we prefer.
118850 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
118851 *GNU* | *'with BFD'*)
118852 test "$with_gnu_ld" != no && break
118855 test "$with_gnu_ld" != yes && break
118860 IFS="$lt_save_ifs"
118862 lt_cv_path_LD="$LD" # Let the user override the test with a path.
118866 LD="$lt_cv_path_LD"
118867 if test -n "$LD"; then
118868 { echo "$as_me:$LINENO: result: $LD" >&5
118869 echo "${ECHO_T}$LD" >&6; }
118871 { echo "$as_me:$LINENO: result: no" >&5
118872 echo "${ECHO_T}no" >&6; }
118874 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
118875 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
118876 { (exit 1); exit 1; }; }
118877 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
118878 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
118879 if test "${lt_cv_prog_gnu_ld+set}" = set; then
118880 echo $ECHO_N "(cached) $ECHO_C" >&6
118882 # I'd rather use --version here, but apparently some GNU lds only accept -v.
118883 case `$LD -v 2>&1 </dev/null` in
118884 *GNU* | *'with BFD'*)
118885 lt_cv_prog_gnu_ld=yes
118888 lt_cv_prog_gnu_ld=no
118892 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
118893 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
118894 with_gnu_ld=$lt_cv_prog_gnu_ld
118897 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
118898 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
118899 if test "${lt_cv_ld_reload_flag+set}" = set; then
118900 echo $ECHO_N "(cached) $ECHO_C" >&6
118902 lt_cv_ld_reload_flag='-r'
118904 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
118905 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
118906 reload_flag=$lt_cv_ld_reload_flag
118907 case $reload_flag in
118908 "" | " "*) ;;
118909 *) reload_flag=" $reload_flag" ;;
118911 reload_cmds='$LD$reload_flag -o $output$reload_objs'
118912 case $host_os in
118913 darwin*)
118914 if test "$GCC" = yes; then
118915 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
118917 reload_cmds='$LD$reload_flag -o $output$reload_objs'
118922 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
118923 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
118924 if test "${lt_cv_deplibs_check_method+set}" = set; then
118925 echo $ECHO_N "(cached) $ECHO_C" >&6
118927 lt_cv_file_magic_cmd='$MAGIC_CMD'
118928 lt_cv_file_magic_test_file=
118929 lt_cv_deplibs_check_method='unknown'
118930 # Need to set the preceding variable on all platforms that support
118931 # interlibrary dependencies.
118932 # 'none' -- dependencies not supported.
118933 # `unknown' -- same as none, but documents that we really don't know.
118934 # 'pass_all' -- all dependencies passed with no checks.
118935 # 'test_compile' -- check by making test program.
118936 # 'file_magic [[regex]]' -- check by looking for files in library path
118937 # which responds to the $file_magic_cmd with a given extended regex.
118938 # If you have `file' or equivalent on your system and you're not sure
118939 # whether `pass_all' will *always* work, you probably want this one.
118941 case $host_os in
118942 aix4* | aix5*)
118943 lt_cv_deplibs_check_method=pass_all
118946 beos*)
118947 lt_cv_deplibs_check_method=pass_all
118950 bsdi[45]*)
118951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
118952 lt_cv_file_magic_cmd='/usr/bin/file -L'
118953 lt_cv_file_magic_test_file=/shlib/libc.so
118956 cygwin*)
118957 # func_win32_libid is a shell function defined in ltmain.sh
118958 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
118959 lt_cv_file_magic_cmd='func_win32_libid'
118962 mingw* | pw32*)
118963 # Base MSYS/MinGW do not provide the 'file' command needed by
118964 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
118965 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
118966 lt_cv_file_magic_cmd='$OBJDUMP -f'
118969 darwin* | rhapsody*)
118970 lt_cv_deplibs_check_method=pass_all
118973 freebsd* | dragonfly*)
118974 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
118975 case $host_cpu in
118976 i*86 )
118977 # Not sure whether the presence of OpenBSD here was a mistake.
118978 # Let's accept both of them until this is cleared up.
118979 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
118980 lt_cv_file_magic_cmd=/usr/bin/file
118981 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
118985 lt_cv_deplibs_check_method=pass_all
118989 gnu*)
118990 lt_cv_deplibs_check_method=pass_all
118993 hpux10.20* | hpux11*)
118994 lt_cv_file_magic_cmd=/usr/bin/file
118995 case $host_cpu in
118996 ia64*)
118997 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
118998 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
119000 hppa*64*)
119001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
119002 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
119005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
119006 lt_cv_file_magic_test_file=/usr/lib/libc.sl
119011 interix3*)
119012 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
119013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
119016 irix5* | irix6* | nonstopux*)
119017 case $LD in
119018 *-32|*"-32 ") libmagic=32-bit;;
119019 *-n32|*"-n32 ") libmagic=N32;;
119020 *-64|*"-64 ") libmagic=64-bit;;
119021 *) libmagic=never-match;;
119023 lt_cv_deplibs_check_method=pass_all
119026 # This must be Linux ELF.
119027 linux* | k*bsd*-gnu)
119028 lt_cv_deplibs_check_method=pass_all
119031 netbsd* | netbsdelf*-gnu)
119032 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
119033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
119035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
119039 newos6*)
119040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
119041 lt_cv_file_magic_cmd=/usr/bin/file
119042 lt_cv_file_magic_test_file=/usr/lib/libnls.so
119045 nto-qnx*)
119046 lt_cv_deplibs_check_method=unknown
119049 openbsd*)
119050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
119051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
119053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
119057 osf3* | osf4* | osf5*)
119058 lt_cv_deplibs_check_method=pass_all
119061 solaris*)
119062 lt_cv_deplibs_check_method=pass_all
119065 sysv4 | sysv4.3*)
119066 case $host_vendor in
119067 motorola)
119068 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]'
119069 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
119072 lt_cv_deplibs_check_method=pass_all
119074 sequent)
119075 lt_cv_file_magic_cmd='/bin/file'
119076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
119079 lt_cv_file_magic_cmd='/bin/file'
119080 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
119081 lt_cv_file_magic_test_file=/lib/libc.so
119083 siemens)
119084 lt_cv_deplibs_check_method=pass_all
119087 lt_cv_deplibs_check_method=pass_all
119092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
119093 lt_cv_deplibs_check_method=pass_all
119098 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
119099 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
119100 file_magic_cmd=$lt_cv_file_magic_cmd
119101 deplibs_check_method=$lt_cv_deplibs_check_method
119102 test -z "$deplibs_check_method" && deplibs_check_method=unknown
119107 # If no C compiler was specified, use CC.
119108 LTCC=${LTCC-"$CC"}
119110 # If no C compiler flags were specified, use CFLAGS.
119111 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
119113 # Allow CC to be a program name with arguments.
119114 compiler=$CC
119116 # Check whether --enable-libtool-lock was given.
119117 if test "${enable_libtool_lock+set}" = set; then
119118 enableval=$enable_libtool_lock;
119121 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
119123 # Some flags need to be propagated to the compiler or linker for good
119124 # libtool support.
119125 case $host in
119126 ia64-*-hpux*)
119127 # Find out which ABI we are using.
119128 echo 'int i;' > conftest.$ac_ext
119129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
119130 (eval $ac_compile) 2>&5
119131 ac_status=$?
119132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119133 (exit $ac_status); }; then
119134 case `/usr/bin/file conftest.$ac_objext` in
119135 *ELF-32*)
119136 HPUX_IA64_MODE="32"
119138 *ELF-64*)
119139 HPUX_IA64_MODE="64"
119143 rm -rf conftest*
119145 *-*-irix6*)
119146 # Find out which ABI we are using.
119147 echo '#line 119147 "configure"' > conftest.$ac_ext
119148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
119149 (eval $ac_compile) 2>&5
119150 ac_status=$?
119151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119152 (exit $ac_status); }; then
119153 if test "$lt_cv_prog_gnu_ld" = yes; then
119154 case `/usr/bin/file conftest.$ac_objext` in
119155 *32-bit*)
119156 LD="${LD-ld} -melf32bsmip"
119158 *N32*)
119159 LD="${LD-ld} -melf32bmipn32"
119161 *64-bit*)
119162 LD="${LD-ld} -melf64bmip"
119166 case `/usr/bin/file conftest.$ac_objext` in
119167 *32-bit*)
119168 LD="${LD-ld} -32"
119170 *N32*)
119171 LD="${LD-ld} -n32"
119173 *64-bit*)
119174 LD="${LD-ld} -64"
119179 rm -rf conftest*
119182 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
119183 # Find out which ABI we are using.
119184 echo 'int i;' > conftest.$ac_ext
119185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
119186 (eval $ac_compile) 2>&5
119187 ac_status=$?
119188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119189 (exit $ac_status); }; then
119190 case `/usr/bin/file conftest.o` in
119191 *32-bit*)
119192 case $host in
119193 x86_64-*linux*)
119194 LD="${LD-ld} -m elf_i386"
119196 ppc64-*linux*|powerpc64-*linux*)
119197 LD="${LD-ld} -m elf32ppclinux"
119199 s390x-*linux*)
119200 LD="${LD-ld} -m elf_s390"
119202 sparc64-*linux*)
119203 LD="${LD-ld} -m elf32_sparc"
119207 *64-bit*)
119208 case $host in
119209 x86_64-*linux*)
119210 LD="${LD-ld} -m elf_x86_64"
119212 ppc*-*linux*|powerpc*-*linux*)
119213 LD="${LD-ld} -m elf64ppc"
119215 s390*-*linux*)
119216 LD="${LD-ld} -m elf64_s390"
119218 sparc*-*linux*)
119219 LD="${LD-ld} -m elf64_sparc"
119225 rm -rf conftest*
119228 *-*-sco3.2v5*)
119229 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
119230 SAVE_CFLAGS="$CFLAGS"
119231 CFLAGS="$CFLAGS -belf"
119232 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
119233 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
119234 if test "${lt_cv_cc_needs_belf+set}" = set; then
119235 echo $ECHO_N "(cached) $ECHO_C" >&6
119237 ac_ext=c
119238 ac_cpp='$CPP $CPPFLAGS'
119239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
119240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
119241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
119243 cat >conftest.$ac_ext <<_ACEOF
119244 /* confdefs.h. */
119245 _ACEOF
119246 cat confdefs.h >>conftest.$ac_ext
119247 cat >>conftest.$ac_ext <<_ACEOF
119248 /* end confdefs.h. */
119251 main ()
119255 return 0;
119257 _ACEOF
119258 rm -f conftest.$ac_objext conftest$ac_exeext
119259 if { (ac_try="$ac_link"
119260 case "(($ac_try" in
119261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119262 *) ac_try_echo=$ac_try;;
119264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
119265 (eval "$ac_link") 2>conftest.er1
119266 ac_status=$?
119267 grep -v '^ *+' conftest.er1 >conftest.err
119268 rm -f conftest.er1
119269 cat conftest.err >&5
119270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119271 (exit $ac_status); } && {
119272 test -z "$ac_c_werror_flag" ||
119273 test ! -s conftest.err
119274 } && test -s conftest$ac_exeext &&
119275 $as_test_x conftest$ac_exeext; then
119276 lt_cv_cc_needs_belf=yes
119278 echo "$as_me: failed program was:" >&5
119279 sed 's/^/| /' conftest.$ac_ext >&5
119281 lt_cv_cc_needs_belf=no
119284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
119285 conftest$ac_exeext conftest.$ac_ext
119286 ac_ext=c
119287 ac_cpp='$CPP $CPPFLAGS'
119288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
119289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
119290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
119293 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
119294 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
119295 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
119296 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
119297 CFLAGS="$SAVE_CFLAGS"
119300 sparc*-*solaris*)
119301 # Find out which ABI we are using.
119302 echo 'int i;' > conftest.$ac_ext
119303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
119304 (eval $ac_compile) 2>&5
119305 ac_status=$?
119306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119307 (exit $ac_status); }; then
119308 case `/usr/bin/file conftest.o` in
119309 *64-bit*)
119310 case $lt_cv_prog_gnu_ld in
119311 yes*) LD="${LD-ld} -m elf64_sparc" ;;
119312 *) LD="${LD-ld} -64" ;;
119317 rm -rf conftest*
119323 need_locks="$enable_libtool_lock"
119327 for ac_header in dlfcn.h
119329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
119330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
119331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
119332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
119333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
119334 echo $ECHO_N "(cached) $ECHO_C" >&6
119336 ac_res=`eval echo '${'$as_ac_Header'}'`
119337 { echo "$as_me:$LINENO: result: $ac_res" >&5
119338 echo "${ECHO_T}$ac_res" >&6; }
119340 # Is the header compilable?
119341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
119342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
119343 cat >conftest.$ac_ext <<_ACEOF
119344 /* confdefs.h. */
119345 _ACEOF
119346 cat confdefs.h >>conftest.$ac_ext
119347 cat >>conftest.$ac_ext <<_ACEOF
119348 /* end confdefs.h. */
119349 $ac_includes_default
119350 #include <$ac_header>
119351 _ACEOF
119352 rm -f conftest.$ac_objext
119353 if { (ac_try="$ac_compile"
119354 case "(($ac_try" in
119355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119356 *) ac_try_echo=$ac_try;;
119358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
119359 (eval "$ac_compile") 2>conftest.er1
119360 ac_status=$?
119361 grep -v '^ *+' conftest.er1 >conftest.err
119362 rm -f conftest.er1
119363 cat conftest.err >&5
119364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119365 (exit $ac_status); } && {
119366 test -z "$ac_c_werror_flag" ||
119367 test ! -s conftest.err
119368 } && test -s conftest.$ac_objext; then
119369 ac_header_compiler=yes
119371 echo "$as_me: failed program was:" >&5
119372 sed 's/^/| /' conftest.$ac_ext >&5
119374 ac_header_compiler=no
119377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
119378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
119379 echo "${ECHO_T}$ac_header_compiler" >&6; }
119381 # Is the header present?
119382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
119383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
119384 cat >conftest.$ac_ext <<_ACEOF
119385 /* confdefs.h. */
119386 _ACEOF
119387 cat confdefs.h >>conftest.$ac_ext
119388 cat >>conftest.$ac_ext <<_ACEOF
119389 /* end confdefs.h. */
119390 #include <$ac_header>
119391 _ACEOF
119392 if { (ac_try="$ac_cpp conftest.$ac_ext"
119393 case "(($ac_try" in
119394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119395 *) ac_try_echo=$ac_try;;
119397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
119398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
119399 ac_status=$?
119400 grep -v '^ *+' conftest.er1 >conftest.err
119401 rm -f conftest.er1
119402 cat conftest.err >&5
119403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119404 (exit $ac_status); } >/dev/null && {
119405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
119406 test ! -s conftest.err
119407 }; then
119408 ac_header_preproc=yes
119410 echo "$as_me: failed program was:" >&5
119411 sed 's/^/| /' conftest.$ac_ext >&5
119413 ac_header_preproc=no
119416 rm -f conftest.err conftest.$ac_ext
119417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
119418 echo "${ECHO_T}$ac_header_preproc" >&6; }
119420 # So? What about this header?
119421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
119422 yes:no: )
119423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
119424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
119425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
119426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
119427 ac_header_preproc=yes
119429 no:yes:* )
119430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
119431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
119432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
119433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
119434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
119435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
119436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
119437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
119438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
119439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
119440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
119441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
119442 ( cat <<\_ASBOX
119443 ## ------------------------------------------------------ ##
119444 ## Report this to http://www.open-mpi.org/community/help/ ##
119445 ## ------------------------------------------------------ ##
119446 _ASBOX
119447 ) | sed "s/^/$as_me: WARNING: /" >&2
119450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
119451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
119452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
119453 echo $ECHO_N "(cached) $ECHO_C" >&6
119455 eval "$as_ac_Header=\$ac_header_preproc"
119457 ac_res=`eval echo '${'$as_ac_Header'}'`
119458 { echo "$as_me:$LINENO: result: $ac_res" >&5
119459 echo "${ECHO_T}$ac_res" >&6; }
119462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
119463 cat >>confdefs.h <<_ACEOF
119464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
119465 _ACEOF
119473 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
119474 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
119475 (test "X$CXX" != "Xg++"))) ; then
119476 ac_ext=cpp
119477 ac_cpp='$CXXCPP $CPPFLAGS'
119478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
119479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
119480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
119481 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
119482 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
119483 if test -z "$CXXCPP"; then
119484 if test "${ac_cv_prog_CXXCPP+set}" = set; then
119485 echo $ECHO_N "(cached) $ECHO_C" >&6
119487 # Double quotes because CXXCPP needs to be expanded
119488 for CXXCPP in "$CXX -E" "/lib/cpp"
119490 ac_preproc_ok=false
119491 for ac_cxx_preproc_warn_flag in '' yes
119493 # Use a header file that comes with gcc, so configuring glibc
119494 # with a fresh cross-compiler works.
119495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
119496 # <limits.h> exists even on freestanding compilers.
119497 # On the NeXT, cc -E runs the code through the compiler's parser,
119498 # not just through cpp. "Syntax error" is here to catch this case.
119499 cat >conftest.$ac_ext <<_ACEOF
119500 /* confdefs.h. */
119501 _ACEOF
119502 cat confdefs.h >>conftest.$ac_ext
119503 cat >>conftest.$ac_ext <<_ACEOF
119504 /* end confdefs.h. */
119505 #ifdef __STDC__
119506 # include <limits.h>
119507 #else
119508 # include <assert.h>
119509 #endif
119510 Syntax error
119511 _ACEOF
119512 if { (ac_try="$ac_cpp conftest.$ac_ext"
119513 case "(($ac_try" in
119514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119515 *) ac_try_echo=$ac_try;;
119517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
119518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
119519 ac_status=$?
119520 grep -v '^ *+' conftest.er1 >conftest.err
119521 rm -f conftest.er1
119522 cat conftest.err >&5
119523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119524 (exit $ac_status); } >/dev/null && {
119525 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
119526 test ! -s conftest.err
119527 }; then
119530 echo "$as_me: failed program was:" >&5
119531 sed 's/^/| /' conftest.$ac_ext >&5
119533 # Broken: fails on valid input.
119534 continue
119537 rm -f conftest.err conftest.$ac_ext
119539 # OK, works on sane cases. Now check whether nonexistent headers
119540 # can be detected and how.
119541 cat >conftest.$ac_ext <<_ACEOF
119542 /* confdefs.h. */
119543 _ACEOF
119544 cat confdefs.h >>conftest.$ac_ext
119545 cat >>conftest.$ac_ext <<_ACEOF
119546 /* end confdefs.h. */
119547 #include <ac_nonexistent.h>
119548 _ACEOF
119549 if { (ac_try="$ac_cpp conftest.$ac_ext"
119550 case "(($ac_try" in
119551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119552 *) ac_try_echo=$ac_try;;
119554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
119555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
119556 ac_status=$?
119557 grep -v '^ *+' conftest.er1 >conftest.err
119558 rm -f conftest.er1
119559 cat conftest.err >&5
119560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119561 (exit $ac_status); } >/dev/null && {
119562 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
119563 test ! -s conftest.err
119564 }; then
119565 # Broken: success on invalid input.
119566 continue
119568 echo "$as_me: failed program was:" >&5
119569 sed 's/^/| /' conftest.$ac_ext >&5
119571 # Passes both tests.
119572 ac_preproc_ok=:
119573 break
119576 rm -f conftest.err conftest.$ac_ext
119579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
119580 rm -f conftest.err conftest.$ac_ext
119581 if $ac_preproc_ok; then
119582 break
119586 ac_cv_prog_CXXCPP=$CXXCPP
119589 CXXCPP=$ac_cv_prog_CXXCPP
119591 ac_cv_prog_CXXCPP=$CXXCPP
119593 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
119594 echo "${ECHO_T}$CXXCPP" >&6; }
119595 ac_preproc_ok=false
119596 for ac_cxx_preproc_warn_flag in '' yes
119598 # Use a header file that comes with gcc, so configuring glibc
119599 # with a fresh cross-compiler works.
119600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
119601 # <limits.h> exists even on freestanding compilers.
119602 # On the NeXT, cc -E runs the code through the compiler's parser,
119603 # not just through cpp. "Syntax error" is here to catch this case.
119604 cat >conftest.$ac_ext <<_ACEOF
119605 /* confdefs.h. */
119606 _ACEOF
119607 cat confdefs.h >>conftest.$ac_ext
119608 cat >>conftest.$ac_ext <<_ACEOF
119609 /* end confdefs.h. */
119610 #ifdef __STDC__
119611 # include <limits.h>
119612 #else
119613 # include <assert.h>
119614 #endif
119615 Syntax error
119616 _ACEOF
119617 if { (ac_try="$ac_cpp conftest.$ac_ext"
119618 case "(($ac_try" in
119619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119620 *) ac_try_echo=$ac_try;;
119622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
119623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
119624 ac_status=$?
119625 grep -v '^ *+' conftest.er1 >conftest.err
119626 rm -f conftest.er1
119627 cat conftest.err >&5
119628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119629 (exit $ac_status); } >/dev/null && {
119630 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
119631 test ! -s conftest.err
119632 }; then
119635 echo "$as_me: failed program was:" >&5
119636 sed 's/^/| /' conftest.$ac_ext >&5
119638 # Broken: fails on valid input.
119639 continue
119642 rm -f conftest.err conftest.$ac_ext
119644 # OK, works on sane cases. Now check whether nonexistent headers
119645 # can be detected and how.
119646 cat >conftest.$ac_ext <<_ACEOF
119647 /* confdefs.h. */
119648 _ACEOF
119649 cat confdefs.h >>conftest.$ac_ext
119650 cat >>conftest.$ac_ext <<_ACEOF
119651 /* end confdefs.h. */
119652 #include <ac_nonexistent.h>
119653 _ACEOF
119654 if { (ac_try="$ac_cpp conftest.$ac_ext"
119655 case "(($ac_try" in
119656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119657 *) ac_try_echo=$ac_try;;
119659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
119660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
119661 ac_status=$?
119662 grep -v '^ *+' conftest.er1 >conftest.err
119663 rm -f conftest.er1
119664 cat conftest.err >&5
119665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119666 (exit $ac_status); } >/dev/null && {
119667 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
119668 test ! -s conftest.err
119669 }; then
119670 # Broken: success on invalid input.
119671 continue
119673 echo "$as_me: failed program was:" >&5
119674 sed 's/^/| /' conftest.$ac_ext >&5
119676 # Passes both tests.
119677 ac_preproc_ok=:
119678 break
119681 rm -f conftest.err conftest.$ac_ext
119684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
119685 rm -f conftest.err conftest.$ac_ext
119686 if $ac_preproc_ok; then
119689 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
119690 See \`config.log' for more details." >&5
119691 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
119692 See \`config.log' for more details." >&2;}
119693 { (exit 1); exit 1; }; }
119696 ac_ext=cpp
119697 ac_cpp='$CXXCPP $CPPFLAGS'
119698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
119699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
119700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
119705 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
119707 # find the maximum length of command line arguments
119708 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
119709 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
119710 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
119711 echo $ECHO_N "(cached) $ECHO_C" >&6
119714 teststring="ABCD"
119716 case $build_os in
119717 msdosdjgpp*)
119718 # On DJGPP, this test can blow up pretty badly due to problems in libc
119719 # (any single argument exceeding 2000 bytes causes a buffer overrun
119720 # during glob expansion). Even if it were fixed, the result of this
119721 # check would be larger than it should be.
119722 lt_cv_sys_max_cmd_len=12288; # 12K is about right
119725 gnu*)
119726 # Under GNU Hurd, this test is not required because there is
119727 # no limit to the length of command line arguments.
119728 # Libtool will interpret -1 as no limit whatsoever
119729 lt_cv_sys_max_cmd_len=-1;
119732 cygwin* | mingw*)
119733 # On Win9x/ME, this test blows up -- it succeeds, but takes
119734 # about 5 minutes as the teststring grows exponentially.
119735 # Worse, since 9x/ME are not pre-emptively multitasking,
119736 # you end up with a "frozen" computer, even though with patience
119737 # the test eventually succeeds (with a max line length of 256k).
119738 # Instead, let's just punt: use the minimum linelength reported by
119739 # all of the supported platforms: 8192 (on NT/2K/XP).
119740 lt_cv_sys_max_cmd_len=8192;
119743 amigaos*)
119744 # On AmigaOS with pdksh, this test takes hours, literally.
119745 # So we just punt and use a minimum line length of 8192.
119746 lt_cv_sys_max_cmd_len=8192;
119749 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
119750 # This has been around since 386BSD, at least. Likely further.
119751 if test -x /sbin/sysctl; then
119752 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
119753 elif test -x /usr/sbin/sysctl; then
119754 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
119756 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
119758 # And add a safety zone
119759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
119760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
119763 interix*)
119764 # We know the value 262144 and hardcode it with a safety zone (like BSD)
119765 lt_cv_sys_max_cmd_len=196608
119768 osf*)
119769 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
119770 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
119771 # nice to cause kernel panics so lets avoid the loop below.
119772 # First set a reasonable default.
119773 lt_cv_sys_max_cmd_len=16384
119775 if test -x /sbin/sysconfig; then
119776 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
119777 *1*) lt_cv_sys_max_cmd_len=-1 ;;
119781 sco3.2v5*)
119782 lt_cv_sys_max_cmd_len=102400
119784 sysv5* | sco5v6* | sysv4.2uw2*)
119785 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
119786 if test -n "$kargmax"; then
119787 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
119789 lt_cv_sys_max_cmd_len=32768
119793 # If test is not a shell built-in, we'll probably end up computing a
119794 # maximum length that is only half of the actual maximum length, but
119795 # we can't tell.
119796 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
119797 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
119798 = "XX$teststring") >/dev/null 2>&1 &&
119799 new_result=`expr "X$teststring" : ".*" 2>&1` &&
119800 lt_cv_sys_max_cmd_len=$new_result &&
119801 test $i != 17 # 1/2 MB should be enough
119803 i=`expr $i + 1`
119804 teststring=$teststring$teststring
119806 teststring=
119807 # Add a significant safety factor because C++ compilers can tack on massive
119808 # amounts of additional arguments before passing them to the linker.
119809 # It appears as though 1/2 is a usable value.
119810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
119816 if test -n $lt_cv_sys_max_cmd_len ; then
119817 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
119818 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
119820 { echo "$as_me:$LINENO: result: none" >&5
119821 echo "${ECHO_T}none" >&6; }
119827 # Check for command to grab the raw symbol name followed by C symbol from nm.
119828 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
119829 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
119830 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
119831 echo $ECHO_N "(cached) $ECHO_C" >&6
119834 # These are sane defaults that work on at least a few old systems.
119835 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
119837 # Character class describing NM global symbol codes.
119838 symcode='[BCDEGRST]'
119840 # Regexp to match symbols that can be accessed directly from C.
119841 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
119843 # Transform an extracted symbol line into a proper C declaration
119844 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
119846 # Transform an extracted symbol line into symbol name and symbol address
119847 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
119849 # Define system-specific variables.
119850 case $host_os in
119851 aix*)
119852 symcode='[BCDT]'
119854 cygwin* | mingw* | pw32*)
119855 symcode='[ABCDGISTW]'
119857 hpux*) # Its linker distinguishes data from code symbols
119858 if test "$host_cpu" = ia64; then
119859 symcode='[ABCDEGRST]'
119861 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
119862 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
119864 linux* | k*bsd*-gnu)
119865 if test "$host_cpu" = ia64; then
119866 symcode='[ABCDGIRSTW]'
119867 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
119868 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
119871 irix* | nonstopux*)
119872 symcode='[BCDEGRST]'
119874 osf*)
119875 symcode='[BCDEGQRST]'
119877 solaris*)
119878 symcode='[BDRT]'
119880 sco3.2v5*)
119881 symcode='[DT]'
119883 sysv4.2uw2*)
119884 symcode='[DT]'
119886 sysv5* | sco5v6* | unixware* | OpenUNIX*)
119887 symcode='[ABDT]'
119889 sysv4)
119890 symcode='[DFNSTU]'
119894 # Handle CRLF in mingw tool chain
119895 opt_cr=
119896 case $build_os in
119897 mingw*)
119898 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
119902 # If we're using GNU nm, then use its standard symbol codes.
119903 case `$NM -V 2>&1` in
119904 *GNU* | *'with BFD'*)
119905 symcode='[ABCDGIRSTW]' ;;
119908 # Try without a prefix undercore, then with it.
119909 for ac_symprfx in "" "_"; do
119911 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
119912 symxfrm="\\1 $ac_symprfx\\2 \\2"
119914 # Write the raw and C identifiers.
119915 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
119917 # Check to see that the pipe works correctly.
119918 pipe_works=no
119920 rm -f conftest*
119921 cat > conftest.$ac_ext <<EOF
119922 #ifdef __cplusplus
119923 extern "C" {
119924 #endif
119925 char nm_test_var;
119926 void nm_test_func(){}
119927 #ifdef __cplusplus
119929 #endif
119930 int main(){nm_test_var='a';nm_test_func();return(0);}
119933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
119934 (eval $ac_compile) 2>&5
119935 ac_status=$?
119936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119937 (exit $ac_status); }; then
119938 # Now try to grab the symbols.
119939 nlist=conftest.nm
119940 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
119941 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
119942 ac_status=$?
119943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119944 (exit $ac_status); } && test -s "$nlist"; then
119945 # Try sorting and uniquifying the output.
119946 if sort "$nlist" | uniq > "$nlist"T; then
119947 mv -f "$nlist"T "$nlist"
119949 rm -f "$nlist"T
119952 # Make sure that we snagged all the symbols we need.
119953 if grep ' nm_test_var$' "$nlist" >/dev/null; then
119954 if grep ' nm_test_func$' "$nlist" >/dev/null; then
119955 cat <<EOF > conftest.$ac_ext
119956 #ifdef __cplusplus
119957 extern "C" {
119958 #endif
119961 # Now generate the symbol file.
119962 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
119964 cat <<EOF >> conftest.$ac_ext
119965 #if defined (__STDC__) && __STDC__
119966 # define lt_ptr_t void *
119967 #else
119968 # define lt_ptr_t char *
119969 # define const
119970 #endif
119972 /* The mapping between symbol names and symbols. */
119973 const struct {
119974 const char *name;
119975 lt_ptr_t address;
119977 lt_preloaded_symbols[] =
119980 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
119981 cat <<\EOF >> conftest.$ac_ext
119982 {0, (lt_ptr_t) 0}
119985 #ifdef __cplusplus
119987 #endif
119989 # Now try linking the two files.
119990 mv conftest.$ac_objext conftstm.$ac_objext
119991 lt_save_LIBS="$LIBS"
119992 lt_save_CFLAGS="$CFLAGS"
119993 LIBS="conftstm.$ac_objext"
119994 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
119995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
119996 (eval $ac_link) 2>&5
119997 ac_status=$?
119998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
119999 (exit $ac_status); } && test -s conftest${ac_exeext}; then
120000 pipe_works=yes
120002 LIBS="$lt_save_LIBS"
120003 CFLAGS="$lt_save_CFLAGS"
120005 echo "cannot find nm_test_func in $nlist" >&5
120008 echo "cannot find nm_test_var in $nlist" >&5
120011 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
120014 echo "$progname: failed program was:" >&5
120015 cat conftest.$ac_ext >&5
120017 rm -f conftest* conftst*
120019 # Do not use the global_symbol_pipe unless it works.
120020 if test "$pipe_works" = yes; then
120021 break
120023 lt_cv_sys_global_symbol_pipe=
120029 if test -z "$lt_cv_sys_global_symbol_pipe"; then
120030 lt_cv_sys_global_symbol_to_cdecl=
120032 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
120033 { echo "$as_me:$LINENO: result: failed" >&5
120034 echo "${ECHO_T}failed" >&6; }
120036 { echo "$as_me:$LINENO: result: ok" >&5
120037 echo "${ECHO_T}ok" >&6; }
120040 { echo "$as_me:$LINENO: checking for objdir" >&5
120041 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
120042 if test "${lt_cv_objdir+set}" = set; then
120043 echo $ECHO_N "(cached) $ECHO_C" >&6
120045 rm -f .libs 2>/dev/null
120046 mkdir .libs 2>/dev/null
120047 if test -d .libs; then
120048 lt_cv_objdir=.libs
120050 # MS-DOS does not allow filenames that begin with a dot.
120051 lt_cv_objdir=_libs
120053 rmdir .libs 2>/dev/null
120055 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
120056 echo "${ECHO_T}$lt_cv_objdir" >&6; }
120057 objdir=$lt_cv_objdir
120063 case $host_os in
120064 aix3*)
120065 # AIX sometimes has problems with the GCC collect2 program. For some
120066 # reason, if we set the COLLECT_NAMES environment variable, the problems
120067 # vanish in a puff of smoke.
120068 if test "X${COLLECT_NAMES+set}" != Xset; then
120069 COLLECT_NAMES=
120070 export COLLECT_NAMES
120075 # Sed substitution that helps us do robust quoting. It backslashifies
120076 # metacharacters that are still active within double-quoted strings.
120077 Xsed='sed -e 1s/^X//'
120078 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
120080 # Same as above, but do not quote variable references.
120081 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
120083 # Sed substitution to delay expansion of an escaped shell variable in a
120084 # double_quote_subst'ed string.
120085 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
120087 # Sed substitution to avoid accidental globbing in evaled expressions
120088 no_glob_subst='s/\*/\\\*/g'
120090 # Constants:
120091 rm="rm -f"
120093 # Global variables:
120094 default_ofile=libtool
120095 can_build_shared=yes
120097 # All known linkers require a `.a' archive for static linking (except MSVC,
120098 # which needs '.lib').
120099 libext=a
120100 ltmain="$ac_aux_dir/ltmain.sh"
120101 ofile="$default_ofile"
120102 with_gnu_ld="$lt_cv_prog_gnu_ld"
120104 if test -n "$ac_tool_prefix"; then
120105 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
120106 set dummy ${ac_tool_prefix}ar; ac_word=$2
120107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
120108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
120109 if test "${ac_cv_prog_AR+set}" = set; then
120110 echo $ECHO_N "(cached) $ECHO_C" >&6
120112 if test -n "$AR"; then
120113 ac_cv_prog_AR="$AR" # Let the user override the test.
120115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
120116 for as_dir in $PATH
120118 IFS=$as_save_IFS
120119 test -z "$as_dir" && as_dir=.
120120 for ac_exec_ext in '' $ac_executable_extensions; do
120121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
120122 ac_cv_prog_AR="${ac_tool_prefix}ar"
120123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
120124 break 2
120128 IFS=$as_save_IFS
120132 AR=$ac_cv_prog_AR
120133 if test -n "$AR"; then
120134 { echo "$as_me:$LINENO: result: $AR" >&5
120135 echo "${ECHO_T}$AR" >&6; }
120137 { echo "$as_me:$LINENO: result: no" >&5
120138 echo "${ECHO_T}no" >&6; }
120143 if test -z "$ac_cv_prog_AR"; then
120144 ac_ct_AR=$AR
120145 # Extract the first word of "ar", so it can be a program name with args.
120146 set dummy ar; ac_word=$2
120147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
120148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
120149 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
120150 echo $ECHO_N "(cached) $ECHO_C" >&6
120152 if test -n "$ac_ct_AR"; then
120153 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
120155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
120156 for as_dir in $PATH
120158 IFS=$as_save_IFS
120159 test -z "$as_dir" && as_dir=.
120160 for ac_exec_ext in '' $ac_executable_extensions; do
120161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
120162 ac_cv_prog_ac_ct_AR="ar"
120163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
120164 break 2
120168 IFS=$as_save_IFS
120172 ac_ct_AR=$ac_cv_prog_ac_ct_AR
120173 if test -n "$ac_ct_AR"; then
120174 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
120175 echo "${ECHO_T}$ac_ct_AR" >&6; }
120177 { echo "$as_me:$LINENO: result: no" >&5
120178 echo "${ECHO_T}no" >&6; }
120181 if test "x$ac_ct_AR" = x; then
120182 AR="false"
120184 case $cross_compiling:$ac_tool_warned in
120185 yes:)
120186 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
120187 whose name does not start with the host triplet. If you think this
120188 configuration is useful to you, please write to autoconf@gnu.org." >&5
120189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
120190 whose name does not start with the host triplet. If you think this
120191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
120192 ac_tool_warned=yes ;;
120194 AR=$ac_ct_AR
120197 AR="$ac_cv_prog_AR"
120200 if test -n "$ac_tool_prefix"; then
120201 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
120202 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
120203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
120204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
120205 if test "${ac_cv_prog_RANLIB+set}" = set; then
120206 echo $ECHO_N "(cached) $ECHO_C" >&6
120208 if test -n "$RANLIB"; then
120209 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
120211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
120212 for as_dir in $PATH
120214 IFS=$as_save_IFS
120215 test -z "$as_dir" && as_dir=.
120216 for ac_exec_ext in '' $ac_executable_extensions; do
120217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
120218 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
120219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
120220 break 2
120224 IFS=$as_save_IFS
120228 RANLIB=$ac_cv_prog_RANLIB
120229 if test -n "$RANLIB"; then
120230 { echo "$as_me:$LINENO: result: $RANLIB" >&5
120231 echo "${ECHO_T}$RANLIB" >&6; }
120233 { echo "$as_me:$LINENO: result: no" >&5
120234 echo "${ECHO_T}no" >&6; }
120239 if test -z "$ac_cv_prog_RANLIB"; then
120240 ac_ct_RANLIB=$RANLIB
120241 # Extract the first word of "ranlib", so it can be a program name with args.
120242 set dummy ranlib; ac_word=$2
120243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
120244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
120245 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
120246 echo $ECHO_N "(cached) $ECHO_C" >&6
120248 if test -n "$ac_ct_RANLIB"; then
120249 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
120251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
120252 for as_dir in $PATH
120254 IFS=$as_save_IFS
120255 test -z "$as_dir" && as_dir=.
120256 for ac_exec_ext in '' $ac_executable_extensions; do
120257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
120258 ac_cv_prog_ac_ct_RANLIB="ranlib"
120259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
120260 break 2
120264 IFS=$as_save_IFS
120268 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
120269 if test -n "$ac_ct_RANLIB"; then
120270 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
120271 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
120273 { echo "$as_me:$LINENO: result: no" >&5
120274 echo "${ECHO_T}no" >&6; }
120277 if test "x$ac_ct_RANLIB" = x; then
120278 RANLIB=":"
120280 case $cross_compiling:$ac_tool_warned in
120281 yes:)
120282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
120283 whose name does not start with the host triplet. If you think this
120284 configuration is useful to you, please write to autoconf@gnu.org." >&5
120285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
120286 whose name does not start with the host triplet. If you think this
120287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
120288 ac_tool_warned=yes ;;
120290 RANLIB=$ac_ct_RANLIB
120293 RANLIB="$ac_cv_prog_RANLIB"
120296 if test -n "$ac_tool_prefix"; then
120297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
120298 set dummy ${ac_tool_prefix}strip; ac_word=$2
120299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
120300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
120301 if test "${ac_cv_prog_STRIP+set}" = set; then
120302 echo $ECHO_N "(cached) $ECHO_C" >&6
120304 if test -n "$STRIP"; then
120305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
120307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
120308 for as_dir in $PATH
120310 IFS=$as_save_IFS
120311 test -z "$as_dir" && as_dir=.
120312 for ac_exec_ext in '' $ac_executable_extensions; do
120313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
120314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
120315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
120316 break 2
120320 IFS=$as_save_IFS
120324 STRIP=$ac_cv_prog_STRIP
120325 if test -n "$STRIP"; then
120326 { echo "$as_me:$LINENO: result: $STRIP" >&5
120327 echo "${ECHO_T}$STRIP" >&6; }
120329 { echo "$as_me:$LINENO: result: no" >&5
120330 echo "${ECHO_T}no" >&6; }
120335 if test -z "$ac_cv_prog_STRIP"; then
120336 ac_ct_STRIP=$STRIP
120337 # Extract the first word of "strip", so it can be a program name with args.
120338 set dummy strip; ac_word=$2
120339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
120340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
120341 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
120342 echo $ECHO_N "(cached) $ECHO_C" >&6
120344 if test -n "$ac_ct_STRIP"; then
120345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
120347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
120348 for as_dir in $PATH
120350 IFS=$as_save_IFS
120351 test -z "$as_dir" && as_dir=.
120352 for ac_exec_ext in '' $ac_executable_extensions; do
120353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
120354 ac_cv_prog_ac_ct_STRIP="strip"
120355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
120356 break 2
120360 IFS=$as_save_IFS
120364 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
120365 if test -n "$ac_ct_STRIP"; then
120366 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
120367 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
120369 { echo "$as_me:$LINENO: result: no" >&5
120370 echo "${ECHO_T}no" >&6; }
120373 if test "x$ac_ct_STRIP" = x; then
120374 STRIP=":"
120376 case $cross_compiling:$ac_tool_warned in
120377 yes:)
120378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
120379 whose name does not start with the host triplet. If you think this
120380 configuration is useful to you, please write to autoconf@gnu.org." >&5
120381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
120382 whose name does not start with the host triplet. If you think this
120383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
120384 ac_tool_warned=yes ;;
120386 STRIP=$ac_ct_STRIP
120389 STRIP="$ac_cv_prog_STRIP"
120393 old_CC="$CC"
120394 old_CFLAGS="$CFLAGS"
120396 # Set sane defaults for various variables
120397 test -z "$AR" && AR=ar
120398 test -z "$AR_FLAGS" && AR_FLAGS=cru
120399 test -z "$AS" && AS=as
120400 test -z "$CC" && CC=cc
120401 test -z "$LTCC" && LTCC=$CC
120402 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
120403 test -z "$DLLTOOL" && DLLTOOL=dlltool
120404 test -z "$LD" && LD=ld
120405 test -z "$LN_S" && LN_S="ln -s"
120406 test -z "$MAGIC_CMD" && MAGIC_CMD=file
120407 test -z "$NM" && NM=nm
120408 test -z "$SED" && SED=sed
120409 test -z "$OBJDUMP" && OBJDUMP=objdump
120410 test -z "$RANLIB" && RANLIB=:
120411 test -z "$STRIP" && STRIP=:
120412 test -z "$ac_objext" && ac_objext=o
120414 # Determine commands to create old-style static archives.
120415 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
120416 old_postinstall_cmds='chmod 644 $oldlib'
120417 old_postuninstall_cmds=
120419 if test -n "$RANLIB"; then
120420 case $host_os in
120421 openbsd*)
120422 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
120425 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
120428 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
120431 for cc_temp in $compiler""; do
120432 case $cc_temp in
120433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
120434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
120435 \-*) ;;
120436 *) break;;
120439 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
120442 # Only perform the check for file, if the check method requires it
120443 case $deplibs_check_method in
120444 file_magic*)
120445 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
120446 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
120447 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
120448 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
120449 echo $ECHO_N "(cached) $ECHO_C" >&6
120451 case $MAGIC_CMD in
120452 [\\/*] | ?:[\\/]*)
120453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
120456 lt_save_MAGIC_CMD="$MAGIC_CMD"
120457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
120458 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
120459 for ac_dir in $ac_dummy; do
120460 IFS="$lt_save_ifs"
120461 test -z "$ac_dir" && ac_dir=.
120462 if test -f $ac_dir/${ac_tool_prefix}file; then
120463 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
120464 if test -n "$file_magic_test_file"; then
120465 case $deplibs_check_method in
120466 "file_magic "*)
120467 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
120468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
120469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
120470 $EGREP "$file_magic_regex" > /dev/null; then
120473 cat <<EOF 1>&2
120475 *** Warning: the command libtool uses to detect shared libraries,
120476 *** $file_magic_cmd, produces output that libtool cannot recognize.
120477 *** The result is that libtool may fail to recognize shared libraries
120478 *** as such. This will affect the creation of libtool libraries that
120479 *** depend on shared libraries, but programs linked with such libtool
120480 *** libraries will work regardless of this problem. Nevertheless, you
120481 *** may want to report the problem to your system manager and/or to
120482 *** bug-libtool@gnu.org
120485 fi ;;
120488 break
120491 IFS="$lt_save_ifs"
120492 MAGIC_CMD="$lt_save_MAGIC_CMD"
120497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
120498 if test -n "$MAGIC_CMD"; then
120499 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
120500 echo "${ECHO_T}$MAGIC_CMD" >&6; }
120502 { echo "$as_me:$LINENO: result: no" >&5
120503 echo "${ECHO_T}no" >&6; }
120506 if test -z "$lt_cv_path_MAGIC_CMD"; then
120507 if test -n "$ac_tool_prefix"; then
120508 { echo "$as_me:$LINENO: checking for file" >&5
120509 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
120510 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
120511 echo $ECHO_N "(cached) $ECHO_C" >&6
120513 case $MAGIC_CMD in
120514 [\\/*] | ?:[\\/]*)
120515 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
120518 lt_save_MAGIC_CMD="$MAGIC_CMD"
120519 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
120520 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
120521 for ac_dir in $ac_dummy; do
120522 IFS="$lt_save_ifs"
120523 test -z "$ac_dir" && ac_dir=.
120524 if test -f $ac_dir/file; then
120525 lt_cv_path_MAGIC_CMD="$ac_dir/file"
120526 if test -n "$file_magic_test_file"; then
120527 case $deplibs_check_method in
120528 "file_magic "*)
120529 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
120530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
120531 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
120532 $EGREP "$file_magic_regex" > /dev/null; then
120535 cat <<EOF 1>&2
120537 *** Warning: the command libtool uses to detect shared libraries,
120538 *** $file_magic_cmd, produces output that libtool cannot recognize.
120539 *** The result is that libtool may fail to recognize shared libraries
120540 *** as such. This will affect the creation of libtool libraries that
120541 *** depend on shared libraries, but programs linked with such libtool
120542 *** libraries will work regardless of this problem. Nevertheless, you
120543 *** may want to report the problem to your system manager and/or to
120544 *** bug-libtool@gnu.org
120547 fi ;;
120550 break
120553 IFS="$lt_save_ifs"
120554 MAGIC_CMD="$lt_save_MAGIC_CMD"
120559 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
120560 if test -n "$MAGIC_CMD"; then
120561 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
120562 echo "${ECHO_T}$MAGIC_CMD" >&6; }
120564 { echo "$as_me:$LINENO: result: no" >&5
120565 echo "${ECHO_T}no" >&6; }
120569 MAGIC_CMD=:
120577 enable_dlopen=yes
120578 enable_win32_dll=no
120580 # Check whether --enable-libtool-lock was given.
120581 if test "${enable_libtool_lock+set}" = set; then
120582 enableval=$enable_libtool_lock;
120585 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
120588 # Check whether --with-pic was given.
120589 if test "${with_pic+set}" = set; then
120590 withval=$with_pic; pic_mode="$withval"
120592 pic_mode=default
120595 test -z "$pic_mode" && pic_mode=default
120597 # Use C for the default configuration in the libtool script
120598 tagname=
120599 lt_save_CC="$CC"
120600 ac_ext=c
120601 ac_cpp='$CPP $CPPFLAGS'
120602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
120603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
120604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
120607 # Source file extension for C test sources.
120608 ac_ext=c
120610 # Object file extension for compiled C test sources.
120611 objext=o
120612 objext=$objext
120614 # Code to be used in simple compile tests
120615 lt_simple_compile_test_code="int some_variable = 0;\n"
120617 # Code to be used in simple link tests
120618 lt_simple_link_test_code='int main(){return(0);}\n'
120621 # If no C compiler was specified, use CC.
120622 LTCC=${LTCC-"$CC"}
120624 # If no C compiler flags were specified, use CFLAGS.
120625 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
120627 # Allow CC to be a program name with arguments.
120628 compiler=$CC
120631 # save warnings/boilerplate of simple test code
120632 ac_outfile=conftest.$ac_objext
120633 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
120634 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
120635 _lt_compiler_boilerplate=`cat conftest.err`
120636 $rm conftest*
120638 ac_outfile=conftest.$ac_objext
120639 printf "$lt_simple_link_test_code" >conftest.$ac_ext
120640 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
120641 _lt_linker_boilerplate=`cat conftest.err`
120642 $rm conftest*
120646 lt_prog_compiler_no_builtin_flag=
120648 if test "$GCC" = yes; then
120649 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
120652 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
120653 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
120654 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
120655 echo $ECHO_N "(cached) $ECHO_C" >&6
120657 lt_cv_prog_compiler_rtti_exceptions=no
120658 ac_outfile=conftest.$ac_objext
120659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
120660 lt_compiler_flag="-fno-rtti -fno-exceptions"
120661 # Insert the option either (1) after the last *FLAGS variable, or
120662 # (2) before a word containing "conftest.", or (3) at the end.
120663 # Note that $ac_compile itself does not contain backslashes and begins
120664 # with a dollar sign (not a hyphen), so the echo should work correctly.
120665 # The option is referenced via a variable to avoid confusing sed.
120666 lt_compile=`echo "$ac_compile" | $SED \
120667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
120668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
120669 -e 's:$: $lt_compiler_flag:'`
120670 (eval echo "\"\$as_me:120670: $lt_compile\"" >&5)
120671 (eval "$lt_compile" 2>conftest.err)
120672 ac_status=$?
120673 cat conftest.err >&5
120674 echo "$as_me:120674: \$? = $ac_status" >&5
120675 if (exit $ac_status) && test -s "$ac_outfile"; then
120676 # The compiler can only warn and ignore the option if not recognized
120677 # So say no if there are warnings other than the usual output.
120678 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
120679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
120680 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
120681 lt_cv_prog_compiler_rtti_exceptions=yes
120684 $rm conftest*
120687 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
120688 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
120690 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
120691 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
120698 lt_prog_compiler_wl=
120699 lt_prog_compiler_pic=
120700 lt_prog_compiler_static=
120702 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
120703 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
120705 if test "$GCC" = yes; then
120706 lt_prog_compiler_wl='-Wl,'
120707 lt_prog_compiler_static='-static'
120709 case $host_os in
120710 aix*)
120711 # All AIX code is PIC.
120712 if test "$host_cpu" = ia64; then
120713 # AIX 5 now supports IA64 processor
120714 lt_prog_compiler_static='-Bstatic'
120718 amigaos*)
120719 # FIXME: we need at least 68020 code to build shared libraries, but
120720 # adding the `-m68020' flag to GCC prevents building anything better,
120721 # like `-m68040'.
120722 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
120725 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
120726 # PIC is the default for these OSes.
120729 mingw* | pw32* | os2*)
120730 # This hack is so that the source file can tell whether it is being
120731 # built for inclusion in a dll (and should export symbols for example).
120732 lt_prog_compiler_pic='-DDLL_EXPORT'
120735 darwin* | rhapsody*)
120736 # PIC is the default on this platform
120737 # Common symbols not allowed in MH_DYLIB files
120738 lt_prog_compiler_pic='-fno-common'
120741 interix3*)
120742 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
120743 # Instead, we relocate shared libraries at runtime.
120746 msdosdjgpp*)
120747 # Just because we use GCC doesn't mean we suddenly get shared libraries
120748 # on systems that don't support them.
120749 lt_prog_compiler_can_build_shared=no
120750 enable_shared=no
120753 sysv4*MP*)
120754 if test -d /usr/nec; then
120755 lt_prog_compiler_pic=-Kconform_pic
120759 hpux*)
120760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
120761 # not for PA HP-UX.
120762 case $host_cpu in
120763 hppa*64*|ia64*)
120764 # +Z the default
120767 lt_prog_compiler_pic='-fPIC'
120773 lt_prog_compiler_pic='-fPIC'
120777 # PORTME Check for flag to pass linker flags through the system compiler.
120778 case $host_os in
120779 aix*)
120780 lt_prog_compiler_wl='-Wl,'
120781 if test "$host_cpu" = ia64; then
120782 # AIX 5 now supports IA64 processor
120783 lt_prog_compiler_static='-Bstatic'
120785 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
120788 darwin*)
120789 # PIC is the default on this platform
120790 # Common symbols not allowed in MH_DYLIB files
120791 case $cc_basename in
120792 xlc*)
120793 lt_prog_compiler_pic='-qnocommon'
120794 lt_prog_compiler_wl='-Wl,'
120799 mingw* | pw32* | os2*)
120800 # This hack is so that the source file can tell whether it is being
120801 # built for inclusion in a dll (and should export symbols for example).
120802 lt_prog_compiler_pic='-DDLL_EXPORT'
120805 hpux9* | hpux10* | hpux11*)
120806 lt_prog_compiler_wl='-Wl,'
120807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
120808 # not for PA HP-UX.
120809 case $host_cpu in
120810 hppa*64*|ia64*)
120811 # +Z the default
120814 lt_prog_compiler_pic='+Z'
120817 # Is there a better lt_prog_compiler_static that works with the bundled CC?
120818 lt_prog_compiler_static='${wl}-a ${wl}archive'
120821 irix5* | irix6* | nonstopux*)
120822 lt_prog_compiler_wl='-Wl,'
120823 # PIC (with -KPIC) is the default.
120824 lt_prog_compiler_static='-non_shared'
120827 newsos6)
120828 lt_prog_compiler_pic='-KPIC'
120829 lt_prog_compiler_static='-Bstatic'
120832 linux* | k*bsd*-gnu)
120833 case $cc_basename in
120834 icc* | ecc*)
120835 lt_prog_compiler_wl='-Wl,'
120836 lt_prog_compiler_pic='-KPIC'
120837 lt_prog_compiler_static='-static'
120839 pgcc* | pgf77* | pgf90* | pgf95*)
120840 # Portland Group compilers (*not* the Pentium gcc compiler,
120841 # which looks to be a dead project)
120842 lt_prog_compiler_wl='-Wl,'
120843 lt_prog_compiler_pic='-fpic'
120844 lt_prog_compiler_static='-Bstatic'
120846 ccc*)
120847 lt_prog_compiler_wl='-Wl,'
120848 # All Alpha code is PIC.
120849 lt_prog_compiler_static='-non_shared'
120854 osf3* | osf4* | osf5*)
120855 lt_prog_compiler_wl='-Wl,'
120856 # All OSF/1 code is PIC.
120857 lt_prog_compiler_static='-non_shared'
120860 solaris*)
120861 lt_prog_compiler_pic='-KPIC'
120862 lt_prog_compiler_static='-Bstatic'
120863 case $cc_basename in
120864 f77* | f90* | f95*)
120865 lt_prog_compiler_wl='-Qoption ld ';;
120867 lt_prog_compiler_wl='-Wl,';;
120871 sunos4*)
120872 lt_prog_compiler_wl='-Qoption ld '
120873 lt_prog_compiler_pic='-PIC'
120874 lt_prog_compiler_static='-Bstatic'
120877 sysv4 | sysv4.2uw2* | sysv4.3*)
120878 lt_prog_compiler_wl='-Wl,'
120879 lt_prog_compiler_pic='-KPIC'
120880 lt_prog_compiler_static='-Bstatic'
120883 sysv4*MP*)
120884 if test -d /usr/nec ;then
120885 lt_prog_compiler_pic='-Kconform_pic'
120886 lt_prog_compiler_static='-Bstatic'
120890 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
120891 lt_prog_compiler_wl='-Wl,'
120892 lt_prog_compiler_pic='-KPIC'
120893 lt_prog_compiler_static='-Bstatic'
120896 unicos*)
120897 lt_prog_compiler_wl='-Wl,'
120898 lt_prog_compiler_can_build_shared=no
120901 uts4*)
120902 lt_prog_compiler_pic='-pic'
120903 lt_prog_compiler_static='-Bstatic'
120907 lt_prog_compiler_can_build_shared=no
120912 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
120913 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
120916 # Check to make sure the PIC flag actually works.
120918 if test -n "$lt_prog_compiler_pic"; then
120920 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
120921 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
120922 if test "${lt_prog_compiler_pic_works+set}" = set; then
120923 echo $ECHO_N "(cached) $ECHO_C" >&6
120925 lt_prog_compiler_pic_works=no
120926 ac_outfile=conftest.$ac_objext
120927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
120928 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
120929 # Insert the option either (1) after the last *FLAGS variable, or
120930 # (2) before a word containing "conftest.", or (3) at the end.
120931 # Note that $ac_compile itself does not contain backslashes and begins
120932 # with a dollar sign (not a hyphen), so the echo should work correctly.
120933 # The option is referenced via a variable to avoid confusing sed.
120934 lt_compile=`echo "$ac_compile" | $SED \
120935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
120936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
120937 -e 's:$: $lt_compiler_flag:'`
120938 (eval echo "\"\$as_me:120938: $lt_compile\"" >&5)
120939 (eval "$lt_compile" 2>conftest.err)
120940 ac_status=$?
120941 cat conftest.err >&5
120942 echo "$as_me:120942: \$? = $ac_status" >&5
120943 if (exit $ac_status) && test -s "$ac_outfile"; then
120944 # The compiler can only warn and ignore the option if not recognized
120945 # So say no if there are warnings other than the usual output.
120946 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
120947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
120948 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
120949 lt_prog_compiler_pic_works=yes
120952 $rm conftest*
120955 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
120956 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
120958 if test x"$lt_prog_compiler_pic_works" = xyes; then
120959 case $lt_prog_compiler_pic in
120960 "" | " "*) ;;
120961 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
120964 lt_prog_compiler_pic=
120965 lt_prog_compiler_can_build_shared=no
120969 case $host_os in
120970 # For platforms which do not support PIC, -DPIC is meaningless:
120971 *djgpp*)
120972 lt_prog_compiler_pic=
120975 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
120980 # Check to make sure the static flag actually works.
120982 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
120983 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
120984 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
120985 if test "${lt_prog_compiler_static_works+set}" = set; then
120986 echo $ECHO_N "(cached) $ECHO_C" >&6
120988 lt_prog_compiler_static_works=no
120989 save_LDFLAGS="$LDFLAGS"
120990 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
120991 printf "$lt_simple_link_test_code" > conftest.$ac_ext
120992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
120993 # The linker can only warn and ignore the option if not recognized
120994 # So say no if there are warnings
120995 if test -s conftest.err; then
120996 # Append any errors to the config.log.
120997 cat conftest.err 1>&5
120998 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
120999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
121000 if diff conftest.exp conftest.er2 >/dev/null; then
121001 lt_prog_compiler_static_works=yes
121004 lt_prog_compiler_static_works=yes
121007 $rm conftest*
121008 LDFLAGS="$save_LDFLAGS"
121011 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
121012 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
121014 if test x"$lt_prog_compiler_static_works" = xyes; then
121017 lt_prog_compiler_static=
121021 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
121022 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
121023 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
121024 echo $ECHO_N "(cached) $ECHO_C" >&6
121026 lt_cv_prog_compiler_c_o=no
121027 $rm -r conftest 2>/dev/null
121028 mkdir conftest
121029 cd conftest
121030 mkdir out
121031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
121033 lt_compiler_flag="-o out/conftest2.$ac_objext"
121034 # Insert the option either (1) after the last *FLAGS variable, or
121035 # (2) before a word containing "conftest.", or (3) at the end.
121036 # Note that $ac_compile itself does not contain backslashes and begins
121037 # with a dollar sign (not a hyphen), so the echo should work correctly.
121038 lt_compile=`echo "$ac_compile" | $SED \
121039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
121040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
121041 -e 's:$: $lt_compiler_flag:'`
121042 (eval echo "\"\$as_me:121042: $lt_compile\"" >&5)
121043 (eval "$lt_compile" 2>out/conftest.err)
121044 ac_status=$?
121045 cat out/conftest.err >&5
121046 echo "$as_me:121046: \$? = $ac_status" >&5
121047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
121049 # The compiler can only warn and ignore the option if not recognized
121050 # So say no if there are warnings
121051 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
121052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
121053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
121054 lt_cv_prog_compiler_c_o=yes
121057 chmod u+w . 2>&5
121058 $rm conftest*
121059 # SGI C++ compiler will create directory out/ii_files/ for
121060 # template instantiation
121061 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
121062 $rm out/* && rmdir out
121063 cd ..
121064 rmdir conftest
121065 $rm conftest*
121068 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
121069 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
121072 hard_links="nottested"
121073 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
121074 # do not overwrite the value of need_locks provided by the user
121075 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
121076 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
121077 hard_links=yes
121078 $rm conftest*
121079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
121080 touch conftest.a
121081 ln conftest.a conftest.b 2>&5 || hard_links=no
121082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
121083 { echo "$as_me:$LINENO: result: $hard_links" >&5
121084 echo "${ECHO_T}$hard_links" >&6; }
121085 if test "$hard_links" = no; then
121086 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
121087 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
121088 need_locks=warn
121091 need_locks=no
121094 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
121095 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
121097 runpath_var=
121098 allow_undefined_flag=
121099 enable_shared_with_static_runtimes=no
121100 archive_cmds=
121101 archive_expsym_cmds=
121102 old_archive_From_new_cmds=
121103 old_archive_from_expsyms_cmds=
121104 export_dynamic_flag_spec=
121105 whole_archive_flag_spec=
121106 thread_safe_flag_spec=
121107 hardcode_libdir_flag_spec=
121108 hardcode_libdir_flag_spec_ld=
121109 hardcode_libdir_separator=
121110 hardcode_direct=no
121111 hardcode_minus_L=no
121112 hardcode_shlibpath_var=unsupported
121113 link_all_deplibs=unknown
121114 hardcode_automatic=no
121115 module_cmds=
121116 module_expsym_cmds=
121117 always_export_symbols=no
121118 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
121119 # include_expsyms should be a list of space-separated symbols to be *always*
121120 # included in the symbol list
121121 include_expsyms=
121122 # exclude_expsyms can be an extended regexp of symbols to exclude
121123 # it will be wrapped by ` (' and `)$', so one must not match beginning or
121124 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
121125 # as well as any symbol that contains `d'.
121126 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
121127 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
121128 # platforms (ab)use it in PIC code, but their linkers get confused if
121129 # the symbol is explicitly referenced. Since portable code cannot
121130 # rely on this symbol name, it's probably fine to never include it in
121131 # preloaded symbol tables.
121132 extract_expsyms_cmds=
121133 # Just being paranoid about ensuring that cc_basename is set.
121134 for cc_temp in $compiler""; do
121135 case $cc_temp in
121136 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
121137 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
121138 \-*) ;;
121139 *) break;;
121142 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
121144 case $host_os in
121145 cygwin* | mingw* | pw32*)
121146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
121147 # When not using gcc, we currently assume that we are using
121148 # Microsoft Visual C++.
121149 if test "$GCC" != yes; then
121150 with_gnu_ld=no
121153 interix*)
121154 # we just hope/assume this is gcc and not c89 (= MSVC++)
121155 with_gnu_ld=yes
121157 openbsd*)
121158 with_gnu_ld=no
121162 ld_shlibs=yes
121163 if test "$with_gnu_ld" = yes; then
121164 # If archive_cmds runs LD, not CC, wlarc should be empty
121165 wlarc='${wl}'
121167 # Set some defaults for GNU ld with shared library support. These
121168 # are reset later if shared libraries are not supported. Putting them
121169 # here allows them to be overridden if necessary.
121170 runpath_var=LD_RUN_PATH
121171 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
121172 export_dynamic_flag_spec='${wl}--export-dynamic'
121173 # ancient GNU ld didn't support --whole-archive et. al.
121174 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
121175 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
121177 whole_archive_flag_spec=
121179 supports_anon_versioning=no
121180 case `$LD -v 2>/dev/null` in
121181 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
121182 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
121183 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
121184 *\ 2.11.*) ;; # other 2.11 versions
121185 *) supports_anon_versioning=yes ;;
121188 # See if GNU ld supports shared libraries.
121189 case $host_os in
121190 aix3* | aix4* | aix5*)
121191 # On AIX/PPC, the GNU linker is very broken
121192 if test "$host_cpu" != ia64; then
121193 ld_shlibs=no
121194 cat <<EOF 1>&2
121196 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
121197 *** to be unable to reliably create shared libraries on AIX.
121198 *** Therefore, libtool is disabling shared libraries support. If you
121199 *** really care for shared libraries, you may want to modify your PATH
121200 *** so that a non-GNU linker is found, and then restart.
121206 amigaos*)
121207 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)'
121208 hardcode_libdir_flag_spec='-L$libdir'
121209 hardcode_minus_L=yes
121211 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
121212 # that the semantics of dynamic libraries on AmigaOS, at least up
121213 # to version 4, is to share data among multiple programs linked
121214 # with the same dynamic library. Since this doesn't match the
121215 # behavior of shared libraries on other platforms, we can't use
121216 # them.
121217 ld_shlibs=no
121220 beos*)
121221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
121222 allow_undefined_flag=unsupported
121223 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
121224 # support --undefined. This deserves some investigation. FIXME
121225 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
121227 ld_shlibs=no
121231 cygwin* | mingw* | pw32*)
121232 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
121233 # as there is no search path for DLLs.
121234 hardcode_libdir_flag_spec='-L$libdir'
121235 allow_undefined_flag=unsupported
121236 always_export_symbols=no
121237 enable_shared_with_static_runtimes=yes
121238 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
121240 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
121241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
121242 # If the export-symbols file already is a .def file (1st line
121243 # is EXPORTS), use it as is; otherwise, prepend...
121244 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
121245 cp $export_symbols $output_objdir/$soname.def;
121247 echo EXPORTS > $output_objdir/$soname.def;
121248 cat $export_symbols >> $output_objdir/$soname.def;
121250 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
121252 ld_shlibs=no
121256 interix3*)
121257 hardcode_direct=no
121258 hardcode_shlibpath_var=no
121259 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
121260 export_dynamic_flag_spec='${wl}-E'
121261 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
121262 # Instead, shared libraries are loaded at an image base (0x10000000 by
121263 # default) and relocated if they conflict, which is a slow very memory
121264 # consuming and fragmenting process. To avoid this, we pick a random,
121265 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
121266 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
121267 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
121268 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'
121271 linux* | k*bsd*-gnu)
121272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
121273 tmp_addflag=
121274 case $cc_basename,$host_cpu in
121275 pgcc*) # Portland Group C compiler
121276 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
121277 tmp_addflag=' $pic_flag'
121279 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
121280 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
121281 tmp_addflag=' $pic_flag -Mnomain' ;;
121282 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
121283 tmp_addflag=' -i_dynamic' ;;
121284 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
121285 tmp_addflag=' -i_dynamic -nofor_main' ;;
121286 ifc* | ifort*) # Intel Fortran compiler
121287 tmp_addflag=' -nofor_main' ;;
121289 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
121291 if test $supports_anon_versioning = yes; then
121292 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
121293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
121294 $echo "local: *; };" >> $output_objdir/$libname.ver~
121295 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
121297 link_all_deplibs=no
121299 ld_shlibs=no
121303 netbsd* | netbsdelf*-gnu)
121304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
121305 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
121306 wlarc=
121308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
121309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
121313 solaris*)
121314 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
121315 ld_shlibs=no
121316 cat <<EOF 1>&2
121318 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
121319 *** create shared libraries on Solaris systems. Therefore, libtool
121320 *** is disabling shared libraries support. We urge you to upgrade GNU
121321 *** binutils to release 2.9.1 or newer. Another option is to modify
121322 *** your PATH or compiler configuration so that the native linker is
121323 *** used, and then restart.
121326 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
121327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
121328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
121330 ld_shlibs=no
121334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
121335 case `$LD -v 2>&1` in
121336 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
121337 ld_shlibs=no
121338 cat <<_LT_EOF 1>&2
121340 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
121341 *** reliably create shared libraries on SCO systems. Therefore, libtool
121342 *** is disabling shared libraries support. We urge you to upgrade GNU
121343 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
121344 *** your PATH or compiler configuration so that the native linker is
121345 *** used, and then restart.
121347 _LT_EOF
121350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
121351 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
121352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
121353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
121355 ld_shlibs=no
121361 sunos4*)
121362 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
121363 wlarc=
121364 hardcode_direct=yes
121365 hardcode_shlibpath_var=no
121369 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
121370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
121371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
121373 ld_shlibs=no
121378 if test "$ld_shlibs" = no; then
121379 runpath_var=
121380 hardcode_libdir_flag_spec=
121381 export_dynamic_flag_spec=
121382 whole_archive_flag_spec=
121385 # PORTME fill in a description of your system's linker (not GNU ld)
121386 case $host_os in
121387 aix3*)
121388 allow_undefined_flag=unsupported
121389 always_export_symbols=yes
121390 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'
121391 # Note: this linker hardcodes the directories in LIBPATH if there
121392 # are no directories specified by -L.
121393 hardcode_minus_L=yes
121394 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
121395 # Neither direct hardcoding nor static linking is supported with a
121396 # broken collect2.
121397 hardcode_direct=unsupported
121401 aix4* | aix5*)
121402 if test "$host_cpu" = ia64; then
121403 # On IA64, the linker does run time linking by default, so we don't
121404 # have to do anything special.
121405 aix_use_runtimelinking=no
121406 exp_sym_flag='-Bexport'
121407 no_entry_flag=""
121409 # If we're using GNU nm, then we don't want the "-C" option.
121410 # -C means demangle to AIX nm, but means don't demangle with GNU nm
121411 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
121412 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
121414 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
121416 aix_use_runtimelinking=no
121418 # Test if we are trying to use run time linking or normal
121419 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
121420 # need to do runtime linking.
121421 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
121422 for ld_flag in $LDFLAGS; do
121423 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
121424 aix_use_runtimelinking=yes
121425 break
121431 exp_sym_flag='-bexport'
121432 no_entry_flag='-bnoentry'
121435 # When large executables or shared objects are built, AIX ld can
121436 # have problems creating the table of contents. If linking a library
121437 # or program results in "error TOC overflow" add -mminimal-toc to
121438 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
121439 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
121441 archive_cmds=''
121442 hardcode_direct=yes
121443 hardcode_libdir_separator=':'
121444 link_all_deplibs=yes
121446 if test "$GCC" = yes; then
121447 case $host_os in aix4.[012]|aix4.[012].*)
121448 # We only want to do this on AIX 4.2 and lower, the check
121449 # below for broken collect2 doesn't work under 4.3+
121450 collect2name=`${CC} -print-prog-name=collect2`
121451 if test -f "$collect2name" && \
121452 strings "$collect2name" | grep resolve_lib_name >/dev/null
121454 # We have reworked collect2
121455 hardcode_direct=yes
121457 # We have old collect2
121458 hardcode_direct=unsupported
121459 # It fails to find uninstalled libraries when the uninstalled
121460 # path is not listed in the libpath. Setting hardcode_minus_L
121461 # to unsupported forces relinking
121462 hardcode_minus_L=yes
121463 hardcode_libdir_flag_spec='-L$libdir'
121464 hardcode_libdir_separator=
121468 shared_flag='-shared'
121469 if test "$aix_use_runtimelinking" = yes; then
121470 shared_flag="$shared_flag "'${wl}-G'
121473 # not using gcc
121474 if test "$host_cpu" = ia64; then
121475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
121476 # chokes on -Wl,-G. The following line is correct:
121477 shared_flag='-G'
121479 if test "$aix_use_runtimelinking" = yes; then
121480 shared_flag='${wl}-G'
121482 shared_flag='${wl}-bM:SRE'
121487 # It seems that -bexpall does not export symbols beginning with
121488 # underscore (_), so it is better to generate a list of symbols to export.
121489 always_export_symbols=yes
121490 if test "$aix_use_runtimelinking" = yes; then
121491 # Warning - without using the other runtime loading flags (-brtl),
121492 # -berok will link without error, but may produce a broken library.
121493 allow_undefined_flag='-berok'
121494 # Determine the default libpath from the value encoded in an empty executable.
121495 cat >conftest.$ac_ext <<_ACEOF
121496 /* confdefs.h. */
121497 _ACEOF
121498 cat confdefs.h >>conftest.$ac_ext
121499 cat >>conftest.$ac_ext <<_ACEOF
121500 /* end confdefs.h. */
121503 main ()
121507 return 0;
121509 _ACEOF
121510 rm -f conftest.$ac_objext conftest$ac_exeext
121511 if { (ac_try="$ac_link"
121512 case "(($ac_try" in
121513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
121514 *) ac_try_echo=$ac_try;;
121516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
121517 (eval "$ac_link") 2>conftest.er1
121518 ac_status=$?
121519 grep -v '^ *+' conftest.er1 >conftest.err
121520 rm -f conftest.er1
121521 cat conftest.err >&5
121522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
121523 (exit $ac_status); } && {
121524 test -z "$ac_c_werror_flag" ||
121525 test ! -s conftest.err
121526 } && test -s conftest$ac_exeext &&
121527 $as_test_x conftest$ac_exeext; then
121529 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
121531 # Check for a 64-bit object if we didn't find anything.
121532 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
121533 }'`; fi
121535 echo "$as_me: failed program was:" >&5
121536 sed 's/^/| /' conftest.$ac_ext >&5
121541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
121542 conftest$ac_exeext conftest.$ac_ext
121543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
121545 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
121546 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
121548 if test "$host_cpu" = ia64; then
121549 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
121550 allow_undefined_flag="-z nodefs"
121551 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"
121553 # Determine the default libpath from the value encoded in an empty executable.
121554 cat >conftest.$ac_ext <<_ACEOF
121555 /* confdefs.h. */
121556 _ACEOF
121557 cat confdefs.h >>conftest.$ac_ext
121558 cat >>conftest.$ac_ext <<_ACEOF
121559 /* end confdefs.h. */
121562 main ()
121566 return 0;
121568 _ACEOF
121569 rm -f conftest.$ac_objext conftest$ac_exeext
121570 if { (ac_try="$ac_link"
121571 case "(($ac_try" in
121572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
121573 *) ac_try_echo=$ac_try;;
121575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
121576 (eval "$ac_link") 2>conftest.er1
121577 ac_status=$?
121578 grep -v '^ *+' conftest.er1 >conftest.err
121579 rm -f conftest.er1
121580 cat conftest.err >&5
121581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
121582 (exit $ac_status); } && {
121583 test -z "$ac_c_werror_flag" ||
121584 test ! -s conftest.err
121585 } && test -s conftest$ac_exeext &&
121586 $as_test_x conftest$ac_exeext; then
121588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
121590 # Check for a 64-bit object if we didn't find anything.
121591 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
121592 }'`; fi
121594 echo "$as_me: failed program was:" >&5
121595 sed 's/^/| /' conftest.$ac_ext >&5
121600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
121601 conftest$ac_exeext conftest.$ac_ext
121602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
121604 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
121605 # Warning - without using the other run time loading flags,
121606 # -berok will link without error, but may produce a broken library.
121607 no_undefined_flag=' ${wl}-bernotok'
121608 allow_undefined_flag=' ${wl}-berok'
121609 # Exported symbols can be pulled into shared objects from archives
121610 whole_archive_flag_spec='$convenience'
121611 archive_cmds_need_lc=yes
121612 # This is similar to how AIX traditionally builds its shared libraries.
121613 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
121618 amigaos*)
121619 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)'
121620 hardcode_libdir_flag_spec='-L$libdir'
121621 hardcode_minus_L=yes
121622 # see comment about different semantics on the GNU ld section
121623 ld_shlibs=no
121626 bsdi[45]*)
121627 export_dynamic_flag_spec=-rdynamic
121630 cygwin* | mingw* | pw32*)
121631 # When not using gcc, we currently assume that we are using
121632 # Microsoft Visual C++.
121633 # hardcode_libdir_flag_spec is actually meaningless, as there is
121634 # no search path for DLLs.
121635 hardcode_libdir_flag_spec=' '
121636 allow_undefined_flag=unsupported
121637 # Tell ltmain to make .lib files, not .a files.
121638 libext=lib
121639 # Tell ltmain to make .dll files, not .so files.
121640 shrext_cmds=".dll"
121641 # FIXME: Setting linknames here is a bad hack.
121642 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
121643 # The linker will automatically build a .lib file if we build a DLL.
121644 old_archive_From_new_cmds='true'
121645 # FIXME: Should let the user specify the lib program.
121646 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
121647 fix_srcfile_path='`cygpath -w "$srcfile"`'
121648 enable_shared_with_static_runtimes=yes
121651 darwin* | rhapsody*)
121652 case $host_os in
121653 rhapsody* | darwin1.[012])
121654 allow_undefined_flag='${wl}-undefined ${wl}suppress'
121656 *) # Darwin 1.3 on
121657 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
121658 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
121660 case ${MACOSX_DEPLOYMENT_TARGET} in
121661 10.[012])
121662 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
121664 10.*)
121665 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
121671 archive_cmds_need_lc=no
121672 hardcode_direct=no
121673 hardcode_automatic=yes
121674 hardcode_shlibpath_var=unsupported
121675 whole_archive_flag_spec=''
121676 link_all_deplibs=yes
121677 if test "$GCC" = yes ; then
121678 output_verbose_link_cmd='echo'
121679 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
121680 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
121681 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
121682 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
121683 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
121685 case $cc_basename in
121686 xlc*)
121687 output_verbose_link_cmd='echo'
121688 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
121689 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
121690 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
121691 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
121692 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
121695 ld_shlibs=no
121701 dgux*)
121702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
121703 hardcode_libdir_flag_spec='-L$libdir'
121704 hardcode_shlibpath_var=no
121707 freebsd1*)
121708 ld_shlibs=no
121711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
121712 # support. Future versions do this automatically, but an explicit c++rt0.o
121713 # does not break anything, and helps significantly (at the cost of a little
121714 # extra space).
121715 freebsd2.2*)
121716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
121717 hardcode_libdir_flag_spec='-R$libdir'
121718 hardcode_direct=yes
121719 hardcode_shlibpath_var=no
121722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
121723 freebsd2*)
121724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
121725 hardcode_direct=yes
121726 hardcode_minus_L=yes
121727 hardcode_shlibpath_var=no
121730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
121731 freebsd* | dragonfly*)
121732 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
121733 hardcode_libdir_flag_spec='-R$libdir'
121734 hardcode_direct=yes
121735 hardcode_shlibpath_var=no
121738 hpux9*)
121739 if test "$GCC" = yes; then
121740 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
121742 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
121744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
121745 hardcode_libdir_separator=:
121746 hardcode_direct=yes
121748 # hardcode_minus_L: Not really in the search PATH,
121749 # but as the default location of the library.
121750 hardcode_minus_L=yes
121751 export_dynamic_flag_spec='${wl}-E'
121754 hpux10*)
121755 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
121756 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
121758 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
121760 if test "$with_gnu_ld" = no; then
121761 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
121762 hardcode_libdir_separator=:
121764 hardcode_direct=yes
121765 export_dynamic_flag_spec='${wl}-E'
121767 # hardcode_minus_L: Not really in the search PATH,
121768 # but as the default location of the library.
121769 hardcode_minus_L=yes
121773 hpux11*)
121774 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
121775 case $host_cpu in
121776 hppa*64*)
121777 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
121779 ia64*)
121780 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
121783 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
121787 case $host_cpu in
121788 hppa*64*)
121789 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
121791 ia64*)
121792 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
121795 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
121799 if test "$with_gnu_ld" = no; then
121800 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
121801 hardcode_libdir_separator=:
121803 case $host_cpu in
121804 hppa*64*|ia64*)
121805 hardcode_libdir_flag_spec_ld='+b $libdir'
121806 hardcode_direct=no
121807 hardcode_shlibpath_var=no
121810 hardcode_direct=yes
121811 export_dynamic_flag_spec='${wl}-E'
121813 # hardcode_minus_L: Not really in the search PATH,
121814 # but as the default location of the library.
121815 hardcode_minus_L=yes
121821 irix5* | irix6* | nonstopux*)
121822 if test "$GCC" = yes; then
121823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
121825 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
121826 hardcode_libdir_flag_spec_ld='-rpath $libdir'
121828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
121829 hardcode_libdir_separator=:
121830 link_all_deplibs=yes
121833 netbsd* | netbsdelf*-gnu)
121834 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
121835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
121837 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
121839 hardcode_libdir_flag_spec='-R$libdir'
121840 hardcode_direct=yes
121841 hardcode_shlibpath_var=no
121844 newsos6)
121845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
121846 hardcode_direct=yes
121847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
121848 hardcode_libdir_separator=:
121849 hardcode_shlibpath_var=no
121852 openbsd*)
121853 hardcode_direct=yes
121854 hardcode_shlibpath_var=no
121855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
121856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
121857 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
121858 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
121859 export_dynamic_flag_spec='${wl}-E'
121861 case $host_os in
121862 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
121863 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
121864 hardcode_libdir_flag_spec='-R$libdir'
121867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
121868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
121874 os2*)
121875 hardcode_libdir_flag_spec='-L$libdir'
121876 hardcode_minus_L=yes
121877 allow_undefined_flag=unsupported
121878 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
121879 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
121882 osf3*)
121883 if test "$GCC" = yes; then
121884 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
121885 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
121887 allow_undefined_flag=' -expect_unresolved \*'
121888 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
121890 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
121891 hardcode_libdir_separator=:
121894 osf4* | osf5*) # as osf3* with the addition of -msym flag
121895 if test "$GCC" = yes; then
121896 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
121897 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
121898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
121900 allow_undefined_flag=' -expect_unresolved \*'
121901 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
121902 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
121903 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
121905 # Both c and cxx compiler support -rpath directly
121906 hardcode_libdir_flag_spec='-rpath $libdir'
121908 hardcode_libdir_separator=:
121911 solaris*)
121912 no_undefined_flag=' -z text'
121913 if test "$GCC" = yes; then
121914 wlarc='${wl}'
121915 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
121916 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
121917 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
121919 wlarc=''
121920 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
121921 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
121922 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
121924 hardcode_libdir_flag_spec='-R$libdir'
121925 hardcode_shlibpath_var=no
121926 case $host_os in
121927 solaris2.[0-5] | solaris2.[0-5].*) ;;
121929 # The compiler driver will combine linker options so we
121930 # cannot just pass the convience library names through
121931 # without $wl, iff we do not link with $LD.
121932 # Luckily, gcc supports the same syntax we need for Sun Studio.
121933 # Supported since Solaris 2.6 (maybe 2.5.1?)
121934 case $wlarc in
121936 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
121938 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
121939 esac ;;
121941 link_all_deplibs=yes
121944 sunos4*)
121945 if test "x$host_vendor" = xsequent; then
121946 # Use $CC to link under sequent, because it throws in some extra .o
121947 # files that make .init and .fini sections work.
121948 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
121950 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
121952 hardcode_libdir_flag_spec='-L$libdir'
121953 hardcode_direct=yes
121954 hardcode_minus_L=yes
121955 hardcode_shlibpath_var=no
121958 sysv4)
121959 case $host_vendor in
121961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
121962 hardcode_direct=yes # is this really true???
121964 siemens)
121965 ## LD is ld it makes a PLAMLIB
121966 ## CC just makes a GrossModule.
121967 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
121968 reload_cmds='$CC -r -o $output$reload_objs'
121969 hardcode_direct=no
121971 motorola)
121972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
121973 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
121976 runpath_var='LD_RUN_PATH'
121977 hardcode_shlibpath_var=no
121980 sysv4.3*)
121981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
121982 hardcode_shlibpath_var=no
121983 export_dynamic_flag_spec='-Bexport'
121986 sysv4*MP*)
121987 if test -d /usr/nec; then
121988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
121989 hardcode_shlibpath_var=no
121990 runpath_var=LD_RUN_PATH
121991 hardcode_runpath_var=yes
121992 ld_shlibs=yes
121996 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
121997 no_undefined_flag='${wl}-z,text'
121998 archive_cmds_need_lc=no
121999 hardcode_shlibpath_var=no
122000 runpath_var='LD_RUN_PATH'
122002 if test "$GCC" = yes; then
122003 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
122004 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
122006 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
122007 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
122011 sysv5* | sco3.2v5* | sco5v6*)
122012 # Note: We can NOT use -z defs as we might desire, because we do not
122013 # link with -lc, and that would cause any symbols used from libc to
122014 # always be unresolved, which means just about no library would
122015 # ever link correctly. If we're not using GNU ld we use -z text
122016 # though, which does catch some bad symbols but isn't as heavy-handed
122017 # as -z defs.
122018 no_undefined_flag='${wl}-z,text'
122019 allow_undefined_flag='${wl}-z,nodefs'
122020 archive_cmds_need_lc=no
122021 hardcode_shlibpath_var=no
122022 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
122023 hardcode_libdir_separator=':'
122024 link_all_deplibs=yes
122025 export_dynamic_flag_spec='${wl}-Bexport'
122026 runpath_var='LD_RUN_PATH'
122028 if test "$GCC" = yes; then
122029 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
122030 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
122032 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
122033 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
122037 uts4*)
122038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
122039 hardcode_libdir_flag_spec='-L$libdir'
122040 hardcode_shlibpath_var=no
122044 ld_shlibs=no
122049 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
122050 echo "${ECHO_T}$ld_shlibs" >&6; }
122051 test "$ld_shlibs" = no && can_build_shared=no
122054 # Do we need to explicitly link libc?
122056 case "x$archive_cmds_need_lc" in
122057 x|xyes)
122058 # Assume -lc should be added
122059 archive_cmds_need_lc=yes
122061 if test "$enable_shared" = yes && test "$GCC" = yes; then
122062 case $archive_cmds in
122063 *'~'*)
122064 # FIXME: we may have to deal with multi-command sequences.
122066 '$CC '*)
122067 # Test whether the compiler implicitly links with -lc since on some
122068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
122069 # to ld, don't add -lc before -lgcc.
122070 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
122071 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
122072 $rm conftest*
122073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
122075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
122076 (eval $ac_compile) 2>&5
122077 ac_status=$?
122078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
122079 (exit $ac_status); } 2>conftest.err; then
122080 soname=conftest
122081 lib=conftest
122082 libobjs=conftest.$ac_objext
122083 deplibs=
122084 wl=$lt_prog_compiler_wl
122085 pic_flag=$lt_prog_compiler_pic
122086 compiler_flags=-v
122087 linker_flags=-v
122088 verstring=
122089 output_objdir=.
122090 libname=conftest
122091 lt_save_allow_undefined_flag=$allow_undefined_flag
122092 allow_undefined_flag=
122093 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
122094 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
122095 ac_status=$?
122096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
122097 (exit $ac_status); }
122099 archive_cmds_need_lc=no
122101 archive_cmds_need_lc=yes
122103 allow_undefined_flag=$lt_save_allow_undefined_flag
122105 cat conftest.err 1>&5
122107 $rm conftest*
122108 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
122109 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
122116 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
122117 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
122118 library_names_spec=
122119 libname_spec='lib$name'
122120 soname_spec=
122121 shrext_cmds=".so"
122122 postinstall_cmds=
122123 postuninstall_cmds=
122124 finish_cmds=
122125 finish_eval=
122126 shlibpath_var=
122127 shlibpath_overrides_runpath=unknown
122128 version_type=none
122129 dynamic_linker="$host_os ld.so"
122130 sys_lib_dlsearch_path_spec="/lib /usr/lib"
122131 if test "$GCC" = yes; then
122132 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
122133 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
122134 # if the path contains ";" then we assume it to be the separator
122135 # otherwise default to the standard path separator (i.e. ":") - it is
122136 # assumed that no part of a normal pathname contains ";" but that should
122137 # okay in the real world where ";" in dirpaths is itself problematic.
122138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
122140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
122143 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
122145 need_lib_prefix=unknown
122146 hardcode_into_libs=no
122148 # when you set need_version to no, make sure it does not cause -set_version
122149 # flags to be left without arguments
122150 need_version=unknown
122152 case $host_os in
122153 aix3*)
122154 version_type=linux
122155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
122156 shlibpath_var=LIBPATH
122158 # AIX 3 has no versioning support, so we append a major version to the name.
122159 soname_spec='${libname}${release}${shared_ext}$major'
122162 aix4* | aix5*)
122163 version_type=linux
122164 need_lib_prefix=no
122165 need_version=no
122166 hardcode_into_libs=yes
122167 if test "$host_cpu" = ia64; then
122168 # AIX 5 supports IA64
122169 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
122170 shlibpath_var=LD_LIBRARY_PATH
122172 # With GCC up to 2.95.x, collect2 would create an import file
122173 # for dependence libraries. The import file would start with
122174 # the line `#! .'. This would cause the generated library to
122175 # depend on `.', always an invalid library. This was fixed in
122176 # development snapshots of GCC prior to 3.0.
122177 case $host_os in
122178 aix4 | aix4.[01] | aix4.[01].*)
122179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
122180 echo ' yes '
122181 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
122184 can_build_shared=no
122188 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
122189 # soname into executable. Probably we can add versioning support to
122190 # collect2, so additional links can be useful in future.
122191 if test "$aix_use_runtimelinking" = yes; then
122192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
122193 # instead of lib<name>.a to let people know that these are not
122194 # typical AIX shared libraries.
122195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
122197 # We preserve .a as extension for shared libraries through AIX4.2
122198 # and later when we are not doing run time linking.
122199 library_names_spec='${libname}${release}.a $libname.a'
122200 soname_spec='${libname}${release}${shared_ext}$major'
122202 shlibpath_var=LIBPATH
122206 amigaos*)
122207 library_names_spec='$libname.ixlibrary $libname.a'
122208 # Create ${libname}_ixlibrary.a entries in /sys/libs.
122209 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
122212 beos*)
122213 library_names_spec='${libname}${shared_ext}'
122214 dynamic_linker="$host_os ld.so"
122215 shlibpath_var=LIBRARY_PATH
122218 bsdi[45]*)
122219 version_type=linux
122220 need_version=no
122221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
122222 soname_spec='${libname}${release}${shared_ext}$major'
122223 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
122224 shlibpath_var=LD_LIBRARY_PATH
122225 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
122226 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
122227 # the default ld.so.conf also contains /usr/contrib/lib and
122228 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
122229 # libtool to hard-code these into programs
122232 cygwin* | mingw* | pw32*)
122233 version_type=windows
122234 shrext_cmds=".dll"
122235 need_version=no
122236 need_lib_prefix=no
122238 case $GCC,$host_os in
122239 yes,cygwin* | yes,mingw* | yes,pw32*)
122240 library_names_spec='$libname.dll.a'
122241 # DLL is installed to $(libdir)/../bin by postinstall_cmds
122242 postinstall_cmds='base_file=`basename \${file}`~
122243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
122244 dldir=$destdir/`dirname \$dlpath`~
122245 test -d \$dldir || mkdir -p \$dldir~
122246 $install_prog $dir/$dlname \$dldir/$dlname~
122247 chmod a+x \$dldir/$dlname'
122248 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
122249 dlpath=$dir/\$dldll~
122250 $rm \$dlpath'
122251 shlibpath_overrides_runpath=yes
122253 case $host_os in
122254 cygwin*)
122255 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
122256 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
122257 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
122259 mingw*)
122260 # MinGW DLLs use traditional 'lib' prefix
122261 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
122262 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
122263 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
122264 # It is most probably a Windows format PATH printed by
122265 # mingw gcc, but we are running on Cygwin. Gcc prints its search
122266 # path with ; separators, and with drive letters. We can handle the
122267 # drive letters (cygwin fileutils understands them), so leave them,
122268 # especially as we might pass files found there to a mingw objdump,
122269 # which wouldn't understand a cygwinified path. Ahh.
122270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
122272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
122275 pw32*)
122276 # pw32 DLLs use 'pw' prefix rather than 'lib'
122277 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
122283 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
122286 dynamic_linker='Win32 ld.exe'
122287 # FIXME: first we should search . and the directory the executable is in
122288 shlibpath_var=PATH
122291 darwin* | rhapsody*)
122292 dynamic_linker="$host_os dyld"
122293 version_type=darwin
122294 need_lib_prefix=no
122295 need_version=no
122296 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
122297 soname_spec='${libname}${release}${major}$shared_ext'
122298 shlibpath_overrides_runpath=yes
122299 shlibpath_var=DYLD_LIBRARY_PATH
122300 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
122301 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
122302 if test "$GCC" = yes; then
122303 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
122305 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
122307 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
122310 dgux*)
122311 version_type=linux
122312 need_lib_prefix=no
122313 need_version=no
122314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
122315 soname_spec='${libname}${release}${shared_ext}$major'
122316 shlibpath_var=LD_LIBRARY_PATH
122319 freebsd1*)
122320 dynamic_linker=no
122323 freebsd* | dragonfly*)
122324 # DragonFly does not have aout. When/if they implement a new
122325 # versioning mechanism, adjust this.
122326 if test -x /usr/bin/objformat; then
122327 objformat=`/usr/bin/objformat`
122329 case $host_os in
122330 freebsd[123]*) objformat=aout ;;
122331 *) objformat=elf ;;
122334 version_type=freebsd-$objformat
122335 case $version_type in
122336 freebsd-elf*)
122337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
122338 need_version=no
122339 need_lib_prefix=no
122341 freebsd-*)
122342 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
122343 need_version=yes
122346 shlibpath_var=LD_LIBRARY_PATH
122347 case $host_os in
122348 freebsd2*)
122349 shlibpath_overrides_runpath=yes
122351 freebsd3.[01]* | freebsdelf3.[01]*)
122352 shlibpath_overrides_runpath=yes
122353 hardcode_into_libs=yes
122355 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
122356 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
122357 shlibpath_overrides_runpath=no
122358 hardcode_into_libs=yes
122360 freebsd*) # from 4.6 on
122361 shlibpath_overrides_runpath=yes
122362 hardcode_into_libs=yes
122367 gnu*)
122368 version_type=linux
122369 need_lib_prefix=no
122370 need_version=no
122371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
122372 soname_spec='${libname}${release}${shared_ext}$major'
122373 shlibpath_var=LD_LIBRARY_PATH
122374 hardcode_into_libs=yes
122377 hpux9* | hpux10* | hpux11*)
122378 # Give a soname corresponding to the major version so that dld.sl refuses to
122379 # link against other versions.
122380 version_type=sunos
122381 need_lib_prefix=no
122382 need_version=no
122383 case $host_cpu in
122384 ia64*)
122385 shrext_cmds='.so'
122386 hardcode_into_libs=yes
122387 dynamic_linker="$host_os dld.so"
122388 shlibpath_var=LD_LIBRARY_PATH
122389 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
122390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
122391 soname_spec='${libname}${release}${shared_ext}$major'
122392 if test "X$HPUX_IA64_MODE" = X32; then
122393 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
122395 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
122397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
122399 hppa*64*)
122400 shrext_cmds='.sl'
122401 hardcode_into_libs=yes
122402 dynamic_linker="$host_os dld.sl"
122403 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
122404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
122405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
122406 soname_spec='${libname}${release}${shared_ext}$major'
122407 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
122408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
122411 shrext_cmds='.sl'
122412 dynamic_linker="$host_os dld.sl"
122413 shlibpath_var=SHLIB_PATH
122414 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
122415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
122416 soname_spec='${libname}${release}${shared_ext}$major'
122419 # HP-UX runs *really* slowly unless shared libraries are mode 555.
122420 postinstall_cmds='chmod 555 $lib'
122423 interix3*)
122424 version_type=linux
122425 need_lib_prefix=no
122426 need_version=no
122427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
122428 soname_spec='${libname}${release}${shared_ext}$major'
122429 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
122430 shlibpath_var=LD_LIBRARY_PATH
122431 shlibpath_overrides_runpath=no
122432 hardcode_into_libs=yes
122435 irix5* | irix6* | nonstopux*)
122436 case $host_os in
122437 nonstopux*) version_type=nonstopux ;;
122439 if test "$lt_cv_prog_gnu_ld" = yes; then
122440 version_type=linux
122442 version_type=irix
122443 fi ;;
122445 need_lib_prefix=no
122446 need_version=no
122447 soname_spec='${libname}${release}${shared_ext}$major'
122448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
122449 case $host_os in
122450 irix5* | nonstopux*)
122451 libsuff= shlibsuff=
122454 case $LD in # libtool.m4 will add one of these switches to LD
122455 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
122456 libsuff= shlibsuff= libmagic=32-bit;;
122457 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
122458 libsuff=32 shlibsuff=N32 libmagic=N32;;
122459 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
122460 libsuff=64 shlibsuff=64 libmagic=64-bit;;
122461 *) libsuff= shlibsuff= libmagic=never-match;;
122465 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
122466 shlibpath_overrides_runpath=no
122467 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
122468 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
122469 hardcode_into_libs=yes
122472 # No shared lib support for Linux oldld, aout, or coff.
122473 linux*oldld* | linux*aout* | linux*coff*)
122474 dynamic_linker=no
122477 # This must be Linux ELF.
122478 linux* | k*bsd*-gnu)
122479 version_type=linux
122480 need_lib_prefix=no
122481 need_version=no
122482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
122483 soname_spec='${libname}${release}${shared_ext}$major'
122484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
122485 shlibpath_var=LD_LIBRARY_PATH
122486 shlibpath_overrides_runpath=no
122487 # This implies no fast_install, which is unacceptable.
122488 # Some rework will be needed to allow for fast_install
122489 # before this can be enabled.
122490 hardcode_into_libs=yes
122492 # Append ld.so.conf contents to the search path
122493 if test -f /etc/ld.so.conf; then
122494 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
122495 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
122498 # We used to test for /lib/ld.so.1 and disable shared libraries on
122499 # powerpc, because MkLinux only supported shared libraries with the
122500 # GNU dynamic linker. Since this was broken with cross compilers,
122501 # most powerpc-linux boxes support dynamic linking these days and
122502 # people can always --disable-shared, the test was removed, and we
122503 # assume the GNU/Linux dynamic linker is in use.
122504 dynamic_linker='GNU/Linux ld.so'
122507 netbsdelf*-gnu)
122508 version_type=linux
122509 need_lib_prefix=no
122510 need_version=no
122511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
122512 soname_spec='${libname}${release}${shared_ext}$major'
122513 shlibpath_var=LD_LIBRARY_PATH
122514 shlibpath_overrides_runpath=no
122515 hardcode_into_libs=yes
122516 dynamic_linker='NetBSD ld.elf_so'
122519 netbsd*)
122520 version_type=sunos
122521 need_lib_prefix=no
122522 need_version=no
122523 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
122524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
122525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
122526 dynamic_linker='NetBSD (a.out) ld.so'
122528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
122529 soname_spec='${libname}${release}${shared_ext}$major'
122530 dynamic_linker='NetBSD ld.elf_so'
122532 shlibpath_var=LD_LIBRARY_PATH
122533 shlibpath_overrides_runpath=yes
122534 hardcode_into_libs=yes
122537 newsos6)
122538 version_type=linux
122539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
122540 shlibpath_var=LD_LIBRARY_PATH
122541 shlibpath_overrides_runpath=yes
122544 nto-qnx*)
122545 version_type=linux
122546 need_lib_prefix=no
122547 need_version=no
122548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
122549 soname_spec='${libname}${release}${shared_ext}$major'
122550 shlibpath_var=LD_LIBRARY_PATH
122551 shlibpath_overrides_runpath=yes
122554 openbsd*)
122555 version_type=sunos
122556 sys_lib_dlsearch_path_spec="/usr/lib"
122557 need_lib_prefix=no
122558 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
122559 case $host_os in
122560 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
122561 *) need_version=no ;;
122563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
122564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
122565 shlibpath_var=LD_LIBRARY_PATH
122566 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
122567 case $host_os in
122568 openbsd2.[89] | openbsd2.[89].*)
122569 shlibpath_overrides_runpath=no
122572 shlibpath_overrides_runpath=yes
122576 shlibpath_overrides_runpath=yes
122580 os2*)
122581 libname_spec='$name'
122582 shrext_cmds=".dll"
122583 need_lib_prefix=no
122584 library_names_spec='$libname${shared_ext} $libname.a'
122585 dynamic_linker='OS/2 ld.exe'
122586 shlibpath_var=LIBPATH
122589 osf3* | osf4* | osf5*)
122590 version_type=osf
122591 need_lib_prefix=no
122592 need_version=no
122593 soname_spec='${libname}${release}${shared_ext}$major'
122594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
122595 shlibpath_var=LD_LIBRARY_PATH
122596 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
122597 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
122600 solaris*)
122601 version_type=linux
122602 need_lib_prefix=no
122603 need_version=no
122604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
122605 soname_spec='${libname}${release}${shared_ext}$major'
122606 shlibpath_var=LD_LIBRARY_PATH
122607 shlibpath_overrides_runpath=yes
122608 hardcode_into_libs=yes
122609 # ldd complains unless libraries are executable
122610 postinstall_cmds='chmod +x $lib'
122613 sunos4*)
122614 version_type=sunos
122615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
122616 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
122617 shlibpath_var=LD_LIBRARY_PATH
122618 shlibpath_overrides_runpath=yes
122619 if test "$with_gnu_ld" = yes; then
122620 need_lib_prefix=no
122622 need_version=yes
122625 sysv4 | sysv4.3*)
122626 version_type=linux
122627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
122628 soname_spec='${libname}${release}${shared_ext}$major'
122629 shlibpath_var=LD_LIBRARY_PATH
122630 case $host_vendor in
122632 shlibpath_overrides_runpath=no
122633 need_lib_prefix=no
122634 export_dynamic_flag_spec='${wl}-Blargedynsym'
122635 runpath_var=LD_RUN_PATH
122637 siemens)
122638 need_lib_prefix=no
122640 motorola)
122641 need_lib_prefix=no
122642 need_version=no
122643 shlibpath_overrides_runpath=no
122644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
122649 sysv4*MP*)
122650 if test -d /usr/nec ;then
122651 version_type=linux
122652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
122653 soname_spec='$libname${shared_ext}.$major'
122654 shlibpath_var=LD_LIBRARY_PATH
122658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
122659 version_type=freebsd-elf
122660 need_lib_prefix=no
122661 need_version=no
122662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
122663 soname_spec='${libname}${release}${shared_ext}$major'
122664 shlibpath_var=LD_LIBRARY_PATH
122665 hardcode_into_libs=yes
122666 if test "$with_gnu_ld" = yes; then
122667 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
122668 shlibpath_overrides_runpath=no
122670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
122671 shlibpath_overrides_runpath=yes
122672 case $host_os in
122673 sco3.2v5*)
122674 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
122678 sys_lib_dlsearch_path_spec='/usr/lib'
122681 uts4*)
122682 version_type=linux
122683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
122684 soname_spec='${libname}${release}${shared_ext}$major'
122685 shlibpath_var=LD_LIBRARY_PATH
122689 dynamic_linker=no
122692 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
122693 echo "${ECHO_T}$dynamic_linker" >&6; }
122694 test "$dynamic_linker" = no && can_build_shared=no
122696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
122697 if test "$GCC" = yes; then
122698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
122701 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
122702 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
122703 hardcode_action=
122704 if test -n "$hardcode_libdir_flag_spec" || \
122705 test -n "$runpath_var" || \
122706 test "X$hardcode_automatic" = "Xyes" ; then
122708 # We can hardcode non-existant directories.
122709 if test "$hardcode_direct" != no &&
122710 # If the only mechanism to avoid hardcoding is shlibpath_var, we
122711 # have to relink, otherwise we might link with an installed library
122712 # when we should be linking with a yet-to-be-installed one
122713 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
122714 test "$hardcode_minus_L" != no; then
122715 # Linking always hardcodes the temporary library directory.
122716 hardcode_action=relink
122718 # We can link without hardcoding, and we can hardcode nonexisting dirs.
122719 hardcode_action=immediate
122722 # We cannot hardcode anything, or else we can only hardcode existing
122723 # directories.
122724 hardcode_action=unsupported
122726 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
122727 echo "${ECHO_T}$hardcode_action" >&6; }
122729 if test "$hardcode_action" = relink; then
122730 # Fast installation is not supported
122731 enable_fast_install=no
122732 elif test "$shlibpath_overrides_runpath" = yes ||
122733 test "$enable_shared" = no; then
122734 # Fast installation is not necessary
122735 enable_fast_install=needless
122738 striplib=
122739 old_striplib=
122740 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
122741 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
122742 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
122743 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
122744 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
122745 { echo "$as_me:$LINENO: result: yes" >&5
122746 echo "${ECHO_T}yes" >&6; }
122748 # FIXME - insert some real tests, host_os isn't really good enough
122749 case $host_os in
122750 darwin*)
122751 if test -n "$STRIP" ; then
122752 striplib="$STRIP -x"
122753 { echo "$as_me:$LINENO: result: yes" >&5
122754 echo "${ECHO_T}yes" >&6; }
122756 { echo "$as_me:$LINENO: result: no" >&5
122757 echo "${ECHO_T}no" >&6; }
122761 { echo "$as_me:$LINENO: result: no" >&5
122762 echo "${ECHO_T}no" >&6; }
122767 if test "x$enable_dlopen" != xyes; then
122768 enable_dlopen=unknown
122769 enable_dlopen_self=unknown
122770 enable_dlopen_self_static=unknown
122772 lt_cv_dlopen=no
122773 lt_cv_dlopen_libs=
122775 case $host_os in
122776 beos*)
122777 lt_cv_dlopen="load_add_on"
122778 lt_cv_dlopen_libs=
122779 lt_cv_dlopen_self=yes
122782 mingw* | pw32*)
122783 lt_cv_dlopen="LoadLibrary"
122784 lt_cv_dlopen_libs=
122787 cygwin*)
122788 lt_cv_dlopen="dlopen"
122789 lt_cv_dlopen_libs=
122792 darwin*)
122793 # if libdl is installed we need to link against it
122794 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
122795 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
122796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
122797 echo $ECHO_N "(cached) $ECHO_C" >&6
122799 ac_check_lib_save_LIBS=$LIBS
122800 LIBS="-ldl $LIBS"
122801 cat >conftest.$ac_ext <<_ACEOF
122802 /* confdefs.h. */
122803 _ACEOF
122804 cat confdefs.h >>conftest.$ac_ext
122805 cat >>conftest.$ac_ext <<_ACEOF
122806 /* end confdefs.h. */
122808 /* Override any GCC internal prototype to avoid an error.
122809 Use char because int might match the return type of a GCC
122810 builtin and then its argument prototype would still apply. */
122811 #ifdef __cplusplus
122812 extern "C"
122813 #endif
122814 char dlopen ();
122816 main ()
122818 return dlopen ();
122820 return 0;
122822 _ACEOF
122823 rm -f conftest.$ac_objext conftest$ac_exeext
122824 if { (ac_try="$ac_link"
122825 case "(($ac_try" in
122826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
122827 *) ac_try_echo=$ac_try;;
122829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
122830 (eval "$ac_link") 2>conftest.er1
122831 ac_status=$?
122832 grep -v '^ *+' conftest.er1 >conftest.err
122833 rm -f conftest.er1
122834 cat conftest.err >&5
122835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
122836 (exit $ac_status); } && {
122837 test -z "$ac_c_werror_flag" ||
122838 test ! -s conftest.err
122839 } && test -s conftest$ac_exeext &&
122840 $as_test_x conftest$ac_exeext; then
122841 ac_cv_lib_dl_dlopen=yes
122843 echo "$as_me: failed program was:" >&5
122844 sed 's/^/| /' conftest.$ac_ext >&5
122846 ac_cv_lib_dl_dlopen=no
122849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
122850 conftest$ac_exeext conftest.$ac_ext
122851 LIBS=$ac_check_lib_save_LIBS
122853 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
122854 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
122855 if test $ac_cv_lib_dl_dlopen = yes; then
122856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
122859 lt_cv_dlopen="dyld"
122860 lt_cv_dlopen_libs=
122861 lt_cv_dlopen_self=yes
122868 { echo "$as_me:$LINENO: checking for shl_load" >&5
122869 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
122870 if test "${ac_cv_func_shl_load+set}" = set; then
122871 echo $ECHO_N "(cached) $ECHO_C" >&6
122873 cat >conftest.$ac_ext <<_ACEOF
122874 /* confdefs.h. */
122875 _ACEOF
122876 cat confdefs.h >>conftest.$ac_ext
122877 cat >>conftest.$ac_ext <<_ACEOF
122878 /* end confdefs.h. */
122879 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
122880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
122881 #define shl_load innocuous_shl_load
122883 /* System header to define __stub macros and hopefully few prototypes,
122884 which can conflict with char shl_load (); below.
122885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
122886 <limits.h> exists even on freestanding compilers. */
122888 #ifdef __STDC__
122889 # include <limits.h>
122890 #else
122891 # include <assert.h>
122892 #endif
122894 #undef shl_load
122896 /* Override any GCC internal prototype to avoid an error.
122897 Use char because int might match the return type of a GCC
122898 builtin and then its argument prototype would still apply. */
122899 #ifdef __cplusplus
122900 extern "C"
122901 #endif
122902 char shl_load ();
122903 /* The GNU C library defines this for functions which it implements
122904 to always fail with ENOSYS. Some functions are actually named
122905 something starting with __ and the normal name is an alias. */
122906 #if defined __stub_shl_load || defined __stub___shl_load
122907 choke me
122908 #endif
122911 main ()
122913 return shl_load ();
122915 return 0;
122917 _ACEOF
122918 rm -f conftest.$ac_objext conftest$ac_exeext
122919 if { (ac_try="$ac_link"
122920 case "(($ac_try" in
122921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
122922 *) ac_try_echo=$ac_try;;
122924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
122925 (eval "$ac_link") 2>conftest.er1
122926 ac_status=$?
122927 grep -v '^ *+' conftest.er1 >conftest.err
122928 rm -f conftest.er1
122929 cat conftest.err >&5
122930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
122931 (exit $ac_status); } && {
122932 test -z "$ac_c_werror_flag" ||
122933 test ! -s conftest.err
122934 } && test -s conftest$ac_exeext &&
122935 $as_test_x conftest$ac_exeext; then
122936 ac_cv_func_shl_load=yes
122938 echo "$as_me: failed program was:" >&5
122939 sed 's/^/| /' conftest.$ac_ext >&5
122941 ac_cv_func_shl_load=no
122944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
122945 conftest$ac_exeext conftest.$ac_ext
122947 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
122948 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
122949 if test $ac_cv_func_shl_load = yes; then
122950 lt_cv_dlopen="shl_load"
122952 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
122953 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
122954 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
122955 echo $ECHO_N "(cached) $ECHO_C" >&6
122957 ac_check_lib_save_LIBS=$LIBS
122958 LIBS="-ldld $LIBS"
122959 cat >conftest.$ac_ext <<_ACEOF
122960 /* confdefs.h. */
122961 _ACEOF
122962 cat confdefs.h >>conftest.$ac_ext
122963 cat >>conftest.$ac_ext <<_ACEOF
122964 /* end confdefs.h. */
122966 /* Override any GCC internal prototype to avoid an error.
122967 Use char because int might match the return type of a GCC
122968 builtin and then its argument prototype would still apply. */
122969 #ifdef __cplusplus
122970 extern "C"
122971 #endif
122972 char shl_load ();
122974 main ()
122976 return shl_load ();
122978 return 0;
122980 _ACEOF
122981 rm -f conftest.$ac_objext conftest$ac_exeext
122982 if { (ac_try="$ac_link"
122983 case "(($ac_try" in
122984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
122985 *) ac_try_echo=$ac_try;;
122987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
122988 (eval "$ac_link") 2>conftest.er1
122989 ac_status=$?
122990 grep -v '^ *+' conftest.er1 >conftest.err
122991 rm -f conftest.er1
122992 cat conftest.err >&5
122993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
122994 (exit $ac_status); } && {
122995 test -z "$ac_c_werror_flag" ||
122996 test ! -s conftest.err
122997 } && test -s conftest$ac_exeext &&
122998 $as_test_x conftest$ac_exeext; then
122999 ac_cv_lib_dld_shl_load=yes
123001 echo "$as_me: failed program was:" >&5
123002 sed 's/^/| /' conftest.$ac_ext >&5
123004 ac_cv_lib_dld_shl_load=no
123007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
123008 conftest$ac_exeext conftest.$ac_ext
123009 LIBS=$ac_check_lib_save_LIBS
123011 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
123012 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
123013 if test $ac_cv_lib_dld_shl_load = yes; then
123014 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
123016 { echo "$as_me:$LINENO: checking for dlopen" >&5
123017 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
123018 if test "${ac_cv_func_dlopen+set}" = set; then
123019 echo $ECHO_N "(cached) $ECHO_C" >&6
123021 cat >conftest.$ac_ext <<_ACEOF
123022 /* confdefs.h. */
123023 _ACEOF
123024 cat confdefs.h >>conftest.$ac_ext
123025 cat >>conftest.$ac_ext <<_ACEOF
123026 /* end confdefs.h. */
123027 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
123028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
123029 #define dlopen innocuous_dlopen
123031 /* System header to define __stub macros and hopefully few prototypes,
123032 which can conflict with char dlopen (); below.
123033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
123034 <limits.h> exists even on freestanding compilers. */
123036 #ifdef __STDC__
123037 # include <limits.h>
123038 #else
123039 # include <assert.h>
123040 #endif
123042 #undef dlopen
123044 /* Override any GCC internal prototype to avoid an error.
123045 Use char because int might match the return type of a GCC
123046 builtin and then its argument prototype would still apply. */
123047 #ifdef __cplusplus
123048 extern "C"
123049 #endif
123050 char dlopen ();
123051 /* The GNU C library defines this for functions which it implements
123052 to always fail with ENOSYS. Some functions are actually named
123053 something starting with __ and the normal name is an alias. */
123054 #if defined __stub_dlopen || defined __stub___dlopen
123055 choke me
123056 #endif
123059 main ()
123061 return dlopen ();
123063 return 0;
123065 _ACEOF
123066 rm -f conftest.$ac_objext conftest$ac_exeext
123067 if { (ac_try="$ac_link"
123068 case "(($ac_try" in
123069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
123070 *) ac_try_echo=$ac_try;;
123072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
123073 (eval "$ac_link") 2>conftest.er1
123074 ac_status=$?
123075 grep -v '^ *+' conftest.er1 >conftest.err
123076 rm -f conftest.er1
123077 cat conftest.err >&5
123078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
123079 (exit $ac_status); } && {
123080 test -z "$ac_c_werror_flag" ||
123081 test ! -s conftest.err
123082 } && test -s conftest$ac_exeext &&
123083 $as_test_x conftest$ac_exeext; then
123084 ac_cv_func_dlopen=yes
123086 echo "$as_me: failed program was:" >&5
123087 sed 's/^/| /' conftest.$ac_ext >&5
123089 ac_cv_func_dlopen=no
123092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
123093 conftest$ac_exeext conftest.$ac_ext
123095 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
123096 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
123097 if test $ac_cv_func_dlopen = yes; then
123098 lt_cv_dlopen="dlopen"
123100 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
123101 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
123102 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
123103 echo $ECHO_N "(cached) $ECHO_C" >&6
123105 ac_check_lib_save_LIBS=$LIBS
123106 LIBS="-ldl $LIBS"
123107 cat >conftest.$ac_ext <<_ACEOF
123108 /* confdefs.h. */
123109 _ACEOF
123110 cat confdefs.h >>conftest.$ac_ext
123111 cat >>conftest.$ac_ext <<_ACEOF
123112 /* end confdefs.h. */
123114 /* Override any GCC internal prototype to avoid an error.
123115 Use char because int might match the return type of a GCC
123116 builtin and then its argument prototype would still apply. */
123117 #ifdef __cplusplus
123118 extern "C"
123119 #endif
123120 char dlopen ();
123122 main ()
123124 return dlopen ();
123126 return 0;
123128 _ACEOF
123129 rm -f conftest.$ac_objext conftest$ac_exeext
123130 if { (ac_try="$ac_link"
123131 case "(($ac_try" in
123132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
123133 *) ac_try_echo=$ac_try;;
123135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
123136 (eval "$ac_link") 2>conftest.er1
123137 ac_status=$?
123138 grep -v '^ *+' conftest.er1 >conftest.err
123139 rm -f conftest.er1
123140 cat conftest.err >&5
123141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
123142 (exit $ac_status); } && {
123143 test -z "$ac_c_werror_flag" ||
123144 test ! -s conftest.err
123145 } && test -s conftest$ac_exeext &&
123146 $as_test_x conftest$ac_exeext; then
123147 ac_cv_lib_dl_dlopen=yes
123149 echo "$as_me: failed program was:" >&5
123150 sed 's/^/| /' conftest.$ac_ext >&5
123152 ac_cv_lib_dl_dlopen=no
123155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
123156 conftest$ac_exeext conftest.$ac_ext
123157 LIBS=$ac_check_lib_save_LIBS
123159 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
123160 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
123161 if test $ac_cv_lib_dl_dlopen = yes; then
123162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
123164 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
123165 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
123166 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
123167 echo $ECHO_N "(cached) $ECHO_C" >&6
123169 ac_check_lib_save_LIBS=$LIBS
123170 LIBS="-lsvld $LIBS"
123171 cat >conftest.$ac_ext <<_ACEOF
123172 /* confdefs.h. */
123173 _ACEOF
123174 cat confdefs.h >>conftest.$ac_ext
123175 cat >>conftest.$ac_ext <<_ACEOF
123176 /* end confdefs.h. */
123178 /* Override any GCC internal prototype to avoid an error.
123179 Use char because int might match the return type of a GCC
123180 builtin and then its argument prototype would still apply. */
123181 #ifdef __cplusplus
123182 extern "C"
123183 #endif
123184 char dlopen ();
123186 main ()
123188 return dlopen ();
123190 return 0;
123192 _ACEOF
123193 rm -f conftest.$ac_objext conftest$ac_exeext
123194 if { (ac_try="$ac_link"
123195 case "(($ac_try" in
123196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
123197 *) ac_try_echo=$ac_try;;
123199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
123200 (eval "$ac_link") 2>conftest.er1
123201 ac_status=$?
123202 grep -v '^ *+' conftest.er1 >conftest.err
123203 rm -f conftest.er1
123204 cat conftest.err >&5
123205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
123206 (exit $ac_status); } && {
123207 test -z "$ac_c_werror_flag" ||
123208 test ! -s conftest.err
123209 } && test -s conftest$ac_exeext &&
123210 $as_test_x conftest$ac_exeext; then
123211 ac_cv_lib_svld_dlopen=yes
123213 echo "$as_me: failed program was:" >&5
123214 sed 's/^/| /' conftest.$ac_ext >&5
123216 ac_cv_lib_svld_dlopen=no
123219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
123220 conftest$ac_exeext conftest.$ac_ext
123221 LIBS=$ac_check_lib_save_LIBS
123223 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
123224 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
123225 if test $ac_cv_lib_svld_dlopen = yes; then
123226 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
123228 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
123229 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
123230 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
123231 echo $ECHO_N "(cached) $ECHO_C" >&6
123233 ac_check_lib_save_LIBS=$LIBS
123234 LIBS="-ldld $LIBS"
123235 cat >conftest.$ac_ext <<_ACEOF
123236 /* confdefs.h. */
123237 _ACEOF
123238 cat confdefs.h >>conftest.$ac_ext
123239 cat >>conftest.$ac_ext <<_ACEOF
123240 /* end confdefs.h. */
123242 /* Override any GCC internal prototype to avoid an error.
123243 Use char because int might match the return type of a GCC
123244 builtin and then its argument prototype would still apply. */
123245 #ifdef __cplusplus
123246 extern "C"
123247 #endif
123248 char dld_link ();
123250 main ()
123252 return dld_link ();
123254 return 0;
123256 _ACEOF
123257 rm -f conftest.$ac_objext conftest$ac_exeext
123258 if { (ac_try="$ac_link"
123259 case "(($ac_try" in
123260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
123261 *) ac_try_echo=$ac_try;;
123263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
123264 (eval "$ac_link") 2>conftest.er1
123265 ac_status=$?
123266 grep -v '^ *+' conftest.er1 >conftest.err
123267 rm -f conftest.er1
123268 cat conftest.err >&5
123269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
123270 (exit $ac_status); } && {
123271 test -z "$ac_c_werror_flag" ||
123272 test ! -s conftest.err
123273 } && test -s conftest$ac_exeext &&
123274 $as_test_x conftest$ac_exeext; then
123275 ac_cv_lib_dld_dld_link=yes
123277 echo "$as_me: failed program was:" >&5
123278 sed 's/^/| /' conftest.$ac_ext >&5
123280 ac_cv_lib_dld_dld_link=no
123283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
123284 conftest$ac_exeext conftest.$ac_ext
123285 LIBS=$ac_check_lib_save_LIBS
123287 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
123288 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
123289 if test $ac_cv_lib_dld_dld_link = yes; then
123290 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
123311 if test "x$lt_cv_dlopen" != xno; then
123312 enable_dlopen=yes
123314 enable_dlopen=no
123317 case $lt_cv_dlopen in
123318 dlopen)
123319 save_CPPFLAGS="$CPPFLAGS"
123320 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
123322 save_LDFLAGS="$LDFLAGS"
123323 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
123325 save_LIBS="$LIBS"
123326 LIBS="$lt_cv_dlopen_libs $LIBS"
123328 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
123329 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
123330 if test "${lt_cv_dlopen_self+set}" = set; then
123331 echo $ECHO_N "(cached) $ECHO_C" >&6
123333 if test "$cross_compiling" = yes; then :
123334 lt_cv_dlopen_self=cross
123336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
123337 lt_status=$lt_dlunknown
123338 cat > conftest.$ac_ext <<EOF
123339 #line 123339 "configure"
123340 #include "confdefs.h"
123342 #if HAVE_DLFCN_H
123343 #include <dlfcn.h>
123344 #endif
123346 #include <stdio.h>
123348 #ifdef RTLD_GLOBAL
123349 # define LT_DLGLOBAL RTLD_GLOBAL
123350 #else
123351 # ifdef DL_GLOBAL
123352 # define LT_DLGLOBAL DL_GLOBAL
123353 # else
123354 # define LT_DLGLOBAL 0
123355 # endif
123356 #endif
123358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
123359 find out it does not work in some platform. */
123360 #ifndef LT_DLLAZY_OR_NOW
123361 # ifdef RTLD_LAZY
123362 # define LT_DLLAZY_OR_NOW RTLD_LAZY
123363 # else
123364 # ifdef DL_LAZY
123365 # define LT_DLLAZY_OR_NOW DL_LAZY
123366 # else
123367 # ifdef RTLD_NOW
123368 # define LT_DLLAZY_OR_NOW RTLD_NOW
123369 # else
123370 # ifdef DL_NOW
123371 # define LT_DLLAZY_OR_NOW DL_NOW
123372 # else
123373 # define LT_DLLAZY_OR_NOW 0
123374 # endif
123375 # endif
123376 # endif
123377 # endif
123378 #endif
123380 #ifdef __cplusplus
123381 extern "C" void exit (int);
123382 #endif
123384 void fnord() { int i=42;}
123385 int main ()
123387 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
123388 int status = $lt_dlunknown;
123390 if (self)
123392 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
123393 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
123394 /* dlclose (self); */
123397 puts (dlerror ());
123399 exit (status);
123402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
123403 (eval $ac_link) 2>&5
123404 ac_status=$?
123405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
123406 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
123407 (./conftest; exit; ) >&5 2>/dev/null
123408 lt_status=$?
123409 case x$lt_status in
123410 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
123411 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
123412 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
123414 else :
123415 # compilation failed
123416 lt_cv_dlopen_self=no
123419 rm -fr conftest*
123423 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
123424 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
123426 if test "x$lt_cv_dlopen_self" = xyes; then
123427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
123428 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
123429 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
123430 if test "${lt_cv_dlopen_self_static+set}" = set; then
123431 echo $ECHO_N "(cached) $ECHO_C" >&6
123433 if test "$cross_compiling" = yes; then :
123434 lt_cv_dlopen_self_static=cross
123436 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
123437 lt_status=$lt_dlunknown
123438 cat > conftest.$ac_ext <<EOF
123439 #line 123439 "configure"
123440 #include "confdefs.h"
123442 #if HAVE_DLFCN_H
123443 #include <dlfcn.h>
123444 #endif
123446 #include <stdio.h>
123448 #ifdef RTLD_GLOBAL
123449 # define LT_DLGLOBAL RTLD_GLOBAL
123450 #else
123451 # ifdef DL_GLOBAL
123452 # define LT_DLGLOBAL DL_GLOBAL
123453 # else
123454 # define LT_DLGLOBAL 0
123455 # endif
123456 #endif
123458 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
123459 find out it does not work in some platform. */
123460 #ifndef LT_DLLAZY_OR_NOW
123461 # ifdef RTLD_LAZY
123462 # define LT_DLLAZY_OR_NOW RTLD_LAZY
123463 # else
123464 # ifdef DL_LAZY
123465 # define LT_DLLAZY_OR_NOW DL_LAZY
123466 # else
123467 # ifdef RTLD_NOW
123468 # define LT_DLLAZY_OR_NOW RTLD_NOW
123469 # else
123470 # ifdef DL_NOW
123471 # define LT_DLLAZY_OR_NOW DL_NOW
123472 # else
123473 # define LT_DLLAZY_OR_NOW 0
123474 # endif
123475 # endif
123476 # endif
123477 # endif
123478 #endif
123480 #ifdef __cplusplus
123481 extern "C" void exit (int);
123482 #endif
123484 void fnord() { int i=42;}
123485 int main ()
123487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
123488 int status = $lt_dlunknown;
123490 if (self)
123492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
123493 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
123494 /* dlclose (self); */
123497 puts (dlerror ());
123499 exit (status);
123502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
123503 (eval $ac_link) 2>&5
123504 ac_status=$?
123505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
123506 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
123507 (./conftest; exit; ) >&5 2>/dev/null
123508 lt_status=$?
123509 case x$lt_status in
123510 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
123511 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
123512 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
123514 else :
123515 # compilation failed
123516 lt_cv_dlopen_self_static=no
123519 rm -fr conftest*
123523 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
123524 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
123527 CPPFLAGS="$save_CPPFLAGS"
123528 LDFLAGS="$save_LDFLAGS"
123529 LIBS="$save_LIBS"
123533 case $lt_cv_dlopen_self in
123534 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
123535 *) enable_dlopen_self=unknown ;;
123538 case $lt_cv_dlopen_self_static in
123539 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
123540 *) enable_dlopen_self_static=unknown ;;
123545 # Report which library types will actually be built
123546 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
123547 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
123548 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
123549 echo "${ECHO_T}$can_build_shared" >&6; }
123551 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
123552 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
123553 test "$can_build_shared" = "no" && enable_shared=no
123555 # On AIX, shared libraries and static libraries use the same namespace, and
123556 # are all built from PIC.
123557 case $host_os in
123558 aix3*)
123559 test "$enable_shared" = yes && enable_static=no
123560 if test -n "$RANLIB"; then
123561 archive_cmds="$archive_cmds~\$RANLIB \$lib"
123562 postinstall_cmds='$RANLIB $lib'
123566 aix4* | aix5*)
123567 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
123568 test "$enable_shared" = yes && enable_static=no
123572 { echo "$as_me:$LINENO: result: $enable_shared" >&5
123573 echo "${ECHO_T}$enable_shared" >&6; }
123575 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
123576 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
123577 # Make sure either enable_shared or enable_static is yes.
123578 test "$enable_shared" = yes || enable_static=yes
123579 { echo "$as_me:$LINENO: result: $enable_static" >&5
123580 echo "${ECHO_T}$enable_static" >&6; }
123582 # The else clause should only fire when bootstrapping the
123583 # libtool distribution, otherwise you forgot to ship ltmain.sh
123584 # with your package, and you will get complaints that there are
123585 # no rules to generate ltmain.sh.
123586 if test -f "$ltmain"; then
123587 # See if we are running on zsh, and set the options which allow our commands through
123588 # without removal of \ escapes.
123589 if test -n "${ZSH_VERSION+set}" ; then
123590 setopt NO_GLOB_SUBST
123592 # Now quote all the things that may contain metacharacters while being
123593 # careful not to overquote the AC_SUBSTed values. We take copies of the
123594 # variables and quote the copies for generation of the libtool script.
123595 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
123596 SED SHELL STRIP \
123597 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
123598 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
123599 deplibs_check_method reload_flag reload_cmds need_locks \
123600 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
123601 lt_cv_sys_global_symbol_to_c_name_address \
123602 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
123603 old_postinstall_cmds old_postuninstall_cmds \
123604 compiler \
123607 lt_prog_compiler_wl \
123608 lt_prog_compiler_pic \
123609 lt_prog_compiler_static \
123610 lt_prog_compiler_no_builtin_flag \
123611 export_dynamic_flag_spec \
123612 thread_safe_flag_spec \
123613 whole_archive_flag_spec \
123614 enable_shared_with_static_runtimes \
123615 old_archive_cmds \
123616 old_archive_from_new_cmds \
123617 predep_objects \
123618 postdep_objects \
123619 predeps \
123620 postdeps \
123621 compiler_lib_search_path \
123622 archive_cmds \
123623 archive_expsym_cmds \
123624 postinstall_cmds \
123625 postuninstall_cmds \
123626 old_archive_from_expsyms_cmds \
123627 allow_undefined_flag \
123628 no_undefined_flag \
123629 export_symbols_cmds \
123630 hardcode_libdir_flag_spec \
123631 hardcode_libdir_flag_spec_ld \
123632 hardcode_libdir_separator \
123633 hardcode_automatic \
123634 module_cmds \
123635 module_expsym_cmds \
123636 lt_cv_prog_compiler_c_o \
123637 exclude_expsyms \
123638 include_expsyms; do
123640 case $var in
123641 old_archive_cmds | \
123642 old_archive_from_new_cmds | \
123643 archive_cmds | \
123644 archive_expsym_cmds | \
123645 module_cmds | \
123646 module_expsym_cmds | \
123647 old_archive_from_expsyms_cmds | \
123648 export_symbols_cmds | \
123649 extract_expsyms_cmds | reload_cmds | finish_cmds | \
123650 postinstall_cmds | postuninstall_cmds | \
123651 old_postinstall_cmds | old_postuninstall_cmds | \
123652 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
123653 # Double-quote double-evaled strings.
123654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
123657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
123662 case $lt_echo in
123663 *'\$0 --fallback-echo"')
123664 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
123668 cfgfile="${ofile}T"
123669 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
123670 $rm -f "$cfgfile"
123671 { echo "$as_me:$LINENO: creating $ofile" >&5
123672 echo "$as_me: creating $ofile" >&6;}
123674 cat <<__EOF__ >> "$cfgfile"
123675 #! $SHELL
123677 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
123678 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
123679 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
123681 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
123682 # Free Software Foundation, Inc.
123684 # This file is part of GNU Libtool:
123685 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
123687 # This program is free software; you can redistribute it and/or modify
123688 # it under the terms of the GNU General Public License as published by
123689 # the Free Software Foundation; either version 2 of the License, or
123690 # (at your option) any later version.
123692 # This program is distributed in the hope that it will be useful, but
123693 # WITHOUT ANY WARRANTY; without even the implied warranty of
123694 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
123695 # General Public License for more details.
123697 # You should have received a copy of the GNU General Public License
123698 # along with this program; if not, write to the Free Software
123699 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
123701 # As a special exception to the GNU General Public License, if you
123702 # distribute this file as part of a program that contains a
123703 # configuration script generated by Autoconf, you may include it under
123704 # the same distribution terms that you use for the rest of that program.
123706 # A sed program that does not truncate output.
123707 SED=$lt_SED
123709 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
123710 Xsed="$SED -e 1s/^X//"
123712 # The HP-UX ksh and POSIX shell print the target directory to stdout
123713 # if CDPATH is set.
123714 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
123716 # The names of the tagged configurations supported by this script.
123717 available_tags=
123719 # ### BEGIN LIBTOOL CONFIG
123721 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
123723 # Shell to use when invoking shell scripts.
123724 SHELL=$lt_SHELL
123726 # Whether or not to build shared libraries.
123727 build_libtool_libs=$enable_shared
123729 # Whether or not to build static libraries.
123730 build_old_libs=$enable_static
123732 # Whether or not to add -lc for building shared libraries.
123733 build_libtool_need_lc=$archive_cmds_need_lc
123735 # Whether or not to disallow shared libs when runtime libs are static
123736 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
123738 # Whether or not to optimize for fast installation.
123739 fast_install=$enable_fast_install
123741 # The host system.
123742 host_alias=$host_alias
123743 host=$host
123744 host_os=$host_os
123746 # The build system.
123747 build_alias=$build_alias
123748 build=$build
123749 build_os=$build_os
123751 # An echo program that does not interpret backslashes.
123752 echo=$lt_echo
123754 # The archiver.
123755 AR=$lt_AR
123756 AR_FLAGS=$lt_AR_FLAGS
123758 # A C compiler.
123759 LTCC=$lt_LTCC
123761 # LTCC compiler flags.
123762 LTCFLAGS=$lt_LTCFLAGS
123764 # A language-specific compiler.
123765 CC=$lt_compiler
123767 # Is the compiler the GNU C compiler?
123768 with_gcc=$GCC
123770 # An ERE matcher.
123771 EGREP=$lt_EGREP
123773 # The linker used to build libraries.
123774 LD=$lt_LD
123776 # Whether we need hard or soft links.
123777 LN_S=$lt_LN_S
123779 # A BSD-compatible nm program.
123780 NM=$lt_NM
123782 # A symbol stripping program
123783 STRIP=$lt_STRIP
123785 # Used to examine libraries when file_magic_cmd begins "file"
123786 MAGIC_CMD=$MAGIC_CMD
123788 # Used on cygwin: DLL creation program.
123789 DLLTOOL="$DLLTOOL"
123791 # Used on cygwin: object dumper.
123792 OBJDUMP="$OBJDUMP"
123794 # Used on cygwin: assembler.
123795 AS="$AS"
123797 # The name of the directory that contains temporary libtool files.
123798 objdir=$objdir
123800 # How to create reloadable object files.
123801 reload_flag=$lt_reload_flag
123802 reload_cmds=$lt_reload_cmds
123804 # How to pass a linker flag through the compiler.
123805 wl=$lt_lt_prog_compiler_wl
123807 # Object file suffix (normally "o").
123808 objext="$ac_objext"
123810 # Old archive suffix (normally "a").
123811 libext="$libext"
123813 # Shared library suffix (normally ".so").
123814 shrext_cmds='$shrext_cmds'
123816 # Executable file suffix (normally "").
123817 exeext="$exeext"
123819 # Additional compiler flags for building library objects.
123820 pic_flag=$lt_lt_prog_compiler_pic
123821 pic_mode=$pic_mode
123823 # What is the maximum length of a command?
123824 max_cmd_len=$lt_cv_sys_max_cmd_len
123826 # Does compiler simultaneously support -c and -o options?
123827 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
123829 # Must we lock files when doing compilation?
123830 need_locks=$lt_need_locks
123832 # Do we need the lib prefix for modules?
123833 need_lib_prefix=$need_lib_prefix
123835 # Do we need a version for libraries?
123836 need_version=$need_version
123838 # Whether dlopen is supported.
123839 dlopen_support=$enable_dlopen
123841 # Whether dlopen of programs is supported.
123842 dlopen_self=$enable_dlopen_self
123844 # Whether dlopen of statically linked programs is supported.
123845 dlopen_self_static=$enable_dlopen_self_static
123847 # Compiler flag to prevent dynamic linking.
123848 link_static_flag=$lt_lt_prog_compiler_static
123850 # Compiler flag to turn off builtin functions.
123851 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
123853 # Compiler flag to allow reflexive dlopens.
123854 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
123856 # Compiler flag to generate shared objects directly from archives.
123857 whole_archive_flag_spec=$lt_whole_archive_flag_spec
123859 # Compiler flag to generate thread-safe objects.
123860 thread_safe_flag_spec=$lt_thread_safe_flag_spec
123862 # Library versioning type.
123863 version_type=$version_type
123865 # Format of library name prefix.
123866 libname_spec=$lt_libname_spec
123868 # List of archive names. First name is the real one, the rest are links.
123869 # The last name is the one that the linker finds with -lNAME.
123870 library_names_spec=$lt_library_names_spec
123872 # The coded name of the library, if different from the real name.
123873 soname_spec=$lt_soname_spec
123875 # Commands used to build and install an old-style archive.
123876 RANLIB=$lt_RANLIB
123877 old_archive_cmds=$lt_old_archive_cmds
123878 old_postinstall_cmds=$lt_old_postinstall_cmds
123879 old_postuninstall_cmds=$lt_old_postuninstall_cmds
123881 # Create an old-style archive from a shared archive.
123882 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
123884 # Create a temporary old-style archive to link instead of a shared archive.
123885 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
123887 # Commands used to build and install a shared archive.
123888 archive_cmds=$lt_archive_cmds
123889 archive_expsym_cmds=$lt_archive_expsym_cmds
123890 postinstall_cmds=$lt_postinstall_cmds
123891 postuninstall_cmds=$lt_postuninstall_cmds
123893 # Commands used to build a loadable module (assumed same as above if empty)
123894 module_cmds=$lt_module_cmds
123895 module_expsym_cmds=$lt_module_expsym_cmds
123897 # Commands to strip libraries.
123898 old_striplib=$lt_old_striplib
123899 striplib=$lt_striplib
123901 # Dependencies to place before the objects being linked to create a
123902 # shared library.
123903 predep_objects=$lt_predep_objects
123905 # Dependencies to place after the objects being linked to create a
123906 # shared library.
123907 postdep_objects=$lt_postdep_objects
123909 # Dependencies to place before the objects being linked to create a
123910 # shared library.
123911 predeps=$lt_predeps
123913 # Dependencies to place after the objects being linked to create a
123914 # shared library.
123915 postdeps=$lt_postdeps
123917 # The library search path used internally by the compiler when linking
123918 # a shared library.
123919 compiler_lib_search_path=$lt_compiler_lib_search_path
123921 # Method to check whether dependent libraries are shared objects.
123922 deplibs_check_method=$lt_deplibs_check_method
123924 # Command to use when deplibs_check_method == file_magic.
123925 file_magic_cmd=$lt_file_magic_cmd
123927 # Flag that allows shared libraries with undefined symbols to be built.
123928 allow_undefined_flag=$lt_allow_undefined_flag
123930 # Flag that forces no undefined symbols.
123931 no_undefined_flag=$lt_no_undefined_flag
123933 # Commands used to finish a libtool library installation in a directory.
123934 finish_cmds=$lt_finish_cmds
123936 # Same as above, but a single script fragment to be evaled but not shown.
123937 finish_eval=$lt_finish_eval
123939 # Take the output of nm and produce a listing of raw symbols and C names.
123940 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
123942 # Transform the output of nm in a proper C declaration
123943 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
123945 # Transform the output of nm in a C name address pair
123946 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
123948 # This is the shared library runtime path variable.
123949 runpath_var=$runpath_var
123951 # This is the shared library path variable.
123952 shlibpath_var=$shlibpath_var
123954 # Is shlibpath searched before the hard-coded library search path?
123955 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
123957 # How to hardcode a shared library path into an executable.
123958 hardcode_action=$hardcode_action
123960 # Whether we should hardcode library paths into libraries.
123961 hardcode_into_libs=$hardcode_into_libs
123963 # Flag to hardcode \$libdir into a binary during linking.
123964 # This must work even if \$libdir does not exist.
123965 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
123967 # If ld is used when linking, flag to hardcode \$libdir into
123968 # a binary during linking. This must work even if \$libdir does
123969 # not exist.
123970 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
123972 # Whether we need a single -rpath flag with a separated argument.
123973 hardcode_libdir_separator=$lt_hardcode_libdir_separator
123975 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
123976 # resulting binary.
123977 hardcode_direct=$hardcode_direct
123979 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
123980 # resulting binary.
123981 hardcode_minus_L=$hardcode_minus_L
123983 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
123984 # the resulting binary.
123985 hardcode_shlibpath_var=$hardcode_shlibpath_var
123987 # Set to yes if building a shared library automatically hardcodes DIR into the library
123988 # and all subsequent libraries and executables linked against it.
123989 hardcode_automatic=$hardcode_automatic
123991 # Variables whose values should be saved in libtool wrapper scripts and
123992 # restored at relink time.
123993 variables_saved_for_relink="$variables_saved_for_relink"
123995 # Whether libtool must link a program against all its dependency libraries.
123996 link_all_deplibs=$link_all_deplibs
123998 # Compile-time system search path for libraries
123999 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
124001 # Run-time system search path for libraries
124002 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
124004 # Fix the shell variable \$srcfile for the compiler.
124005 fix_srcfile_path="$fix_srcfile_path"
124007 # Set to yes if exported symbols are required.
124008 always_export_symbols=$always_export_symbols
124010 # The commands to list exported symbols.
124011 export_symbols_cmds=$lt_export_symbols_cmds
124013 # The commands to extract the exported symbol list from a shared archive.
124014 extract_expsyms_cmds=$lt_extract_expsyms_cmds
124016 # Symbols that should not be listed in the preloaded symbols.
124017 exclude_expsyms=$lt_exclude_expsyms
124019 # Symbols that must always be exported.
124020 include_expsyms=$lt_include_expsyms
124022 # ### END LIBTOOL CONFIG
124024 __EOF__
124027 case $host_os in
124028 aix3*)
124029 cat <<\EOF >> "$cfgfile"
124031 # AIX sometimes has problems with the GCC collect2 program. For some
124032 # reason, if we set the COLLECT_NAMES environment variable, the problems
124033 # vanish in a puff of smoke.
124034 if test "X${COLLECT_NAMES+set}" != Xset; then
124035 COLLECT_NAMES=
124036 export COLLECT_NAMES
124042 # We use sed instead of cat because bash on DJGPP gets confused if
124043 # if finds mixed CR/LF and LF-only lines. Since sed operates in
124044 # text mode, it properly converts lines to CR/LF. This bash problem
124045 # is reportedly fixed, but why not run on old versions too?
124046 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
124048 mv -f "$cfgfile" "$ofile" || \
124049 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
124050 chmod +x "$ofile"
124053 # If there is no Makefile yet, we rely on a make rule to execute
124054 # `config.status --recheck' to rerun these tests and create the
124055 # libtool script then.
124056 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
124057 if test -f "$ltmain_in"; then
124058 test -f Makefile && make "$ltmain"
124063 ac_ext=c
124064 ac_cpp='$CPP $CPPFLAGS'
124065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
124066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
124067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
124069 CC="$lt_save_CC"
124072 # Check whether --with-tags was given.
124073 if test "${with_tags+set}" = set; then
124074 withval=$with_tags; tagnames="$withval"
124078 if test -f "$ltmain" && test -n "$tagnames"; then
124079 if test ! -f "${ofile}"; then
124080 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
124081 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
124084 if test -z "$LTCC"; then
124085 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
124086 if test -z "$LTCC"; then
124087 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
124088 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
124090 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
124091 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
124094 if test -z "$LTCFLAGS"; then
124095 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
124098 # Extract list of available tagged configurations in $ofile.
124099 # Note that this assumes the entire list is on one line.
124100 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
124102 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
124103 for tagname in $tagnames; do
124104 IFS="$lt_save_ifs"
124105 # Check whether tagname contains only valid characters
124106 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
124107 "") ;;
124108 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
124109 echo "$as_me: error: invalid tag name: $tagname" >&2;}
124110 { (exit 1); exit 1; }; }
124114 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
124116 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
124117 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
124118 { (exit 1); exit 1; }; }
124121 # Update the list of available tags.
124122 if test -n "$tagname"; then
124123 echo appending configuration tag \"$tagname\" to $ofile
124125 case $tagname in
124127 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
124128 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
124129 (test "X$CXX" != "Xg++"))) ; then
124130 ac_ext=cpp
124131 ac_cpp='$CXXCPP $CPPFLAGS'
124132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
124133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
124134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
124139 archive_cmds_need_lc_CXX=no
124140 allow_undefined_flag_CXX=
124141 always_export_symbols_CXX=no
124142 archive_expsym_cmds_CXX=
124143 export_dynamic_flag_spec_CXX=
124144 hardcode_direct_CXX=no
124145 hardcode_libdir_flag_spec_CXX=
124146 hardcode_libdir_flag_spec_ld_CXX=
124147 hardcode_libdir_separator_CXX=
124148 hardcode_minus_L_CXX=no
124149 hardcode_shlibpath_var_CXX=unsupported
124150 hardcode_automatic_CXX=no
124151 module_cmds_CXX=
124152 module_expsym_cmds_CXX=
124153 link_all_deplibs_CXX=unknown
124154 old_archive_cmds_CXX=$old_archive_cmds
124155 no_undefined_flag_CXX=
124156 whole_archive_flag_spec_CXX=
124157 enable_shared_with_static_runtimes_CXX=no
124159 # Dependencies to place before and after the object being linked:
124160 predep_objects_CXX=
124161 postdep_objects_CXX=
124162 predeps_CXX=
124163 postdeps_CXX=
124164 compiler_lib_search_path_CXX=
124166 # Source file extension for C++ test sources.
124167 ac_ext=cpp
124169 # Object file extension for compiled C++ test sources.
124170 objext=o
124171 objext_CXX=$objext
124173 # Code to be used in simple compile tests
124174 lt_simple_compile_test_code="int some_variable = 0;\n"
124176 # Code to be used in simple link tests
124177 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
124179 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
124181 # If no C compiler was specified, use CC.
124182 LTCC=${LTCC-"$CC"}
124184 # If no C compiler flags were specified, use CFLAGS.
124185 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
124187 # Allow CC to be a program name with arguments.
124188 compiler=$CC
124191 # save warnings/boilerplate of simple test code
124192 ac_outfile=conftest.$ac_objext
124193 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
124194 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
124195 _lt_compiler_boilerplate=`cat conftest.err`
124196 $rm conftest*
124198 ac_outfile=conftest.$ac_objext
124199 printf "$lt_simple_link_test_code" >conftest.$ac_ext
124200 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
124201 _lt_linker_boilerplate=`cat conftest.err`
124202 $rm conftest*
124205 # Allow CC to be a program name with arguments.
124206 lt_save_CC=$CC
124207 lt_save_LD=$LD
124208 lt_save_GCC=$GCC
124209 GCC=$GXX
124210 lt_save_with_gnu_ld=$with_gnu_ld
124211 lt_save_path_LD=$lt_cv_path_LD
124212 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
124213 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
124215 $as_unset lt_cv_prog_gnu_ld
124217 if test -n "${lt_cv_path_LDCXX+set}"; then
124218 lt_cv_path_LD=$lt_cv_path_LDCXX
124220 $as_unset lt_cv_path_LD
124222 test -z "${LDCXX+set}" || LD=$LDCXX
124223 CC=${CXX-"c++"}
124224 compiler=$CC
124225 compiler_CXX=$CC
124226 for cc_temp in $compiler""; do
124227 case $cc_temp in
124228 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
124229 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
124230 \-*) ;;
124231 *) break;;
124234 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
124237 # We don't want -fno-exception wen compiling C++ code, so set the
124238 # no_builtin_flag separately
124239 if test "$GXX" = yes; then
124240 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
124242 lt_prog_compiler_no_builtin_flag_CXX=
124245 if test "$GXX" = yes; then
124246 # Set up default GNU C++ configuration
124249 # Check whether --with-gnu-ld was given.
124250 if test "${with_gnu_ld+set}" = set; then
124251 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
124253 with_gnu_ld=no
124256 ac_prog=ld
124257 if test "$GCC" = yes; then
124258 # Check if gcc -print-prog-name=ld gives a path.
124259 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
124260 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
124261 case $host in
124262 *-*-mingw*)
124263 # gcc leaves a trailing carriage return which upsets mingw
124264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
124266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
124268 case $ac_prog in
124269 # Accept absolute paths.
124270 [\\/]* | ?:[\\/]*)
124271 re_direlt='/[^/][^/]*/\.\./'
124272 # Canonicalize the pathname of ld
124273 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
124274 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
124275 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
124277 test -z "$LD" && LD="$ac_prog"
124280 # If it fails, then pretend we aren't using GCC.
124281 ac_prog=ld
124284 # If it is relative, then search for the first ld in PATH.
124285 with_gnu_ld=unknown
124288 elif test "$with_gnu_ld" = yes; then
124289 { echo "$as_me:$LINENO: checking for GNU ld" >&5
124290 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
124292 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
124293 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
124295 if test "${lt_cv_path_LD+set}" = set; then
124296 echo $ECHO_N "(cached) $ECHO_C" >&6
124298 if test -z "$LD"; then
124299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
124300 for ac_dir in $PATH; do
124301 IFS="$lt_save_ifs"
124302 test -z "$ac_dir" && ac_dir=.
124303 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
124304 lt_cv_path_LD="$ac_dir/$ac_prog"
124305 # Check to see if the program is GNU ld. I'd rather use --version,
124306 # but apparently some variants of GNU ld only accept -v.
124307 # Break only if it was the GNU/non-GNU ld that we prefer.
124308 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
124309 *GNU* | *'with BFD'*)
124310 test "$with_gnu_ld" != no && break
124313 test "$with_gnu_ld" != yes && break
124318 IFS="$lt_save_ifs"
124320 lt_cv_path_LD="$LD" # Let the user override the test with a path.
124324 LD="$lt_cv_path_LD"
124325 if test -n "$LD"; then
124326 { echo "$as_me:$LINENO: result: $LD" >&5
124327 echo "${ECHO_T}$LD" >&6; }
124329 { echo "$as_me:$LINENO: result: no" >&5
124330 echo "${ECHO_T}no" >&6; }
124332 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
124333 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
124334 { (exit 1); exit 1; }; }
124335 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
124336 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
124337 if test "${lt_cv_prog_gnu_ld+set}" = set; then
124338 echo $ECHO_N "(cached) $ECHO_C" >&6
124340 # I'd rather use --version here, but apparently some GNU lds only accept -v.
124341 case `$LD -v 2>&1 </dev/null` in
124342 *GNU* | *'with BFD'*)
124343 lt_cv_prog_gnu_ld=yes
124346 lt_cv_prog_gnu_ld=no
124350 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
124351 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
124352 with_gnu_ld=$lt_cv_prog_gnu_ld
124356 # Check if GNU C++ uses GNU ld as the underlying linker, since the
124357 # archiving commands below assume that GNU ld is being used.
124358 if test "$with_gnu_ld" = yes; then
124359 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
124360 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
124362 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
124363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
124365 # If archive_cmds runs LD, not CC, wlarc should be empty
124366 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
124367 # investigate it a little bit more. (MM)
124368 wlarc='${wl}'
124370 # ancient GNU ld didn't support --whole-archive et. al.
124371 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
124372 grep 'no-whole-archive' > /dev/null; then
124373 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
124375 whole_archive_flag_spec_CXX=
124378 with_gnu_ld=no
124379 wlarc=
124381 # A generic and very simple default shared library creation
124382 # command for GNU C++ for the case where it uses the native
124383 # linker, instead of GNU ld. If possible, this setting should
124384 # overridden to take advantage of the native linker features on
124385 # the platform it is being used on.
124386 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
124389 # Commands to make compiler produce verbose output that lists
124390 # what "hidden" libraries, object files and flags are used when
124391 # linking a shared library.
124392 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
124395 GXX=no
124396 with_gnu_ld=no
124397 wlarc=
124400 # PORTME: fill in a description of your system's C++ link characteristics
124401 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
124402 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
124403 ld_shlibs_CXX=yes
124404 case $host_os in
124405 aix3*)
124406 # FIXME: insert proper C++ library support
124407 ld_shlibs_CXX=no
124409 aix4* | aix5*)
124410 if test "$host_cpu" = ia64; then
124411 # On IA64, the linker does run time linking by default, so we don't
124412 # have to do anything special.
124413 aix_use_runtimelinking=no
124414 exp_sym_flag='-Bexport'
124415 no_entry_flag=""
124417 aix_use_runtimelinking=no
124419 # Test if we are trying to use run time linking or normal
124420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
124421 # need to do runtime linking.
124422 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
124423 for ld_flag in $LDFLAGS; do
124424 case $ld_flag in
124425 *-brtl*)
124426 aix_use_runtimelinking=yes
124427 break
124434 exp_sym_flag='-bexport'
124435 no_entry_flag='-bnoentry'
124438 # When large executables or shared objects are built, AIX ld can
124439 # have problems creating the table of contents. If linking a library
124440 # or program results in "error TOC overflow" add -mminimal-toc to
124441 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
124442 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
124444 archive_cmds_CXX=''
124445 hardcode_direct_CXX=yes
124446 hardcode_libdir_separator_CXX=':'
124447 link_all_deplibs_CXX=yes
124449 if test "$GXX" = yes; then
124450 case $host_os in aix4.[012]|aix4.[012].*)
124451 # We only want to do this on AIX 4.2 and lower, the check
124452 # below for broken collect2 doesn't work under 4.3+
124453 collect2name=`${CC} -print-prog-name=collect2`
124454 if test -f "$collect2name" && \
124455 strings "$collect2name" | grep resolve_lib_name >/dev/null
124457 # We have reworked collect2
124458 hardcode_direct_CXX=yes
124460 # We have old collect2
124461 hardcode_direct_CXX=unsupported
124462 # It fails to find uninstalled libraries when the uninstalled
124463 # path is not listed in the libpath. Setting hardcode_minus_L
124464 # to unsupported forces relinking
124465 hardcode_minus_L_CXX=yes
124466 hardcode_libdir_flag_spec_CXX='-L$libdir'
124467 hardcode_libdir_separator_CXX=
124471 shared_flag='-shared'
124472 if test "$aix_use_runtimelinking" = yes; then
124473 shared_flag="$shared_flag "'${wl}-G'
124476 # not using gcc
124477 if test "$host_cpu" = ia64; then
124478 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
124479 # chokes on -Wl,-G. The following line is correct:
124480 shared_flag='-G'
124482 if test "$aix_use_runtimelinking" = yes; then
124483 shared_flag='${wl}-G'
124485 shared_flag='${wl}-bM:SRE'
124490 # It seems that -bexpall does not export symbols beginning with
124491 # underscore (_), so it is better to generate a list of symbols to export.
124492 always_export_symbols_CXX=yes
124493 if test "$aix_use_runtimelinking" = yes; then
124494 # Warning - without using the other runtime loading flags (-brtl),
124495 # -berok will link without error, but may produce a broken library.
124496 allow_undefined_flag_CXX='-berok'
124497 # Determine the default libpath from the value encoded in an empty executable.
124498 cat >conftest.$ac_ext <<_ACEOF
124499 /* confdefs.h. */
124500 _ACEOF
124501 cat confdefs.h >>conftest.$ac_ext
124502 cat >>conftest.$ac_ext <<_ACEOF
124503 /* end confdefs.h. */
124506 main ()
124510 return 0;
124512 _ACEOF
124513 rm -f conftest.$ac_objext conftest$ac_exeext
124514 if { (ac_try="$ac_link"
124515 case "(($ac_try" in
124516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
124517 *) ac_try_echo=$ac_try;;
124519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
124520 (eval "$ac_link") 2>conftest.er1
124521 ac_status=$?
124522 grep -v '^ *+' conftest.er1 >conftest.err
124523 rm -f conftest.er1
124524 cat conftest.err >&5
124525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
124526 (exit $ac_status); } && {
124527 test -z "$ac_cxx_werror_flag" ||
124528 test ! -s conftest.err
124529 } && test -s conftest$ac_exeext &&
124530 $as_test_x conftest$ac_exeext; then
124532 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
124534 # Check for a 64-bit object if we didn't find anything.
124535 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
124536 }'`; fi
124538 echo "$as_me: failed program was:" >&5
124539 sed 's/^/| /' conftest.$ac_ext >&5
124544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
124545 conftest$ac_exeext conftest.$ac_ext
124546 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
124548 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
124550 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
124552 if test "$host_cpu" = ia64; then
124553 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
124554 allow_undefined_flag_CXX="-z nodefs"
124555 archive_expsym_cmds_CXX="\$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"
124557 # Determine the default libpath from the value encoded in an empty executable.
124558 cat >conftest.$ac_ext <<_ACEOF
124559 /* confdefs.h. */
124560 _ACEOF
124561 cat confdefs.h >>conftest.$ac_ext
124562 cat >>conftest.$ac_ext <<_ACEOF
124563 /* end confdefs.h. */
124566 main ()
124570 return 0;
124572 _ACEOF
124573 rm -f conftest.$ac_objext conftest$ac_exeext
124574 if { (ac_try="$ac_link"
124575 case "(($ac_try" in
124576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
124577 *) ac_try_echo=$ac_try;;
124579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
124580 (eval "$ac_link") 2>conftest.er1
124581 ac_status=$?
124582 grep -v '^ *+' conftest.er1 >conftest.err
124583 rm -f conftest.er1
124584 cat conftest.err >&5
124585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
124586 (exit $ac_status); } && {
124587 test -z "$ac_cxx_werror_flag" ||
124588 test ! -s conftest.err
124589 } && test -s conftest$ac_exeext &&
124590 $as_test_x conftest$ac_exeext; then
124592 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
124594 # Check for a 64-bit object if we didn't find anything.
124595 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
124596 }'`; fi
124598 echo "$as_me: failed program was:" >&5
124599 sed 's/^/| /' conftest.$ac_ext >&5
124604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
124605 conftest$ac_exeext conftest.$ac_ext
124606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
124608 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
124609 # Warning - without using the other run time loading flags,
124610 # -berok will link without error, but may produce a broken library.
124611 no_undefined_flag_CXX=' ${wl}-bernotok'
124612 allow_undefined_flag_CXX=' ${wl}-berok'
124613 # Exported symbols can be pulled into shared objects from archives
124614 whole_archive_flag_spec_CXX='$convenience'
124615 archive_cmds_need_lc_CXX=yes
124616 # This is similar to how AIX traditionally builds its shared libraries.
124617 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
124622 beos*)
124623 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
124624 allow_undefined_flag_CXX=unsupported
124625 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
124626 # support --undefined. This deserves some investigation. FIXME
124627 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
124629 ld_shlibs_CXX=no
124633 chorus*)
124634 case $cc_basename in
124636 # FIXME: insert proper C++ library support
124637 ld_shlibs_CXX=no
124642 cygwin* | mingw* | pw32*)
124643 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
124644 # as there is no search path for DLLs.
124645 hardcode_libdir_flag_spec_CXX='-L$libdir'
124646 allow_undefined_flag_CXX=unsupported
124647 always_export_symbols_CXX=no
124648 enable_shared_with_static_runtimes_CXX=yes
124650 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
124651 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
124652 # If the export-symbols file already is a .def file (1st line
124653 # is EXPORTS), use it as is; otherwise, prepend...
124654 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
124655 cp $export_symbols $output_objdir/$soname.def;
124657 echo EXPORTS > $output_objdir/$soname.def;
124658 cat $export_symbols >> $output_objdir/$soname.def;
124660 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
124662 ld_shlibs_CXX=no
124665 darwin* | rhapsody*)
124666 case $host_os in
124667 rhapsody* | darwin1.[012])
124668 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
124670 *) # Darwin 1.3 on
124671 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
124672 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
124674 case ${MACOSX_DEPLOYMENT_TARGET} in
124675 10.[012])
124676 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
124678 10.*)
124679 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
124685 archive_cmds_need_lc_CXX=no
124686 hardcode_direct_CXX=no
124687 hardcode_automatic_CXX=yes
124688 hardcode_shlibpath_var_CXX=unsupported
124689 whole_archive_flag_spec_CXX=''
124690 link_all_deplibs_CXX=yes
124692 if test "$GXX" = yes ; then
124693 lt_int_apple_cc_single_mod=no
124694 output_verbose_link_cmd='echo'
124695 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
124696 lt_int_apple_cc_single_mod=yes
124698 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
124699 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
124701 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
124703 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
124704 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
124705 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
124706 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
124708 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
124710 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
124712 case $cc_basename in
124713 xlc*)
124714 output_verbose_link_cmd='echo'
124715 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
124716 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
124717 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
124718 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
124719 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
124722 ld_shlibs_CXX=no
124728 dgux*)
124729 case $cc_basename in
124730 ec++*)
124731 # FIXME: insert proper C++ library support
124732 ld_shlibs_CXX=no
124734 ghcx*)
124735 # Green Hills C++ Compiler
124736 # FIXME: insert proper C++ library support
124737 ld_shlibs_CXX=no
124740 # FIXME: insert proper C++ library support
124741 ld_shlibs_CXX=no
124745 freebsd[12]*)
124746 # C++ shared libraries reported to be fairly broken before switch to ELF
124747 ld_shlibs_CXX=no
124749 freebsd-elf*)
124750 archive_cmds_need_lc_CXX=no
124752 freebsd* | dragonfly*)
124753 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
124754 # conventions
124755 ld_shlibs_CXX=yes
124757 gnu*)
124759 hpux9*)
124760 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
124761 hardcode_libdir_separator_CXX=:
124762 export_dynamic_flag_spec_CXX='${wl}-E'
124763 hardcode_direct_CXX=yes
124764 hardcode_minus_L_CXX=yes # Not in the search PATH,
124765 # but as the default
124766 # location of the library.
124768 case $cc_basename in
124770 # FIXME: insert proper C++ library support
124771 ld_shlibs_CXX=no
124773 aCC*)
124774 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
124775 # Commands to make compiler produce verbose output that lists
124776 # what "hidden" libraries, object files and flags are used when
124777 # linking a shared library.
124779 # There doesn't appear to be a way to prevent this compiler from
124780 # explicitly linking system object files so we need to strip them
124781 # from the output so that they don't get included in the library
124782 # dependencies.
124783 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
124786 if test "$GXX" = yes; then
124787 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
124789 # FIXME: insert proper C++ library support
124790 ld_shlibs_CXX=no
124795 hpux10*|hpux11*)
124796 if test $with_gnu_ld = no; then
124797 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
124798 hardcode_libdir_separator_CXX=:
124800 case $host_cpu in
124801 hppa*64*|ia64*)
124802 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
124805 export_dynamic_flag_spec_CXX='${wl}-E'
124809 case $host_cpu in
124810 hppa*64*|ia64*)
124811 hardcode_direct_CXX=no
124812 hardcode_shlibpath_var_CXX=no
124815 hardcode_direct_CXX=yes
124816 hardcode_minus_L_CXX=yes # Not in the search PATH,
124817 # but as the default
124818 # location of the library.
124822 case $cc_basename in
124824 # FIXME: insert proper C++ library support
124825 ld_shlibs_CXX=no
124827 aCC*)
124828 case $host_cpu in
124829 hppa*64*)
124830 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
124832 ia64*)
124833 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
124836 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
124839 # Commands to make compiler produce verbose output that lists
124840 # what "hidden" libraries, object files and flags are used when
124841 # linking a shared library.
124843 # There doesn't appear to be a way to prevent this compiler from
124844 # explicitly linking system object files so we need to strip them
124845 # from the output so that they don't get included in the library
124846 # dependencies.
124847 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
124850 if test "$GXX" = yes; then
124851 if test $with_gnu_ld = no; then
124852 case $host_cpu in
124853 hppa*64*)
124854 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
124856 ia64*)
124857 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
124860 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
124865 # FIXME: insert proper C++ library support
124866 ld_shlibs_CXX=no
124871 interix3*)
124872 hardcode_direct_CXX=no
124873 hardcode_shlibpath_var_CXX=no
124874 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
124875 export_dynamic_flag_spec_CXX='${wl}-E'
124876 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
124877 # Instead, shared libraries are loaded at an image base (0x10000000 by
124878 # default) and relocated if they conflict, which is a slow very memory
124879 # consuming and fragmenting process. To avoid this, we pick a random,
124880 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
124881 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
124882 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
124883 archive_expsym_cmds_CXX='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'
124885 irix5* | irix6*)
124886 case $cc_basename in
124888 # SGI C++
124889 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
124891 # Archives containing C++ object files must be created using
124892 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
124893 # necessary to make sure instantiated templates are included
124894 # in the archive.
124895 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
124898 if test "$GXX" = yes; then
124899 if test "$with_gnu_ld" = no; then
124900 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
124902 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
124905 link_all_deplibs_CXX=yes
124908 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
124909 hardcode_libdir_separator_CXX=:
124911 linux* | k*bsd*-gnu)
124912 case $cc_basename in
124913 KCC*)
124914 # Kuck and Associates, Inc. (KAI) C++ Compiler
124916 # KCC will only create a shared library if the output file
124917 # ends with ".so" (or ".sl" for HP-UX), so rename the library
124918 # to its proper name (with version) after linking.
124919 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
124920 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
124921 # Commands to make compiler produce verbose output that lists
124922 # what "hidden" libraries, object files and flags are used when
124923 # linking a shared library.
124925 # There doesn't appear to be a way to prevent this compiler from
124926 # explicitly linking system object files so we need to strip them
124927 # from the output so that they don't get included in the library
124928 # dependencies.
124929 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
124931 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
124932 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
124934 # Archives containing C++ object files must be created using
124935 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
124936 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
124938 icpc*)
124939 # Intel C++
124940 with_gnu_ld=yes
124941 # version 8.0 and above of icpc choke on multiply defined symbols
124942 # if we add $predep_objects and $postdep_objects, however 7.1 and
124943 # earlier do not add the objects themselves.
124944 case `$CC -V 2>&1` in
124945 *"Version 7."*)
124946 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
124947 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
124949 *) # Version 8.0 or newer
124950 tmp_idyn=
124951 case $host_cpu in
124952 ia64*) tmp_idyn=' -i_dynamic';;
124954 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
124955 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
124958 archive_cmds_need_lc_CXX=no
124959 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
124960 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
124961 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
124963 pgCC*)
124964 # Portland Group C++ compiler
124965 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
124966 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
124968 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
124969 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
124970 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
124972 cxx*)
124973 # Compaq C++
124974 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
124975 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
124977 runpath_var=LD_RUN_PATH
124978 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
124979 hardcode_libdir_separator_CXX=:
124981 # Commands to make compiler produce verbose output that lists
124982 # what "hidden" libraries, object files and flags are used when
124983 # linking a shared library.
124985 # There doesn't appear to be a way to prevent this compiler from
124986 # explicitly linking system object files so we need to strip them
124987 # from the output so that they don't get included in the library
124988 # dependencies.
124989 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
124993 lynxos*)
124994 # FIXME: insert proper C++ library support
124995 ld_shlibs_CXX=no
124997 m88k*)
124998 # FIXME: insert proper C++ library support
124999 ld_shlibs_CXX=no
125001 mvs*)
125002 case $cc_basename in
125003 cxx*)
125004 # FIXME: insert proper C++ library support
125005 ld_shlibs_CXX=no
125008 # FIXME: insert proper C++ library support
125009 ld_shlibs_CXX=no
125013 netbsd* | netbsdelf*-gnu)
125014 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
125015 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
125016 wlarc=
125017 hardcode_libdir_flag_spec_CXX='-R$libdir'
125018 hardcode_direct_CXX=yes
125019 hardcode_shlibpath_var_CXX=no
125021 # Workaround some broken pre-1.5 toolchains
125022 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
125024 openbsd2*)
125025 # C++ shared libraries are fairly broken
125026 ld_shlibs_CXX=no
125028 openbsd*)
125029 hardcode_direct_CXX=yes
125030 hardcode_shlibpath_var_CXX=no
125031 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
125032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
125033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
125034 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
125035 export_dynamic_flag_spec_CXX='${wl}-E'
125036 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
125038 output_verbose_link_cmd='echo'
125040 osf3*)
125041 case $cc_basename in
125042 KCC*)
125043 # Kuck and Associates, Inc. (KAI) C++ Compiler
125045 # KCC will only create a shared library if the output file
125046 # ends with ".so" (or ".sl" for HP-UX), so rename the library
125047 # to its proper name (with version) after linking.
125048 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
125050 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
125051 hardcode_libdir_separator_CXX=:
125053 # Archives containing C++ object files must be created using
125054 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
125055 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
125058 RCC*)
125059 # Rational C++ 2.4.1
125060 # FIXME: insert proper C++ library support
125061 ld_shlibs_CXX=no
125063 cxx*)
125064 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
125065 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
125067 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
125068 hardcode_libdir_separator_CXX=:
125070 # Commands to make compiler produce verbose output that lists
125071 # what "hidden" libraries, object files and flags are used when
125072 # linking a shared library.
125074 # There doesn't appear to be a way to prevent this compiler from
125075 # explicitly linking system object files so we need to strip them
125076 # from the output so that they don't get included in the library
125077 # dependencies.
125078 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
125081 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
125082 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
125083 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
125085 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
125086 hardcode_libdir_separator_CXX=:
125088 # Commands to make compiler produce verbose output that lists
125089 # what "hidden" libraries, object files and flags are used when
125090 # linking a shared library.
125091 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
125094 # FIXME: insert proper C++ library support
125095 ld_shlibs_CXX=no
125100 osf4* | osf5*)
125101 case $cc_basename in
125102 KCC*)
125103 # Kuck and Associates, Inc. (KAI) C++ Compiler
125105 # KCC will only create a shared library if the output file
125106 # ends with ".so" (or ".sl" for HP-UX), so rename the library
125107 # to its proper name (with version) after linking.
125108 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
125110 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
125111 hardcode_libdir_separator_CXX=:
125113 # Archives containing C++ object files must be created using
125114 # the KAI C++ compiler.
125115 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
125117 RCC*)
125118 # Rational C++ 2.4.1
125119 # FIXME: insert proper C++ library support
125120 ld_shlibs_CXX=no
125122 cxx*)
125123 allow_undefined_flag_CXX=' -expect_unresolved \*'
125124 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
125125 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
125126 echo "-hidden">> $lib.exp~
125127 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
125128 $rm $lib.exp'
125130 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
125131 hardcode_libdir_separator_CXX=:
125133 # Commands to make compiler produce verbose output that lists
125134 # what "hidden" libraries, object files and flags are used when
125135 # linking a shared library.
125137 # There doesn't appear to be a way to prevent this compiler from
125138 # explicitly linking system object files so we need to strip them
125139 # from the output so that they don't get included in the library
125140 # dependencies.
125141 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
125144 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
125145 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
125146 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
125148 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
125149 hardcode_libdir_separator_CXX=:
125151 # Commands to make compiler produce verbose output that lists
125152 # what "hidden" libraries, object files and flags are used when
125153 # linking a shared library.
125154 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
125157 # FIXME: insert proper C++ library support
125158 ld_shlibs_CXX=no
125163 psos*)
125164 # FIXME: insert proper C++ library support
125165 ld_shlibs_CXX=no
125167 sunos4*)
125168 case $cc_basename in
125170 # Sun C++ 4.x
125171 # FIXME: insert proper C++ library support
125172 ld_shlibs_CXX=no
125174 lcc*)
125175 # Lucid
125176 # FIXME: insert proper C++ library support
125177 ld_shlibs_CXX=no
125180 # FIXME: insert proper C++ library support
125181 ld_shlibs_CXX=no
125185 solaris*)
125186 case $cc_basename in
125188 # Sun C++ 4.2, 5.x and Centerline C++
125189 archive_cmds_need_lc_CXX=yes
125190 no_undefined_flag_CXX=' -zdefs'
125191 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
125192 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
125193 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
125195 hardcode_libdir_flag_spec_CXX='-R$libdir'
125196 hardcode_shlibpath_var_CXX=no
125197 case $host_os in
125198 solaris2.[0-5] | solaris2.[0-5].*) ;;
125200 # The C++ compiler is used as linker so we must use $wl
125201 # flag to pass the commands to the underlying system
125202 # linker. We must also pass each convience library through
125203 # to the system linker between allextract/defaultextract.
125204 # The C++ compiler will combine linker options so we
125205 # cannot just pass the convience library names through
125206 # without $wl.
125207 # Supported since Solaris 2.6 (maybe 2.5.1?)
125208 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
125211 link_all_deplibs_CXX=yes
125213 output_verbose_link_cmd='echo'
125215 # Archives containing C++ object files must be created using
125216 # "CC -xar", where "CC" is the Sun C++ compiler. This is
125217 # necessary to make sure instantiated templates are included
125218 # in the archive.
125219 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
125221 gcx*)
125222 # Green Hills C++ Compiler
125223 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
125225 # The C++ compiler must be used to create the archive.
125226 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
125229 # GNU C++ compiler with Solaris linker
125230 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
125231 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
125232 if $CC --version | grep -v '^2\.7' > /dev/null; then
125233 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
125234 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
125235 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
125237 # Commands to make compiler produce verbose output that lists
125238 # what "hidden" libraries, object files and flags are used when
125239 # linking a shared library.
125240 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
125242 # g++ 2.7 appears to require `-G' NOT `-shared' on this
125243 # platform.
125244 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
125245 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
125246 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
125248 # Commands to make compiler produce verbose output that lists
125249 # what "hidden" libraries, object files and flags are used when
125250 # linking a shared library.
125251 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
125254 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
125259 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
125260 no_undefined_flag_CXX='${wl}-z,text'
125261 archive_cmds_need_lc_CXX=no
125262 hardcode_shlibpath_var_CXX=no
125263 runpath_var='LD_RUN_PATH'
125265 case $cc_basename in
125267 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
125268 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
125271 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
125272 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
125276 sysv5* | sco3.2v5* | sco5v6*)
125277 # Note: We can NOT use -z defs as we might desire, because we do not
125278 # link with -lc, and that would cause any symbols used from libc to
125279 # always be unresolved, which means just about no library would
125280 # ever link correctly. If we're not using GNU ld we use -z text
125281 # though, which does catch some bad symbols but isn't as heavy-handed
125282 # as -z defs.
125283 # For security reasons, it is highly recommended that you always
125284 # use absolute paths for naming shared libraries, and exclude the
125285 # DT_RUNPATH tag from executables and libraries. But doing so
125286 # requires that you compile everything twice, which is a pain.
125287 # So that behaviour is only enabled if SCOABSPATH is set to a
125288 # non-empty value in the environment. Most likely only useful for
125289 # creating official distributions of packages.
125290 # This is a hack until libtool officially supports absolute path
125291 # names for shared libraries.
125292 no_undefined_flag_CXX='${wl}-z,text'
125293 allow_undefined_flag_CXX='${wl}-z,nodefs'
125294 archive_cmds_need_lc_CXX=no
125295 hardcode_shlibpath_var_CXX=no
125296 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
125297 hardcode_libdir_separator_CXX=':'
125298 link_all_deplibs_CXX=yes
125299 export_dynamic_flag_spec_CXX='${wl}-Bexport'
125300 runpath_var='LD_RUN_PATH'
125302 case $cc_basename in
125304 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
125305 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
125308 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
125309 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
125313 tandem*)
125314 case $cc_basename in
125315 NCC*)
125316 # NonStop-UX NCC 3.20
125317 # FIXME: insert proper C++ library support
125318 ld_shlibs_CXX=no
125321 # FIXME: insert proper C++ library support
125322 ld_shlibs_CXX=no
125326 vxworks*)
125327 # FIXME: insert proper C++ library support
125328 ld_shlibs_CXX=no
125331 # FIXME: insert proper C++ library support
125332 ld_shlibs_CXX=no
125335 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
125336 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
125337 test "$ld_shlibs_CXX" = no && can_build_shared=no
125339 GCC_CXX="$GXX"
125340 LD_CXX="$LD"
125343 cat > conftest.$ac_ext <<EOF
125344 class Foo
125346 public:
125347 Foo (void) { a = 0; }
125348 private:
125349 int a;
125353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
125354 (eval $ac_compile) 2>&5
125355 ac_status=$?
125356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
125357 (exit $ac_status); }; then
125358 # Parse the compiler output and extract the necessary
125359 # objects, libraries and library flags.
125361 # Sentinel used to keep track of whether or not we are before
125362 # the conftest object file.
125363 pre_test_object_deps_done=no
125365 # The `*' in the case matches for architectures that use `case' in
125366 # $output_verbose_cmd can trigger glob expansion during the loop
125367 # eval without this substitution.
125368 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
125370 for p in `eval $output_verbose_link_cmd`; do
125371 case $p in
125373 -L* | -R* | -l*)
125374 # Some compilers place space between "-{L,R}" and the path.
125375 # Remove the space.
125376 if test $p = "-L" \
125377 || test $p = "-R"; then
125378 prev=$p
125379 continue
125381 prev=
125384 if test "$pre_test_object_deps_done" = no; then
125385 case $p in
125386 -L* | -R*)
125387 # Internal compiler library paths should come after those
125388 # provided the user. The postdeps already come after the
125389 # user supplied libs so there is no need to process them.
125390 if test -z "$compiler_lib_search_path_CXX"; then
125391 compiler_lib_search_path_CXX="${prev}${p}"
125393 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
125396 # The "-l" case would never come before the object being
125397 # linked, so don't bother handling this case.
125400 if test -z "$postdeps_CXX"; then
125401 postdeps_CXX="${prev}${p}"
125403 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
125408 *.$objext)
125409 # This assumes that the test object file only shows up
125410 # once in the compiler output.
125411 if test "$p" = "conftest.$objext"; then
125412 pre_test_object_deps_done=yes
125413 continue
125416 if test "$pre_test_object_deps_done" = no; then
125417 if test -z "$predep_objects_CXX"; then
125418 predep_objects_CXX="$p"
125420 predep_objects_CXX="$predep_objects_CXX $p"
125423 if test -z "$postdep_objects_CXX"; then
125424 postdep_objects_CXX="$p"
125426 postdep_objects_CXX="$postdep_objects_CXX $p"
125431 *) ;; # Ignore the rest.
125436 # Clean up.
125437 rm -f a.out a.exe
125439 echo "libtool.m4: error: problem compiling CXX test program"
125442 $rm -f confest.$objext
125444 # PORTME: override above test on systems where it is broken
125445 case $host_os in
125446 interix3*)
125447 # Interix 3.5 installs completely hosed .la files for C++, so rather than
125448 # hack all around it, let's just trust "g++" to DTRT.
125449 predep_objects_CXX=
125450 postdep_objects_CXX=
125451 postdeps_CXX=
125454 solaris*)
125455 case $cc_basename in
125457 # Adding this requires a known-good setup of shared libraries for
125458 # Sun compiler versions before 5.6, else PIC objects from an old
125459 # archive will be linked into the output, leading to subtle bugs.
125460 postdeps_CXX='-lCstd -lCrun'
125467 case " $postdeps_CXX " in
125468 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
125471 lt_prog_compiler_wl_CXX=
125472 lt_prog_compiler_pic_CXX=
125473 lt_prog_compiler_static_CXX=
125475 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
125476 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
125478 # C++ specific cases for pic, static, wl, etc.
125479 if test "$GXX" = yes; then
125480 lt_prog_compiler_wl_CXX='-Wl,'
125481 lt_prog_compiler_static_CXX='-static'
125483 case $host_os in
125484 aix*)
125485 # All AIX code is PIC.
125486 if test "$host_cpu" = ia64; then
125487 # AIX 5 now supports IA64 processor
125488 lt_prog_compiler_static_CXX='-Bstatic'
125491 amigaos*)
125492 # FIXME: we need at least 68020 code to build shared libraries, but
125493 # adding the `-m68020' flag to GCC prevents building anything better,
125494 # like `-m68040'.
125495 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
125497 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
125498 # PIC is the default for these OSes.
125500 mingw* | os2* | pw32*)
125501 # This hack is so that the source file can tell whether it is being
125502 # built for inclusion in a dll (and should export symbols for example).
125503 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
125505 darwin* | rhapsody*)
125506 # PIC is the default on this platform
125507 # Common symbols not allowed in MH_DYLIB files
125508 lt_prog_compiler_pic_CXX='-fno-common'
125510 *djgpp*)
125511 # DJGPP does not support shared libraries at all
125512 lt_prog_compiler_pic_CXX=
125514 interix3*)
125515 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
125516 # Instead, we relocate shared libraries at runtime.
125518 sysv4*MP*)
125519 if test -d /usr/nec; then
125520 lt_prog_compiler_pic_CXX=-Kconform_pic
125523 hpux*)
125524 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
125525 # not for PA HP-UX.
125526 case $host_cpu in
125527 hppa*64*|ia64*)
125530 lt_prog_compiler_pic_CXX='-fPIC'
125535 lt_prog_compiler_pic_CXX='-fPIC'
125539 case $host_os in
125540 aix4* | aix5*)
125541 # All AIX code is PIC.
125542 if test "$host_cpu" = ia64; then
125543 # AIX 5 now supports IA64 processor
125544 lt_prog_compiler_static_CXX='-Bstatic'
125546 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
125549 chorus*)
125550 case $cc_basename in
125551 cxch68*)
125552 # Green Hills C++ Compiler
125553 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
125557 darwin*)
125558 # PIC is the default on this platform
125559 # Common symbols not allowed in MH_DYLIB files
125560 case $cc_basename in
125561 xlc*)
125562 lt_prog_compiler_pic_CXX='-qnocommon'
125563 lt_prog_compiler_wl_CXX='-Wl,'
125567 dgux*)
125568 case $cc_basename in
125569 ec++*)
125570 lt_prog_compiler_pic_CXX='-KPIC'
125572 ghcx*)
125573 # Green Hills C++ Compiler
125574 lt_prog_compiler_pic_CXX='-pic'
125580 freebsd* | dragonfly*)
125581 # FreeBSD uses GNU C++
125583 hpux9* | hpux10* | hpux11*)
125584 case $cc_basename in
125586 lt_prog_compiler_wl_CXX='-Wl,'
125587 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
125588 if test "$host_cpu" != ia64; then
125589 lt_prog_compiler_pic_CXX='+Z'
125592 aCC*)
125593 lt_prog_compiler_wl_CXX='-Wl,'
125594 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
125595 case $host_cpu in
125596 hppa*64*|ia64*)
125597 # +Z the default
125600 lt_prog_compiler_pic_CXX='+Z'
125608 interix*)
125609 # This is c89, which is MS Visual C++ (no shared libs)
125610 # Anyone wants to do a port?
125612 irix5* | irix6* | nonstopux*)
125613 case $cc_basename in
125615 lt_prog_compiler_wl_CXX='-Wl,'
125616 lt_prog_compiler_static_CXX='-non_shared'
125617 # CC pic flag -KPIC is the default.
125623 linux* | k*bsd*-gnu)
125624 case $cc_basename in
125625 KCC*)
125626 # KAI C++ Compiler
125627 lt_prog_compiler_wl_CXX='--backend -Wl,'
125628 lt_prog_compiler_pic_CXX='-fPIC'
125630 icpc* | ecpc*)
125631 # Intel C++
125632 lt_prog_compiler_wl_CXX='-Wl,'
125633 lt_prog_compiler_pic_CXX='-KPIC'
125634 lt_prog_compiler_static_CXX='-static'
125636 pgCC*)
125637 # Portland Group C++ compiler.
125638 lt_prog_compiler_wl_CXX='-Wl,'
125639 lt_prog_compiler_pic_CXX='-fpic'
125640 lt_prog_compiler_static_CXX='-Bstatic'
125642 cxx*)
125643 # Compaq C++
125644 # Make sure the PIC flag is empty. It appears that all Alpha
125645 # Linux and Compaq Tru64 Unix objects are PIC.
125646 lt_prog_compiler_pic_CXX=
125647 lt_prog_compiler_static_CXX='-non_shared'
125653 lynxos*)
125655 m88k*)
125657 mvs*)
125658 case $cc_basename in
125659 cxx*)
125660 lt_prog_compiler_pic_CXX='-W c,exportall'
125666 netbsd* | netbsdelf*-gnu)
125668 osf3* | osf4* | osf5*)
125669 case $cc_basename in
125670 KCC*)
125671 lt_prog_compiler_wl_CXX='--backend -Wl,'
125673 RCC*)
125674 # Rational C++ 2.4.1
125675 lt_prog_compiler_pic_CXX='-pic'
125677 cxx*)
125678 # Digital/Compaq C++
125679 lt_prog_compiler_wl_CXX='-Wl,'
125680 # Make sure the PIC flag is empty. It appears that all Alpha
125681 # Linux and Compaq Tru64 Unix objects are PIC.
125682 lt_prog_compiler_pic_CXX=
125683 lt_prog_compiler_static_CXX='-non_shared'
125689 psos*)
125691 solaris*)
125692 case $cc_basename in
125694 # Sun C++ 4.2, 5.x and Centerline C++
125695 lt_prog_compiler_pic_CXX='-KPIC'
125696 lt_prog_compiler_static_CXX='-Bstatic'
125697 lt_prog_compiler_wl_CXX='-Qoption ld '
125699 gcx*)
125700 # Green Hills C++ Compiler
125701 lt_prog_compiler_pic_CXX='-PIC'
125707 sunos4*)
125708 case $cc_basename in
125710 # Sun C++ 4.x
125711 lt_prog_compiler_pic_CXX='-pic'
125712 lt_prog_compiler_static_CXX='-Bstatic'
125714 lcc*)
125715 # Lucid
125716 lt_prog_compiler_pic_CXX='-pic'
125722 tandem*)
125723 case $cc_basename in
125724 NCC*)
125725 # NonStop-UX NCC 3.20
125726 lt_prog_compiler_pic_CXX='-KPIC'
125732 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
125733 case $cc_basename in
125735 lt_prog_compiler_wl_CXX='-Wl,'
125736 lt_prog_compiler_pic_CXX='-KPIC'
125737 lt_prog_compiler_static_CXX='-Bstatic'
125741 vxworks*)
125744 lt_prog_compiler_can_build_shared_CXX=no
125749 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
125750 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
125753 # Check to make sure the PIC flag actually works.
125755 if test -n "$lt_prog_compiler_pic_CXX"; then
125757 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
125758 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
125759 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
125760 echo $ECHO_N "(cached) $ECHO_C" >&6
125762 lt_prog_compiler_pic_works_CXX=no
125763 ac_outfile=conftest.$ac_objext
125764 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
125765 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
125766 # Insert the option either (1) after the last *FLAGS variable, or
125767 # (2) before a word containing "conftest.", or (3) at the end.
125768 # Note that $ac_compile itself does not contain backslashes and begins
125769 # with a dollar sign (not a hyphen), so the echo should work correctly.
125770 # The option is referenced via a variable to avoid confusing sed.
125771 lt_compile=`echo "$ac_compile" | $SED \
125772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
125773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
125774 -e 's:$: $lt_compiler_flag:'`
125775 (eval echo "\"\$as_me:125775: $lt_compile\"" >&5)
125776 (eval "$lt_compile" 2>conftest.err)
125777 ac_status=$?
125778 cat conftest.err >&5
125779 echo "$as_me:125779: \$? = $ac_status" >&5
125780 if (exit $ac_status) && test -s "$ac_outfile"; then
125781 # The compiler can only warn and ignore the option if not recognized
125782 # So say no if there are warnings other than the usual output.
125783 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
125784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
125785 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
125786 lt_prog_compiler_pic_works_CXX=yes
125789 $rm conftest*
125792 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
125793 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
125795 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
125796 case $lt_prog_compiler_pic_CXX in
125797 "" | " "*) ;;
125798 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
125801 lt_prog_compiler_pic_CXX=
125802 lt_prog_compiler_can_build_shared_CXX=no
125806 case $host_os in
125807 # For platforms which do not support PIC, -DPIC is meaningless:
125808 *djgpp*)
125809 lt_prog_compiler_pic_CXX=
125812 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
125817 # Check to make sure the static flag actually works.
125819 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
125820 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
125821 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
125822 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
125823 echo $ECHO_N "(cached) $ECHO_C" >&6
125825 lt_prog_compiler_static_works_CXX=no
125826 save_LDFLAGS="$LDFLAGS"
125827 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
125828 printf "$lt_simple_link_test_code" > conftest.$ac_ext
125829 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
125830 # The linker can only warn and ignore the option if not recognized
125831 # So say no if there are warnings
125832 if test -s conftest.err; then
125833 # Append any errors to the config.log.
125834 cat conftest.err 1>&5
125835 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
125836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
125837 if diff conftest.exp conftest.er2 >/dev/null; then
125838 lt_prog_compiler_static_works_CXX=yes
125841 lt_prog_compiler_static_works_CXX=yes
125844 $rm conftest*
125845 LDFLAGS="$save_LDFLAGS"
125848 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
125849 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
125851 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
125854 lt_prog_compiler_static_CXX=
125858 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
125859 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
125860 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
125861 echo $ECHO_N "(cached) $ECHO_C" >&6
125863 lt_cv_prog_compiler_c_o_CXX=no
125864 $rm -r conftest 2>/dev/null
125865 mkdir conftest
125866 cd conftest
125867 mkdir out
125868 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
125870 lt_compiler_flag="-o out/conftest2.$ac_objext"
125871 # Insert the option either (1) after the last *FLAGS variable, or
125872 # (2) before a word containing "conftest.", or (3) at the end.
125873 # Note that $ac_compile itself does not contain backslashes and begins
125874 # with a dollar sign (not a hyphen), so the echo should work correctly.
125875 lt_compile=`echo "$ac_compile" | $SED \
125876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
125877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
125878 -e 's:$: $lt_compiler_flag:'`
125879 (eval echo "\"\$as_me:125879: $lt_compile\"" >&5)
125880 (eval "$lt_compile" 2>out/conftest.err)
125881 ac_status=$?
125882 cat out/conftest.err >&5
125883 echo "$as_me:125883: \$? = $ac_status" >&5
125884 if (exit $ac_status) && test -s out/conftest2.$ac_objext
125886 # The compiler can only warn and ignore the option if not recognized
125887 # So say no if there are warnings
125888 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
125889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
125890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
125891 lt_cv_prog_compiler_c_o_CXX=yes
125894 chmod u+w . 2>&5
125895 $rm conftest*
125896 # SGI C++ compiler will create directory out/ii_files/ for
125897 # template instantiation
125898 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
125899 $rm out/* && rmdir out
125900 cd ..
125901 rmdir conftest
125902 $rm conftest*
125905 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
125906 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
125909 hard_links="nottested"
125910 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
125911 # do not overwrite the value of need_locks provided by the user
125912 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
125913 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
125914 hard_links=yes
125915 $rm conftest*
125916 ln conftest.a conftest.b 2>/dev/null && hard_links=no
125917 touch conftest.a
125918 ln conftest.a conftest.b 2>&5 || hard_links=no
125919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
125920 { echo "$as_me:$LINENO: result: $hard_links" >&5
125921 echo "${ECHO_T}$hard_links" >&6; }
125922 if test "$hard_links" = no; then
125923 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
125924 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
125925 need_locks=warn
125928 need_locks=no
125931 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
125932 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
125934 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
125935 case $host_os in
125936 aix4* | aix5*)
125937 # If we're using GNU nm, then we don't want the "-C" option.
125938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
125939 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
125940 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
125942 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
125945 pw32*)
125946 export_symbols_cmds_CXX="$ltdll_cmds"
125948 cygwin* | mingw*)
125949 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
125951 linux* | k*bsd*-gnu)
125952 link_all_deplibs_CXX=no
125955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
125959 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
125960 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
125961 test "$ld_shlibs_CXX" = no && can_build_shared=no
125964 # Do we need to explicitly link libc?
125966 case "x$archive_cmds_need_lc_CXX" in
125967 x|xyes)
125968 # Assume -lc should be added
125969 archive_cmds_need_lc_CXX=yes
125971 if test "$enable_shared" = yes && test "$GCC" = yes; then
125972 case $archive_cmds_CXX in
125973 *'~'*)
125974 # FIXME: we may have to deal with multi-command sequences.
125976 '$CC '*)
125977 # Test whether the compiler implicitly links with -lc since on some
125978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
125979 # to ld, don't add -lc before -lgcc.
125980 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
125981 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
125982 $rm conftest*
125983 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
125985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
125986 (eval $ac_compile) 2>&5
125987 ac_status=$?
125988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
125989 (exit $ac_status); } 2>conftest.err; then
125990 soname=conftest
125991 lib=conftest
125992 libobjs=conftest.$ac_objext
125993 deplibs=
125994 wl=$lt_prog_compiler_wl_CXX
125995 pic_flag=$lt_prog_compiler_pic_CXX
125996 compiler_flags=-v
125997 linker_flags=-v
125998 verstring=
125999 output_objdir=.
126000 libname=conftest
126001 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
126002 allow_undefined_flag_CXX=
126003 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
126004 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
126005 ac_status=$?
126006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
126007 (exit $ac_status); }
126009 archive_cmds_need_lc_CXX=no
126011 archive_cmds_need_lc_CXX=yes
126013 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
126015 cat conftest.err 1>&5
126017 $rm conftest*
126018 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
126019 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
126026 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
126027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
126028 library_names_spec=
126029 libname_spec='lib$name'
126030 soname_spec=
126031 shrext_cmds=".so"
126032 postinstall_cmds=
126033 postuninstall_cmds=
126034 finish_cmds=
126035 finish_eval=
126036 shlibpath_var=
126037 shlibpath_overrides_runpath=unknown
126038 version_type=none
126039 dynamic_linker="$host_os ld.so"
126040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
126041 if test "$GCC" = yes; then
126042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
126043 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
126044 # if the path contains ";" then we assume it to be the separator
126045 # otherwise default to the standard path separator (i.e. ":") - it is
126046 # assumed that no part of a normal pathname contains ";" but that should
126047 # okay in the real world where ";" in dirpaths is itself problematic.
126048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
126050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
126053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
126055 need_lib_prefix=unknown
126056 hardcode_into_libs=no
126058 # when you set need_version to no, make sure it does not cause -set_version
126059 # flags to be left without arguments
126060 need_version=unknown
126062 case $host_os in
126063 aix3*)
126064 version_type=linux
126065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
126066 shlibpath_var=LIBPATH
126068 # AIX 3 has no versioning support, so we append a major version to the name.
126069 soname_spec='${libname}${release}${shared_ext}$major'
126072 aix4* | aix5*)
126073 version_type=linux
126074 need_lib_prefix=no
126075 need_version=no
126076 hardcode_into_libs=yes
126077 if test "$host_cpu" = ia64; then
126078 # AIX 5 supports IA64
126079 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
126080 shlibpath_var=LD_LIBRARY_PATH
126082 # With GCC up to 2.95.x, collect2 would create an import file
126083 # for dependence libraries. The import file would start with
126084 # the line `#! .'. This would cause the generated library to
126085 # depend on `.', always an invalid library. This was fixed in
126086 # development snapshots of GCC prior to 3.0.
126087 case $host_os in
126088 aix4 | aix4.[01] | aix4.[01].*)
126089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
126090 echo ' yes '
126091 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
126094 can_build_shared=no
126098 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
126099 # soname into executable. Probably we can add versioning support to
126100 # collect2, so additional links can be useful in future.
126101 if test "$aix_use_runtimelinking" = yes; then
126102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
126103 # instead of lib<name>.a to let people know that these are not
126104 # typical AIX shared libraries.
126105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
126107 # We preserve .a as extension for shared libraries through AIX4.2
126108 # and later when we are not doing run time linking.
126109 library_names_spec='${libname}${release}.a $libname.a'
126110 soname_spec='${libname}${release}${shared_ext}$major'
126112 shlibpath_var=LIBPATH
126116 amigaos*)
126117 library_names_spec='$libname.ixlibrary $libname.a'
126118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
126119 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
126122 beos*)
126123 library_names_spec='${libname}${shared_ext}'
126124 dynamic_linker="$host_os ld.so"
126125 shlibpath_var=LIBRARY_PATH
126128 bsdi[45]*)
126129 version_type=linux
126130 need_version=no
126131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
126132 soname_spec='${libname}${release}${shared_ext}$major'
126133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
126134 shlibpath_var=LD_LIBRARY_PATH
126135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
126136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
126137 # the default ld.so.conf also contains /usr/contrib/lib and
126138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
126139 # libtool to hard-code these into programs
126142 cygwin* | mingw* | pw32*)
126143 version_type=windows
126144 shrext_cmds=".dll"
126145 need_version=no
126146 need_lib_prefix=no
126148 case $GCC,$host_os in
126149 yes,cygwin* | yes,mingw* | yes,pw32*)
126150 library_names_spec='$libname.dll.a'
126151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
126152 postinstall_cmds='base_file=`basename \${file}`~
126153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
126154 dldir=$destdir/`dirname \$dlpath`~
126155 test -d \$dldir || mkdir -p \$dldir~
126156 $install_prog $dir/$dlname \$dldir/$dlname~
126157 chmod a+x \$dldir/$dlname'
126158 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
126159 dlpath=$dir/\$dldll~
126160 $rm \$dlpath'
126161 shlibpath_overrides_runpath=yes
126163 case $host_os in
126164 cygwin*)
126165 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
126166 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
126167 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
126169 mingw*)
126170 # MinGW DLLs use traditional 'lib' prefix
126171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
126172 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
126173 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
126174 # It is most probably a Windows format PATH printed by
126175 # mingw gcc, but we are running on Cygwin. Gcc prints its search
126176 # path with ; separators, and with drive letters. We can handle the
126177 # drive letters (cygwin fileutils understands them), so leave them,
126178 # especially as we might pass files found there to a mingw objdump,
126179 # which wouldn't understand a cygwinified path. Ahh.
126180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
126182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
126185 pw32*)
126186 # pw32 DLLs use 'pw' prefix rather than 'lib'
126187 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
126193 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
126196 dynamic_linker='Win32 ld.exe'
126197 # FIXME: first we should search . and the directory the executable is in
126198 shlibpath_var=PATH
126201 darwin* | rhapsody*)
126202 dynamic_linker="$host_os dyld"
126203 version_type=darwin
126204 need_lib_prefix=no
126205 need_version=no
126206 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
126207 soname_spec='${libname}${release}${major}$shared_ext'
126208 shlibpath_overrides_runpath=yes
126209 shlibpath_var=DYLD_LIBRARY_PATH
126210 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
126211 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
126212 if test "$GCC" = yes; then
126213 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
126215 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
126217 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
126220 dgux*)
126221 version_type=linux
126222 need_lib_prefix=no
126223 need_version=no
126224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
126225 soname_spec='${libname}${release}${shared_ext}$major'
126226 shlibpath_var=LD_LIBRARY_PATH
126229 freebsd1*)
126230 dynamic_linker=no
126233 freebsd* | dragonfly*)
126234 # DragonFly does not have aout. When/if they implement a new
126235 # versioning mechanism, adjust this.
126236 if test -x /usr/bin/objformat; then
126237 objformat=`/usr/bin/objformat`
126239 case $host_os in
126240 freebsd[123]*) objformat=aout ;;
126241 *) objformat=elf ;;
126244 version_type=freebsd-$objformat
126245 case $version_type in
126246 freebsd-elf*)
126247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
126248 need_version=no
126249 need_lib_prefix=no
126251 freebsd-*)
126252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
126253 need_version=yes
126256 shlibpath_var=LD_LIBRARY_PATH
126257 case $host_os in
126258 freebsd2*)
126259 shlibpath_overrides_runpath=yes
126261 freebsd3.[01]* | freebsdelf3.[01]*)
126262 shlibpath_overrides_runpath=yes
126263 hardcode_into_libs=yes
126265 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
126266 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
126267 shlibpath_overrides_runpath=no
126268 hardcode_into_libs=yes
126270 freebsd*) # from 4.6 on
126271 shlibpath_overrides_runpath=yes
126272 hardcode_into_libs=yes
126277 gnu*)
126278 version_type=linux
126279 need_lib_prefix=no
126280 need_version=no
126281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
126282 soname_spec='${libname}${release}${shared_ext}$major'
126283 shlibpath_var=LD_LIBRARY_PATH
126284 hardcode_into_libs=yes
126287 hpux9* | hpux10* | hpux11*)
126288 # Give a soname corresponding to the major version so that dld.sl refuses to
126289 # link against other versions.
126290 version_type=sunos
126291 need_lib_prefix=no
126292 need_version=no
126293 case $host_cpu in
126294 ia64*)
126295 shrext_cmds='.so'
126296 hardcode_into_libs=yes
126297 dynamic_linker="$host_os dld.so"
126298 shlibpath_var=LD_LIBRARY_PATH
126299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
126300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
126301 soname_spec='${libname}${release}${shared_ext}$major'
126302 if test "X$HPUX_IA64_MODE" = X32; then
126303 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
126305 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
126307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
126309 hppa*64*)
126310 shrext_cmds='.sl'
126311 hardcode_into_libs=yes
126312 dynamic_linker="$host_os dld.sl"
126313 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
126314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
126315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
126316 soname_spec='${libname}${release}${shared_ext}$major'
126317 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
126318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
126321 shrext_cmds='.sl'
126322 dynamic_linker="$host_os dld.sl"
126323 shlibpath_var=SHLIB_PATH
126324 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
126325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
126326 soname_spec='${libname}${release}${shared_ext}$major'
126329 # HP-UX runs *really* slowly unless shared libraries are mode 555.
126330 postinstall_cmds='chmod 555 $lib'
126333 interix3*)
126334 version_type=linux
126335 need_lib_prefix=no
126336 need_version=no
126337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
126338 soname_spec='${libname}${release}${shared_ext}$major'
126339 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
126340 shlibpath_var=LD_LIBRARY_PATH
126341 shlibpath_overrides_runpath=no
126342 hardcode_into_libs=yes
126345 irix5* | irix6* | nonstopux*)
126346 case $host_os in
126347 nonstopux*) version_type=nonstopux ;;
126349 if test "$lt_cv_prog_gnu_ld" = yes; then
126350 version_type=linux
126352 version_type=irix
126353 fi ;;
126355 need_lib_prefix=no
126356 need_version=no
126357 soname_spec='${libname}${release}${shared_ext}$major'
126358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
126359 case $host_os in
126360 irix5* | nonstopux*)
126361 libsuff= shlibsuff=
126364 case $LD in # libtool.m4 will add one of these switches to LD
126365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
126366 libsuff= shlibsuff= libmagic=32-bit;;
126367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
126368 libsuff=32 shlibsuff=N32 libmagic=N32;;
126369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
126370 libsuff=64 shlibsuff=64 libmagic=64-bit;;
126371 *) libsuff= shlibsuff= libmagic=never-match;;
126375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
126376 shlibpath_overrides_runpath=no
126377 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
126378 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
126379 hardcode_into_libs=yes
126382 # No shared lib support for Linux oldld, aout, or coff.
126383 linux*oldld* | linux*aout* | linux*coff*)
126384 dynamic_linker=no
126387 # This must be Linux ELF.
126388 linux* | k*bsd*-gnu)
126389 version_type=linux
126390 need_lib_prefix=no
126391 need_version=no
126392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
126393 soname_spec='${libname}${release}${shared_ext}$major'
126394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
126395 shlibpath_var=LD_LIBRARY_PATH
126396 shlibpath_overrides_runpath=no
126397 # This implies no fast_install, which is unacceptable.
126398 # Some rework will be needed to allow for fast_install
126399 # before this can be enabled.
126400 hardcode_into_libs=yes
126402 # Append ld.so.conf contents to the search path
126403 if test -f /etc/ld.so.conf; then
126404 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
126405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
126408 # We used to test for /lib/ld.so.1 and disable shared libraries on
126409 # powerpc, because MkLinux only supported shared libraries with the
126410 # GNU dynamic linker. Since this was broken with cross compilers,
126411 # most powerpc-linux boxes support dynamic linking these days and
126412 # people can always --disable-shared, the test was removed, and we
126413 # assume the GNU/Linux dynamic linker is in use.
126414 dynamic_linker='GNU/Linux ld.so'
126417 netbsdelf*-gnu)
126418 version_type=linux
126419 need_lib_prefix=no
126420 need_version=no
126421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
126422 soname_spec='${libname}${release}${shared_ext}$major'
126423 shlibpath_var=LD_LIBRARY_PATH
126424 shlibpath_overrides_runpath=no
126425 hardcode_into_libs=yes
126426 dynamic_linker='NetBSD ld.elf_so'
126429 netbsd*)
126430 version_type=sunos
126431 need_lib_prefix=no
126432 need_version=no
126433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
126434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
126435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
126436 dynamic_linker='NetBSD (a.out) ld.so'
126438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
126439 soname_spec='${libname}${release}${shared_ext}$major'
126440 dynamic_linker='NetBSD ld.elf_so'
126442 shlibpath_var=LD_LIBRARY_PATH
126443 shlibpath_overrides_runpath=yes
126444 hardcode_into_libs=yes
126447 newsos6)
126448 version_type=linux
126449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
126450 shlibpath_var=LD_LIBRARY_PATH
126451 shlibpath_overrides_runpath=yes
126454 nto-qnx*)
126455 version_type=linux
126456 need_lib_prefix=no
126457 need_version=no
126458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
126459 soname_spec='${libname}${release}${shared_ext}$major'
126460 shlibpath_var=LD_LIBRARY_PATH
126461 shlibpath_overrides_runpath=yes
126464 openbsd*)
126465 version_type=sunos
126466 sys_lib_dlsearch_path_spec="/usr/lib"
126467 need_lib_prefix=no
126468 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
126469 case $host_os in
126470 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
126471 *) need_version=no ;;
126473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
126474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
126475 shlibpath_var=LD_LIBRARY_PATH
126476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
126477 case $host_os in
126478 openbsd2.[89] | openbsd2.[89].*)
126479 shlibpath_overrides_runpath=no
126482 shlibpath_overrides_runpath=yes
126486 shlibpath_overrides_runpath=yes
126490 os2*)
126491 libname_spec='$name'
126492 shrext_cmds=".dll"
126493 need_lib_prefix=no
126494 library_names_spec='$libname${shared_ext} $libname.a'
126495 dynamic_linker='OS/2 ld.exe'
126496 shlibpath_var=LIBPATH
126499 osf3* | osf4* | osf5*)
126500 version_type=osf
126501 need_lib_prefix=no
126502 need_version=no
126503 soname_spec='${libname}${release}${shared_ext}$major'
126504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
126505 shlibpath_var=LD_LIBRARY_PATH
126506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
126507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
126510 solaris*)
126511 version_type=linux
126512 need_lib_prefix=no
126513 need_version=no
126514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
126515 soname_spec='${libname}${release}${shared_ext}$major'
126516 shlibpath_var=LD_LIBRARY_PATH
126517 shlibpath_overrides_runpath=yes
126518 hardcode_into_libs=yes
126519 # ldd complains unless libraries are executable
126520 postinstall_cmds='chmod +x $lib'
126523 sunos4*)
126524 version_type=sunos
126525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
126526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
126527 shlibpath_var=LD_LIBRARY_PATH
126528 shlibpath_overrides_runpath=yes
126529 if test "$with_gnu_ld" = yes; then
126530 need_lib_prefix=no
126532 need_version=yes
126535 sysv4 | sysv4.3*)
126536 version_type=linux
126537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
126538 soname_spec='${libname}${release}${shared_ext}$major'
126539 shlibpath_var=LD_LIBRARY_PATH
126540 case $host_vendor in
126542 shlibpath_overrides_runpath=no
126543 need_lib_prefix=no
126544 export_dynamic_flag_spec='${wl}-Blargedynsym'
126545 runpath_var=LD_RUN_PATH
126547 siemens)
126548 need_lib_prefix=no
126550 motorola)
126551 need_lib_prefix=no
126552 need_version=no
126553 shlibpath_overrides_runpath=no
126554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
126559 sysv4*MP*)
126560 if test -d /usr/nec ;then
126561 version_type=linux
126562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
126563 soname_spec='$libname${shared_ext}.$major'
126564 shlibpath_var=LD_LIBRARY_PATH
126568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
126569 version_type=freebsd-elf
126570 need_lib_prefix=no
126571 need_version=no
126572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
126573 soname_spec='${libname}${release}${shared_ext}$major'
126574 shlibpath_var=LD_LIBRARY_PATH
126575 hardcode_into_libs=yes
126576 if test "$with_gnu_ld" = yes; then
126577 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
126578 shlibpath_overrides_runpath=no
126580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
126581 shlibpath_overrides_runpath=yes
126582 case $host_os in
126583 sco3.2v5*)
126584 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
126588 sys_lib_dlsearch_path_spec='/usr/lib'
126591 uts4*)
126592 version_type=linux
126593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
126594 soname_spec='${libname}${release}${shared_ext}$major'
126595 shlibpath_var=LD_LIBRARY_PATH
126599 dynamic_linker=no
126602 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
126603 echo "${ECHO_T}$dynamic_linker" >&6; }
126604 test "$dynamic_linker" = no && can_build_shared=no
126606 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
126607 if test "$GCC" = yes; then
126608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
126611 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
126612 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
126613 hardcode_action_CXX=
126614 if test -n "$hardcode_libdir_flag_spec_CXX" || \
126615 test -n "$runpath_var_CXX" || \
126616 test "X$hardcode_automatic_CXX" = "Xyes" ; then
126618 # We can hardcode non-existant directories.
126619 if test "$hardcode_direct_CXX" != no &&
126620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
126621 # have to relink, otherwise we might link with an installed library
126622 # when we should be linking with a yet-to-be-installed one
126623 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
126624 test "$hardcode_minus_L_CXX" != no; then
126625 # Linking always hardcodes the temporary library directory.
126626 hardcode_action_CXX=relink
126628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
126629 hardcode_action_CXX=immediate
126632 # We cannot hardcode anything, or else we can only hardcode existing
126633 # directories.
126634 hardcode_action_CXX=unsupported
126636 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
126637 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
126639 if test "$hardcode_action_CXX" = relink; then
126640 # Fast installation is not supported
126641 enable_fast_install=no
126642 elif test "$shlibpath_overrides_runpath" = yes ||
126643 test "$enable_shared" = no; then
126644 # Fast installation is not necessary
126645 enable_fast_install=needless
126649 # The else clause should only fire when bootstrapping the
126650 # libtool distribution, otherwise you forgot to ship ltmain.sh
126651 # with your package, and you will get complaints that there are
126652 # no rules to generate ltmain.sh.
126653 if test -f "$ltmain"; then
126654 # See if we are running on zsh, and set the options which allow our commands through
126655 # without removal of \ escapes.
126656 if test -n "${ZSH_VERSION+set}" ; then
126657 setopt NO_GLOB_SUBST
126659 # Now quote all the things that may contain metacharacters while being
126660 # careful not to overquote the AC_SUBSTed values. We take copies of the
126661 # variables and quote the copies for generation of the libtool script.
126662 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
126663 SED SHELL STRIP \
126664 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
126665 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
126666 deplibs_check_method reload_flag reload_cmds need_locks \
126667 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
126668 lt_cv_sys_global_symbol_to_c_name_address \
126669 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
126670 old_postinstall_cmds old_postuninstall_cmds \
126671 compiler_CXX \
126672 CC_CXX \
126673 LD_CXX \
126674 lt_prog_compiler_wl_CXX \
126675 lt_prog_compiler_pic_CXX \
126676 lt_prog_compiler_static_CXX \
126677 lt_prog_compiler_no_builtin_flag_CXX \
126678 export_dynamic_flag_spec_CXX \
126679 thread_safe_flag_spec_CXX \
126680 whole_archive_flag_spec_CXX \
126681 enable_shared_with_static_runtimes_CXX \
126682 old_archive_cmds_CXX \
126683 old_archive_from_new_cmds_CXX \
126684 predep_objects_CXX \
126685 postdep_objects_CXX \
126686 predeps_CXX \
126687 postdeps_CXX \
126688 compiler_lib_search_path_CXX \
126689 archive_cmds_CXX \
126690 archive_expsym_cmds_CXX \
126691 postinstall_cmds_CXX \
126692 postuninstall_cmds_CXX \
126693 old_archive_from_expsyms_cmds_CXX \
126694 allow_undefined_flag_CXX \
126695 no_undefined_flag_CXX \
126696 export_symbols_cmds_CXX \
126697 hardcode_libdir_flag_spec_CXX \
126698 hardcode_libdir_flag_spec_ld_CXX \
126699 hardcode_libdir_separator_CXX \
126700 hardcode_automatic_CXX \
126701 module_cmds_CXX \
126702 module_expsym_cmds_CXX \
126703 lt_cv_prog_compiler_c_o_CXX \
126704 exclude_expsyms_CXX \
126705 include_expsyms_CXX; do
126707 case $var in
126708 old_archive_cmds_CXX | \
126709 old_archive_from_new_cmds_CXX | \
126710 archive_cmds_CXX | \
126711 archive_expsym_cmds_CXX | \
126712 module_cmds_CXX | \
126713 module_expsym_cmds_CXX | \
126714 old_archive_from_expsyms_cmds_CXX | \
126715 export_symbols_cmds_CXX | \
126716 extract_expsyms_cmds | reload_cmds | finish_cmds | \
126717 postinstall_cmds | postuninstall_cmds | \
126718 old_postinstall_cmds | old_postuninstall_cmds | \
126719 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
126720 # Double-quote double-evaled strings.
126721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
126724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
126729 case $lt_echo in
126730 *'\$0 --fallback-echo"')
126731 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
126735 cfgfile="$ofile"
126737 cat <<__EOF__ >> "$cfgfile"
126738 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
126740 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
126742 # Shell to use when invoking shell scripts.
126743 SHELL=$lt_SHELL
126745 # Whether or not to build shared libraries.
126746 build_libtool_libs=$enable_shared
126748 # Whether or not to build static libraries.
126749 build_old_libs=$enable_static
126751 # Whether or not to add -lc for building shared libraries.
126752 build_libtool_need_lc=$archive_cmds_need_lc_CXX
126754 # Whether or not to disallow shared libs when runtime libs are static
126755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
126757 # Whether or not to optimize for fast installation.
126758 fast_install=$enable_fast_install
126760 # The host system.
126761 host_alias=$host_alias
126762 host=$host
126763 host_os=$host_os
126765 # The build system.
126766 build_alias=$build_alias
126767 build=$build
126768 build_os=$build_os
126770 # An echo program that does not interpret backslashes.
126771 echo=$lt_echo
126773 # The archiver.
126774 AR=$lt_AR
126775 AR_FLAGS=$lt_AR_FLAGS
126777 # A C compiler.
126778 LTCC=$lt_LTCC
126780 # LTCC compiler flags.
126781 LTCFLAGS=$lt_LTCFLAGS
126783 # A language-specific compiler.
126784 CC=$lt_compiler_CXX
126786 # Is the compiler the GNU C compiler?
126787 with_gcc=$GCC_CXX
126789 # An ERE matcher.
126790 EGREP=$lt_EGREP
126792 # The linker used to build libraries.
126793 LD=$lt_LD_CXX
126795 # Whether we need hard or soft links.
126796 LN_S=$lt_LN_S
126798 # A BSD-compatible nm program.
126799 NM=$lt_NM
126801 # A symbol stripping program
126802 STRIP=$lt_STRIP
126804 # Used to examine libraries when file_magic_cmd begins "file"
126805 MAGIC_CMD=$MAGIC_CMD
126807 # Used on cygwin: DLL creation program.
126808 DLLTOOL="$DLLTOOL"
126810 # Used on cygwin: object dumper.
126811 OBJDUMP="$OBJDUMP"
126813 # Used on cygwin: assembler.
126814 AS="$AS"
126816 # The name of the directory that contains temporary libtool files.
126817 objdir=$objdir
126819 # How to create reloadable object files.
126820 reload_flag=$lt_reload_flag
126821 reload_cmds=$lt_reload_cmds
126823 # How to pass a linker flag through the compiler.
126824 wl=$lt_lt_prog_compiler_wl_CXX
126826 # Object file suffix (normally "o").
126827 objext="$ac_objext"
126829 # Old archive suffix (normally "a").
126830 libext="$libext"
126832 # Shared library suffix (normally ".so").
126833 shrext_cmds='$shrext_cmds'
126835 # Executable file suffix (normally "").
126836 exeext="$exeext"
126838 # Additional compiler flags for building library objects.
126839 pic_flag=$lt_lt_prog_compiler_pic_CXX
126840 pic_mode=$pic_mode
126842 # What is the maximum length of a command?
126843 max_cmd_len=$lt_cv_sys_max_cmd_len
126845 # Does compiler simultaneously support -c and -o options?
126846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
126848 # Must we lock files when doing compilation?
126849 need_locks=$lt_need_locks
126851 # Do we need the lib prefix for modules?
126852 need_lib_prefix=$need_lib_prefix
126854 # Do we need a version for libraries?
126855 need_version=$need_version
126857 # Whether dlopen is supported.
126858 dlopen_support=$enable_dlopen
126860 # Whether dlopen of programs is supported.
126861 dlopen_self=$enable_dlopen_self
126863 # Whether dlopen of statically linked programs is supported.
126864 dlopen_self_static=$enable_dlopen_self_static
126866 # Compiler flag to prevent dynamic linking.
126867 link_static_flag=$lt_lt_prog_compiler_static_CXX
126869 # Compiler flag to turn off builtin functions.
126870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
126872 # Compiler flag to allow reflexive dlopens.
126873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
126875 # Compiler flag to generate shared objects directly from archives.
126876 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
126878 # Compiler flag to generate thread-safe objects.
126879 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
126881 # Library versioning type.
126882 version_type=$version_type
126884 # Format of library name prefix.
126885 libname_spec=$lt_libname_spec
126887 # List of archive names. First name is the real one, the rest are links.
126888 # The last name is the one that the linker finds with -lNAME.
126889 library_names_spec=$lt_library_names_spec
126891 # The coded name of the library, if different from the real name.
126892 soname_spec=$lt_soname_spec
126894 # Commands used to build and install an old-style archive.
126895 RANLIB=$lt_RANLIB
126896 old_archive_cmds=$lt_old_archive_cmds_CXX
126897 old_postinstall_cmds=$lt_old_postinstall_cmds
126898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
126900 # Create an old-style archive from a shared archive.
126901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
126903 # Create a temporary old-style archive to link instead of a shared archive.
126904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
126906 # Commands used to build and install a shared archive.
126907 archive_cmds=$lt_archive_cmds_CXX
126908 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
126909 postinstall_cmds=$lt_postinstall_cmds
126910 postuninstall_cmds=$lt_postuninstall_cmds
126912 # Commands used to build a loadable module (assumed same as above if empty)
126913 module_cmds=$lt_module_cmds_CXX
126914 module_expsym_cmds=$lt_module_expsym_cmds_CXX
126916 # Commands to strip libraries.
126917 old_striplib=$lt_old_striplib
126918 striplib=$lt_striplib
126920 # Dependencies to place before the objects being linked to create a
126921 # shared library.
126922 predep_objects=$lt_predep_objects_CXX
126924 # Dependencies to place after the objects being linked to create a
126925 # shared library.
126926 postdep_objects=$lt_postdep_objects_CXX
126928 # Dependencies to place before the objects being linked to create a
126929 # shared library.
126930 predeps=$lt_predeps_CXX
126932 # Dependencies to place after the objects being linked to create a
126933 # shared library.
126934 postdeps=$lt_postdeps_CXX
126936 # The library search path used internally by the compiler when linking
126937 # a shared library.
126938 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
126940 # Method to check whether dependent libraries are shared objects.
126941 deplibs_check_method=$lt_deplibs_check_method
126943 # Command to use when deplibs_check_method == file_magic.
126944 file_magic_cmd=$lt_file_magic_cmd
126946 # Flag that allows shared libraries with undefined symbols to be built.
126947 allow_undefined_flag=$lt_allow_undefined_flag_CXX
126949 # Flag that forces no undefined symbols.
126950 no_undefined_flag=$lt_no_undefined_flag_CXX
126952 # Commands used to finish a libtool library installation in a directory.
126953 finish_cmds=$lt_finish_cmds
126955 # Same as above, but a single script fragment to be evaled but not shown.
126956 finish_eval=$lt_finish_eval
126958 # Take the output of nm and produce a listing of raw symbols and C names.
126959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
126961 # Transform the output of nm in a proper C declaration
126962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
126964 # Transform the output of nm in a C name address pair
126965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
126967 # This is the shared library runtime path variable.
126968 runpath_var=$runpath_var
126970 # This is the shared library path variable.
126971 shlibpath_var=$shlibpath_var
126973 # Is shlibpath searched before the hard-coded library search path?
126974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
126976 # How to hardcode a shared library path into an executable.
126977 hardcode_action=$hardcode_action_CXX
126979 # Whether we should hardcode library paths into libraries.
126980 hardcode_into_libs=$hardcode_into_libs
126982 # Flag to hardcode \$libdir into a binary during linking.
126983 # This must work even if \$libdir does not exist.
126984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
126986 # If ld is used when linking, flag to hardcode \$libdir into
126987 # a binary during linking. This must work even if \$libdir does
126988 # not exist.
126989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
126991 # Whether we need a single -rpath flag with a separated argument.
126992 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
126994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
126995 # resulting binary.
126996 hardcode_direct=$hardcode_direct_CXX
126998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
126999 # resulting binary.
127000 hardcode_minus_L=$hardcode_minus_L_CXX
127002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
127003 # the resulting binary.
127004 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
127006 # Set to yes if building a shared library automatically hardcodes DIR into the library
127007 # and all subsequent libraries and executables linked against it.
127008 hardcode_automatic=$hardcode_automatic_CXX
127010 # Variables whose values should be saved in libtool wrapper scripts and
127011 # restored at relink time.
127012 variables_saved_for_relink="$variables_saved_for_relink"
127014 # Whether libtool must link a program against all its dependency libraries.
127015 link_all_deplibs=$link_all_deplibs_CXX
127017 # Compile-time system search path for libraries
127018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
127020 # Run-time system search path for libraries
127021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
127023 # Fix the shell variable \$srcfile for the compiler.
127024 fix_srcfile_path="$fix_srcfile_path_CXX"
127026 # Set to yes if exported symbols are required.
127027 always_export_symbols=$always_export_symbols_CXX
127029 # The commands to list exported symbols.
127030 export_symbols_cmds=$lt_export_symbols_cmds_CXX
127032 # The commands to extract the exported symbol list from a shared archive.
127033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
127035 # Symbols that should not be listed in the preloaded symbols.
127036 exclude_expsyms=$lt_exclude_expsyms_CXX
127038 # Symbols that must always be exported.
127039 include_expsyms=$lt_include_expsyms_CXX
127041 # ### END LIBTOOL TAG CONFIG: $tagname
127043 __EOF__
127047 # If there is no Makefile yet, we rely on a make rule to execute
127048 # `config.status --recheck' to rerun these tests and create the
127049 # libtool script then.
127050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
127051 if test -f "$ltmain_in"; then
127052 test -f Makefile && make "$ltmain"
127057 ac_ext=c
127058 ac_cpp='$CPP $CPPFLAGS'
127059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
127060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
127061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
127063 CC=$lt_save_CC
127064 LDCXX=$LD
127065 LD=$lt_save_LD
127066 GCC=$lt_save_GCC
127067 with_gnu_ldcxx=$with_gnu_ld
127068 with_gnu_ld=$lt_save_with_gnu_ld
127069 lt_cv_path_LDCXX=$lt_cv_path_LD
127070 lt_cv_path_LD=$lt_save_path_LD
127071 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
127072 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
127075 tagname=""
127080 if test -n "$F77" && test "X$F77" != "Xno"; then
127082 ac_ext=f
127083 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
127084 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
127085 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
127088 archive_cmds_need_lc_F77=no
127089 allow_undefined_flag_F77=
127090 always_export_symbols_F77=no
127091 archive_expsym_cmds_F77=
127092 export_dynamic_flag_spec_F77=
127093 hardcode_direct_F77=no
127094 hardcode_libdir_flag_spec_F77=
127095 hardcode_libdir_flag_spec_ld_F77=
127096 hardcode_libdir_separator_F77=
127097 hardcode_minus_L_F77=no
127098 hardcode_automatic_F77=no
127099 module_cmds_F77=
127100 module_expsym_cmds_F77=
127101 link_all_deplibs_F77=unknown
127102 old_archive_cmds_F77=$old_archive_cmds
127103 no_undefined_flag_F77=
127104 whole_archive_flag_spec_F77=
127105 enable_shared_with_static_runtimes_F77=no
127107 # Source file extension for f77 test sources.
127108 ac_ext=f
127110 # Object file extension for compiled f77 test sources.
127111 objext=o
127112 objext_F77=$objext
127114 # Code to be used in simple compile tests
127115 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
127117 # Code to be used in simple link tests
127118 lt_simple_link_test_code=" program t\n end\n"
127120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
127122 # If no C compiler was specified, use CC.
127123 LTCC=${LTCC-"$CC"}
127125 # If no C compiler flags were specified, use CFLAGS.
127126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
127128 # Allow CC to be a program name with arguments.
127129 compiler=$CC
127132 # save warnings/boilerplate of simple test code
127133 ac_outfile=conftest.$ac_objext
127134 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
127135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
127136 _lt_compiler_boilerplate=`cat conftest.err`
127137 $rm conftest*
127139 ac_outfile=conftest.$ac_objext
127140 printf "$lt_simple_link_test_code" >conftest.$ac_ext
127141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
127142 _lt_linker_boilerplate=`cat conftest.err`
127143 $rm conftest*
127146 # Allow CC to be a program name with arguments.
127147 lt_save_CC="$CC"
127148 CC=${F77-"f77"}
127149 compiler=$CC
127150 compiler_F77=$CC
127151 for cc_temp in $compiler""; do
127152 case $cc_temp in
127153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
127154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
127155 \-*) ;;
127156 *) break;;
127159 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
127162 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
127163 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
127164 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
127165 echo "${ECHO_T}$can_build_shared" >&6; }
127167 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
127168 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
127169 test "$can_build_shared" = "no" && enable_shared=no
127171 # On AIX, shared libraries and static libraries use the same namespace, and
127172 # are all built from PIC.
127173 case $host_os in
127174 aix3*)
127175 test "$enable_shared" = yes && enable_static=no
127176 if test -n "$RANLIB"; then
127177 archive_cmds="$archive_cmds~\$RANLIB \$lib"
127178 postinstall_cmds='$RANLIB $lib'
127181 aix4* | aix5*)
127182 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
127183 test "$enable_shared" = yes && enable_static=no
127187 { echo "$as_me:$LINENO: result: $enable_shared" >&5
127188 echo "${ECHO_T}$enable_shared" >&6; }
127190 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
127191 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
127192 # Make sure either enable_shared or enable_static is yes.
127193 test "$enable_shared" = yes || enable_static=yes
127194 { echo "$as_me:$LINENO: result: $enable_static" >&5
127195 echo "${ECHO_T}$enable_static" >&6; }
127197 GCC_F77="$G77"
127198 LD_F77="$LD"
127200 lt_prog_compiler_wl_F77=
127201 lt_prog_compiler_pic_F77=
127202 lt_prog_compiler_static_F77=
127204 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
127205 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
127207 if test "$GCC" = yes; then
127208 lt_prog_compiler_wl_F77='-Wl,'
127209 lt_prog_compiler_static_F77='-static'
127211 case $host_os in
127212 aix*)
127213 # All AIX code is PIC.
127214 if test "$host_cpu" = ia64; then
127215 # AIX 5 now supports IA64 processor
127216 lt_prog_compiler_static_F77='-Bstatic'
127220 amigaos*)
127221 # FIXME: we need at least 68020 code to build shared libraries, but
127222 # adding the `-m68020' flag to GCC prevents building anything better,
127223 # like `-m68040'.
127224 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
127227 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
127228 # PIC is the default for these OSes.
127231 mingw* | pw32* | os2*)
127232 # This hack is so that the source file can tell whether it is being
127233 # built for inclusion in a dll (and should export symbols for example).
127234 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
127237 darwin* | rhapsody*)
127238 # PIC is the default on this platform
127239 # Common symbols not allowed in MH_DYLIB files
127240 lt_prog_compiler_pic_F77='-fno-common'
127243 interix3*)
127244 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
127245 # Instead, we relocate shared libraries at runtime.
127248 msdosdjgpp*)
127249 # Just because we use GCC doesn't mean we suddenly get shared libraries
127250 # on systems that don't support them.
127251 lt_prog_compiler_can_build_shared_F77=no
127252 enable_shared=no
127255 sysv4*MP*)
127256 if test -d /usr/nec; then
127257 lt_prog_compiler_pic_F77=-Kconform_pic
127261 hpux*)
127262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
127263 # not for PA HP-UX.
127264 case $host_cpu in
127265 hppa*64*|ia64*)
127266 # +Z the default
127269 lt_prog_compiler_pic_F77='-fPIC'
127275 lt_prog_compiler_pic_F77='-fPIC'
127279 # PORTME Check for flag to pass linker flags through the system compiler.
127280 case $host_os in
127281 aix*)
127282 lt_prog_compiler_wl_F77='-Wl,'
127283 if test "$host_cpu" = ia64; then
127284 # AIX 5 now supports IA64 processor
127285 lt_prog_compiler_static_F77='-Bstatic'
127287 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
127290 darwin*)
127291 # PIC is the default on this platform
127292 # Common symbols not allowed in MH_DYLIB files
127293 case $cc_basename in
127294 xlc*)
127295 lt_prog_compiler_pic_F77='-qnocommon'
127296 lt_prog_compiler_wl_F77='-Wl,'
127301 mingw* | pw32* | os2*)
127302 # This hack is so that the source file can tell whether it is being
127303 # built for inclusion in a dll (and should export symbols for example).
127304 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
127307 hpux9* | hpux10* | hpux11*)
127308 lt_prog_compiler_wl_F77='-Wl,'
127309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
127310 # not for PA HP-UX.
127311 case $host_cpu in
127312 hppa*64*|ia64*)
127313 # +Z the default
127316 lt_prog_compiler_pic_F77='+Z'
127319 # Is there a better lt_prog_compiler_static that works with the bundled CC?
127320 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
127323 irix5* | irix6* | nonstopux*)
127324 lt_prog_compiler_wl_F77='-Wl,'
127325 # PIC (with -KPIC) is the default.
127326 lt_prog_compiler_static_F77='-non_shared'
127329 newsos6)
127330 lt_prog_compiler_pic_F77='-KPIC'
127331 lt_prog_compiler_static_F77='-Bstatic'
127334 linux* | k*bsd*-gnu)
127335 case $cc_basename in
127336 icc* | ecc*)
127337 lt_prog_compiler_wl_F77='-Wl,'
127338 lt_prog_compiler_pic_F77='-KPIC'
127339 lt_prog_compiler_static_F77='-static'
127341 pgcc* | pgf77* | pgf90* | pgf95*)
127342 # Portland Group compilers (*not* the Pentium gcc compiler,
127343 # which looks to be a dead project)
127344 lt_prog_compiler_wl_F77='-Wl,'
127345 lt_prog_compiler_pic_F77='-fpic'
127346 lt_prog_compiler_static_F77='-Bstatic'
127348 ccc*)
127349 lt_prog_compiler_wl_F77='-Wl,'
127350 # All Alpha code is PIC.
127351 lt_prog_compiler_static_F77='-non_shared'
127356 osf3* | osf4* | osf5*)
127357 lt_prog_compiler_wl_F77='-Wl,'
127358 # All OSF/1 code is PIC.
127359 lt_prog_compiler_static_F77='-non_shared'
127362 solaris*)
127363 lt_prog_compiler_pic_F77='-KPIC'
127364 lt_prog_compiler_static_F77='-Bstatic'
127365 case $cc_basename in
127366 f77* | f90* | f95*)
127367 lt_prog_compiler_wl_F77='-Qoption ld ';;
127369 lt_prog_compiler_wl_F77='-Wl,';;
127373 sunos4*)
127374 lt_prog_compiler_wl_F77='-Qoption ld '
127375 lt_prog_compiler_pic_F77='-PIC'
127376 lt_prog_compiler_static_F77='-Bstatic'
127379 sysv4 | sysv4.2uw2* | sysv4.3*)
127380 lt_prog_compiler_wl_F77='-Wl,'
127381 lt_prog_compiler_pic_F77='-KPIC'
127382 lt_prog_compiler_static_F77='-Bstatic'
127385 sysv4*MP*)
127386 if test -d /usr/nec ;then
127387 lt_prog_compiler_pic_F77='-Kconform_pic'
127388 lt_prog_compiler_static_F77='-Bstatic'
127392 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
127393 lt_prog_compiler_wl_F77='-Wl,'
127394 lt_prog_compiler_pic_F77='-KPIC'
127395 lt_prog_compiler_static_F77='-Bstatic'
127398 unicos*)
127399 lt_prog_compiler_wl_F77='-Wl,'
127400 lt_prog_compiler_can_build_shared_F77=no
127403 uts4*)
127404 lt_prog_compiler_pic_F77='-pic'
127405 lt_prog_compiler_static_F77='-Bstatic'
127409 lt_prog_compiler_can_build_shared_F77=no
127414 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
127415 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
127418 # Check to make sure the PIC flag actually works.
127420 if test -n "$lt_prog_compiler_pic_F77"; then
127422 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
127423 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
127424 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
127425 echo $ECHO_N "(cached) $ECHO_C" >&6
127427 lt_prog_compiler_pic_works_F77=no
127428 ac_outfile=conftest.$ac_objext
127429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
127430 lt_compiler_flag="$lt_prog_compiler_pic_F77"
127431 # Insert the option either (1) after the last *FLAGS variable, or
127432 # (2) before a word containing "conftest.", or (3) at the end.
127433 # Note that $ac_compile itself does not contain backslashes and begins
127434 # with a dollar sign (not a hyphen), so the echo should work correctly.
127435 # The option is referenced via a variable to avoid confusing sed.
127436 lt_compile=`echo "$ac_compile" | $SED \
127437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
127438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
127439 -e 's:$: $lt_compiler_flag:'`
127440 (eval echo "\"\$as_me:127440: $lt_compile\"" >&5)
127441 (eval "$lt_compile" 2>conftest.err)
127442 ac_status=$?
127443 cat conftest.err >&5
127444 echo "$as_me:127444: \$? = $ac_status" >&5
127445 if (exit $ac_status) && test -s "$ac_outfile"; then
127446 # The compiler can only warn and ignore the option if not recognized
127447 # So say no if there are warnings other than the usual output.
127448 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
127449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
127450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
127451 lt_prog_compiler_pic_works_F77=yes
127454 $rm conftest*
127457 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
127458 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
127460 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
127461 case $lt_prog_compiler_pic_F77 in
127462 "" | " "*) ;;
127463 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
127466 lt_prog_compiler_pic_F77=
127467 lt_prog_compiler_can_build_shared_F77=no
127471 case $host_os in
127472 # For platforms which do not support PIC, -DPIC is meaningless:
127473 *djgpp*)
127474 lt_prog_compiler_pic_F77=
127477 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
127482 # Check to make sure the static flag actually works.
127484 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
127485 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
127486 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
127487 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
127488 echo $ECHO_N "(cached) $ECHO_C" >&6
127490 lt_prog_compiler_static_works_F77=no
127491 save_LDFLAGS="$LDFLAGS"
127492 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
127493 printf "$lt_simple_link_test_code" > conftest.$ac_ext
127494 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
127495 # The linker can only warn and ignore the option if not recognized
127496 # So say no if there are warnings
127497 if test -s conftest.err; then
127498 # Append any errors to the config.log.
127499 cat conftest.err 1>&5
127500 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
127501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
127502 if diff conftest.exp conftest.er2 >/dev/null; then
127503 lt_prog_compiler_static_works_F77=yes
127506 lt_prog_compiler_static_works_F77=yes
127509 $rm conftest*
127510 LDFLAGS="$save_LDFLAGS"
127513 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
127514 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
127516 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
127519 lt_prog_compiler_static_F77=
127523 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
127524 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
127525 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
127526 echo $ECHO_N "(cached) $ECHO_C" >&6
127528 lt_cv_prog_compiler_c_o_F77=no
127529 $rm -r conftest 2>/dev/null
127530 mkdir conftest
127531 cd conftest
127532 mkdir out
127533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
127535 lt_compiler_flag="-o out/conftest2.$ac_objext"
127536 # Insert the option either (1) after the last *FLAGS variable, or
127537 # (2) before a word containing "conftest.", or (3) at the end.
127538 # Note that $ac_compile itself does not contain backslashes and begins
127539 # with a dollar sign (not a hyphen), so the echo should work correctly.
127540 lt_compile=`echo "$ac_compile" | $SED \
127541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
127542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
127543 -e 's:$: $lt_compiler_flag:'`
127544 (eval echo "\"\$as_me:127544: $lt_compile\"" >&5)
127545 (eval "$lt_compile" 2>out/conftest.err)
127546 ac_status=$?
127547 cat out/conftest.err >&5
127548 echo "$as_me:127548: \$? = $ac_status" >&5
127549 if (exit $ac_status) && test -s out/conftest2.$ac_objext
127551 # The compiler can only warn and ignore the option if not recognized
127552 # So say no if there are warnings
127553 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
127554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
127555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
127556 lt_cv_prog_compiler_c_o_F77=yes
127559 chmod u+w . 2>&5
127560 $rm conftest*
127561 # SGI C++ compiler will create directory out/ii_files/ for
127562 # template instantiation
127563 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
127564 $rm out/* && rmdir out
127565 cd ..
127566 rmdir conftest
127567 $rm conftest*
127570 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
127571 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
127574 hard_links="nottested"
127575 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
127576 # do not overwrite the value of need_locks provided by the user
127577 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
127578 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
127579 hard_links=yes
127580 $rm conftest*
127581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
127582 touch conftest.a
127583 ln conftest.a conftest.b 2>&5 || hard_links=no
127584 ln conftest.a conftest.b 2>/dev/null && hard_links=no
127585 { echo "$as_me:$LINENO: result: $hard_links" >&5
127586 echo "${ECHO_T}$hard_links" >&6; }
127587 if test "$hard_links" = no; then
127588 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
127589 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
127590 need_locks=warn
127593 need_locks=no
127596 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
127597 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
127599 runpath_var=
127600 allow_undefined_flag_F77=
127601 enable_shared_with_static_runtimes_F77=no
127602 archive_cmds_F77=
127603 archive_expsym_cmds_F77=
127604 old_archive_From_new_cmds_F77=
127605 old_archive_from_expsyms_cmds_F77=
127606 export_dynamic_flag_spec_F77=
127607 whole_archive_flag_spec_F77=
127608 thread_safe_flag_spec_F77=
127609 hardcode_libdir_flag_spec_F77=
127610 hardcode_libdir_flag_spec_ld_F77=
127611 hardcode_libdir_separator_F77=
127612 hardcode_direct_F77=no
127613 hardcode_minus_L_F77=no
127614 hardcode_shlibpath_var_F77=unsupported
127615 link_all_deplibs_F77=unknown
127616 hardcode_automatic_F77=no
127617 module_cmds_F77=
127618 module_expsym_cmds_F77=
127619 always_export_symbols_F77=no
127620 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
127621 # include_expsyms should be a list of space-separated symbols to be *always*
127622 # included in the symbol list
127623 include_expsyms_F77=
127624 # exclude_expsyms can be an extended regexp of symbols to exclude
127625 # it will be wrapped by ` (' and `)$', so one must not match beginning or
127626 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
127627 # as well as any symbol that contains `d'.
127628 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
127629 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
127630 # platforms (ab)use it in PIC code, but their linkers get confused if
127631 # the symbol is explicitly referenced. Since portable code cannot
127632 # rely on this symbol name, it's probably fine to never include it in
127633 # preloaded symbol tables.
127634 extract_expsyms_cmds=
127635 # Just being paranoid about ensuring that cc_basename is set.
127636 for cc_temp in $compiler""; do
127637 case $cc_temp in
127638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
127639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
127640 \-*) ;;
127641 *) break;;
127644 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
127646 case $host_os in
127647 cygwin* | mingw* | pw32*)
127648 # FIXME: the MSVC++ port hasn't been tested in a loooong time
127649 # When not using gcc, we currently assume that we are using
127650 # Microsoft Visual C++.
127651 if test "$GCC" != yes; then
127652 with_gnu_ld=no
127655 interix*)
127656 # we just hope/assume this is gcc and not c89 (= MSVC++)
127657 with_gnu_ld=yes
127659 openbsd*)
127660 with_gnu_ld=no
127664 ld_shlibs_F77=yes
127665 if test "$with_gnu_ld" = yes; then
127666 # If archive_cmds runs LD, not CC, wlarc should be empty
127667 wlarc='${wl}'
127669 # Set some defaults for GNU ld with shared library support. These
127670 # are reset later if shared libraries are not supported. Putting them
127671 # here allows them to be overridden if necessary.
127672 runpath_var=LD_RUN_PATH
127673 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
127674 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
127675 # ancient GNU ld didn't support --whole-archive et. al.
127676 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
127677 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
127679 whole_archive_flag_spec_F77=
127681 supports_anon_versioning=no
127682 case `$LD -v 2>/dev/null` in
127683 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
127684 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
127685 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
127686 *\ 2.11.*) ;; # other 2.11 versions
127687 *) supports_anon_versioning=yes ;;
127690 # See if GNU ld supports shared libraries.
127691 case $host_os in
127692 aix3* | aix4* | aix5*)
127693 # On AIX/PPC, the GNU linker is very broken
127694 if test "$host_cpu" != ia64; then
127695 ld_shlibs_F77=no
127696 cat <<EOF 1>&2
127698 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
127699 *** to be unable to reliably create shared libraries on AIX.
127700 *** Therefore, libtool is disabling shared libraries support. If you
127701 *** really care for shared libraries, you may want to modify your PATH
127702 *** so that a non-GNU linker is found, and then restart.
127708 amigaos*)
127709 archive_cmds_F77='$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)'
127710 hardcode_libdir_flag_spec_F77='-L$libdir'
127711 hardcode_minus_L_F77=yes
127713 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
127714 # that the semantics of dynamic libraries on AmigaOS, at least up
127715 # to version 4, is to share data among multiple programs linked
127716 # with the same dynamic library. Since this doesn't match the
127717 # behavior of shared libraries on other platforms, we can't use
127718 # them.
127719 ld_shlibs_F77=no
127722 beos*)
127723 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
127724 allow_undefined_flag_F77=unsupported
127725 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
127726 # support --undefined. This deserves some investigation. FIXME
127727 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
127729 ld_shlibs_F77=no
127733 cygwin* | mingw* | pw32*)
127734 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
127735 # as there is no search path for DLLs.
127736 hardcode_libdir_flag_spec_F77='-L$libdir'
127737 allow_undefined_flag_F77=unsupported
127738 always_export_symbols_F77=no
127739 enable_shared_with_static_runtimes_F77=yes
127740 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
127742 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
127743 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
127744 # If the export-symbols file already is a .def file (1st line
127745 # is EXPORTS), use it as is; otherwise, prepend...
127746 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
127747 cp $export_symbols $output_objdir/$soname.def;
127749 echo EXPORTS > $output_objdir/$soname.def;
127750 cat $export_symbols >> $output_objdir/$soname.def;
127752 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
127754 ld_shlibs_F77=no
127758 interix3*)
127759 hardcode_direct_F77=no
127760 hardcode_shlibpath_var_F77=no
127761 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
127762 export_dynamic_flag_spec_F77='${wl}-E'
127763 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
127764 # Instead, shared libraries are loaded at an image base (0x10000000 by
127765 # default) and relocated if they conflict, which is a slow very memory
127766 # consuming and fragmenting process. To avoid this, we pick a random,
127767 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
127768 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
127769 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
127770 archive_expsym_cmds_F77='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'
127773 linux* | k*bsd*-gnu)
127774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
127775 tmp_addflag=
127776 case $cc_basename,$host_cpu in
127777 pgcc*) # Portland Group C compiler
127778 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
127779 tmp_addflag=' $pic_flag'
127781 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
127782 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
127783 tmp_addflag=' $pic_flag -Mnomain' ;;
127784 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
127785 tmp_addflag=' -i_dynamic' ;;
127786 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
127787 tmp_addflag=' -i_dynamic -nofor_main' ;;
127788 ifc* | ifort*) # Intel Fortran compiler
127789 tmp_addflag=' -nofor_main' ;;
127791 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
127793 if test $supports_anon_versioning = yes; then
127794 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
127795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
127796 $echo "local: *; };" >> $output_objdir/$libname.ver~
127797 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
127799 link_all_deplibs_F77=no
127801 ld_shlibs_F77=no
127805 netbsd* | netbsdelf*-gnu)
127806 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
127807 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
127808 wlarc=
127810 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
127811 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
127815 solaris*)
127816 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
127817 ld_shlibs_F77=no
127818 cat <<EOF 1>&2
127820 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
127821 *** create shared libraries on Solaris systems. Therefore, libtool
127822 *** is disabling shared libraries support. We urge you to upgrade GNU
127823 *** binutils to release 2.9.1 or newer. Another option is to modify
127824 *** your PATH or compiler configuration so that the native linker is
127825 *** used, and then restart.
127828 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
127829 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
127830 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
127832 ld_shlibs_F77=no
127836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
127837 case `$LD -v 2>&1` in
127838 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
127839 ld_shlibs_F77=no
127840 cat <<_LT_EOF 1>&2
127842 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
127843 *** reliably create shared libraries on SCO systems. Therefore, libtool
127844 *** is disabling shared libraries support. We urge you to upgrade GNU
127845 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
127846 *** your PATH or compiler configuration so that the native linker is
127847 *** used, and then restart.
127849 _LT_EOF
127852 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
127853 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
127854 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
127855 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
127857 ld_shlibs_F77=no
127863 sunos4*)
127864 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
127865 wlarc=
127866 hardcode_direct_F77=yes
127867 hardcode_shlibpath_var_F77=no
127871 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
127872 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
127873 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
127875 ld_shlibs_F77=no
127880 if test "$ld_shlibs_F77" = no; then
127881 runpath_var=
127882 hardcode_libdir_flag_spec_F77=
127883 export_dynamic_flag_spec_F77=
127884 whole_archive_flag_spec_F77=
127887 # PORTME fill in a description of your system's linker (not GNU ld)
127888 case $host_os in
127889 aix3*)
127890 allow_undefined_flag_F77=unsupported
127891 always_export_symbols_F77=yes
127892 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
127893 # Note: this linker hardcodes the directories in LIBPATH if there
127894 # are no directories specified by -L.
127895 hardcode_minus_L_F77=yes
127896 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
127897 # Neither direct hardcoding nor static linking is supported with a
127898 # broken collect2.
127899 hardcode_direct_F77=unsupported
127903 aix4* | aix5*)
127904 if test "$host_cpu" = ia64; then
127905 # On IA64, the linker does run time linking by default, so we don't
127906 # have to do anything special.
127907 aix_use_runtimelinking=no
127908 exp_sym_flag='-Bexport'
127909 no_entry_flag=""
127911 # If we're using GNU nm, then we don't want the "-C" option.
127912 # -C means demangle to AIX nm, but means don't demangle with GNU nm
127913 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
127914 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
127916 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
127918 aix_use_runtimelinking=no
127920 # Test if we are trying to use run time linking or normal
127921 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
127922 # need to do runtime linking.
127923 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
127924 for ld_flag in $LDFLAGS; do
127925 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
127926 aix_use_runtimelinking=yes
127927 break
127933 exp_sym_flag='-bexport'
127934 no_entry_flag='-bnoentry'
127937 # When large executables or shared objects are built, AIX ld can
127938 # have problems creating the table of contents. If linking a library
127939 # or program results in "error TOC overflow" add -mminimal-toc to
127940 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
127941 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
127943 archive_cmds_F77=''
127944 hardcode_direct_F77=yes
127945 hardcode_libdir_separator_F77=':'
127946 link_all_deplibs_F77=yes
127948 if test "$GCC" = yes; then
127949 case $host_os in aix4.[012]|aix4.[012].*)
127950 # We only want to do this on AIX 4.2 and lower, the check
127951 # below for broken collect2 doesn't work under 4.3+
127952 collect2name=`${CC} -print-prog-name=collect2`
127953 if test -f "$collect2name" && \
127954 strings "$collect2name" | grep resolve_lib_name >/dev/null
127956 # We have reworked collect2
127957 hardcode_direct_F77=yes
127959 # We have old collect2
127960 hardcode_direct_F77=unsupported
127961 # It fails to find uninstalled libraries when the uninstalled
127962 # path is not listed in the libpath. Setting hardcode_minus_L
127963 # to unsupported forces relinking
127964 hardcode_minus_L_F77=yes
127965 hardcode_libdir_flag_spec_F77='-L$libdir'
127966 hardcode_libdir_separator_F77=
127970 shared_flag='-shared'
127971 if test "$aix_use_runtimelinking" = yes; then
127972 shared_flag="$shared_flag "'${wl}-G'
127975 # not using gcc
127976 if test "$host_cpu" = ia64; then
127977 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
127978 # chokes on -Wl,-G. The following line is correct:
127979 shared_flag='-G'
127981 if test "$aix_use_runtimelinking" = yes; then
127982 shared_flag='${wl}-G'
127984 shared_flag='${wl}-bM:SRE'
127989 # It seems that -bexpall does not export symbols beginning with
127990 # underscore (_), so it is better to generate a list of symbols to export.
127991 always_export_symbols_F77=yes
127992 if test "$aix_use_runtimelinking" = yes; then
127993 # Warning - without using the other runtime loading flags (-brtl),
127994 # -berok will link without error, but may produce a broken library.
127995 allow_undefined_flag_F77='-berok'
127996 # Determine the default libpath from the value encoded in an empty executable.
127997 cat >conftest.$ac_ext <<_ACEOF
127998 program main
128001 _ACEOF
128002 rm -f conftest.$ac_objext conftest$ac_exeext
128003 if { (ac_try="$ac_link"
128004 case "(($ac_try" in
128005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
128006 *) ac_try_echo=$ac_try;;
128008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
128009 (eval "$ac_link") 2>conftest.er1
128010 ac_status=$?
128011 grep -v '^ *+' conftest.er1 >conftest.err
128012 rm -f conftest.er1
128013 cat conftest.err >&5
128014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
128015 (exit $ac_status); } && {
128016 test -z "$ac_f77_werror_flag" ||
128017 test ! -s conftest.err
128018 } && test -s conftest$ac_exeext &&
128019 $as_test_x conftest$ac_exeext; then
128021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
128023 # Check for a 64-bit object if we didn't find anything.
128024 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
128025 }'`; fi
128027 echo "$as_me: failed program was:" >&5
128028 sed 's/^/| /' conftest.$ac_ext >&5
128033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
128034 conftest$ac_exeext conftest.$ac_ext
128035 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
128037 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
128038 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
128040 if test "$host_cpu" = ia64; then
128041 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
128042 allow_undefined_flag_F77="-z nodefs"
128043 archive_expsym_cmds_F77="\$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"
128045 # Determine the default libpath from the value encoded in an empty executable.
128046 cat >conftest.$ac_ext <<_ACEOF
128047 program main
128050 _ACEOF
128051 rm -f conftest.$ac_objext conftest$ac_exeext
128052 if { (ac_try="$ac_link"
128053 case "(($ac_try" in
128054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
128055 *) ac_try_echo=$ac_try;;
128057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
128058 (eval "$ac_link") 2>conftest.er1
128059 ac_status=$?
128060 grep -v '^ *+' conftest.er1 >conftest.err
128061 rm -f conftest.er1
128062 cat conftest.err >&5
128063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
128064 (exit $ac_status); } && {
128065 test -z "$ac_f77_werror_flag" ||
128066 test ! -s conftest.err
128067 } && test -s conftest$ac_exeext &&
128068 $as_test_x conftest$ac_exeext; then
128070 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
128072 # Check for a 64-bit object if we didn't find anything.
128073 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
128074 }'`; fi
128076 echo "$as_me: failed program was:" >&5
128077 sed 's/^/| /' conftest.$ac_ext >&5
128082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
128083 conftest$ac_exeext conftest.$ac_ext
128084 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
128086 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
128087 # Warning - without using the other run time loading flags,
128088 # -berok will link without error, but may produce a broken library.
128089 no_undefined_flag_F77=' ${wl}-bernotok'
128090 allow_undefined_flag_F77=' ${wl}-berok'
128091 # Exported symbols can be pulled into shared objects from archives
128092 whole_archive_flag_spec_F77='$convenience'
128093 archive_cmds_need_lc_F77=yes
128094 # This is similar to how AIX traditionally builds its shared libraries.
128095 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
128100 amigaos*)
128101 archive_cmds_F77='$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)'
128102 hardcode_libdir_flag_spec_F77='-L$libdir'
128103 hardcode_minus_L_F77=yes
128104 # see comment about different semantics on the GNU ld section
128105 ld_shlibs_F77=no
128108 bsdi[45]*)
128109 export_dynamic_flag_spec_F77=-rdynamic
128112 cygwin* | mingw* | pw32*)
128113 # When not using gcc, we currently assume that we are using
128114 # Microsoft Visual C++.
128115 # hardcode_libdir_flag_spec is actually meaningless, as there is
128116 # no search path for DLLs.
128117 hardcode_libdir_flag_spec_F77=' '
128118 allow_undefined_flag_F77=unsupported
128119 # Tell ltmain to make .lib files, not .a files.
128120 libext=lib
128121 # Tell ltmain to make .dll files, not .so files.
128122 shrext_cmds=".dll"
128123 # FIXME: Setting linknames here is a bad hack.
128124 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
128125 # The linker will automatically build a .lib file if we build a DLL.
128126 old_archive_From_new_cmds_F77='true'
128127 # FIXME: Should let the user specify the lib program.
128128 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
128129 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
128130 enable_shared_with_static_runtimes_F77=yes
128133 darwin* | rhapsody*)
128134 case $host_os in
128135 rhapsody* | darwin1.[012])
128136 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
128138 *) # Darwin 1.3 on
128139 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
128140 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
128142 case ${MACOSX_DEPLOYMENT_TARGET} in
128143 10.[012])
128144 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
128146 10.*)
128147 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
128153 archive_cmds_need_lc_F77=no
128154 hardcode_direct_F77=no
128155 hardcode_automatic_F77=yes
128156 hardcode_shlibpath_var_F77=unsupported
128157 whole_archive_flag_spec_F77=''
128158 link_all_deplibs_F77=yes
128159 if test "$GCC" = yes ; then
128160 output_verbose_link_cmd='echo'
128161 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
128162 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
128163 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
128164 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
128165 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
128167 case $cc_basename in
128168 xlc*)
128169 output_verbose_link_cmd='echo'
128170 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
128171 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
128172 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
128173 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
128174 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
128177 ld_shlibs_F77=no
128183 dgux*)
128184 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
128185 hardcode_libdir_flag_spec_F77='-L$libdir'
128186 hardcode_shlibpath_var_F77=no
128189 freebsd1*)
128190 ld_shlibs_F77=no
128193 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
128194 # support. Future versions do this automatically, but an explicit c++rt0.o
128195 # does not break anything, and helps significantly (at the cost of a little
128196 # extra space).
128197 freebsd2.2*)
128198 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
128199 hardcode_libdir_flag_spec_F77='-R$libdir'
128200 hardcode_direct_F77=yes
128201 hardcode_shlibpath_var_F77=no
128204 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
128205 freebsd2*)
128206 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
128207 hardcode_direct_F77=yes
128208 hardcode_minus_L_F77=yes
128209 hardcode_shlibpath_var_F77=no
128212 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
128213 freebsd* | dragonfly*)
128214 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
128215 hardcode_libdir_flag_spec_F77='-R$libdir'
128216 hardcode_direct_F77=yes
128217 hardcode_shlibpath_var_F77=no
128220 hpux9*)
128221 if test "$GCC" = yes; then
128222 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
128224 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
128226 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
128227 hardcode_libdir_separator_F77=:
128228 hardcode_direct_F77=yes
128230 # hardcode_minus_L: Not really in the search PATH,
128231 # but as the default location of the library.
128232 hardcode_minus_L_F77=yes
128233 export_dynamic_flag_spec_F77='${wl}-E'
128236 hpux10*)
128237 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
128238 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
128240 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
128242 if test "$with_gnu_ld" = no; then
128243 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
128244 hardcode_libdir_separator_F77=:
128246 hardcode_direct_F77=yes
128247 export_dynamic_flag_spec_F77='${wl}-E'
128249 # hardcode_minus_L: Not really in the search PATH,
128250 # but as the default location of the library.
128251 hardcode_minus_L_F77=yes
128255 hpux11*)
128256 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
128257 case $host_cpu in
128258 hppa*64*)
128259 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
128261 ia64*)
128262 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
128265 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
128269 case $host_cpu in
128270 hppa*64*)
128271 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
128273 ia64*)
128274 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
128277 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
128281 if test "$with_gnu_ld" = no; then
128282 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
128283 hardcode_libdir_separator_F77=:
128285 case $host_cpu in
128286 hppa*64*|ia64*)
128287 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
128288 hardcode_direct_F77=no
128289 hardcode_shlibpath_var_F77=no
128292 hardcode_direct_F77=yes
128293 export_dynamic_flag_spec_F77='${wl}-E'
128295 # hardcode_minus_L: Not really in the search PATH,
128296 # but as the default location of the library.
128297 hardcode_minus_L_F77=yes
128303 irix5* | irix6* | nonstopux*)
128304 if test "$GCC" = yes; then
128305 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
128307 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
128308 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
128310 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
128311 hardcode_libdir_separator_F77=:
128312 link_all_deplibs_F77=yes
128315 netbsd* | netbsdelf*-gnu)
128316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
128317 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
128319 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
128321 hardcode_libdir_flag_spec_F77='-R$libdir'
128322 hardcode_direct_F77=yes
128323 hardcode_shlibpath_var_F77=no
128326 newsos6)
128327 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
128328 hardcode_direct_F77=yes
128329 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
128330 hardcode_libdir_separator_F77=:
128331 hardcode_shlibpath_var_F77=no
128334 openbsd*)
128335 hardcode_direct_F77=yes
128336 hardcode_shlibpath_var_F77=no
128337 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
128338 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
128339 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
128340 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
128341 export_dynamic_flag_spec_F77='${wl}-E'
128343 case $host_os in
128344 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
128345 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
128346 hardcode_libdir_flag_spec_F77='-R$libdir'
128349 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
128350 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
128356 os2*)
128357 hardcode_libdir_flag_spec_F77='-L$libdir'
128358 hardcode_minus_L_F77=yes
128359 allow_undefined_flag_F77=unsupported
128360 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
128361 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
128364 osf3*)
128365 if test "$GCC" = yes; then
128366 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
128367 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
128369 allow_undefined_flag_F77=' -expect_unresolved \*'
128370 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
128372 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
128373 hardcode_libdir_separator_F77=:
128376 osf4* | osf5*) # as osf3* with the addition of -msym flag
128377 if test "$GCC" = yes; then
128378 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
128379 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
128380 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
128382 allow_undefined_flag_F77=' -expect_unresolved \*'
128383 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
128384 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
128385 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
128387 # Both c and cxx compiler support -rpath directly
128388 hardcode_libdir_flag_spec_F77='-rpath $libdir'
128390 hardcode_libdir_separator_F77=:
128393 solaris*)
128394 no_undefined_flag_F77=' -z text'
128395 if test "$GCC" = yes; then
128396 wlarc='${wl}'
128397 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
128398 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
128399 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
128401 wlarc=''
128402 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
128403 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
128404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
128406 hardcode_libdir_flag_spec_F77='-R$libdir'
128407 hardcode_shlibpath_var_F77=no
128408 case $host_os in
128409 solaris2.[0-5] | solaris2.[0-5].*) ;;
128411 # The compiler driver will combine linker options so we
128412 # cannot just pass the convience library names through
128413 # without $wl, iff we do not link with $LD.
128414 # Luckily, gcc supports the same syntax we need for Sun Studio.
128415 # Supported since Solaris 2.6 (maybe 2.5.1?)
128416 case $wlarc in
128418 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
128420 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
128421 esac ;;
128423 link_all_deplibs_F77=yes
128426 sunos4*)
128427 if test "x$host_vendor" = xsequent; then
128428 # Use $CC to link under sequent, because it throws in some extra .o
128429 # files that make .init and .fini sections work.
128430 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
128432 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
128434 hardcode_libdir_flag_spec_F77='-L$libdir'
128435 hardcode_direct_F77=yes
128436 hardcode_minus_L_F77=yes
128437 hardcode_shlibpath_var_F77=no
128440 sysv4)
128441 case $host_vendor in
128443 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
128444 hardcode_direct_F77=yes # is this really true???
128446 siemens)
128447 ## LD is ld it makes a PLAMLIB
128448 ## CC just makes a GrossModule.
128449 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
128450 reload_cmds_F77='$CC -r -o $output$reload_objs'
128451 hardcode_direct_F77=no
128453 motorola)
128454 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
128455 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
128458 runpath_var='LD_RUN_PATH'
128459 hardcode_shlibpath_var_F77=no
128462 sysv4.3*)
128463 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
128464 hardcode_shlibpath_var_F77=no
128465 export_dynamic_flag_spec_F77='-Bexport'
128468 sysv4*MP*)
128469 if test -d /usr/nec; then
128470 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
128471 hardcode_shlibpath_var_F77=no
128472 runpath_var=LD_RUN_PATH
128473 hardcode_runpath_var=yes
128474 ld_shlibs_F77=yes
128478 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
128479 no_undefined_flag_F77='${wl}-z,text'
128480 archive_cmds_need_lc_F77=no
128481 hardcode_shlibpath_var_F77=no
128482 runpath_var='LD_RUN_PATH'
128484 if test "$GCC" = yes; then
128485 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
128486 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
128488 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
128489 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
128493 sysv5* | sco3.2v5* | sco5v6*)
128494 # Note: We can NOT use -z defs as we might desire, because we do not
128495 # link with -lc, and that would cause any symbols used from libc to
128496 # always be unresolved, which means just about no library would
128497 # ever link correctly. If we're not using GNU ld we use -z text
128498 # though, which does catch some bad symbols but isn't as heavy-handed
128499 # as -z defs.
128500 no_undefined_flag_F77='${wl}-z,text'
128501 allow_undefined_flag_F77='${wl}-z,nodefs'
128502 archive_cmds_need_lc_F77=no
128503 hardcode_shlibpath_var_F77=no
128504 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
128505 hardcode_libdir_separator_F77=':'
128506 link_all_deplibs_F77=yes
128507 export_dynamic_flag_spec_F77='${wl}-Bexport'
128508 runpath_var='LD_RUN_PATH'
128510 if test "$GCC" = yes; then
128511 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
128512 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
128514 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
128515 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
128519 uts4*)
128520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
128521 hardcode_libdir_flag_spec_F77='-L$libdir'
128522 hardcode_shlibpath_var_F77=no
128526 ld_shlibs_F77=no
128531 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
128532 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
128533 test "$ld_shlibs_F77" = no && can_build_shared=no
128536 # Do we need to explicitly link libc?
128538 case "x$archive_cmds_need_lc_F77" in
128539 x|xyes)
128540 # Assume -lc should be added
128541 archive_cmds_need_lc_F77=yes
128543 if test "$enable_shared" = yes && test "$GCC" = yes; then
128544 case $archive_cmds_F77 in
128545 *'~'*)
128546 # FIXME: we may have to deal with multi-command sequences.
128548 '$CC '*)
128549 # Test whether the compiler implicitly links with -lc since on some
128550 # systems, -lgcc has to come before -lc. If gcc already passes -lc
128551 # to ld, don't add -lc before -lgcc.
128552 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
128553 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
128554 $rm conftest*
128555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
128557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
128558 (eval $ac_compile) 2>&5
128559 ac_status=$?
128560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
128561 (exit $ac_status); } 2>conftest.err; then
128562 soname=conftest
128563 lib=conftest
128564 libobjs=conftest.$ac_objext
128565 deplibs=
128566 wl=$lt_prog_compiler_wl_F77
128567 pic_flag=$lt_prog_compiler_pic_F77
128568 compiler_flags=-v
128569 linker_flags=-v
128570 verstring=
128571 output_objdir=.
128572 libname=conftest
128573 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
128574 allow_undefined_flag_F77=
128575 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
128576 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
128577 ac_status=$?
128578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
128579 (exit $ac_status); }
128581 archive_cmds_need_lc_F77=no
128583 archive_cmds_need_lc_F77=yes
128585 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
128587 cat conftest.err 1>&5
128589 $rm conftest*
128590 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
128591 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
128598 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
128599 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
128600 library_names_spec=
128601 libname_spec='lib$name'
128602 soname_spec=
128603 shrext_cmds=".so"
128604 postinstall_cmds=
128605 postuninstall_cmds=
128606 finish_cmds=
128607 finish_eval=
128608 shlibpath_var=
128609 shlibpath_overrides_runpath=unknown
128610 version_type=none
128611 dynamic_linker="$host_os ld.so"
128612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
128613 if test "$GCC" = yes; then
128614 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
128615 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
128616 # if the path contains ";" then we assume it to be the separator
128617 # otherwise default to the standard path separator (i.e. ":") - it is
128618 # assumed that no part of a normal pathname contains ";" but that should
128619 # okay in the real world where ";" in dirpaths is itself problematic.
128620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
128622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
128625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
128627 need_lib_prefix=unknown
128628 hardcode_into_libs=no
128630 # when you set need_version to no, make sure it does not cause -set_version
128631 # flags to be left without arguments
128632 need_version=unknown
128634 case $host_os in
128635 aix3*)
128636 version_type=linux
128637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
128638 shlibpath_var=LIBPATH
128640 # AIX 3 has no versioning support, so we append a major version to the name.
128641 soname_spec='${libname}${release}${shared_ext}$major'
128644 aix4* | aix5*)
128645 version_type=linux
128646 need_lib_prefix=no
128647 need_version=no
128648 hardcode_into_libs=yes
128649 if test "$host_cpu" = ia64; then
128650 # AIX 5 supports IA64
128651 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
128652 shlibpath_var=LD_LIBRARY_PATH
128654 # With GCC up to 2.95.x, collect2 would create an import file
128655 # for dependence libraries. The import file would start with
128656 # the line `#! .'. This would cause the generated library to
128657 # depend on `.', always an invalid library. This was fixed in
128658 # development snapshots of GCC prior to 3.0.
128659 case $host_os in
128660 aix4 | aix4.[01] | aix4.[01].*)
128661 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
128662 echo ' yes '
128663 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
128666 can_build_shared=no
128670 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
128671 # soname into executable. Probably we can add versioning support to
128672 # collect2, so additional links can be useful in future.
128673 if test "$aix_use_runtimelinking" = yes; then
128674 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
128675 # instead of lib<name>.a to let people know that these are not
128676 # typical AIX shared libraries.
128677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
128679 # We preserve .a as extension for shared libraries through AIX4.2
128680 # and later when we are not doing run time linking.
128681 library_names_spec='${libname}${release}.a $libname.a'
128682 soname_spec='${libname}${release}${shared_ext}$major'
128684 shlibpath_var=LIBPATH
128688 amigaos*)
128689 library_names_spec='$libname.ixlibrary $libname.a'
128690 # Create ${libname}_ixlibrary.a entries in /sys/libs.
128691 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
128694 beos*)
128695 library_names_spec='${libname}${shared_ext}'
128696 dynamic_linker="$host_os ld.so"
128697 shlibpath_var=LIBRARY_PATH
128700 bsdi[45]*)
128701 version_type=linux
128702 need_version=no
128703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
128704 soname_spec='${libname}${release}${shared_ext}$major'
128705 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
128706 shlibpath_var=LD_LIBRARY_PATH
128707 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
128708 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
128709 # the default ld.so.conf also contains /usr/contrib/lib and
128710 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
128711 # libtool to hard-code these into programs
128714 cygwin* | mingw* | pw32*)
128715 version_type=windows
128716 shrext_cmds=".dll"
128717 need_version=no
128718 need_lib_prefix=no
128720 case $GCC,$host_os in
128721 yes,cygwin* | yes,mingw* | yes,pw32*)
128722 library_names_spec='$libname.dll.a'
128723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
128724 postinstall_cmds='base_file=`basename \${file}`~
128725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
128726 dldir=$destdir/`dirname \$dlpath`~
128727 test -d \$dldir || mkdir -p \$dldir~
128728 $install_prog $dir/$dlname \$dldir/$dlname~
128729 chmod a+x \$dldir/$dlname'
128730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
128731 dlpath=$dir/\$dldll~
128732 $rm \$dlpath'
128733 shlibpath_overrides_runpath=yes
128735 case $host_os in
128736 cygwin*)
128737 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
128738 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
128739 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
128741 mingw*)
128742 # MinGW DLLs use traditional 'lib' prefix
128743 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
128744 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
128745 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
128746 # It is most probably a Windows format PATH printed by
128747 # mingw gcc, but we are running on Cygwin. Gcc prints its search
128748 # path with ; separators, and with drive letters. We can handle the
128749 # drive letters (cygwin fileutils understands them), so leave them,
128750 # especially as we might pass files found there to a mingw objdump,
128751 # which wouldn't understand a cygwinified path. Ahh.
128752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
128754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
128757 pw32*)
128758 # pw32 DLLs use 'pw' prefix rather than 'lib'
128759 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
128765 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
128768 dynamic_linker='Win32 ld.exe'
128769 # FIXME: first we should search . and the directory the executable is in
128770 shlibpath_var=PATH
128773 darwin* | rhapsody*)
128774 dynamic_linker="$host_os dyld"
128775 version_type=darwin
128776 need_lib_prefix=no
128777 need_version=no
128778 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
128779 soname_spec='${libname}${release}${major}$shared_ext'
128780 shlibpath_overrides_runpath=yes
128781 shlibpath_var=DYLD_LIBRARY_PATH
128782 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
128783 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
128784 if test "$GCC" = yes; then
128785 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
128787 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
128789 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
128792 dgux*)
128793 version_type=linux
128794 need_lib_prefix=no
128795 need_version=no
128796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
128797 soname_spec='${libname}${release}${shared_ext}$major'
128798 shlibpath_var=LD_LIBRARY_PATH
128801 freebsd1*)
128802 dynamic_linker=no
128805 freebsd* | dragonfly*)
128806 # DragonFly does not have aout. When/if they implement a new
128807 # versioning mechanism, adjust this.
128808 if test -x /usr/bin/objformat; then
128809 objformat=`/usr/bin/objformat`
128811 case $host_os in
128812 freebsd[123]*) objformat=aout ;;
128813 *) objformat=elf ;;
128816 version_type=freebsd-$objformat
128817 case $version_type in
128818 freebsd-elf*)
128819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
128820 need_version=no
128821 need_lib_prefix=no
128823 freebsd-*)
128824 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
128825 need_version=yes
128828 shlibpath_var=LD_LIBRARY_PATH
128829 case $host_os in
128830 freebsd2*)
128831 shlibpath_overrides_runpath=yes
128833 freebsd3.[01]* | freebsdelf3.[01]*)
128834 shlibpath_overrides_runpath=yes
128835 hardcode_into_libs=yes
128837 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
128838 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
128839 shlibpath_overrides_runpath=no
128840 hardcode_into_libs=yes
128842 freebsd*) # from 4.6 on
128843 shlibpath_overrides_runpath=yes
128844 hardcode_into_libs=yes
128849 gnu*)
128850 version_type=linux
128851 need_lib_prefix=no
128852 need_version=no
128853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
128854 soname_spec='${libname}${release}${shared_ext}$major'
128855 shlibpath_var=LD_LIBRARY_PATH
128856 hardcode_into_libs=yes
128859 hpux9* | hpux10* | hpux11*)
128860 # Give a soname corresponding to the major version so that dld.sl refuses to
128861 # link against other versions.
128862 version_type=sunos
128863 need_lib_prefix=no
128864 need_version=no
128865 case $host_cpu in
128866 ia64*)
128867 shrext_cmds='.so'
128868 hardcode_into_libs=yes
128869 dynamic_linker="$host_os dld.so"
128870 shlibpath_var=LD_LIBRARY_PATH
128871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
128872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
128873 soname_spec='${libname}${release}${shared_ext}$major'
128874 if test "X$HPUX_IA64_MODE" = X32; then
128875 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
128877 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
128879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
128881 hppa*64*)
128882 shrext_cmds='.sl'
128883 hardcode_into_libs=yes
128884 dynamic_linker="$host_os dld.sl"
128885 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
128886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
128887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
128888 soname_spec='${libname}${release}${shared_ext}$major'
128889 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
128890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
128893 shrext_cmds='.sl'
128894 dynamic_linker="$host_os dld.sl"
128895 shlibpath_var=SHLIB_PATH
128896 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
128897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
128898 soname_spec='${libname}${release}${shared_ext}$major'
128901 # HP-UX runs *really* slowly unless shared libraries are mode 555.
128902 postinstall_cmds='chmod 555 $lib'
128905 interix3*)
128906 version_type=linux
128907 need_lib_prefix=no
128908 need_version=no
128909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
128910 soname_spec='${libname}${release}${shared_ext}$major'
128911 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
128912 shlibpath_var=LD_LIBRARY_PATH
128913 shlibpath_overrides_runpath=no
128914 hardcode_into_libs=yes
128917 irix5* | irix6* | nonstopux*)
128918 case $host_os in
128919 nonstopux*) version_type=nonstopux ;;
128921 if test "$lt_cv_prog_gnu_ld" = yes; then
128922 version_type=linux
128924 version_type=irix
128925 fi ;;
128927 need_lib_prefix=no
128928 need_version=no
128929 soname_spec='${libname}${release}${shared_ext}$major'
128930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
128931 case $host_os in
128932 irix5* | nonstopux*)
128933 libsuff= shlibsuff=
128936 case $LD in # libtool.m4 will add one of these switches to LD
128937 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
128938 libsuff= shlibsuff= libmagic=32-bit;;
128939 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
128940 libsuff=32 shlibsuff=N32 libmagic=N32;;
128941 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
128942 libsuff=64 shlibsuff=64 libmagic=64-bit;;
128943 *) libsuff= shlibsuff= libmagic=never-match;;
128947 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
128948 shlibpath_overrides_runpath=no
128949 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
128950 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
128951 hardcode_into_libs=yes
128954 # No shared lib support for Linux oldld, aout, or coff.
128955 linux*oldld* | linux*aout* | linux*coff*)
128956 dynamic_linker=no
128959 # This must be Linux ELF.
128960 linux* | k*bsd*-gnu)
128961 version_type=linux
128962 need_lib_prefix=no
128963 need_version=no
128964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
128965 soname_spec='${libname}${release}${shared_ext}$major'
128966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
128967 shlibpath_var=LD_LIBRARY_PATH
128968 shlibpath_overrides_runpath=no
128969 # This implies no fast_install, which is unacceptable.
128970 # Some rework will be needed to allow for fast_install
128971 # before this can be enabled.
128972 hardcode_into_libs=yes
128974 # Append ld.so.conf contents to the search path
128975 if test -f /etc/ld.so.conf; then
128976 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
128977 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
128980 # We used to test for /lib/ld.so.1 and disable shared libraries on
128981 # powerpc, because MkLinux only supported shared libraries with the
128982 # GNU dynamic linker. Since this was broken with cross compilers,
128983 # most powerpc-linux boxes support dynamic linking these days and
128984 # people can always --disable-shared, the test was removed, and we
128985 # assume the GNU/Linux dynamic linker is in use.
128986 dynamic_linker='GNU/Linux ld.so'
128989 netbsdelf*-gnu)
128990 version_type=linux
128991 need_lib_prefix=no
128992 need_version=no
128993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
128994 soname_spec='${libname}${release}${shared_ext}$major'
128995 shlibpath_var=LD_LIBRARY_PATH
128996 shlibpath_overrides_runpath=no
128997 hardcode_into_libs=yes
128998 dynamic_linker='NetBSD ld.elf_so'
129001 netbsd*)
129002 version_type=sunos
129003 need_lib_prefix=no
129004 need_version=no
129005 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
129006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
129007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
129008 dynamic_linker='NetBSD (a.out) ld.so'
129010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
129011 soname_spec='${libname}${release}${shared_ext}$major'
129012 dynamic_linker='NetBSD ld.elf_so'
129014 shlibpath_var=LD_LIBRARY_PATH
129015 shlibpath_overrides_runpath=yes
129016 hardcode_into_libs=yes
129019 newsos6)
129020 version_type=linux
129021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
129022 shlibpath_var=LD_LIBRARY_PATH
129023 shlibpath_overrides_runpath=yes
129026 nto-qnx*)
129027 version_type=linux
129028 need_lib_prefix=no
129029 need_version=no
129030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
129031 soname_spec='${libname}${release}${shared_ext}$major'
129032 shlibpath_var=LD_LIBRARY_PATH
129033 shlibpath_overrides_runpath=yes
129036 openbsd*)
129037 version_type=sunos
129038 sys_lib_dlsearch_path_spec="/usr/lib"
129039 need_lib_prefix=no
129040 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
129041 case $host_os in
129042 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
129043 *) need_version=no ;;
129045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
129046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
129047 shlibpath_var=LD_LIBRARY_PATH
129048 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
129049 case $host_os in
129050 openbsd2.[89] | openbsd2.[89].*)
129051 shlibpath_overrides_runpath=no
129054 shlibpath_overrides_runpath=yes
129058 shlibpath_overrides_runpath=yes
129062 os2*)
129063 libname_spec='$name'
129064 shrext_cmds=".dll"
129065 need_lib_prefix=no
129066 library_names_spec='$libname${shared_ext} $libname.a'
129067 dynamic_linker='OS/2 ld.exe'
129068 shlibpath_var=LIBPATH
129071 osf3* | osf4* | osf5*)
129072 version_type=osf
129073 need_lib_prefix=no
129074 need_version=no
129075 soname_spec='${libname}${release}${shared_ext}$major'
129076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
129077 shlibpath_var=LD_LIBRARY_PATH
129078 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
129079 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
129082 solaris*)
129083 version_type=linux
129084 need_lib_prefix=no
129085 need_version=no
129086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
129087 soname_spec='${libname}${release}${shared_ext}$major'
129088 shlibpath_var=LD_LIBRARY_PATH
129089 shlibpath_overrides_runpath=yes
129090 hardcode_into_libs=yes
129091 # ldd complains unless libraries are executable
129092 postinstall_cmds='chmod +x $lib'
129095 sunos4*)
129096 version_type=sunos
129097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
129098 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
129099 shlibpath_var=LD_LIBRARY_PATH
129100 shlibpath_overrides_runpath=yes
129101 if test "$with_gnu_ld" = yes; then
129102 need_lib_prefix=no
129104 need_version=yes
129107 sysv4 | sysv4.3*)
129108 version_type=linux
129109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
129110 soname_spec='${libname}${release}${shared_ext}$major'
129111 shlibpath_var=LD_LIBRARY_PATH
129112 case $host_vendor in
129114 shlibpath_overrides_runpath=no
129115 need_lib_prefix=no
129116 export_dynamic_flag_spec='${wl}-Blargedynsym'
129117 runpath_var=LD_RUN_PATH
129119 siemens)
129120 need_lib_prefix=no
129122 motorola)
129123 need_lib_prefix=no
129124 need_version=no
129125 shlibpath_overrides_runpath=no
129126 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
129131 sysv4*MP*)
129132 if test -d /usr/nec ;then
129133 version_type=linux
129134 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
129135 soname_spec='$libname${shared_ext}.$major'
129136 shlibpath_var=LD_LIBRARY_PATH
129140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
129141 version_type=freebsd-elf
129142 need_lib_prefix=no
129143 need_version=no
129144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
129145 soname_spec='${libname}${release}${shared_ext}$major'
129146 shlibpath_var=LD_LIBRARY_PATH
129147 hardcode_into_libs=yes
129148 if test "$with_gnu_ld" = yes; then
129149 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
129150 shlibpath_overrides_runpath=no
129152 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
129153 shlibpath_overrides_runpath=yes
129154 case $host_os in
129155 sco3.2v5*)
129156 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
129160 sys_lib_dlsearch_path_spec='/usr/lib'
129163 uts4*)
129164 version_type=linux
129165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
129166 soname_spec='${libname}${release}${shared_ext}$major'
129167 shlibpath_var=LD_LIBRARY_PATH
129171 dynamic_linker=no
129174 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
129175 echo "${ECHO_T}$dynamic_linker" >&6; }
129176 test "$dynamic_linker" = no && can_build_shared=no
129178 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
129179 if test "$GCC" = yes; then
129180 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
129183 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
129184 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
129185 hardcode_action_F77=
129186 if test -n "$hardcode_libdir_flag_spec_F77" || \
129187 test -n "$runpath_var_F77" || \
129188 test "X$hardcode_automatic_F77" = "Xyes" ; then
129190 # We can hardcode non-existant directories.
129191 if test "$hardcode_direct_F77" != no &&
129192 # If the only mechanism to avoid hardcoding is shlibpath_var, we
129193 # have to relink, otherwise we might link with an installed library
129194 # when we should be linking with a yet-to-be-installed one
129195 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
129196 test "$hardcode_minus_L_F77" != no; then
129197 # Linking always hardcodes the temporary library directory.
129198 hardcode_action_F77=relink
129200 # We can link without hardcoding, and we can hardcode nonexisting dirs.
129201 hardcode_action_F77=immediate
129204 # We cannot hardcode anything, or else we can only hardcode existing
129205 # directories.
129206 hardcode_action_F77=unsupported
129208 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
129209 echo "${ECHO_T}$hardcode_action_F77" >&6; }
129211 if test "$hardcode_action_F77" = relink; then
129212 # Fast installation is not supported
129213 enable_fast_install=no
129214 elif test "$shlibpath_overrides_runpath" = yes ||
129215 test "$enable_shared" = no; then
129216 # Fast installation is not necessary
129217 enable_fast_install=needless
129221 # The else clause should only fire when bootstrapping the
129222 # libtool distribution, otherwise you forgot to ship ltmain.sh
129223 # with your package, and you will get complaints that there are
129224 # no rules to generate ltmain.sh.
129225 if test -f "$ltmain"; then
129226 # See if we are running on zsh, and set the options which allow our commands through
129227 # without removal of \ escapes.
129228 if test -n "${ZSH_VERSION+set}" ; then
129229 setopt NO_GLOB_SUBST
129231 # Now quote all the things that may contain metacharacters while being
129232 # careful not to overquote the AC_SUBSTed values. We take copies of the
129233 # variables and quote the copies for generation of the libtool script.
129234 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
129235 SED SHELL STRIP \
129236 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
129237 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
129238 deplibs_check_method reload_flag reload_cmds need_locks \
129239 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
129240 lt_cv_sys_global_symbol_to_c_name_address \
129241 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
129242 old_postinstall_cmds old_postuninstall_cmds \
129243 compiler_F77 \
129244 CC_F77 \
129245 LD_F77 \
129246 lt_prog_compiler_wl_F77 \
129247 lt_prog_compiler_pic_F77 \
129248 lt_prog_compiler_static_F77 \
129249 lt_prog_compiler_no_builtin_flag_F77 \
129250 export_dynamic_flag_spec_F77 \
129251 thread_safe_flag_spec_F77 \
129252 whole_archive_flag_spec_F77 \
129253 enable_shared_with_static_runtimes_F77 \
129254 old_archive_cmds_F77 \
129255 old_archive_from_new_cmds_F77 \
129256 predep_objects_F77 \
129257 postdep_objects_F77 \
129258 predeps_F77 \
129259 postdeps_F77 \
129260 compiler_lib_search_path_F77 \
129261 archive_cmds_F77 \
129262 archive_expsym_cmds_F77 \
129263 postinstall_cmds_F77 \
129264 postuninstall_cmds_F77 \
129265 old_archive_from_expsyms_cmds_F77 \
129266 allow_undefined_flag_F77 \
129267 no_undefined_flag_F77 \
129268 export_symbols_cmds_F77 \
129269 hardcode_libdir_flag_spec_F77 \
129270 hardcode_libdir_flag_spec_ld_F77 \
129271 hardcode_libdir_separator_F77 \
129272 hardcode_automatic_F77 \
129273 module_cmds_F77 \
129274 module_expsym_cmds_F77 \
129275 lt_cv_prog_compiler_c_o_F77 \
129276 exclude_expsyms_F77 \
129277 include_expsyms_F77; do
129279 case $var in
129280 old_archive_cmds_F77 | \
129281 old_archive_from_new_cmds_F77 | \
129282 archive_cmds_F77 | \
129283 archive_expsym_cmds_F77 | \
129284 module_cmds_F77 | \
129285 module_expsym_cmds_F77 | \
129286 old_archive_from_expsyms_cmds_F77 | \
129287 export_symbols_cmds_F77 | \
129288 extract_expsyms_cmds | reload_cmds | finish_cmds | \
129289 postinstall_cmds | postuninstall_cmds | \
129290 old_postinstall_cmds | old_postuninstall_cmds | \
129291 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
129292 # Double-quote double-evaled strings.
129293 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
129296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
129301 case $lt_echo in
129302 *'\$0 --fallback-echo"')
129303 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
129307 cfgfile="$ofile"
129309 cat <<__EOF__ >> "$cfgfile"
129310 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
129312 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
129314 # Shell to use when invoking shell scripts.
129315 SHELL=$lt_SHELL
129317 # Whether or not to build shared libraries.
129318 build_libtool_libs=$enable_shared
129320 # Whether or not to build static libraries.
129321 build_old_libs=$enable_static
129323 # Whether or not to add -lc for building shared libraries.
129324 build_libtool_need_lc=$archive_cmds_need_lc_F77
129326 # Whether or not to disallow shared libs when runtime libs are static
129327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
129329 # Whether or not to optimize for fast installation.
129330 fast_install=$enable_fast_install
129332 # The host system.
129333 host_alias=$host_alias
129334 host=$host
129335 host_os=$host_os
129337 # The build system.
129338 build_alias=$build_alias
129339 build=$build
129340 build_os=$build_os
129342 # An echo program that does not interpret backslashes.
129343 echo=$lt_echo
129345 # The archiver.
129346 AR=$lt_AR
129347 AR_FLAGS=$lt_AR_FLAGS
129349 # A C compiler.
129350 LTCC=$lt_LTCC
129352 # LTCC compiler flags.
129353 LTCFLAGS=$lt_LTCFLAGS
129355 # A language-specific compiler.
129356 CC=$lt_compiler_F77
129358 # Is the compiler the GNU C compiler?
129359 with_gcc=$GCC_F77
129361 # An ERE matcher.
129362 EGREP=$lt_EGREP
129364 # The linker used to build libraries.
129365 LD=$lt_LD_F77
129367 # Whether we need hard or soft links.
129368 LN_S=$lt_LN_S
129370 # A BSD-compatible nm program.
129371 NM=$lt_NM
129373 # A symbol stripping program
129374 STRIP=$lt_STRIP
129376 # Used to examine libraries when file_magic_cmd begins "file"
129377 MAGIC_CMD=$MAGIC_CMD
129379 # Used on cygwin: DLL creation program.
129380 DLLTOOL="$DLLTOOL"
129382 # Used on cygwin: object dumper.
129383 OBJDUMP="$OBJDUMP"
129385 # Used on cygwin: assembler.
129386 AS="$AS"
129388 # The name of the directory that contains temporary libtool files.
129389 objdir=$objdir
129391 # How to create reloadable object files.
129392 reload_flag=$lt_reload_flag
129393 reload_cmds=$lt_reload_cmds
129395 # How to pass a linker flag through the compiler.
129396 wl=$lt_lt_prog_compiler_wl_F77
129398 # Object file suffix (normally "o").
129399 objext="$ac_objext"
129401 # Old archive suffix (normally "a").
129402 libext="$libext"
129404 # Shared library suffix (normally ".so").
129405 shrext_cmds='$shrext_cmds'
129407 # Executable file suffix (normally "").
129408 exeext="$exeext"
129410 # Additional compiler flags for building library objects.
129411 pic_flag=$lt_lt_prog_compiler_pic_F77
129412 pic_mode=$pic_mode
129414 # What is the maximum length of a command?
129415 max_cmd_len=$lt_cv_sys_max_cmd_len
129417 # Does compiler simultaneously support -c and -o options?
129418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
129420 # Must we lock files when doing compilation?
129421 need_locks=$lt_need_locks
129423 # Do we need the lib prefix for modules?
129424 need_lib_prefix=$need_lib_prefix
129426 # Do we need a version for libraries?
129427 need_version=$need_version
129429 # Whether dlopen is supported.
129430 dlopen_support=$enable_dlopen
129432 # Whether dlopen of programs is supported.
129433 dlopen_self=$enable_dlopen_self
129435 # Whether dlopen of statically linked programs is supported.
129436 dlopen_self_static=$enable_dlopen_self_static
129438 # Compiler flag to prevent dynamic linking.
129439 link_static_flag=$lt_lt_prog_compiler_static_F77
129441 # Compiler flag to turn off builtin functions.
129442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
129444 # Compiler flag to allow reflexive dlopens.
129445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
129447 # Compiler flag to generate shared objects directly from archives.
129448 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
129450 # Compiler flag to generate thread-safe objects.
129451 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
129453 # Library versioning type.
129454 version_type=$version_type
129456 # Format of library name prefix.
129457 libname_spec=$lt_libname_spec
129459 # List of archive names. First name is the real one, the rest are links.
129460 # The last name is the one that the linker finds with -lNAME.
129461 library_names_spec=$lt_library_names_spec
129463 # The coded name of the library, if different from the real name.
129464 soname_spec=$lt_soname_spec
129466 # Commands used to build and install an old-style archive.
129467 RANLIB=$lt_RANLIB
129468 old_archive_cmds=$lt_old_archive_cmds_F77
129469 old_postinstall_cmds=$lt_old_postinstall_cmds
129470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
129472 # Create an old-style archive from a shared archive.
129473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
129475 # Create a temporary old-style archive to link instead of a shared archive.
129476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
129478 # Commands used to build and install a shared archive.
129479 archive_cmds=$lt_archive_cmds_F77
129480 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
129481 postinstall_cmds=$lt_postinstall_cmds
129482 postuninstall_cmds=$lt_postuninstall_cmds
129484 # Commands used to build a loadable module (assumed same as above if empty)
129485 module_cmds=$lt_module_cmds_F77
129486 module_expsym_cmds=$lt_module_expsym_cmds_F77
129488 # Commands to strip libraries.
129489 old_striplib=$lt_old_striplib
129490 striplib=$lt_striplib
129492 # Dependencies to place before the objects being linked to create a
129493 # shared library.
129494 predep_objects=$lt_predep_objects_F77
129496 # Dependencies to place after the objects being linked to create a
129497 # shared library.
129498 postdep_objects=$lt_postdep_objects_F77
129500 # Dependencies to place before the objects being linked to create a
129501 # shared library.
129502 predeps=$lt_predeps_F77
129504 # Dependencies to place after the objects being linked to create a
129505 # shared library.
129506 postdeps=$lt_postdeps_F77
129508 # The library search path used internally by the compiler when linking
129509 # a shared library.
129510 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
129512 # Method to check whether dependent libraries are shared objects.
129513 deplibs_check_method=$lt_deplibs_check_method
129515 # Command to use when deplibs_check_method == file_magic.
129516 file_magic_cmd=$lt_file_magic_cmd
129518 # Flag that allows shared libraries with undefined symbols to be built.
129519 allow_undefined_flag=$lt_allow_undefined_flag_F77
129521 # Flag that forces no undefined symbols.
129522 no_undefined_flag=$lt_no_undefined_flag_F77
129524 # Commands used to finish a libtool library installation in a directory.
129525 finish_cmds=$lt_finish_cmds
129527 # Same as above, but a single script fragment to be evaled but not shown.
129528 finish_eval=$lt_finish_eval
129530 # Take the output of nm and produce a listing of raw symbols and C names.
129531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
129533 # Transform the output of nm in a proper C declaration
129534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
129536 # Transform the output of nm in a C name address pair
129537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
129539 # This is the shared library runtime path variable.
129540 runpath_var=$runpath_var
129542 # This is the shared library path variable.
129543 shlibpath_var=$shlibpath_var
129545 # Is shlibpath searched before the hard-coded library search path?
129546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
129548 # How to hardcode a shared library path into an executable.
129549 hardcode_action=$hardcode_action_F77
129551 # Whether we should hardcode library paths into libraries.
129552 hardcode_into_libs=$hardcode_into_libs
129554 # Flag to hardcode \$libdir into a binary during linking.
129555 # This must work even if \$libdir does not exist.
129556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
129558 # If ld is used when linking, flag to hardcode \$libdir into
129559 # a binary during linking. This must work even if \$libdir does
129560 # not exist.
129561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
129563 # Whether we need a single -rpath flag with a separated argument.
129564 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
129566 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
129567 # resulting binary.
129568 hardcode_direct=$hardcode_direct_F77
129570 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
129571 # resulting binary.
129572 hardcode_minus_L=$hardcode_minus_L_F77
129574 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
129575 # the resulting binary.
129576 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
129578 # Set to yes if building a shared library automatically hardcodes DIR into the library
129579 # and all subsequent libraries and executables linked against it.
129580 hardcode_automatic=$hardcode_automatic_F77
129582 # Variables whose values should be saved in libtool wrapper scripts and
129583 # restored at relink time.
129584 variables_saved_for_relink="$variables_saved_for_relink"
129586 # Whether libtool must link a program against all its dependency libraries.
129587 link_all_deplibs=$link_all_deplibs_F77
129589 # Compile-time system search path for libraries
129590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
129592 # Run-time system search path for libraries
129593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
129595 # Fix the shell variable \$srcfile for the compiler.
129596 fix_srcfile_path="$fix_srcfile_path_F77"
129598 # Set to yes if exported symbols are required.
129599 always_export_symbols=$always_export_symbols_F77
129601 # The commands to list exported symbols.
129602 export_symbols_cmds=$lt_export_symbols_cmds_F77
129604 # The commands to extract the exported symbol list from a shared archive.
129605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
129607 # Symbols that should not be listed in the preloaded symbols.
129608 exclude_expsyms=$lt_exclude_expsyms_F77
129610 # Symbols that must always be exported.
129611 include_expsyms=$lt_include_expsyms_F77
129613 # ### END LIBTOOL TAG CONFIG: $tagname
129615 __EOF__
129619 # If there is no Makefile yet, we rely on a make rule to execute
129620 # `config.status --recheck' to rerun these tests and create the
129621 # libtool script then.
129622 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
129623 if test -f "$ltmain_in"; then
129624 test -f Makefile && make "$ltmain"
129629 ac_ext=c
129630 ac_cpp='$CPP $CPPFLAGS'
129631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
129632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
129633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
129635 CC="$lt_save_CC"
129638 tagname=""
129643 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
129646 # Source file extension for Java test sources.
129647 ac_ext=java
129649 # Object file extension for compiled Java test sources.
129650 objext=o
129651 objext_GCJ=$objext
129653 # Code to be used in simple compile tests
129654 lt_simple_compile_test_code="class foo {}\n"
129656 # Code to be used in simple link tests
129657 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
129659 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
129661 # If no C compiler was specified, use CC.
129662 LTCC=${LTCC-"$CC"}
129664 # If no C compiler flags were specified, use CFLAGS.
129665 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
129667 # Allow CC to be a program name with arguments.
129668 compiler=$CC
129671 # save warnings/boilerplate of simple test code
129672 ac_outfile=conftest.$ac_objext
129673 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
129674 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
129675 _lt_compiler_boilerplate=`cat conftest.err`
129676 $rm conftest*
129678 ac_outfile=conftest.$ac_objext
129679 printf "$lt_simple_link_test_code" >conftest.$ac_ext
129680 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
129681 _lt_linker_boilerplate=`cat conftest.err`
129682 $rm conftest*
129685 # Allow CC to be a program name with arguments.
129686 lt_save_CC="$CC"
129687 CC=${GCJ-"gcj"}
129688 compiler=$CC
129689 compiler_GCJ=$CC
129690 for cc_temp in $compiler""; do
129691 case $cc_temp in
129692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
129693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
129694 \-*) ;;
129695 *) break;;
129698 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
129701 # GCJ did not exist at the time GCC didn't implicitly link libc in.
129702 archive_cmds_need_lc_GCJ=no
129704 old_archive_cmds_GCJ=$old_archive_cmds
129707 lt_prog_compiler_no_builtin_flag_GCJ=
129709 if test "$GCC" = yes; then
129710 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
129713 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
129714 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
129715 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
129716 echo $ECHO_N "(cached) $ECHO_C" >&6
129718 lt_cv_prog_compiler_rtti_exceptions=no
129719 ac_outfile=conftest.$ac_objext
129720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
129721 lt_compiler_flag="-fno-rtti -fno-exceptions"
129722 # Insert the option either (1) after the last *FLAGS variable, or
129723 # (2) before a word containing "conftest.", or (3) at the end.
129724 # Note that $ac_compile itself does not contain backslashes and begins
129725 # with a dollar sign (not a hyphen), so the echo should work correctly.
129726 # The option is referenced via a variable to avoid confusing sed.
129727 lt_compile=`echo "$ac_compile" | $SED \
129728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
129729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
129730 -e 's:$: $lt_compiler_flag:'`
129731 (eval echo "\"\$as_me:129731: $lt_compile\"" >&5)
129732 (eval "$lt_compile" 2>conftest.err)
129733 ac_status=$?
129734 cat conftest.err >&5
129735 echo "$as_me:129735: \$? = $ac_status" >&5
129736 if (exit $ac_status) && test -s "$ac_outfile"; then
129737 # The compiler can only warn and ignore the option if not recognized
129738 # So say no if there are warnings other than the usual output.
129739 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
129740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
129741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
129742 lt_cv_prog_compiler_rtti_exceptions=yes
129745 $rm conftest*
129748 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
129749 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
129751 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
129752 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
129759 lt_prog_compiler_wl_GCJ=
129760 lt_prog_compiler_pic_GCJ=
129761 lt_prog_compiler_static_GCJ=
129763 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
129764 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
129766 if test "$GCC" = yes; then
129767 lt_prog_compiler_wl_GCJ='-Wl,'
129768 lt_prog_compiler_static_GCJ='-static'
129770 case $host_os in
129771 aix*)
129772 # All AIX code is PIC.
129773 if test "$host_cpu" = ia64; then
129774 # AIX 5 now supports IA64 processor
129775 lt_prog_compiler_static_GCJ='-Bstatic'
129779 amigaos*)
129780 # FIXME: we need at least 68020 code to build shared libraries, but
129781 # adding the `-m68020' flag to GCC prevents building anything better,
129782 # like `-m68040'.
129783 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
129786 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
129787 # PIC is the default for these OSes.
129790 mingw* | pw32* | os2*)
129791 # This hack is so that the source file can tell whether it is being
129792 # built for inclusion in a dll (and should export symbols for example).
129793 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
129796 darwin* | rhapsody*)
129797 # PIC is the default on this platform
129798 # Common symbols not allowed in MH_DYLIB files
129799 lt_prog_compiler_pic_GCJ='-fno-common'
129802 interix3*)
129803 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
129804 # Instead, we relocate shared libraries at runtime.
129807 msdosdjgpp*)
129808 # Just because we use GCC doesn't mean we suddenly get shared libraries
129809 # on systems that don't support them.
129810 lt_prog_compiler_can_build_shared_GCJ=no
129811 enable_shared=no
129814 sysv4*MP*)
129815 if test -d /usr/nec; then
129816 lt_prog_compiler_pic_GCJ=-Kconform_pic
129820 hpux*)
129821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
129822 # not for PA HP-UX.
129823 case $host_cpu in
129824 hppa*64*|ia64*)
129825 # +Z the default
129828 lt_prog_compiler_pic_GCJ='-fPIC'
129834 lt_prog_compiler_pic_GCJ='-fPIC'
129838 # PORTME Check for flag to pass linker flags through the system compiler.
129839 case $host_os in
129840 aix*)
129841 lt_prog_compiler_wl_GCJ='-Wl,'
129842 if test "$host_cpu" = ia64; then
129843 # AIX 5 now supports IA64 processor
129844 lt_prog_compiler_static_GCJ='-Bstatic'
129846 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
129849 darwin*)
129850 # PIC is the default on this platform
129851 # Common symbols not allowed in MH_DYLIB files
129852 case $cc_basename in
129853 xlc*)
129854 lt_prog_compiler_pic_GCJ='-qnocommon'
129855 lt_prog_compiler_wl_GCJ='-Wl,'
129860 mingw* | pw32* | os2*)
129861 # This hack is so that the source file can tell whether it is being
129862 # built for inclusion in a dll (and should export symbols for example).
129863 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
129866 hpux9* | hpux10* | hpux11*)
129867 lt_prog_compiler_wl_GCJ='-Wl,'
129868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
129869 # not for PA HP-UX.
129870 case $host_cpu in
129871 hppa*64*|ia64*)
129872 # +Z the default
129875 lt_prog_compiler_pic_GCJ='+Z'
129878 # Is there a better lt_prog_compiler_static that works with the bundled CC?
129879 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
129882 irix5* | irix6* | nonstopux*)
129883 lt_prog_compiler_wl_GCJ='-Wl,'
129884 # PIC (with -KPIC) is the default.
129885 lt_prog_compiler_static_GCJ='-non_shared'
129888 newsos6)
129889 lt_prog_compiler_pic_GCJ='-KPIC'
129890 lt_prog_compiler_static_GCJ='-Bstatic'
129893 linux* | k*bsd*-gnu)
129894 case $cc_basename in
129895 icc* | ecc*)
129896 lt_prog_compiler_wl_GCJ='-Wl,'
129897 lt_prog_compiler_pic_GCJ='-KPIC'
129898 lt_prog_compiler_static_GCJ='-static'
129900 pgcc* | pgf77* | pgf90* | pgf95*)
129901 # Portland Group compilers (*not* the Pentium gcc compiler,
129902 # which looks to be a dead project)
129903 lt_prog_compiler_wl_GCJ='-Wl,'
129904 lt_prog_compiler_pic_GCJ='-fpic'
129905 lt_prog_compiler_static_GCJ='-Bstatic'
129907 ccc*)
129908 lt_prog_compiler_wl_GCJ='-Wl,'
129909 # All Alpha code is PIC.
129910 lt_prog_compiler_static_GCJ='-non_shared'
129915 osf3* | osf4* | osf5*)
129916 lt_prog_compiler_wl_GCJ='-Wl,'
129917 # All OSF/1 code is PIC.
129918 lt_prog_compiler_static_GCJ='-non_shared'
129921 solaris*)
129922 lt_prog_compiler_pic_GCJ='-KPIC'
129923 lt_prog_compiler_static_GCJ='-Bstatic'
129924 case $cc_basename in
129925 f77* | f90* | f95*)
129926 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
129928 lt_prog_compiler_wl_GCJ='-Wl,';;
129932 sunos4*)
129933 lt_prog_compiler_wl_GCJ='-Qoption ld '
129934 lt_prog_compiler_pic_GCJ='-PIC'
129935 lt_prog_compiler_static_GCJ='-Bstatic'
129938 sysv4 | sysv4.2uw2* | sysv4.3*)
129939 lt_prog_compiler_wl_GCJ='-Wl,'
129940 lt_prog_compiler_pic_GCJ='-KPIC'
129941 lt_prog_compiler_static_GCJ='-Bstatic'
129944 sysv4*MP*)
129945 if test -d /usr/nec ;then
129946 lt_prog_compiler_pic_GCJ='-Kconform_pic'
129947 lt_prog_compiler_static_GCJ='-Bstatic'
129951 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
129952 lt_prog_compiler_wl_GCJ='-Wl,'
129953 lt_prog_compiler_pic_GCJ='-KPIC'
129954 lt_prog_compiler_static_GCJ='-Bstatic'
129957 unicos*)
129958 lt_prog_compiler_wl_GCJ='-Wl,'
129959 lt_prog_compiler_can_build_shared_GCJ=no
129962 uts4*)
129963 lt_prog_compiler_pic_GCJ='-pic'
129964 lt_prog_compiler_static_GCJ='-Bstatic'
129968 lt_prog_compiler_can_build_shared_GCJ=no
129973 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
129974 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
129977 # Check to make sure the PIC flag actually works.
129979 if test -n "$lt_prog_compiler_pic_GCJ"; then
129981 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
129982 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
129983 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
129984 echo $ECHO_N "(cached) $ECHO_C" >&6
129986 lt_prog_compiler_pic_works_GCJ=no
129987 ac_outfile=conftest.$ac_objext
129988 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
129989 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
129990 # Insert the option either (1) after the last *FLAGS variable, or
129991 # (2) before a word containing "conftest.", or (3) at the end.
129992 # Note that $ac_compile itself does not contain backslashes and begins
129993 # with a dollar sign (not a hyphen), so the echo should work correctly.
129994 # The option is referenced via a variable to avoid confusing sed.
129995 lt_compile=`echo "$ac_compile" | $SED \
129996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
129997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
129998 -e 's:$: $lt_compiler_flag:'`
129999 (eval echo "\"\$as_me:129999: $lt_compile\"" >&5)
130000 (eval "$lt_compile" 2>conftest.err)
130001 ac_status=$?
130002 cat conftest.err >&5
130003 echo "$as_me:130003: \$? = $ac_status" >&5
130004 if (exit $ac_status) && test -s "$ac_outfile"; then
130005 # The compiler can only warn and ignore the option if not recognized
130006 # So say no if there are warnings other than the usual output.
130007 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
130008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
130009 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
130010 lt_prog_compiler_pic_works_GCJ=yes
130013 $rm conftest*
130016 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
130017 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
130019 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
130020 case $lt_prog_compiler_pic_GCJ in
130021 "" | " "*) ;;
130022 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
130025 lt_prog_compiler_pic_GCJ=
130026 lt_prog_compiler_can_build_shared_GCJ=no
130030 case $host_os in
130031 # For platforms which do not support PIC, -DPIC is meaningless:
130032 *djgpp*)
130033 lt_prog_compiler_pic_GCJ=
130036 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
130041 # Check to make sure the static flag actually works.
130043 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
130044 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
130045 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
130046 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
130047 echo $ECHO_N "(cached) $ECHO_C" >&6
130049 lt_prog_compiler_static_works_GCJ=no
130050 save_LDFLAGS="$LDFLAGS"
130051 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
130052 printf "$lt_simple_link_test_code" > conftest.$ac_ext
130053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
130054 # The linker can only warn and ignore the option if not recognized
130055 # So say no if there are warnings
130056 if test -s conftest.err; then
130057 # Append any errors to the config.log.
130058 cat conftest.err 1>&5
130059 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
130060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
130061 if diff conftest.exp conftest.er2 >/dev/null; then
130062 lt_prog_compiler_static_works_GCJ=yes
130065 lt_prog_compiler_static_works_GCJ=yes
130068 $rm conftest*
130069 LDFLAGS="$save_LDFLAGS"
130072 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
130073 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
130075 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
130078 lt_prog_compiler_static_GCJ=
130082 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
130083 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
130084 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
130085 echo $ECHO_N "(cached) $ECHO_C" >&6
130087 lt_cv_prog_compiler_c_o_GCJ=no
130088 $rm -r conftest 2>/dev/null
130089 mkdir conftest
130090 cd conftest
130091 mkdir out
130092 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
130094 lt_compiler_flag="-o out/conftest2.$ac_objext"
130095 # Insert the option either (1) after the last *FLAGS variable, or
130096 # (2) before a word containing "conftest.", or (3) at the end.
130097 # Note that $ac_compile itself does not contain backslashes and begins
130098 # with a dollar sign (not a hyphen), so the echo should work correctly.
130099 lt_compile=`echo "$ac_compile" | $SED \
130100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
130101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
130102 -e 's:$: $lt_compiler_flag:'`
130103 (eval echo "\"\$as_me:130103: $lt_compile\"" >&5)
130104 (eval "$lt_compile" 2>out/conftest.err)
130105 ac_status=$?
130106 cat out/conftest.err >&5
130107 echo "$as_me:130107: \$? = $ac_status" >&5
130108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
130110 # The compiler can only warn and ignore the option if not recognized
130111 # So say no if there are warnings
130112 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
130113 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
130114 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
130115 lt_cv_prog_compiler_c_o_GCJ=yes
130118 chmod u+w . 2>&5
130119 $rm conftest*
130120 # SGI C++ compiler will create directory out/ii_files/ for
130121 # template instantiation
130122 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
130123 $rm out/* && rmdir out
130124 cd ..
130125 rmdir conftest
130126 $rm conftest*
130129 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
130130 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
130133 hard_links="nottested"
130134 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
130135 # do not overwrite the value of need_locks provided by the user
130136 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
130137 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
130138 hard_links=yes
130139 $rm conftest*
130140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
130141 touch conftest.a
130142 ln conftest.a conftest.b 2>&5 || hard_links=no
130143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
130144 { echo "$as_me:$LINENO: result: $hard_links" >&5
130145 echo "${ECHO_T}$hard_links" >&6; }
130146 if test "$hard_links" = no; then
130147 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
130148 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
130149 need_locks=warn
130152 need_locks=no
130155 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
130156 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
130158 runpath_var=
130159 allow_undefined_flag_GCJ=
130160 enable_shared_with_static_runtimes_GCJ=no
130161 archive_cmds_GCJ=
130162 archive_expsym_cmds_GCJ=
130163 old_archive_From_new_cmds_GCJ=
130164 old_archive_from_expsyms_cmds_GCJ=
130165 export_dynamic_flag_spec_GCJ=
130166 whole_archive_flag_spec_GCJ=
130167 thread_safe_flag_spec_GCJ=
130168 hardcode_libdir_flag_spec_GCJ=
130169 hardcode_libdir_flag_spec_ld_GCJ=
130170 hardcode_libdir_separator_GCJ=
130171 hardcode_direct_GCJ=no
130172 hardcode_minus_L_GCJ=no
130173 hardcode_shlibpath_var_GCJ=unsupported
130174 link_all_deplibs_GCJ=unknown
130175 hardcode_automatic_GCJ=no
130176 module_cmds_GCJ=
130177 module_expsym_cmds_GCJ=
130178 always_export_symbols_GCJ=no
130179 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
130180 # include_expsyms should be a list of space-separated symbols to be *always*
130181 # included in the symbol list
130182 include_expsyms_GCJ=
130183 # exclude_expsyms can be an extended regexp of symbols to exclude
130184 # it will be wrapped by ` (' and `)$', so one must not match beginning or
130185 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
130186 # as well as any symbol that contains `d'.
130187 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
130188 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
130189 # platforms (ab)use it in PIC code, but their linkers get confused if
130190 # the symbol is explicitly referenced. Since portable code cannot
130191 # rely on this symbol name, it's probably fine to never include it in
130192 # preloaded symbol tables.
130193 extract_expsyms_cmds=
130194 # Just being paranoid about ensuring that cc_basename is set.
130195 for cc_temp in $compiler""; do
130196 case $cc_temp in
130197 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
130198 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
130199 \-*) ;;
130200 *) break;;
130203 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
130205 case $host_os in
130206 cygwin* | mingw* | pw32*)
130207 # FIXME: the MSVC++ port hasn't been tested in a loooong time
130208 # When not using gcc, we currently assume that we are using
130209 # Microsoft Visual C++.
130210 if test "$GCC" != yes; then
130211 with_gnu_ld=no
130214 interix*)
130215 # we just hope/assume this is gcc and not c89 (= MSVC++)
130216 with_gnu_ld=yes
130218 openbsd*)
130219 with_gnu_ld=no
130223 ld_shlibs_GCJ=yes
130224 if test "$with_gnu_ld" = yes; then
130225 # If archive_cmds runs LD, not CC, wlarc should be empty
130226 wlarc='${wl}'
130228 # Set some defaults for GNU ld with shared library support. These
130229 # are reset later if shared libraries are not supported. Putting them
130230 # here allows them to be overridden if necessary.
130231 runpath_var=LD_RUN_PATH
130232 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
130233 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
130234 # ancient GNU ld didn't support --whole-archive et. al.
130235 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
130236 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
130238 whole_archive_flag_spec_GCJ=
130240 supports_anon_versioning=no
130241 case `$LD -v 2>/dev/null` in
130242 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
130243 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
130244 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
130245 *\ 2.11.*) ;; # other 2.11 versions
130246 *) supports_anon_versioning=yes ;;
130249 # See if GNU ld supports shared libraries.
130250 case $host_os in
130251 aix3* | aix4* | aix5*)
130252 # On AIX/PPC, the GNU linker is very broken
130253 if test "$host_cpu" != ia64; then
130254 ld_shlibs_GCJ=no
130255 cat <<EOF 1>&2
130257 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
130258 *** to be unable to reliably create shared libraries on AIX.
130259 *** Therefore, libtool is disabling shared libraries support. If you
130260 *** really care for shared libraries, you may want to modify your PATH
130261 *** so that a non-GNU linker is found, and then restart.
130267 amigaos*)
130268 archive_cmds_GCJ='$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)'
130269 hardcode_libdir_flag_spec_GCJ='-L$libdir'
130270 hardcode_minus_L_GCJ=yes
130272 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
130273 # that the semantics of dynamic libraries on AmigaOS, at least up
130274 # to version 4, is to share data among multiple programs linked
130275 # with the same dynamic library. Since this doesn't match the
130276 # behavior of shared libraries on other platforms, we can't use
130277 # them.
130278 ld_shlibs_GCJ=no
130281 beos*)
130282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
130283 allow_undefined_flag_GCJ=unsupported
130284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
130285 # support --undefined. This deserves some investigation. FIXME
130286 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
130288 ld_shlibs_GCJ=no
130292 cygwin* | mingw* | pw32*)
130293 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
130294 # as there is no search path for DLLs.
130295 hardcode_libdir_flag_spec_GCJ='-L$libdir'
130296 allow_undefined_flag_GCJ=unsupported
130297 always_export_symbols_GCJ=no
130298 enable_shared_with_static_runtimes_GCJ=yes
130299 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
130301 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
130302 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
130303 # If the export-symbols file already is a .def file (1st line
130304 # is EXPORTS), use it as is; otherwise, prepend...
130305 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
130306 cp $export_symbols $output_objdir/$soname.def;
130308 echo EXPORTS > $output_objdir/$soname.def;
130309 cat $export_symbols >> $output_objdir/$soname.def;
130311 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
130313 ld_shlibs_GCJ=no
130317 interix3*)
130318 hardcode_direct_GCJ=no
130319 hardcode_shlibpath_var_GCJ=no
130320 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
130321 export_dynamic_flag_spec_GCJ='${wl}-E'
130322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
130323 # Instead, shared libraries are loaded at an image base (0x10000000 by
130324 # default) and relocated if they conflict, which is a slow very memory
130325 # consuming and fragmenting process. To avoid this, we pick a random,
130326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
130327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
130328 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
130329 archive_expsym_cmds_GCJ='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'
130332 linux* | k*bsd*-gnu)
130333 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
130334 tmp_addflag=
130335 case $cc_basename,$host_cpu in
130336 pgcc*) # Portland Group C compiler
130337 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
130338 tmp_addflag=' $pic_flag'
130340 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
130341 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
130342 tmp_addflag=' $pic_flag -Mnomain' ;;
130343 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
130344 tmp_addflag=' -i_dynamic' ;;
130345 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
130346 tmp_addflag=' -i_dynamic -nofor_main' ;;
130347 ifc* | ifort*) # Intel Fortran compiler
130348 tmp_addflag=' -nofor_main' ;;
130350 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
130352 if test $supports_anon_versioning = yes; then
130353 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
130354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
130355 $echo "local: *; };" >> $output_objdir/$libname.ver~
130356 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
130358 link_all_deplibs_GCJ=no
130360 ld_shlibs_GCJ=no
130364 netbsd* | netbsdelf*-gnu)
130365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
130366 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
130367 wlarc=
130369 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
130370 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
130374 solaris*)
130375 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
130376 ld_shlibs_GCJ=no
130377 cat <<EOF 1>&2
130379 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
130380 *** create shared libraries on Solaris systems. Therefore, libtool
130381 *** is disabling shared libraries support. We urge you to upgrade GNU
130382 *** binutils to release 2.9.1 or newer. Another option is to modify
130383 *** your PATH or compiler configuration so that the native linker is
130384 *** used, and then restart.
130387 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
130388 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
130389 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
130391 ld_shlibs_GCJ=no
130395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
130396 case `$LD -v 2>&1` in
130397 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
130398 ld_shlibs_GCJ=no
130399 cat <<_LT_EOF 1>&2
130401 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
130402 *** reliably create shared libraries on SCO systems. Therefore, libtool
130403 *** is disabling shared libraries support. We urge you to upgrade GNU
130404 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
130405 *** your PATH or compiler configuration so that the native linker is
130406 *** used, and then restart.
130408 _LT_EOF
130411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
130412 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
130413 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
130414 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
130416 ld_shlibs_GCJ=no
130422 sunos4*)
130423 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
130424 wlarc=
130425 hardcode_direct_GCJ=yes
130426 hardcode_shlibpath_var_GCJ=no
130430 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
130431 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
130432 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
130434 ld_shlibs_GCJ=no
130439 if test "$ld_shlibs_GCJ" = no; then
130440 runpath_var=
130441 hardcode_libdir_flag_spec_GCJ=
130442 export_dynamic_flag_spec_GCJ=
130443 whole_archive_flag_spec_GCJ=
130446 # PORTME fill in a description of your system's linker (not GNU ld)
130447 case $host_os in
130448 aix3*)
130449 allow_undefined_flag_GCJ=unsupported
130450 always_export_symbols_GCJ=yes
130451 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
130452 # Note: this linker hardcodes the directories in LIBPATH if there
130453 # are no directories specified by -L.
130454 hardcode_minus_L_GCJ=yes
130455 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
130456 # Neither direct hardcoding nor static linking is supported with a
130457 # broken collect2.
130458 hardcode_direct_GCJ=unsupported
130462 aix4* | aix5*)
130463 if test "$host_cpu" = ia64; then
130464 # On IA64, the linker does run time linking by default, so we don't
130465 # have to do anything special.
130466 aix_use_runtimelinking=no
130467 exp_sym_flag='-Bexport'
130468 no_entry_flag=""
130470 # If we're using GNU nm, then we don't want the "-C" option.
130471 # -C means demangle to AIX nm, but means don't demangle with GNU nm
130472 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
130473 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
130475 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
130477 aix_use_runtimelinking=no
130479 # Test if we are trying to use run time linking or normal
130480 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
130481 # need to do runtime linking.
130482 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
130483 for ld_flag in $LDFLAGS; do
130484 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
130485 aix_use_runtimelinking=yes
130486 break
130492 exp_sym_flag='-bexport'
130493 no_entry_flag='-bnoentry'
130496 # When large executables or shared objects are built, AIX ld can
130497 # have problems creating the table of contents. If linking a library
130498 # or program results in "error TOC overflow" add -mminimal-toc to
130499 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
130500 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
130502 archive_cmds_GCJ=''
130503 hardcode_direct_GCJ=yes
130504 hardcode_libdir_separator_GCJ=':'
130505 link_all_deplibs_GCJ=yes
130507 if test "$GCC" = yes; then
130508 case $host_os in aix4.[012]|aix4.[012].*)
130509 # We only want to do this on AIX 4.2 and lower, the check
130510 # below for broken collect2 doesn't work under 4.3+
130511 collect2name=`${CC} -print-prog-name=collect2`
130512 if test -f "$collect2name" && \
130513 strings "$collect2name" | grep resolve_lib_name >/dev/null
130515 # We have reworked collect2
130516 hardcode_direct_GCJ=yes
130518 # We have old collect2
130519 hardcode_direct_GCJ=unsupported
130520 # It fails to find uninstalled libraries when the uninstalled
130521 # path is not listed in the libpath. Setting hardcode_minus_L
130522 # to unsupported forces relinking
130523 hardcode_minus_L_GCJ=yes
130524 hardcode_libdir_flag_spec_GCJ='-L$libdir'
130525 hardcode_libdir_separator_GCJ=
130529 shared_flag='-shared'
130530 if test "$aix_use_runtimelinking" = yes; then
130531 shared_flag="$shared_flag "'${wl}-G'
130534 # not using gcc
130535 if test "$host_cpu" = ia64; then
130536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
130537 # chokes on -Wl,-G. The following line is correct:
130538 shared_flag='-G'
130540 if test "$aix_use_runtimelinking" = yes; then
130541 shared_flag='${wl}-G'
130543 shared_flag='${wl}-bM:SRE'
130548 # It seems that -bexpall does not export symbols beginning with
130549 # underscore (_), so it is better to generate a list of symbols to export.
130550 always_export_symbols_GCJ=yes
130551 if test "$aix_use_runtimelinking" = yes; then
130552 # Warning - without using the other runtime loading flags (-brtl),
130553 # -berok will link without error, but may produce a broken library.
130554 allow_undefined_flag_GCJ='-berok'
130555 # Determine the default libpath from the value encoded in an empty executable.
130556 cat >conftest.$ac_ext <<_ACEOF
130557 /* confdefs.h. */
130558 _ACEOF
130559 cat confdefs.h >>conftest.$ac_ext
130560 cat >>conftest.$ac_ext <<_ACEOF
130561 /* end confdefs.h. */
130564 main ()
130568 return 0;
130570 _ACEOF
130571 rm -f conftest.$ac_objext conftest$ac_exeext
130572 if { (ac_try="$ac_link"
130573 case "(($ac_try" in
130574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130575 *) ac_try_echo=$ac_try;;
130577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
130578 (eval "$ac_link") 2>conftest.er1
130579 ac_status=$?
130580 grep -v '^ *+' conftest.er1 >conftest.err
130581 rm -f conftest.er1
130582 cat conftest.err >&5
130583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
130584 (exit $ac_status); } && {
130585 test -z "$ac_c_werror_flag" ||
130586 test ! -s conftest.err
130587 } && test -s conftest$ac_exeext &&
130588 $as_test_x conftest$ac_exeext; then
130590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
130592 # Check for a 64-bit object if we didn't find anything.
130593 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
130594 }'`; fi
130596 echo "$as_me: failed program was:" >&5
130597 sed 's/^/| /' conftest.$ac_ext >&5
130602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
130603 conftest$ac_exeext conftest.$ac_ext
130604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
130606 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
130607 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
130609 if test "$host_cpu" = ia64; then
130610 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
130611 allow_undefined_flag_GCJ="-z nodefs"
130612 archive_expsym_cmds_GCJ="\$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"
130614 # Determine the default libpath from the value encoded in an empty executable.
130615 cat >conftest.$ac_ext <<_ACEOF
130616 /* confdefs.h. */
130617 _ACEOF
130618 cat confdefs.h >>conftest.$ac_ext
130619 cat >>conftest.$ac_ext <<_ACEOF
130620 /* end confdefs.h. */
130623 main ()
130627 return 0;
130629 _ACEOF
130630 rm -f conftest.$ac_objext conftest$ac_exeext
130631 if { (ac_try="$ac_link"
130632 case "(($ac_try" in
130633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130634 *) ac_try_echo=$ac_try;;
130636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
130637 (eval "$ac_link") 2>conftest.er1
130638 ac_status=$?
130639 grep -v '^ *+' conftest.er1 >conftest.err
130640 rm -f conftest.er1
130641 cat conftest.err >&5
130642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
130643 (exit $ac_status); } && {
130644 test -z "$ac_c_werror_flag" ||
130645 test ! -s conftest.err
130646 } && test -s conftest$ac_exeext &&
130647 $as_test_x conftest$ac_exeext; then
130649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
130651 # Check for a 64-bit object if we didn't find anything.
130652 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
130653 }'`; fi
130655 echo "$as_me: failed program was:" >&5
130656 sed 's/^/| /' conftest.$ac_ext >&5
130661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
130662 conftest$ac_exeext conftest.$ac_ext
130663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
130665 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
130666 # Warning - without using the other run time loading flags,
130667 # -berok will link without error, but may produce a broken library.
130668 no_undefined_flag_GCJ=' ${wl}-bernotok'
130669 allow_undefined_flag_GCJ=' ${wl}-berok'
130670 # Exported symbols can be pulled into shared objects from archives
130671 whole_archive_flag_spec_GCJ='$convenience'
130672 archive_cmds_need_lc_GCJ=yes
130673 # This is similar to how AIX traditionally builds its shared libraries.
130674 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
130679 amigaos*)
130680 archive_cmds_GCJ='$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)'
130681 hardcode_libdir_flag_spec_GCJ='-L$libdir'
130682 hardcode_minus_L_GCJ=yes
130683 # see comment about different semantics on the GNU ld section
130684 ld_shlibs_GCJ=no
130687 bsdi[45]*)
130688 export_dynamic_flag_spec_GCJ=-rdynamic
130691 cygwin* | mingw* | pw32*)
130692 # When not using gcc, we currently assume that we are using
130693 # Microsoft Visual C++.
130694 # hardcode_libdir_flag_spec is actually meaningless, as there is
130695 # no search path for DLLs.
130696 hardcode_libdir_flag_spec_GCJ=' '
130697 allow_undefined_flag_GCJ=unsupported
130698 # Tell ltmain to make .lib files, not .a files.
130699 libext=lib
130700 # Tell ltmain to make .dll files, not .so files.
130701 shrext_cmds=".dll"
130702 # FIXME: Setting linknames here is a bad hack.
130703 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
130704 # The linker will automatically build a .lib file if we build a DLL.
130705 old_archive_From_new_cmds_GCJ='true'
130706 # FIXME: Should let the user specify the lib program.
130707 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
130708 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
130709 enable_shared_with_static_runtimes_GCJ=yes
130712 darwin* | rhapsody*)
130713 case $host_os in
130714 rhapsody* | darwin1.[012])
130715 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
130717 *) # Darwin 1.3 on
130718 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
130719 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
130721 case ${MACOSX_DEPLOYMENT_TARGET} in
130722 10.[012])
130723 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
130725 10.*)
130726 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
130732 archive_cmds_need_lc_GCJ=no
130733 hardcode_direct_GCJ=no
130734 hardcode_automatic_GCJ=yes
130735 hardcode_shlibpath_var_GCJ=unsupported
130736 whole_archive_flag_spec_GCJ=''
130737 link_all_deplibs_GCJ=yes
130738 if test "$GCC" = yes ; then
130739 output_verbose_link_cmd='echo'
130740 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
130741 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
130742 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
130743 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
130744 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
130746 case $cc_basename in
130747 xlc*)
130748 output_verbose_link_cmd='echo'
130749 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
130750 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
130751 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
130752 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
130753 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
130756 ld_shlibs_GCJ=no
130762 dgux*)
130763 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
130764 hardcode_libdir_flag_spec_GCJ='-L$libdir'
130765 hardcode_shlibpath_var_GCJ=no
130768 freebsd1*)
130769 ld_shlibs_GCJ=no
130772 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
130773 # support. Future versions do this automatically, but an explicit c++rt0.o
130774 # does not break anything, and helps significantly (at the cost of a little
130775 # extra space).
130776 freebsd2.2*)
130777 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
130778 hardcode_libdir_flag_spec_GCJ='-R$libdir'
130779 hardcode_direct_GCJ=yes
130780 hardcode_shlibpath_var_GCJ=no
130783 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
130784 freebsd2*)
130785 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
130786 hardcode_direct_GCJ=yes
130787 hardcode_minus_L_GCJ=yes
130788 hardcode_shlibpath_var_GCJ=no
130791 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
130792 freebsd* | dragonfly*)
130793 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
130794 hardcode_libdir_flag_spec_GCJ='-R$libdir'
130795 hardcode_direct_GCJ=yes
130796 hardcode_shlibpath_var_GCJ=no
130799 hpux9*)
130800 if test "$GCC" = yes; then
130801 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
130803 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
130805 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
130806 hardcode_libdir_separator_GCJ=:
130807 hardcode_direct_GCJ=yes
130809 # hardcode_minus_L: Not really in the search PATH,
130810 # but as the default location of the library.
130811 hardcode_minus_L_GCJ=yes
130812 export_dynamic_flag_spec_GCJ='${wl}-E'
130815 hpux10*)
130816 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
130817 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
130819 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
130821 if test "$with_gnu_ld" = no; then
130822 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
130823 hardcode_libdir_separator_GCJ=:
130825 hardcode_direct_GCJ=yes
130826 export_dynamic_flag_spec_GCJ='${wl}-E'
130828 # hardcode_minus_L: Not really in the search PATH,
130829 # but as the default location of the library.
130830 hardcode_minus_L_GCJ=yes
130834 hpux11*)
130835 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
130836 case $host_cpu in
130837 hppa*64*)
130838 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
130840 ia64*)
130841 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
130844 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
130848 case $host_cpu in
130849 hppa*64*)
130850 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
130852 ia64*)
130853 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
130856 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
130860 if test "$with_gnu_ld" = no; then
130861 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
130862 hardcode_libdir_separator_GCJ=:
130864 case $host_cpu in
130865 hppa*64*|ia64*)
130866 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
130867 hardcode_direct_GCJ=no
130868 hardcode_shlibpath_var_GCJ=no
130871 hardcode_direct_GCJ=yes
130872 export_dynamic_flag_spec_GCJ='${wl}-E'
130874 # hardcode_minus_L: Not really in the search PATH,
130875 # but as the default location of the library.
130876 hardcode_minus_L_GCJ=yes
130882 irix5* | irix6* | nonstopux*)
130883 if test "$GCC" = yes; then
130884 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
130886 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
130887 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
130889 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
130890 hardcode_libdir_separator_GCJ=:
130891 link_all_deplibs_GCJ=yes
130894 netbsd* | netbsdelf*-gnu)
130895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
130896 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
130898 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
130900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
130901 hardcode_direct_GCJ=yes
130902 hardcode_shlibpath_var_GCJ=no
130905 newsos6)
130906 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
130907 hardcode_direct_GCJ=yes
130908 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
130909 hardcode_libdir_separator_GCJ=:
130910 hardcode_shlibpath_var_GCJ=no
130913 openbsd*)
130914 hardcode_direct_GCJ=yes
130915 hardcode_shlibpath_var_GCJ=no
130916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
130917 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
130918 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
130919 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
130920 export_dynamic_flag_spec_GCJ='${wl}-E'
130922 case $host_os in
130923 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
130924 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
130925 hardcode_libdir_flag_spec_GCJ='-R$libdir'
130928 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
130929 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
130935 os2*)
130936 hardcode_libdir_flag_spec_GCJ='-L$libdir'
130937 hardcode_minus_L_GCJ=yes
130938 allow_undefined_flag_GCJ=unsupported
130939 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
130940 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
130943 osf3*)
130944 if test "$GCC" = yes; then
130945 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
130946 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
130948 allow_undefined_flag_GCJ=' -expect_unresolved \*'
130949 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
130951 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
130952 hardcode_libdir_separator_GCJ=:
130955 osf4* | osf5*) # as osf3* with the addition of -msym flag
130956 if test "$GCC" = yes; then
130957 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
130958 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
130959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
130961 allow_undefined_flag_GCJ=' -expect_unresolved \*'
130962 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
130963 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
130964 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
130966 # Both c and cxx compiler support -rpath directly
130967 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
130969 hardcode_libdir_separator_GCJ=:
130972 solaris*)
130973 no_undefined_flag_GCJ=' -z text'
130974 if test "$GCC" = yes; then
130975 wlarc='${wl}'
130976 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
130977 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
130978 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
130980 wlarc=''
130981 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
130982 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
130983 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
130985 hardcode_libdir_flag_spec_GCJ='-R$libdir'
130986 hardcode_shlibpath_var_GCJ=no
130987 case $host_os in
130988 solaris2.[0-5] | solaris2.[0-5].*) ;;
130990 # The compiler driver will combine linker options so we
130991 # cannot just pass the convience library names through
130992 # without $wl, iff we do not link with $LD.
130993 # Luckily, gcc supports the same syntax we need for Sun Studio.
130994 # Supported since Solaris 2.6 (maybe 2.5.1?)
130995 case $wlarc in
130997 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
130999 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
131000 esac ;;
131002 link_all_deplibs_GCJ=yes
131005 sunos4*)
131006 if test "x$host_vendor" = xsequent; then
131007 # Use $CC to link under sequent, because it throws in some extra .o
131008 # files that make .init and .fini sections work.
131009 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
131011 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
131013 hardcode_libdir_flag_spec_GCJ='-L$libdir'
131014 hardcode_direct_GCJ=yes
131015 hardcode_minus_L_GCJ=yes
131016 hardcode_shlibpath_var_GCJ=no
131019 sysv4)
131020 case $host_vendor in
131022 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
131023 hardcode_direct_GCJ=yes # is this really true???
131025 siemens)
131026 ## LD is ld it makes a PLAMLIB
131027 ## CC just makes a GrossModule.
131028 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
131029 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
131030 hardcode_direct_GCJ=no
131032 motorola)
131033 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
131034 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
131037 runpath_var='LD_RUN_PATH'
131038 hardcode_shlibpath_var_GCJ=no
131041 sysv4.3*)
131042 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
131043 hardcode_shlibpath_var_GCJ=no
131044 export_dynamic_flag_spec_GCJ='-Bexport'
131047 sysv4*MP*)
131048 if test -d /usr/nec; then
131049 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
131050 hardcode_shlibpath_var_GCJ=no
131051 runpath_var=LD_RUN_PATH
131052 hardcode_runpath_var=yes
131053 ld_shlibs_GCJ=yes
131057 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
131058 no_undefined_flag_GCJ='${wl}-z,text'
131059 archive_cmds_need_lc_GCJ=no
131060 hardcode_shlibpath_var_GCJ=no
131061 runpath_var='LD_RUN_PATH'
131063 if test "$GCC" = yes; then
131064 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
131065 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
131067 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
131068 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
131072 sysv5* | sco3.2v5* | sco5v6*)
131073 # Note: We can NOT use -z defs as we might desire, because we do not
131074 # link with -lc, and that would cause any symbols used from libc to
131075 # always be unresolved, which means just about no library would
131076 # ever link correctly. If we're not using GNU ld we use -z text
131077 # though, which does catch some bad symbols but isn't as heavy-handed
131078 # as -z defs.
131079 no_undefined_flag_GCJ='${wl}-z,text'
131080 allow_undefined_flag_GCJ='${wl}-z,nodefs'
131081 archive_cmds_need_lc_GCJ=no
131082 hardcode_shlibpath_var_GCJ=no
131083 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
131084 hardcode_libdir_separator_GCJ=':'
131085 link_all_deplibs_GCJ=yes
131086 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
131087 runpath_var='LD_RUN_PATH'
131089 if test "$GCC" = yes; then
131090 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
131091 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
131093 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
131094 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
131098 uts4*)
131099 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
131100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
131101 hardcode_shlibpath_var_GCJ=no
131105 ld_shlibs_GCJ=no
131110 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
131111 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
131112 test "$ld_shlibs_GCJ" = no && can_build_shared=no
131115 # Do we need to explicitly link libc?
131117 case "x$archive_cmds_need_lc_GCJ" in
131118 x|xyes)
131119 # Assume -lc should be added
131120 archive_cmds_need_lc_GCJ=yes
131122 if test "$enable_shared" = yes && test "$GCC" = yes; then
131123 case $archive_cmds_GCJ in
131124 *'~'*)
131125 # FIXME: we may have to deal with multi-command sequences.
131127 '$CC '*)
131128 # Test whether the compiler implicitly links with -lc since on some
131129 # systems, -lgcc has to come before -lc. If gcc already passes -lc
131130 # to ld, don't add -lc before -lgcc.
131131 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
131132 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
131133 $rm conftest*
131134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
131136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
131137 (eval $ac_compile) 2>&5
131138 ac_status=$?
131139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
131140 (exit $ac_status); } 2>conftest.err; then
131141 soname=conftest
131142 lib=conftest
131143 libobjs=conftest.$ac_objext
131144 deplibs=
131145 wl=$lt_prog_compiler_wl_GCJ
131146 pic_flag=$lt_prog_compiler_pic_GCJ
131147 compiler_flags=-v
131148 linker_flags=-v
131149 verstring=
131150 output_objdir=.
131151 libname=conftest
131152 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
131153 allow_undefined_flag_GCJ=
131154 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
131155 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
131156 ac_status=$?
131157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
131158 (exit $ac_status); }
131160 archive_cmds_need_lc_GCJ=no
131162 archive_cmds_need_lc_GCJ=yes
131164 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
131166 cat conftest.err 1>&5
131168 $rm conftest*
131169 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
131170 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
131177 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
131178 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
131179 library_names_spec=
131180 libname_spec='lib$name'
131181 soname_spec=
131182 shrext_cmds=".so"
131183 postinstall_cmds=
131184 postuninstall_cmds=
131185 finish_cmds=
131186 finish_eval=
131187 shlibpath_var=
131188 shlibpath_overrides_runpath=unknown
131189 version_type=none
131190 dynamic_linker="$host_os ld.so"
131191 sys_lib_dlsearch_path_spec="/lib /usr/lib"
131192 if test "$GCC" = yes; then
131193 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
131194 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
131195 # if the path contains ";" then we assume it to be the separator
131196 # otherwise default to the standard path separator (i.e. ":") - it is
131197 # assumed that no part of a normal pathname contains ";" but that should
131198 # okay in the real world where ";" in dirpaths is itself problematic.
131199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
131201 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
131204 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
131206 need_lib_prefix=unknown
131207 hardcode_into_libs=no
131209 # when you set need_version to no, make sure it does not cause -set_version
131210 # flags to be left without arguments
131211 need_version=unknown
131213 case $host_os in
131214 aix3*)
131215 version_type=linux
131216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
131217 shlibpath_var=LIBPATH
131219 # AIX 3 has no versioning support, so we append a major version to the name.
131220 soname_spec='${libname}${release}${shared_ext}$major'
131223 aix4* | aix5*)
131224 version_type=linux
131225 need_lib_prefix=no
131226 need_version=no
131227 hardcode_into_libs=yes
131228 if test "$host_cpu" = ia64; then
131229 # AIX 5 supports IA64
131230 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
131231 shlibpath_var=LD_LIBRARY_PATH
131233 # With GCC up to 2.95.x, collect2 would create an import file
131234 # for dependence libraries. The import file would start with
131235 # the line `#! .'. This would cause the generated library to
131236 # depend on `.', always an invalid library. This was fixed in
131237 # development snapshots of GCC prior to 3.0.
131238 case $host_os in
131239 aix4 | aix4.[01] | aix4.[01].*)
131240 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
131241 echo ' yes '
131242 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
131245 can_build_shared=no
131249 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
131250 # soname into executable. Probably we can add versioning support to
131251 # collect2, so additional links can be useful in future.
131252 if test "$aix_use_runtimelinking" = yes; then
131253 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
131254 # instead of lib<name>.a to let people know that these are not
131255 # typical AIX shared libraries.
131256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
131258 # We preserve .a as extension for shared libraries through AIX4.2
131259 # and later when we are not doing run time linking.
131260 library_names_spec='${libname}${release}.a $libname.a'
131261 soname_spec='${libname}${release}${shared_ext}$major'
131263 shlibpath_var=LIBPATH
131267 amigaos*)
131268 library_names_spec='$libname.ixlibrary $libname.a'
131269 # Create ${libname}_ixlibrary.a entries in /sys/libs.
131270 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
131273 beos*)
131274 library_names_spec='${libname}${shared_ext}'
131275 dynamic_linker="$host_os ld.so"
131276 shlibpath_var=LIBRARY_PATH
131279 bsdi[45]*)
131280 version_type=linux
131281 need_version=no
131282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
131283 soname_spec='${libname}${release}${shared_ext}$major'
131284 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
131285 shlibpath_var=LD_LIBRARY_PATH
131286 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
131287 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
131288 # the default ld.so.conf also contains /usr/contrib/lib and
131289 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
131290 # libtool to hard-code these into programs
131293 cygwin* | mingw* | pw32*)
131294 version_type=windows
131295 shrext_cmds=".dll"
131296 need_version=no
131297 need_lib_prefix=no
131299 case $GCC,$host_os in
131300 yes,cygwin* | yes,mingw* | yes,pw32*)
131301 library_names_spec='$libname.dll.a'
131302 # DLL is installed to $(libdir)/../bin by postinstall_cmds
131303 postinstall_cmds='base_file=`basename \${file}`~
131304 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
131305 dldir=$destdir/`dirname \$dlpath`~
131306 test -d \$dldir || mkdir -p \$dldir~
131307 $install_prog $dir/$dlname \$dldir/$dlname~
131308 chmod a+x \$dldir/$dlname'
131309 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
131310 dlpath=$dir/\$dldll~
131311 $rm \$dlpath'
131312 shlibpath_overrides_runpath=yes
131314 case $host_os in
131315 cygwin*)
131316 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
131317 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
131318 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
131320 mingw*)
131321 # MinGW DLLs use traditional 'lib' prefix
131322 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
131323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
131324 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
131325 # It is most probably a Windows format PATH printed by
131326 # mingw gcc, but we are running on Cygwin. Gcc prints its search
131327 # path with ; separators, and with drive letters. We can handle the
131328 # drive letters (cygwin fileutils understands them), so leave them,
131329 # especially as we might pass files found there to a mingw objdump,
131330 # which wouldn't understand a cygwinified path. Ahh.
131331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
131333 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
131336 pw32*)
131337 # pw32 DLLs use 'pw' prefix rather than 'lib'
131338 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
131344 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
131347 dynamic_linker='Win32 ld.exe'
131348 # FIXME: first we should search . and the directory the executable is in
131349 shlibpath_var=PATH
131352 darwin* | rhapsody*)
131353 dynamic_linker="$host_os dyld"
131354 version_type=darwin
131355 need_lib_prefix=no
131356 need_version=no
131357 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
131358 soname_spec='${libname}${release}${major}$shared_ext'
131359 shlibpath_overrides_runpath=yes
131360 shlibpath_var=DYLD_LIBRARY_PATH
131361 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
131362 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
131363 if test "$GCC" = yes; then
131364 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
131366 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
131368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
131371 dgux*)
131372 version_type=linux
131373 need_lib_prefix=no
131374 need_version=no
131375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
131376 soname_spec='${libname}${release}${shared_ext}$major'
131377 shlibpath_var=LD_LIBRARY_PATH
131380 freebsd1*)
131381 dynamic_linker=no
131384 freebsd* | dragonfly*)
131385 # DragonFly does not have aout. When/if they implement a new
131386 # versioning mechanism, adjust this.
131387 if test -x /usr/bin/objformat; then
131388 objformat=`/usr/bin/objformat`
131390 case $host_os in
131391 freebsd[123]*) objformat=aout ;;
131392 *) objformat=elf ;;
131395 version_type=freebsd-$objformat
131396 case $version_type in
131397 freebsd-elf*)
131398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
131399 need_version=no
131400 need_lib_prefix=no
131402 freebsd-*)
131403 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
131404 need_version=yes
131407 shlibpath_var=LD_LIBRARY_PATH
131408 case $host_os in
131409 freebsd2*)
131410 shlibpath_overrides_runpath=yes
131412 freebsd3.[01]* | freebsdelf3.[01]*)
131413 shlibpath_overrides_runpath=yes
131414 hardcode_into_libs=yes
131416 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
131417 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
131418 shlibpath_overrides_runpath=no
131419 hardcode_into_libs=yes
131421 freebsd*) # from 4.6 on
131422 shlibpath_overrides_runpath=yes
131423 hardcode_into_libs=yes
131428 gnu*)
131429 version_type=linux
131430 need_lib_prefix=no
131431 need_version=no
131432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
131433 soname_spec='${libname}${release}${shared_ext}$major'
131434 shlibpath_var=LD_LIBRARY_PATH
131435 hardcode_into_libs=yes
131438 hpux9* | hpux10* | hpux11*)
131439 # Give a soname corresponding to the major version so that dld.sl refuses to
131440 # link against other versions.
131441 version_type=sunos
131442 need_lib_prefix=no
131443 need_version=no
131444 case $host_cpu in
131445 ia64*)
131446 shrext_cmds='.so'
131447 hardcode_into_libs=yes
131448 dynamic_linker="$host_os dld.so"
131449 shlibpath_var=LD_LIBRARY_PATH
131450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
131451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
131452 soname_spec='${libname}${release}${shared_ext}$major'
131453 if test "X$HPUX_IA64_MODE" = X32; then
131454 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
131456 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
131458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
131460 hppa*64*)
131461 shrext_cmds='.sl'
131462 hardcode_into_libs=yes
131463 dynamic_linker="$host_os dld.sl"
131464 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
131465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
131466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
131467 soname_spec='${libname}${release}${shared_ext}$major'
131468 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
131469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
131472 shrext_cmds='.sl'
131473 dynamic_linker="$host_os dld.sl"
131474 shlibpath_var=SHLIB_PATH
131475 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
131476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
131477 soname_spec='${libname}${release}${shared_ext}$major'
131480 # HP-UX runs *really* slowly unless shared libraries are mode 555.
131481 postinstall_cmds='chmod 555 $lib'
131484 interix3*)
131485 version_type=linux
131486 need_lib_prefix=no
131487 need_version=no
131488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
131489 soname_spec='${libname}${release}${shared_ext}$major'
131490 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
131491 shlibpath_var=LD_LIBRARY_PATH
131492 shlibpath_overrides_runpath=no
131493 hardcode_into_libs=yes
131496 irix5* | irix6* | nonstopux*)
131497 case $host_os in
131498 nonstopux*) version_type=nonstopux ;;
131500 if test "$lt_cv_prog_gnu_ld" = yes; then
131501 version_type=linux
131503 version_type=irix
131504 fi ;;
131506 need_lib_prefix=no
131507 need_version=no
131508 soname_spec='${libname}${release}${shared_ext}$major'
131509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
131510 case $host_os in
131511 irix5* | nonstopux*)
131512 libsuff= shlibsuff=
131515 case $LD in # libtool.m4 will add one of these switches to LD
131516 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
131517 libsuff= shlibsuff= libmagic=32-bit;;
131518 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
131519 libsuff=32 shlibsuff=N32 libmagic=N32;;
131520 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
131521 libsuff=64 shlibsuff=64 libmagic=64-bit;;
131522 *) libsuff= shlibsuff= libmagic=never-match;;
131526 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
131527 shlibpath_overrides_runpath=no
131528 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
131529 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
131530 hardcode_into_libs=yes
131533 # No shared lib support for Linux oldld, aout, or coff.
131534 linux*oldld* | linux*aout* | linux*coff*)
131535 dynamic_linker=no
131538 # This must be Linux ELF.
131539 linux* | k*bsd*-gnu)
131540 version_type=linux
131541 need_lib_prefix=no
131542 need_version=no
131543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
131544 soname_spec='${libname}${release}${shared_ext}$major'
131545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
131546 shlibpath_var=LD_LIBRARY_PATH
131547 shlibpath_overrides_runpath=no
131548 # This implies no fast_install, which is unacceptable.
131549 # Some rework will be needed to allow for fast_install
131550 # before this can be enabled.
131551 hardcode_into_libs=yes
131553 # Append ld.so.conf contents to the search path
131554 if test -f /etc/ld.so.conf; then
131555 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
131556 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
131559 # We used to test for /lib/ld.so.1 and disable shared libraries on
131560 # powerpc, because MkLinux only supported shared libraries with the
131561 # GNU dynamic linker. Since this was broken with cross compilers,
131562 # most powerpc-linux boxes support dynamic linking these days and
131563 # people can always --disable-shared, the test was removed, and we
131564 # assume the GNU/Linux dynamic linker is in use.
131565 dynamic_linker='GNU/Linux ld.so'
131568 netbsdelf*-gnu)
131569 version_type=linux
131570 need_lib_prefix=no
131571 need_version=no
131572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
131573 soname_spec='${libname}${release}${shared_ext}$major'
131574 shlibpath_var=LD_LIBRARY_PATH
131575 shlibpath_overrides_runpath=no
131576 hardcode_into_libs=yes
131577 dynamic_linker='NetBSD ld.elf_so'
131580 netbsd*)
131581 version_type=sunos
131582 need_lib_prefix=no
131583 need_version=no
131584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
131585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
131586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
131587 dynamic_linker='NetBSD (a.out) ld.so'
131589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
131590 soname_spec='${libname}${release}${shared_ext}$major'
131591 dynamic_linker='NetBSD ld.elf_so'
131593 shlibpath_var=LD_LIBRARY_PATH
131594 shlibpath_overrides_runpath=yes
131595 hardcode_into_libs=yes
131598 newsos6)
131599 version_type=linux
131600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
131601 shlibpath_var=LD_LIBRARY_PATH
131602 shlibpath_overrides_runpath=yes
131605 nto-qnx*)
131606 version_type=linux
131607 need_lib_prefix=no
131608 need_version=no
131609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
131610 soname_spec='${libname}${release}${shared_ext}$major'
131611 shlibpath_var=LD_LIBRARY_PATH
131612 shlibpath_overrides_runpath=yes
131615 openbsd*)
131616 version_type=sunos
131617 sys_lib_dlsearch_path_spec="/usr/lib"
131618 need_lib_prefix=no
131619 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
131620 case $host_os in
131621 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
131622 *) need_version=no ;;
131624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
131625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
131626 shlibpath_var=LD_LIBRARY_PATH
131627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
131628 case $host_os in
131629 openbsd2.[89] | openbsd2.[89].*)
131630 shlibpath_overrides_runpath=no
131633 shlibpath_overrides_runpath=yes
131637 shlibpath_overrides_runpath=yes
131641 os2*)
131642 libname_spec='$name'
131643 shrext_cmds=".dll"
131644 need_lib_prefix=no
131645 library_names_spec='$libname${shared_ext} $libname.a'
131646 dynamic_linker='OS/2 ld.exe'
131647 shlibpath_var=LIBPATH
131650 osf3* | osf4* | osf5*)
131651 version_type=osf
131652 need_lib_prefix=no
131653 need_version=no
131654 soname_spec='${libname}${release}${shared_ext}$major'
131655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
131656 shlibpath_var=LD_LIBRARY_PATH
131657 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
131658 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
131661 solaris*)
131662 version_type=linux
131663 need_lib_prefix=no
131664 need_version=no
131665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
131666 soname_spec='${libname}${release}${shared_ext}$major'
131667 shlibpath_var=LD_LIBRARY_PATH
131668 shlibpath_overrides_runpath=yes
131669 hardcode_into_libs=yes
131670 # ldd complains unless libraries are executable
131671 postinstall_cmds='chmod +x $lib'
131674 sunos4*)
131675 version_type=sunos
131676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
131677 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
131678 shlibpath_var=LD_LIBRARY_PATH
131679 shlibpath_overrides_runpath=yes
131680 if test "$with_gnu_ld" = yes; then
131681 need_lib_prefix=no
131683 need_version=yes
131686 sysv4 | sysv4.3*)
131687 version_type=linux
131688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
131689 soname_spec='${libname}${release}${shared_ext}$major'
131690 shlibpath_var=LD_LIBRARY_PATH
131691 case $host_vendor in
131693 shlibpath_overrides_runpath=no
131694 need_lib_prefix=no
131695 export_dynamic_flag_spec='${wl}-Blargedynsym'
131696 runpath_var=LD_RUN_PATH
131698 siemens)
131699 need_lib_prefix=no
131701 motorola)
131702 need_lib_prefix=no
131703 need_version=no
131704 shlibpath_overrides_runpath=no
131705 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
131710 sysv4*MP*)
131711 if test -d /usr/nec ;then
131712 version_type=linux
131713 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
131714 soname_spec='$libname${shared_ext}.$major'
131715 shlibpath_var=LD_LIBRARY_PATH
131719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
131720 version_type=freebsd-elf
131721 need_lib_prefix=no
131722 need_version=no
131723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
131724 soname_spec='${libname}${release}${shared_ext}$major'
131725 shlibpath_var=LD_LIBRARY_PATH
131726 hardcode_into_libs=yes
131727 if test "$with_gnu_ld" = yes; then
131728 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
131729 shlibpath_overrides_runpath=no
131731 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
131732 shlibpath_overrides_runpath=yes
131733 case $host_os in
131734 sco3.2v5*)
131735 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
131739 sys_lib_dlsearch_path_spec='/usr/lib'
131742 uts4*)
131743 version_type=linux
131744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
131745 soname_spec='${libname}${release}${shared_ext}$major'
131746 shlibpath_var=LD_LIBRARY_PATH
131750 dynamic_linker=no
131753 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
131754 echo "${ECHO_T}$dynamic_linker" >&6; }
131755 test "$dynamic_linker" = no && can_build_shared=no
131757 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
131758 if test "$GCC" = yes; then
131759 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
131762 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
131763 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
131764 hardcode_action_GCJ=
131765 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
131766 test -n "$runpath_var_GCJ" || \
131767 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
131769 # We can hardcode non-existant directories.
131770 if test "$hardcode_direct_GCJ" != no &&
131771 # If the only mechanism to avoid hardcoding is shlibpath_var, we
131772 # have to relink, otherwise we might link with an installed library
131773 # when we should be linking with a yet-to-be-installed one
131774 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
131775 test "$hardcode_minus_L_GCJ" != no; then
131776 # Linking always hardcodes the temporary library directory.
131777 hardcode_action_GCJ=relink
131779 # We can link without hardcoding, and we can hardcode nonexisting dirs.
131780 hardcode_action_GCJ=immediate
131783 # We cannot hardcode anything, or else we can only hardcode existing
131784 # directories.
131785 hardcode_action_GCJ=unsupported
131787 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
131788 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
131790 if test "$hardcode_action_GCJ" = relink; then
131791 # Fast installation is not supported
131792 enable_fast_install=no
131793 elif test "$shlibpath_overrides_runpath" = yes ||
131794 test "$enable_shared" = no; then
131795 # Fast installation is not necessary
131796 enable_fast_install=needless
131800 # The else clause should only fire when bootstrapping the
131801 # libtool distribution, otherwise you forgot to ship ltmain.sh
131802 # with your package, and you will get complaints that there are
131803 # no rules to generate ltmain.sh.
131804 if test -f "$ltmain"; then
131805 # See if we are running on zsh, and set the options which allow our commands through
131806 # without removal of \ escapes.
131807 if test -n "${ZSH_VERSION+set}" ; then
131808 setopt NO_GLOB_SUBST
131810 # Now quote all the things that may contain metacharacters while being
131811 # careful not to overquote the AC_SUBSTed values. We take copies of the
131812 # variables and quote the copies for generation of the libtool script.
131813 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
131814 SED SHELL STRIP \
131815 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
131816 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
131817 deplibs_check_method reload_flag reload_cmds need_locks \
131818 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
131819 lt_cv_sys_global_symbol_to_c_name_address \
131820 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
131821 old_postinstall_cmds old_postuninstall_cmds \
131822 compiler_GCJ \
131823 CC_GCJ \
131824 LD_GCJ \
131825 lt_prog_compiler_wl_GCJ \
131826 lt_prog_compiler_pic_GCJ \
131827 lt_prog_compiler_static_GCJ \
131828 lt_prog_compiler_no_builtin_flag_GCJ \
131829 export_dynamic_flag_spec_GCJ \
131830 thread_safe_flag_spec_GCJ \
131831 whole_archive_flag_spec_GCJ \
131832 enable_shared_with_static_runtimes_GCJ \
131833 old_archive_cmds_GCJ \
131834 old_archive_from_new_cmds_GCJ \
131835 predep_objects_GCJ \
131836 postdep_objects_GCJ \
131837 predeps_GCJ \
131838 postdeps_GCJ \
131839 compiler_lib_search_path_GCJ \
131840 archive_cmds_GCJ \
131841 archive_expsym_cmds_GCJ \
131842 postinstall_cmds_GCJ \
131843 postuninstall_cmds_GCJ \
131844 old_archive_from_expsyms_cmds_GCJ \
131845 allow_undefined_flag_GCJ \
131846 no_undefined_flag_GCJ \
131847 export_symbols_cmds_GCJ \
131848 hardcode_libdir_flag_spec_GCJ \
131849 hardcode_libdir_flag_spec_ld_GCJ \
131850 hardcode_libdir_separator_GCJ \
131851 hardcode_automatic_GCJ \
131852 module_cmds_GCJ \
131853 module_expsym_cmds_GCJ \
131854 lt_cv_prog_compiler_c_o_GCJ \
131855 exclude_expsyms_GCJ \
131856 include_expsyms_GCJ; do
131858 case $var in
131859 old_archive_cmds_GCJ | \
131860 old_archive_from_new_cmds_GCJ | \
131861 archive_cmds_GCJ | \
131862 archive_expsym_cmds_GCJ | \
131863 module_cmds_GCJ | \
131864 module_expsym_cmds_GCJ | \
131865 old_archive_from_expsyms_cmds_GCJ | \
131866 export_symbols_cmds_GCJ | \
131867 extract_expsyms_cmds | reload_cmds | finish_cmds | \
131868 postinstall_cmds | postuninstall_cmds | \
131869 old_postinstall_cmds | old_postuninstall_cmds | \
131870 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
131871 # Double-quote double-evaled strings.
131872 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
131875 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
131880 case $lt_echo in
131881 *'\$0 --fallback-echo"')
131882 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
131886 cfgfile="$ofile"
131888 cat <<__EOF__ >> "$cfgfile"
131889 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
131891 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
131893 # Shell to use when invoking shell scripts.
131894 SHELL=$lt_SHELL
131896 # Whether or not to build shared libraries.
131897 build_libtool_libs=$enable_shared
131899 # Whether or not to build static libraries.
131900 build_old_libs=$enable_static
131902 # Whether or not to add -lc for building shared libraries.
131903 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
131905 # Whether or not to disallow shared libs when runtime libs are static
131906 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
131908 # Whether or not to optimize for fast installation.
131909 fast_install=$enable_fast_install
131911 # The host system.
131912 host_alias=$host_alias
131913 host=$host
131914 host_os=$host_os
131916 # The build system.
131917 build_alias=$build_alias
131918 build=$build
131919 build_os=$build_os
131921 # An echo program that does not interpret backslashes.
131922 echo=$lt_echo
131924 # The archiver.
131925 AR=$lt_AR
131926 AR_FLAGS=$lt_AR_FLAGS
131928 # A C compiler.
131929 LTCC=$lt_LTCC
131931 # LTCC compiler flags.
131932 LTCFLAGS=$lt_LTCFLAGS
131934 # A language-specific compiler.
131935 CC=$lt_compiler_GCJ
131937 # Is the compiler the GNU C compiler?
131938 with_gcc=$GCC_GCJ
131940 # An ERE matcher.
131941 EGREP=$lt_EGREP
131943 # The linker used to build libraries.
131944 LD=$lt_LD_GCJ
131946 # Whether we need hard or soft links.
131947 LN_S=$lt_LN_S
131949 # A BSD-compatible nm program.
131950 NM=$lt_NM
131952 # A symbol stripping program
131953 STRIP=$lt_STRIP
131955 # Used to examine libraries when file_magic_cmd begins "file"
131956 MAGIC_CMD=$MAGIC_CMD
131958 # Used on cygwin: DLL creation program.
131959 DLLTOOL="$DLLTOOL"
131961 # Used on cygwin: object dumper.
131962 OBJDUMP="$OBJDUMP"
131964 # Used on cygwin: assembler.
131965 AS="$AS"
131967 # The name of the directory that contains temporary libtool files.
131968 objdir=$objdir
131970 # How to create reloadable object files.
131971 reload_flag=$lt_reload_flag
131972 reload_cmds=$lt_reload_cmds
131974 # How to pass a linker flag through the compiler.
131975 wl=$lt_lt_prog_compiler_wl_GCJ
131977 # Object file suffix (normally "o").
131978 objext="$ac_objext"
131980 # Old archive suffix (normally "a").
131981 libext="$libext"
131983 # Shared library suffix (normally ".so").
131984 shrext_cmds='$shrext_cmds'
131986 # Executable file suffix (normally "").
131987 exeext="$exeext"
131989 # Additional compiler flags for building library objects.
131990 pic_flag=$lt_lt_prog_compiler_pic_GCJ
131991 pic_mode=$pic_mode
131993 # What is the maximum length of a command?
131994 max_cmd_len=$lt_cv_sys_max_cmd_len
131996 # Does compiler simultaneously support -c and -o options?
131997 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
131999 # Must we lock files when doing compilation?
132000 need_locks=$lt_need_locks
132002 # Do we need the lib prefix for modules?
132003 need_lib_prefix=$need_lib_prefix
132005 # Do we need a version for libraries?
132006 need_version=$need_version
132008 # Whether dlopen is supported.
132009 dlopen_support=$enable_dlopen
132011 # Whether dlopen of programs is supported.
132012 dlopen_self=$enable_dlopen_self
132014 # Whether dlopen of statically linked programs is supported.
132015 dlopen_self_static=$enable_dlopen_self_static
132017 # Compiler flag to prevent dynamic linking.
132018 link_static_flag=$lt_lt_prog_compiler_static_GCJ
132020 # Compiler flag to turn off builtin functions.
132021 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
132023 # Compiler flag to allow reflexive dlopens.
132024 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
132026 # Compiler flag to generate shared objects directly from archives.
132027 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
132029 # Compiler flag to generate thread-safe objects.
132030 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
132032 # Library versioning type.
132033 version_type=$version_type
132035 # Format of library name prefix.
132036 libname_spec=$lt_libname_spec
132038 # List of archive names. First name is the real one, the rest are links.
132039 # The last name is the one that the linker finds with -lNAME.
132040 library_names_spec=$lt_library_names_spec
132042 # The coded name of the library, if different from the real name.
132043 soname_spec=$lt_soname_spec
132045 # Commands used to build and install an old-style archive.
132046 RANLIB=$lt_RANLIB
132047 old_archive_cmds=$lt_old_archive_cmds_GCJ
132048 old_postinstall_cmds=$lt_old_postinstall_cmds
132049 old_postuninstall_cmds=$lt_old_postuninstall_cmds
132051 # Create an old-style archive from a shared archive.
132052 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
132054 # Create a temporary old-style archive to link instead of a shared archive.
132055 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
132057 # Commands used to build and install a shared archive.
132058 archive_cmds=$lt_archive_cmds_GCJ
132059 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
132060 postinstall_cmds=$lt_postinstall_cmds
132061 postuninstall_cmds=$lt_postuninstall_cmds
132063 # Commands used to build a loadable module (assumed same as above if empty)
132064 module_cmds=$lt_module_cmds_GCJ
132065 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
132067 # Commands to strip libraries.
132068 old_striplib=$lt_old_striplib
132069 striplib=$lt_striplib
132071 # Dependencies to place before the objects being linked to create a
132072 # shared library.
132073 predep_objects=$lt_predep_objects_GCJ
132075 # Dependencies to place after the objects being linked to create a
132076 # shared library.
132077 postdep_objects=$lt_postdep_objects_GCJ
132079 # Dependencies to place before the objects being linked to create a
132080 # shared library.
132081 predeps=$lt_predeps_GCJ
132083 # Dependencies to place after the objects being linked to create a
132084 # shared library.
132085 postdeps=$lt_postdeps_GCJ
132087 # The library search path used internally by the compiler when linking
132088 # a shared library.
132089 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
132091 # Method to check whether dependent libraries are shared objects.
132092 deplibs_check_method=$lt_deplibs_check_method
132094 # Command to use when deplibs_check_method == file_magic.
132095 file_magic_cmd=$lt_file_magic_cmd
132097 # Flag that allows shared libraries with undefined symbols to be built.
132098 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
132100 # Flag that forces no undefined symbols.
132101 no_undefined_flag=$lt_no_undefined_flag_GCJ
132103 # Commands used to finish a libtool library installation in a directory.
132104 finish_cmds=$lt_finish_cmds
132106 # Same as above, but a single script fragment to be evaled but not shown.
132107 finish_eval=$lt_finish_eval
132109 # Take the output of nm and produce a listing of raw symbols and C names.
132110 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
132112 # Transform the output of nm in a proper C declaration
132113 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
132115 # Transform the output of nm in a C name address pair
132116 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
132118 # This is the shared library runtime path variable.
132119 runpath_var=$runpath_var
132121 # This is the shared library path variable.
132122 shlibpath_var=$shlibpath_var
132124 # Is shlibpath searched before the hard-coded library search path?
132125 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
132127 # How to hardcode a shared library path into an executable.
132128 hardcode_action=$hardcode_action_GCJ
132130 # Whether we should hardcode library paths into libraries.
132131 hardcode_into_libs=$hardcode_into_libs
132133 # Flag to hardcode \$libdir into a binary during linking.
132134 # This must work even if \$libdir does not exist.
132135 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
132137 # If ld is used when linking, flag to hardcode \$libdir into
132138 # a binary during linking. This must work even if \$libdir does
132139 # not exist.
132140 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
132142 # Whether we need a single -rpath flag with a separated argument.
132143 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
132145 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
132146 # resulting binary.
132147 hardcode_direct=$hardcode_direct_GCJ
132149 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
132150 # resulting binary.
132151 hardcode_minus_L=$hardcode_minus_L_GCJ
132153 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
132154 # the resulting binary.
132155 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
132157 # Set to yes if building a shared library automatically hardcodes DIR into the library
132158 # and all subsequent libraries and executables linked against it.
132159 hardcode_automatic=$hardcode_automatic_GCJ
132161 # Variables whose values should be saved in libtool wrapper scripts and
132162 # restored at relink time.
132163 variables_saved_for_relink="$variables_saved_for_relink"
132165 # Whether libtool must link a program against all its dependency libraries.
132166 link_all_deplibs=$link_all_deplibs_GCJ
132168 # Compile-time system search path for libraries
132169 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
132171 # Run-time system search path for libraries
132172 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
132174 # Fix the shell variable \$srcfile for the compiler.
132175 fix_srcfile_path="$fix_srcfile_path_GCJ"
132177 # Set to yes if exported symbols are required.
132178 always_export_symbols=$always_export_symbols_GCJ
132180 # The commands to list exported symbols.
132181 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
132183 # The commands to extract the exported symbol list from a shared archive.
132184 extract_expsyms_cmds=$lt_extract_expsyms_cmds
132186 # Symbols that should not be listed in the preloaded symbols.
132187 exclude_expsyms=$lt_exclude_expsyms_GCJ
132189 # Symbols that must always be exported.
132190 include_expsyms=$lt_include_expsyms_GCJ
132192 # ### END LIBTOOL TAG CONFIG: $tagname
132194 __EOF__
132198 # If there is no Makefile yet, we rely on a make rule to execute
132199 # `config.status --recheck' to rerun these tests and create the
132200 # libtool script then.
132201 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
132202 if test -f "$ltmain_in"; then
132203 test -f Makefile && make "$ltmain"
132208 ac_ext=c
132209 ac_cpp='$CPP $CPPFLAGS'
132210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
132211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
132212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
132214 CC="$lt_save_CC"
132217 tagname=""
132224 # Source file extension for RC test sources.
132225 ac_ext=rc
132227 # Object file extension for compiled RC test sources.
132228 objext=o
132229 objext_RC=$objext
132231 # Code to be used in simple compile tests
132232 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
132234 # Code to be used in simple link tests
132235 lt_simple_link_test_code="$lt_simple_compile_test_code"
132237 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
132239 # If no C compiler was specified, use CC.
132240 LTCC=${LTCC-"$CC"}
132242 # If no C compiler flags were specified, use CFLAGS.
132243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
132245 # Allow CC to be a program name with arguments.
132246 compiler=$CC
132249 # save warnings/boilerplate of simple test code
132250 ac_outfile=conftest.$ac_objext
132251 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
132252 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
132253 _lt_compiler_boilerplate=`cat conftest.err`
132254 $rm conftest*
132256 ac_outfile=conftest.$ac_objext
132257 printf "$lt_simple_link_test_code" >conftest.$ac_ext
132258 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
132259 _lt_linker_boilerplate=`cat conftest.err`
132260 $rm conftest*
132263 # Allow CC to be a program name with arguments.
132264 lt_save_CC="$CC"
132265 CC=${RC-"windres"}
132266 compiler=$CC
132267 compiler_RC=$CC
132268 for cc_temp in $compiler""; do
132269 case $cc_temp in
132270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
132271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
132272 \-*) ;;
132273 *) break;;
132276 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
132278 lt_cv_prog_compiler_c_o_RC=yes
132280 # The else clause should only fire when bootstrapping the
132281 # libtool distribution, otherwise you forgot to ship ltmain.sh
132282 # with your package, and you will get complaints that there are
132283 # no rules to generate ltmain.sh.
132284 if test -f "$ltmain"; then
132285 # See if we are running on zsh, and set the options which allow our commands through
132286 # without removal of \ escapes.
132287 if test -n "${ZSH_VERSION+set}" ; then
132288 setopt NO_GLOB_SUBST
132290 # Now quote all the things that may contain metacharacters while being
132291 # careful not to overquote the AC_SUBSTed values. We take copies of the
132292 # variables and quote the copies for generation of the libtool script.
132293 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
132294 SED SHELL STRIP \
132295 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
132296 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
132297 deplibs_check_method reload_flag reload_cmds need_locks \
132298 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
132299 lt_cv_sys_global_symbol_to_c_name_address \
132300 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
132301 old_postinstall_cmds old_postuninstall_cmds \
132302 compiler_RC \
132303 CC_RC \
132304 LD_RC \
132305 lt_prog_compiler_wl_RC \
132306 lt_prog_compiler_pic_RC \
132307 lt_prog_compiler_static_RC \
132308 lt_prog_compiler_no_builtin_flag_RC \
132309 export_dynamic_flag_spec_RC \
132310 thread_safe_flag_spec_RC \
132311 whole_archive_flag_spec_RC \
132312 enable_shared_with_static_runtimes_RC \
132313 old_archive_cmds_RC \
132314 old_archive_from_new_cmds_RC \
132315 predep_objects_RC \
132316 postdep_objects_RC \
132317 predeps_RC \
132318 postdeps_RC \
132319 compiler_lib_search_path_RC \
132320 archive_cmds_RC \
132321 archive_expsym_cmds_RC \
132322 postinstall_cmds_RC \
132323 postuninstall_cmds_RC \
132324 old_archive_from_expsyms_cmds_RC \
132325 allow_undefined_flag_RC \
132326 no_undefined_flag_RC \
132327 export_symbols_cmds_RC \
132328 hardcode_libdir_flag_spec_RC \
132329 hardcode_libdir_flag_spec_ld_RC \
132330 hardcode_libdir_separator_RC \
132331 hardcode_automatic_RC \
132332 module_cmds_RC \
132333 module_expsym_cmds_RC \
132334 lt_cv_prog_compiler_c_o_RC \
132335 exclude_expsyms_RC \
132336 include_expsyms_RC; do
132338 case $var in
132339 old_archive_cmds_RC | \
132340 old_archive_from_new_cmds_RC | \
132341 archive_cmds_RC | \
132342 archive_expsym_cmds_RC | \
132343 module_cmds_RC | \
132344 module_expsym_cmds_RC | \
132345 old_archive_from_expsyms_cmds_RC | \
132346 export_symbols_cmds_RC | \
132347 extract_expsyms_cmds | reload_cmds | finish_cmds | \
132348 postinstall_cmds | postuninstall_cmds | \
132349 old_postinstall_cmds | old_postuninstall_cmds | \
132350 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
132351 # Double-quote double-evaled strings.
132352 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
132355 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
132360 case $lt_echo in
132361 *'\$0 --fallback-echo"')
132362 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
132366 cfgfile="$ofile"
132368 cat <<__EOF__ >> "$cfgfile"
132369 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
132371 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
132373 # Shell to use when invoking shell scripts.
132374 SHELL=$lt_SHELL
132376 # Whether or not to build shared libraries.
132377 build_libtool_libs=$enable_shared
132379 # Whether or not to build static libraries.
132380 build_old_libs=$enable_static
132382 # Whether or not to add -lc for building shared libraries.
132383 build_libtool_need_lc=$archive_cmds_need_lc_RC
132385 # Whether or not to disallow shared libs when runtime libs are static
132386 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
132388 # Whether or not to optimize for fast installation.
132389 fast_install=$enable_fast_install
132391 # The host system.
132392 host_alias=$host_alias
132393 host=$host
132394 host_os=$host_os
132396 # The build system.
132397 build_alias=$build_alias
132398 build=$build
132399 build_os=$build_os
132401 # An echo program that does not interpret backslashes.
132402 echo=$lt_echo
132404 # The archiver.
132405 AR=$lt_AR
132406 AR_FLAGS=$lt_AR_FLAGS
132408 # A C compiler.
132409 LTCC=$lt_LTCC
132411 # LTCC compiler flags.
132412 LTCFLAGS=$lt_LTCFLAGS
132414 # A language-specific compiler.
132415 CC=$lt_compiler_RC
132417 # Is the compiler the GNU C compiler?
132418 with_gcc=$GCC_RC
132420 # An ERE matcher.
132421 EGREP=$lt_EGREP
132423 # The linker used to build libraries.
132424 LD=$lt_LD_RC
132426 # Whether we need hard or soft links.
132427 LN_S=$lt_LN_S
132429 # A BSD-compatible nm program.
132430 NM=$lt_NM
132432 # A symbol stripping program
132433 STRIP=$lt_STRIP
132435 # Used to examine libraries when file_magic_cmd begins "file"
132436 MAGIC_CMD=$MAGIC_CMD
132438 # Used on cygwin: DLL creation program.
132439 DLLTOOL="$DLLTOOL"
132441 # Used on cygwin: object dumper.
132442 OBJDUMP="$OBJDUMP"
132444 # Used on cygwin: assembler.
132445 AS="$AS"
132447 # The name of the directory that contains temporary libtool files.
132448 objdir=$objdir
132450 # How to create reloadable object files.
132451 reload_flag=$lt_reload_flag
132452 reload_cmds=$lt_reload_cmds
132454 # How to pass a linker flag through the compiler.
132455 wl=$lt_lt_prog_compiler_wl_RC
132457 # Object file suffix (normally "o").
132458 objext="$ac_objext"
132460 # Old archive suffix (normally "a").
132461 libext="$libext"
132463 # Shared library suffix (normally ".so").
132464 shrext_cmds='$shrext_cmds'
132466 # Executable file suffix (normally "").
132467 exeext="$exeext"
132469 # Additional compiler flags for building library objects.
132470 pic_flag=$lt_lt_prog_compiler_pic_RC
132471 pic_mode=$pic_mode
132473 # What is the maximum length of a command?
132474 max_cmd_len=$lt_cv_sys_max_cmd_len
132476 # Does compiler simultaneously support -c and -o options?
132477 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
132479 # Must we lock files when doing compilation?
132480 need_locks=$lt_need_locks
132482 # Do we need the lib prefix for modules?
132483 need_lib_prefix=$need_lib_prefix
132485 # Do we need a version for libraries?
132486 need_version=$need_version
132488 # Whether dlopen is supported.
132489 dlopen_support=$enable_dlopen
132491 # Whether dlopen of programs is supported.
132492 dlopen_self=$enable_dlopen_self
132494 # Whether dlopen of statically linked programs is supported.
132495 dlopen_self_static=$enable_dlopen_self_static
132497 # Compiler flag to prevent dynamic linking.
132498 link_static_flag=$lt_lt_prog_compiler_static_RC
132500 # Compiler flag to turn off builtin functions.
132501 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
132503 # Compiler flag to allow reflexive dlopens.
132504 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
132506 # Compiler flag to generate shared objects directly from archives.
132507 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
132509 # Compiler flag to generate thread-safe objects.
132510 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
132512 # Library versioning type.
132513 version_type=$version_type
132515 # Format of library name prefix.
132516 libname_spec=$lt_libname_spec
132518 # List of archive names. First name is the real one, the rest are links.
132519 # The last name is the one that the linker finds with -lNAME.
132520 library_names_spec=$lt_library_names_spec
132522 # The coded name of the library, if different from the real name.
132523 soname_spec=$lt_soname_spec
132525 # Commands used to build and install an old-style archive.
132526 RANLIB=$lt_RANLIB
132527 old_archive_cmds=$lt_old_archive_cmds_RC
132528 old_postinstall_cmds=$lt_old_postinstall_cmds
132529 old_postuninstall_cmds=$lt_old_postuninstall_cmds
132531 # Create an old-style archive from a shared archive.
132532 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
132534 # Create a temporary old-style archive to link instead of a shared archive.
132535 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
132537 # Commands used to build and install a shared archive.
132538 archive_cmds=$lt_archive_cmds_RC
132539 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
132540 postinstall_cmds=$lt_postinstall_cmds
132541 postuninstall_cmds=$lt_postuninstall_cmds
132543 # Commands used to build a loadable module (assumed same as above if empty)
132544 module_cmds=$lt_module_cmds_RC
132545 module_expsym_cmds=$lt_module_expsym_cmds_RC
132547 # Commands to strip libraries.
132548 old_striplib=$lt_old_striplib
132549 striplib=$lt_striplib
132551 # Dependencies to place before the objects being linked to create a
132552 # shared library.
132553 predep_objects=$lt_predep_objects_RC
132555 # Dependencies to place after the objects being linked to create a
132556 # shared library.
132557 postdep_objects=$lt_postdep_objects_RC
132559 # Dependencies to place before the objects being linked to create a
132560 # shared library.
132561 predeps=$lt_predeps_RC
132563 # Dependencies to place after the objects being linked to create a
132564 # shared library.
132565 postdeps=$lt_postdeps_RC
132567 # The library search path used internally by the compiler when linking
132568 # a shared library.
132569 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
132571 # Method to check whether dependent libraries are shared objects.
132572 deplibs_check_method=$lt_deplibs_check_method
132574 # Command to use when deplibs_check_method == file_magic.
132575 file_magic_cmd=$lt_file_magic_cmd
132577 # Flag that allows shared libraries with undefined symbols to be built.
132578 allow_undefined_flag=$lt_allow_undefined_flag_RC
132580 # Flag that forces no undefined symbols.
132581 no_undefined_flag=$lt_no_undefined_flag_RC
132583 # Commands used to finish a libtool library installation in a directory.
132584 finish_cmds=$lt_finish_cmds
132586 # Same as above, but a single script fragment to be evaled but not shown.
132587 finish_eval=$lt_finish_eval
132589 # Take the output of nm and produce a listing of raw symbols and C names.
132590 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
132592 # Transform the output of nm in a proper C declaration
132593 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
132595 # Transform the output of nm in a C name address pair
132596 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
132598 # This is the shared library runtime path variable.
132599 runpath_var=$runpath_var
132601 # This is the shared library path variable.
132602 shlibpath_var=$shlibpath_var
132604 # Is shlibpath searched before the hard-coded library search path?
132605 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
132607 # How to hardcode a shared library path into an executable.
132608 hardcode_action=$hardcode_action_RC
132610 # Whether we should hardcode library paths into libraries.
132611 hardcode_into_libs=$hardcode_into_libs
132613 # Flag to hardcode \$libdir into a binary during linking.
132614 # This must work even if \$libdir does not exist.
132615 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
132617 # If ld is used when linking, flag to hardcode \$libdir into
132618 # a binary during linking. This must work even if \$libdir does
132619 # not exist.
132620 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
132622 # Whether we need a single -rpath flag with a separated argument.
132623 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
132625 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
132626 # resulting binary.
132627 hardcode_direct=$hardcode_direct_RC
132629 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
132630 # resulting binary.
132631 hardcode_minus_L=$hardcode_minus_L_RC
132633 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
132634 # the resulting binary.
132635 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
132637 # Set to yes if building a shared library automatically hardcodes DIR into the library
132638 # and all subsequent libraries and executables linked against it.
132639 hardcode_automatic=$hardcode_automatic_RC
132641 # Variables whose values should be saved in libtool wrapper scripts and
132642 # restored at relink time.
132643 variables_saved_for_relink="$variables_saved_for_relink"
132645 # Whether libtool must link a program against all its dependency libraries.
132646 link_all_deplibs=$link_all_deplibs_RC
132648 # Compile-time system search path for libraries
132649 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
132651 # Run-time system search path for libraries
132652 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
132654 # Fix the shell variable \$srcfile for the compiler.
132655 fix_srcfile_path="$fix_srcfile_path_RC"
132657 # Set to yes if exported symbols are required.
132658 always_export_symbols=$always_export_symbols_RC
132660 # The commands to list exported symbols.
132661 export_symbols_cmds=$lt_export_symbols_cmds_RC
132663 # The commands to extract the exported symbol list from a shared archive.
132664 extract_expsyms_cmds=$lt_extract_expsyms_cmds
132666 # Symbols that should not be listed in the preloaded symbols.
132667 exclude_expsyms=$lt_exclude_expsyms_RC
132669 # Symbols that must always be exported.
132670 include_expsyms=$lt_include_expsyms_RC
132672 # ### END LIBTOOL TAG CONFIG: $tagname
132674 __EOF__
132678 # If there is no Makefile yet, we rely on a make rule to execute
132679 # `config.status --recheck' to rerun these tests and create the
132680 # libtool script then.
132681 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
132682 if test -f "$ltmain_in"; then
132683 test -f Makefile && make "$ltmain"
132688 ac_ext=c
132689 ac_cpp='$CPP $CPPFLAGS'
132690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
132691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
132692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
132694 CC="$lt_save_CC"
132699 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
132700 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
132701 { (exit 1); exit 1; }; }
132705 # Append the new tag name to the list of available tags.
132706 if test -n "$tagname" ; then
132707 available_tags="$available_tags $tagname"
132711 IFS="$lt_save_ifs"
132713 # Now substitute the updated list of available tags.
132714 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
132715 mv "${ofile}T" "$ofile"
132716 chmod +x "$ofile"
132718 rm -f "${ofile}T"
132719 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
132720 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
132721 { (exit 1); exit 1; }; }
132727 # This can be used to rebuild libtool when needed
132728 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
132730 # Always use our own libtool.
132731 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
132733 # Prevent multiple expansion
132755 # AC_CONFIG_SUBDIRS appears to be broken for non-gcc compilers (i.e.,
132756 # passing precious variables down to the sub-configure).
132758 # Note that we also did some magic scripty-foo in autogen.sh to rename
132759 # the output libtool library "libompi_ltdl", so add -lompi_ltdl here.
132760 # This is because so many systems have older versions of libltdl
132761 # installed very early in ld.so's search path; if we installed our own
132762 # libltdl in some non-standard path (e.g., $HOME/local or even
132763 # /usr/local), the libltdl in /usr/lib might get found first. And if
132764 # it's older -- or just not matching the version that we need, Bad
132765 # Things happen. [sigh]
132767 # Finally, make libompi_ltdl follow the same shared/static convention
132768 # that was user for the main OMPI libraries. So manually examine
132769 # $enable_shared and $enable_static and pass down the corresponding
132770 # flags.
132772 ompi_show_subtitle "GNU libltdl setup"
132774 if test "$OMPI_ENABLE_DLOPEN_SUPPORT" = "1" ; then
132775 ompi_subdir_args="$ompi_subdir_args --enable-ltdl-convenience --disable-ltdl-install"
132776 if test "$enable_shared" = "yes"; then
132777 ompi_subdir_args="$ompi_subdir_args --enable-shared"
132779 ompi_subdir_args="$ompi_subdir_args --disable-shared"
132781 if test "$enable_static" = "yes"; then
132782 ompi_subdir_args="$ompi_subdir_args --enable-static"
132784 ompi_subdir_args="$ompi_subdir_args --disable-static"
132787 CFLAGS_save="$CFLAGS"
132788 CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY"
132791 # Invoke configure in a specific subdirectory.
132793 # opal/libltdl is the directory to invoke in
132794 # $ompi_subdir_args is the list of arguments to pass
132795 # HAPPY=1 is actions to execute upon success
132796 # HAPPY=0 is actions to execute upon failure
132798 subdir_dir="opal/libltdl"
132799 subdir_args="$ompi_subdir_args"
132800 subdir_success="HAPPY=1"
132801 subdir_failure="HAPPY=0"
132804 # Sanity checks
132807 if test "$subdir_dir" != ":" -a -d $srcdir/$subdir_dir; then
132808 { echo "$as_me:$LINENO: OMPI configuring in $subdir_dir" >&5
132809 echo "$as_me: OMPI configuring in $subdir_dir" >&6;}
132812 # Gotta check where srcdir is for VPATH builds. If srcdir is not
132813 # ., then we need to mkdir the subdir. Otherwise, we can just cd
132814 # into it.
132817 case $srcdir in
132821 { case $subdir_dir in
132822 [\\/]* | ?:[\\/]* ) total_dir=;;
132823 *) total_dir=.;;
132825 temp=$subdir_dir
132826 for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
132827 case $dir_part in
132828 # Skip DOS drivespec
132829 ?:) total_dir=$dir_part ;;
132830 *) total_dir=$total_dir/$dir_part
132831 test -d "$total_dir" ||
132832 mkdir "$total_dir" ||
132833 { { echo "$as_me:$LINENO: error: cannot create $subdir_dir" >&5
132834 echo "$as_me: error: cannot create $subdir_dir" >&2;}
132835 { (exit 1); exit 1; }; }
132838 done; }
132840 if test -d ./$subdir_dir; then :;
132842 { { echo "$as_me:$LINENO: error: cannot create \`pwd\`/$subdir_dir" >&5
132843 echo "$as_me: error: cannot create \`pwd\`/$subdir_dir" >&2;}
132844 { (exit 1); exit 1; }; }
132850 # Move into the target directory
132853 subdir_parent=`pwd`
132854 cd $subdir_dir
132857 # Make a "../" for each directory in $subdir_dir.
132860 subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
132862 # Construct the --srcdir argument
132865 case $srcdir in
132867 # In place
132868 subdir_srcdir="$srcdir"
132870 [\\/]* | ?:[\\/]* )
132871 # Absolute path
132872 subdir_srcdir="$srcdir/$subdir_dir"
132875 # Relative path
132876 subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
132881 # Construct the --cache-file argument
132884 # BWB - subdir caching is a pain since we change CFLAGS and all that.
132885 # Just disable it for now
132886 subdir_cache_file="/dev/null"
132889 # Invoke the configure script in the subdirectory
132892 export CFLAGS CPPFLAGS
132893 export CXXFLAGS CXXCPPFLAGS
132894 export FFLAGS
132895 export LDFLAGS LIBS
132896 sub_configure="$SHELL '$subdir_srcdir/configure'"
132897 { echo "$as_me:$LINENO: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&5
132898 echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir" >&6;}
132899 eval "$sub_configure $subdir_args \
132900 --cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\""
132901 if test "$?" = "0"; then
132902 eval $subdir_success
132903 { echo "$as_me:$LINENO: $sub_configure succeeded for $subdir_dir" >&5
132904 echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
132906 eval $subdir_failure
132907 { echo "$as_me:$LINENO: $sub_configure *failed* for $subdir_dir" >&5
132908 echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
132912 # Go back to the topdir
132915 cd $subdir_parent
132919 # Clean up
132922 unset subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file
132923 unset subdir_args subdir_dots total_dir dir_part temp
132924 if test "$HAPPY" = "1"; then
132925 LIBLTDL_SUBDIR=libltdl
132926 LIBLTDL_LTLIB=libltdl/libltdlc.la
132927 WANT_LIBLTDL=1
132929 # Arrgh. This is gross. But I can't think of any other way to do
132930 # it. :-(
132932 flags="`egrep ^LIBADD_DL opal/libltdl/Makefile | cut -d= -f2-`"
132935 # libtool has been created by this point
132936 # Try to see if it will add any additional flags for dependant libraries
132939 { echo "$as_me:$LINENO: checking for libtool-supplied linker flags" >&5
132940 echo $ECHO_N "checking for libtool-supplied linker flags... $ECHO_C" >&6; }
132942 libtool="opal/libltdl/libtool"
132943 extra_flags="-export-dynamic $flags"
132945 # Get the directory where libtool lives
132947 start="`pwd`"
132948 d="`dirname $libtool`"
132949 cd "$d"
132950 libtool="`pwd`/libtool"
132951 cd "$start"
132952 unset d start
132954 # Make a playground to work in
132956 mkdir conftest.$$
132957 cd conftest.$$
132959 cat > foo.c <<EOF
132960 int foo(void) { return 0; }
132963 ompi_check_linker_flags_work() {
132965 # 1 is the message
132966 # 2 is whether to put a prefix or not
132967 if test -n "yes"; then
132968 echo "configure:132968: $cmd" >&5
132970 echo $cmd >&5
132972 eval $cmd >&5 2>&5
132973 if test -n "$1"; then
132974 output=`eval $cmd 2>/dev/null | head -n 1 | sed 's,^libtool:\( \| link: \),,'`
132976 status="$?"
132978 # 1 is the message
132979 # 2 is whether to put a prefix or not
132980 if test -n "yes"; then
132981 echo "configure:132981: \$? = $status" >&5
132983 echo \$? = $status >&5
132985 if test "$status" != "0"; then
132986 { echo "$as_me:$LINENO: result: libtool error!" >&5
132987 echo "${ECHO_T}libtool error!" >&6; }
132988 { { echo "$as_me:$LINENO: error: Cannot continue" >&5
132989 echo "$as_me: error: Cannot continue" >&2;}
132990 { (exit 1); exit 1; }; }
132995 # First make a sample library with the current LDFLAGS and LIBS
132998 cmd="$libtool --mode=compile --tag=CC $CC $CFLAGS -c -o foo.o foo.c"
132999 ompi_check_linker_flags_work
133000 cmd="$libtool --mode=link --tag=CC $CC $CFLAGS foo.lo $LDFLAGS $LIBS -o libfoo.la"
133001 ompi_check_linker_flags_work
133004 # Now fake linking to it and capture the output from libtool
133007 cmd="$libtool --dry-run --mode=link --tag=CC $CC bar.lo libfoo.la -o bar $extra_flags"
133008 ompi_check_linker_flags_work yes
133010 eval "set $output"
133011 extra_ldflags=
133012 while test -n "$1"; do
133013 case "$1" in
133014 $CC) ;;
133015 *.libs/bar*) ;;
133016 bar*) ;;
133017 -I*) ;;
133018 -L*) ;;
133019 -R*) ;;
133020 -lfoo) ;;
133021 *.libs/libfoo.*) ;;
133022 -o) ;;
133023 *.so) ;;
133024 *.a) ;;
133026 extra_ldflags="$extra_ldflags $1"
133029 shift
133032 if test -n "$extra_ldflags"; then
133033 { echo "$as_me:$LINENO: result: $extra_ldflags" >&5
133034 echo "${ECHO_T}$extra_ldflags" >&6; }
133036 { echo "$as_me:$LINENO: result: no extra flags" >&5
133037 echo "${ECHO_T}no extra flags" >&6; }
133040 cd ..
133041 rm -rf conftest.$$
133042 WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $extra_ldflags"
133043 LDFLAGS="-export-dynamic $LDFLAGS"
133045 { { echo "$as_me:$LINENO: error: Failed to build GNU libltdl. This usually means that something
133046 is incorrectly setup with your environment. There may be useful information in
133047 opal/libltdl/config.log. You can also disable GNU libltdl (which will disable
133048 dynamic shared object loading) by configuring with --disable-dlopen." >&5
133049 echo "$as_me: error: Failed to build GNU libltdl. This usually means that something
133050 is incorrectly setup with your environment. There may be useful information in
133051 opal/libltdl/config.log. You can also disable GNU libltdl (which will disable
133052 dynamic shared object loading) by configuring with --disable-dlopen." >&2;}
133053 { (exit 1); exit 1; }; }
133055 CFLAGS="$CFLAGS_save"
133056 OPAL_LTDL_CPPFLAGS='-I$(top_srcdir)/opal/libltdl'
133058 { echo "$as_me:$LINENO: WARNING: libltdl support disabled (by --disable-dlopen)" >&5
133059 echo "$as_me: WARNING: libltdl support disabled (by --disable-dlopen)" >&2;}
133061 LIBLTDL_SUBDIR=
133062 LIBLTDL_LTLIB=
133063 WANT_LIBLTDL=0
133064 OPAL_LTDL_CPPFLAGS=
133066 # append instead of prepend, since LIBS are going to be system
133067 # type things needed by everyone. Normally, libltdl will push
133068 # these into LIBS, but since we've disabled libltdl, we need
133069 # to do it here.
133070 WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $LIBS"
133075 # Have a variable that can be used to indicate where ltdl.h lives. Do
133076 # this specifically so that we get the included ltdl.h (which we know
133077 # will work properly with the compiled code, including libltdl), not
133078 # the system one (which is likely to be far too old and buggy).
133083 if test "$WANT_LIBLTDL" = "1"; then
133084 WANT_LIBLTDL_TRUE=
133085 WANT_LIBLTDL_FALSE='#'
133087 WANT_LIBLTDL_TRUE='#'
133088 WANT_LIBLTDL_FALSE=
133092 cat >>confdefs.h <<_ACEOF
133093 #define OMPI_WANT_LIBLTDL $WANT_LIBLTDL
133094 _ACEOF
133098 ############################################################################
133099 # final compiler config
133100 ############################################################################
133102 ompi_show_subtitle "Compiler flags"
133105 # This is needed for VPATH builds, so that it will -I the appropriate
133106 # include directory. We delayed doing it until now just so that
133107 # '-I$(top_srcdir)' doesn't show up in any of the configure output --
133108 # purely aesthetic.
133110 # Because opal_config.h, orte_config.h, and ompi_config.h are all
133111 # created by AC_CONFIG_HEADERS, we don't need to -I the builddir for
133112 # <project>/include. If we VPATH building, we do need to include the
133113 # source directories, however.
133115 if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then
133116 CPPFLAGS='-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_srcdir)/ompi/include'" $CPPFLAGS"
133117 CXXCPPFLAGS='-I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/opal/include -I$(top_srcdir)/orte/include -I$(top_srcdir)/ompi/include'" $CXXCPPFLAGS"
133119 CPPFLAGS='-I$(top_srcdir)'" $CPPFLAGS"
133120 CXXCPPFLAGS='-I$(top_srcdir)'" $CXXCPPFLAGS"
133124 # Do a final process of the CFLAGS to make a WITHOUT_OPTFLAGS version.
133125 # We need this so that we can guarantee to build the TotalView stuff
133126 # with -g and nothing else.
133131 # Process a set of flags and remove all debugging and optimization
133132 # flags
133134 s_arg="$CFLAGS"
133135 s_result=
133136 for s_word in $s_arg; do
133137 case $s_word in
133138 -g) ;;
133139 +K0) ;;
133140 +K1) ;;
133141 +K2) ;;
133142 +K3) ;;
133143 +K4) ;;
133144 +K5) ;;
133145 -O) ;;
133146 -O0) ;;
133147 -O1) ;;
133148 -O2) ;;
133149 -O3) ;;
133150 -O4) ;;
133151 -O5) ;;
133152 -O6) ;;
133153 -O7) ;;
133154 -O8) ;;
133155 -O9) ;;
133156 -xO) ;;
133157 -xO0) ;;
133158 -xO1) ;;
133159 -xO2) ;;
133160 -xO3) ;;
133161 -xO4) ;;
133162 -xO5) ;;
133163 -xO6) ;;
133164 -xO7) ;;
133165 -xO8) ;;
133166 -xO9) ;;
133167 -fast) ;;
133168 *) s_result="$s_result $s_word"
133172 # Clean up
133174 unset s_word s_arg
133175 CFLAGS_WITHOUT_OPTFLAGS="$s_result"
133176 if test "$with_tv_debug_flags" != ""; then
133177 TOTALVIEW_DEBUG_FLAGS="$with_tv_debug_flags"
133179 TOTALVIEW_DEBUG_FLAGS="-g"
133181 { echo "$as_me:$LINENO: checking which of CFLAGS are ok for TotalView modules" >&5
133182 echo $ECHO_N "checking which of CFLAGS are ok for TotalView modules... $ECHO_C" >&6; }
133183 { echo "$as_me:$LINENO: result: $CFLAGS_WITHOUT_OPTFLAGS" >&5
133184 echo "${ECHO_T}$CFLAGS_WITHOUT_OPTFLAGS" >&6; }
133185 { echo "$as_me:$LINENO: checking extra CFLAGS for TotalView modules" >&5
133186 echo $ECHO_N "checking extra CFLAGS for TotalView modules... $ECHO_C" >&6; }
133187 { echo "$as_me:$LINENO: result: $TOTALVIEW_DEBUG_FLAGS" >&5
133188 echo "${ECHO_T}$TOTALVIEW_DEBUG_FLAGS" >&6; }
133195 # Delayed the substitution of CFLAGS and CXXFLAGS until now because
133196 # they may have been modified throughout the course of this script.
133206 ############################################################################
133207 # final wrapper compiler config
133208 ############################################################################
133210 ompi_show_subtitle "Wrapper compiler flags"
133213 # 1 is the variable name to be uniq-ized
133214 ompi_name=WRAPPER_EXTRA_CPPFLAGS
133216 # Go through each item in the variable and only keep the unique ones
133218 ompi_count=0
133219 for val in ${WRAPPER_EXTRA_CPPFLAGS}; do
133220 ompi_done=0
133221 ompi_i=1
133222 ompi_found=0
133224 # Loop over every token we've seen so far
133226 ompi_done="`expr $ompi_i \> $ompi_count`"
133227 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
133229 # Have we seen this token already? Prefix the comparison with
133230 # "x" so that "-Lfoo" values won't be cause an error.
133232 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
133233 ompi_found=`eval $ompi_eval`
133235 # Check the ending condition
133237 ompi_done="`expr $ompi_i \>= $ompi_count`"
133239 # Increment the counter
133241 ompi_i="`expr $ompi_i + 1`"
133244 # If we didn't find the token, add it to the "array"
133246 if test "$ompi_found" = "0"; then
133247 ompi_eval="ompi_array_$ompi_i=$val"
133248 eval $ompi_eval
133249 ompi_count="`expr $ompi_count + 1`"
133251 ompi_i="`expr $ompi_i - 1`"
133255 # Take all the items in the "array" and assemble them back into a
133256 # single variable
133258 ompi_i=1
133259 ompi_done="`expr $ompi_i \> $ompi_count`"
133260 ompi_newval=
133261 while test "$ompi_done" = "0"; do
133262 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
133263 eval $ompi_eval
133265 ompi_eval="unset ompi_array_$ompi_i"
133266 eval $ompi_eval
133268 ompi_done="`expr $ompi_i \>= $ompi_count`"
133269 ompi_i="`expr $ompi_i + 1`"
133272 # Done; do the assignment
133274 ompi_newval="`echo $ompi_newval`"
133275 ompi_eval="$ompi_name=\"$ompi_newval\""
133276 eval $ompi_eval
133278 # Clean up
133280 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
133282 # 1 is the variable name to be uniq-ized
133283 ompi_name=WRAPPER_EXTRA_CFLAGS
133285 # Go through each item in the variable and only keep the unique ones
133287 ompi_count=0
133288 for val in ${WRAPPER_EXTRA_CFLAGS}; do
133289 ompi_done=0
133290 ompi_i=1
133291 ompi_found=0
133293 # Loop over every token we've seen so far
133295 ompi_done="`expr $ompi_i \> $ompi_count`"
133296 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
133298 # Have we seen this token already? Prefix the comparison with
133299 # "x" so that "-Lfoo" values won't be cause an error.
133301 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
133302 ompi_found=`eval $ompi_eval`
133304 # Check the ending condition
133306 ompi_done="`expr $ompi_i \>= $ompi_count`"
133308 # Increment the counter
133310 ompi_i="`expr $ompi_i + 1`"
133313 # If we didn't find the token, add it to the "array"
133315 if test "$ompi_found" = "0"; then
133316 ompi_eval="ompi_array_$ompi_i=$val"
133317 eval $ompi_eval
133318 ompi_count="`expr $ompi_count + 1`"
133320 ompi_i="`expr $ompi_i - 1`"
133324 # Take all the items in the "array" and assemble them back into a
133325 # single variable
133327 ompi_i=1
133328 ompi_done="`expr $ompi_i \> $ompi_count`"
133329 ompi_newval=
133330 while test "$ompi_done" = "0"; do
133331 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
133332 eval $ompi_eval
133334 ompi_eval="unset ompi_array_$ompi_i"
133335 eval $ompi_eval
133337 ompi_done="`expr $ompi_i \>= $ompi_count`"
133338 ompi_i="`expr $ompi_i + 1`"
133341 # Done; do the assignment
133343 ompi_newval="`echo $ompi_newval`"
133344 ompi_eval="$ompi_name=\"$ompi_newval\""
133345 eval $ompi_eval
133347 # Clean up
133349 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
133351 # 1 is the variable name to be uniq-ized
133352 ompi_name=WRAPPER_EXTRA_CXXFLAGS
133354 # Go through each item in the variable and only keep the unique ones
133356 ompi_count=0
133357 for val in ${WRAPPER_EXTRA_CXXFLAGS}; do
133358 ompi_done=0
133359 ompi_i=1
133360 ompi_found=0
133362 # Loop over every token we've seen so far
133364 ompi_done="`expr $ompi_i \> $ompi_count`"
133365 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
133367 # Have we seen this token already? Prefix the comparison with
133368 # "x" so that "-Lfoo" values won't be cause an error.
133370 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
133371 ompi_found=`eval $ompi_eval`
133373 # Check the ending condition
133375 ompi_done="`expr $ompi_i \>= $ompi_count`"
133377 # Increment the counter
133379 ompi_i="`expr $ompi_i + 1`"
133382 # If we didn't find the token, add it to the "array"
133384 if test "$ompi_found" = "0"; then
133385 ompi_eval="ompi_array_$ompi_i=$val"
133386 eval $ompi_eval
133387 ompi_count="`expr $ompi_count + 1`"
133389 ompi_i="`expr $ompi_i - 1`"
133393 # Take all the items in the "array" and assemble them back into a
133394 # single variable
133396 ompi_i=1
133397 ompi_done="`expr $ompi_i \> $ompi_count`"
133398 ompi_newval=
133399 while test "$ompi_done" = "0"; do
133400 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
133401 eval $ompi_eval
133403 ompi_eval="unset ompi_array_$ompi_i"
133404 eval $ompi_eval
133406 ompi_done="`expr $ompi_i \>= $ompi_count`"
133407 ompi_i="`expr $ompi_i + 1`"
133410 # Done; do the assignment
133412 ompi_newval="`echo $ompi_newval`"
133413 ompi_eval="$ompi_name=\"$ompi_newval\""
133414 eval $ompi_eval
133416 # Clean up
133418 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
133420 # 1 is the variable name to be uniq-ized
133421 ompi_name=WRAPPER_EXTRA_FFLAGS
133423 # Go through each item in the variable and only keep the unique ones
133425 ompi_count=0
133426 for val in ${WRAPPER_EXTRA_FFLAGS}; do
133427 ompi_done=0
133428 ompi_i=1
133429 ompi_found=0
133431 # Loop over every token we've seen so far
133433 ompi_done="`expr $ompi_i \> $ompi_count`"
133434 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
133436 # Have we seen this token already? Prefix the comparison with
133437 # "x" so that "-Lfoo" values won't be cause an error.
133439 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
133440 ompi_found=`eval $ompi_eval`
133442 # Check the ending condition
133444 ompi_done="`expr $ompi_i \>= $ompi_count`"
133446 # Increment the counter
133448 ompi_i="`expr $ompi_i + 1`"
133451 # If we didn't find the token, add it to the "array"
133453 if test "$ompi_found" = "0"; then
133454 ompi_eval="ompi_array_$ompi_i=$val"
133455 eval $ompi_eval
133456 ompi_count="`expr $ompi_count + 1`"
133458 ompi_i="`expr $ompi_i - 1`"
133462 # Take all the items in the "array" and assemble them back into a
133463 # single variable
133465 ompi_i=1
133466 ompi_done="`expr $ompi_i \> $ompi_count`"
133467 ompi_newval=
133468 while test "$ompi_done" = "0"; do
133469 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
133470 eval $ompi_eval
133472 ompi_eval="unset ompi_array_$ompi_i"
133473 eval $ompi_eval
133475 ompi_done="`expr $ompi_i \>= $ompi_count`"
133476 ompi_i="`expr $ompi_i + 1`"
133479 # Done; do the assignment
133481 ompi_newval="`echo $ompi_newval`"
133482 ompi_eval="$ompi_name=\"$ompi_newval\""
133483 eval $ompi_eval
133485 # Clean up
133487 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
133489 # 1 is the variable name to be uniq-ized
133490 ompi_name=WRAPPER_EXTRA_FCFLAGS
133492 # Go through each item in the variable and only keep the unique ones
133494 ompi_count=0
133495 for val in ${WRAPPER_EXTRA_FCFLAGS}; do
133496 ompi_done=0
133497 ompi_i=1
133498 ompi_found=0
133500 # Loop over every token we've seen so far
133502 ompi_done="`expr $ompi_i \> $ompi_count`"
133503 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
133505 # Have we seen this token already? Prefix the comparison with
133506 # "x" so that "-Lfoo" values won't be cause an error.
133508 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
133509 ompi_found=`eval $ompi_eval`
133511 # Check the ending condition
133513 ompi_done="`expr $ompi_i \>= $ompi_count`"
133515 # Increment the counter
133517 ompi_i="`expr $ompi_i + 1`"
133520 # If we didn't find the token, add it to the "array"
133522 if test "$ompi_found" = "0"; then
133523 ompi_eval="ompi_array_$ompi_i=$val"
133524 eval $ompi_eval
133525 ompi_count="`expr $ompi_count + 1`"
133527 ompi_i="`expr $ompi_i - 1`"
133531 # Take all the items in the "array" and assemble them back into a
133532 # single variable
133534 ompi_i=1
133535 ompi_done="`expr $ompi_i \> $ompi_count`"
133536 ompi_newval=
133537 while test "$ompi_done" = "0"; do
133538 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
133539 eval $ompi_eval
133541 ompi_eval="unset ompi_array_$ompi_i"
133542 eval $ompi_eval
133544 ompi_done="`expr $ompi_i \>= $ompi_count`"
133545 ompi_i="`expr $ompi_i + 1`"
133548 # Done; do the assignment
133550 ompi_newval="`echo $ompi_newval`"
133551 ompi_eval="$ompi_name=\"$ompi_newval\""
133552 eval $ompi_eval
133554 # Clean up
133556 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
133558 # 1 is the variable name to be uniq-ized
133559 ompi_name=WRAPPER_EXTRA_LDFLAGS
133561 # Go through each item in the variable and only keep the unique ones
133563 ompi_count=0
133564 for val in ${WRAPPER_EXTRA_LDFLAGS}; do
133565 ompi_done=0
133566 ompi_i=1
133567 ompi_found=0
133569 # Loop over every token we've seen so far
133571 ompi_done="`expr $ompi_i \> $ompi_count`"
133572 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
133574 # Have we seen this token already? Prefix the comparison with
133575 # "x" so that "-Lfoo" values won't be cause an error.
133577 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
133578 ompi_found=`eval $ompi_eval`
133580 # Check the ending condition
133582 ompi_done="`expr $ompi_i \>= $ompi_count`"
133584 # Increment the counter
133586 ompi_i="`expr $ompi_i + 1`"
133589 # If we didn't find the token, add it to the "array"
133591 if test "$ompi_found" = "0"; then
133592 ompi_eval="ompi_array_$ompi_i=$val"
133593 eval $ompi_eval
133594 ompi_count="`expr $ompi_count + 1`"
133596 ompi_i="`expr $ompi_i - 1`"
133600 # Take all the items in the "array" and assemble them back into a
133601 # single variable
133603 ompi_i=1
133604 ompi_done="`expr $ompi_i \> $ompi_count`"
133605 ompi_newval=
133606 while test "$ompi_done" = "0"; do
133607 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
133608 eval $ompi_eval
133610 ompi_eval="unset ompi_array_$ompi_i"
133611 eval $ompi_eval
133613 ompi_done="`expr $ompi_i \>= $ompi_count`"
133614 ompi_i="`expr $ompi_i + 1`"
133617 # Done; do the assignment
133619 ompi_newval="`echo $ompi_newval`"
133620 ompi_eval="$ompi_name=\"$ompi_newval\""
133621 eval $ompi_eval
133623 # Clean up
133625 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
133628 # OPAL
133631 # 1 is the variable name to be uniq-ized
133632 ompi_name=opal_WRAPPER_EXTRA_LDFLAGS
133634 # Go through each item in the variable and only keep the unique ones
133636 ompi_count=0
133637 for val in ${opal_WRAPPER_EXTRA_LDFLAGS}; do
133638 ompi_done=0
133639 ompi_i=1
133640 ompi_found=0
133642 # Loop over every token we've seen so far
133644 ompi_done="`expr $ompi_i \> $ompi_count`"
133645 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
133647 # Have we seen this token already? Prefix the comparison with
133648 # "x" so that "-Lfoo" values won't be cause an error.
133650 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
133651 ompi_found=`eval $ompi_eval`
133653 # Check the ending condition
133655 ompi_done="`expr $ompi_i \>= $ompi_count`"
133657 # Increment the counter
133659 ompi_i="`expr $ompi_i + 1`"
133662 # If we didn't find the token, add it to the "array"
133664 if test "$ompi_found" = "0"; then
133665 ompi_eval="ompi_array_$ompi_i=$val"
133666 eval $ompi_eval
133667 ompi_count="`expr $ompi_count + 1`"
133669 ompi_i="`expr $ompi_i - 1`"
133673 # Take all the items in the "array" and assemble them back into a
133674 # single variable
133676 ompi_i=1
133677 ompi_done="`expr $ompi_i \> $ompi_count`"
133678 ompi_newval=
133679 while test "$ompi_done" = "0"; do
133680 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
133681 eval $ompi_eval
133683 ompi_eval="unset ompi_array_$ompi_i"
133684 eval $ompi_eval
133686 ompi_done="`expr $ompi_i \>= $ompi_count`"
133687 ompi_i="`expr $ompi_i + 1`"
133690 # Done; do the assignment
133692 ompi_newval="`echo $ompi_newval`"
133693 ompi_eval="$ompi_name=\"$ompi_newval\""
133694 eval $ompi_eval
133696 # Clean up
133698 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
133700 # 1 is the variable name to be uniq-ized
133701 ompi_name=opal_WRAPPER_EXTRA_LIBS
133703 # Go through each item in the variable and only keep the unique ones
133705 ompi_count=0
133706 for val in ${opal_WRAPPER_EXTRA_LIBS}; do
133707 ompi_done=0
133708 ompi_i=1
133709 ompi_found=0
133711 # Loop over every token we've seen so far
133713 ompi_done="`expr $ompi_i \> $ompi_count`"
133714 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
133716 # Have we seen this token already? Prefix the comparison with
133717 # "x" so that "-Lfoo" values won't be cause an error.
133719 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
133720 ompi_found=`eval $ompi_eval`
133722 # Check the ending condition
133724 ompi_done="`expr $ompi_i \>= $ompi_count`"
133726 # Increment the counter
133728 ompi_i="`expr $ompi_i + 1`"
133731 # If we didn't find the token, add it to the "array"
133733 if test "$ompi_found" = "0"; then
133734 ompi_eval="ompi_array_$ompi_i=$val"
133735 eval $ompi_eval
133736 ompi_count="`expr $ompi_count + 1`"
133738 ompi_i="`expr $ompi_i - 1`"
133742 # Take all the items in the "array" and assemble them back into a
133743 # single variable
133745 ompi_i=1
133746 ompi_done="`expr $ompi_i \> $ompi_count`"
133747 ompi_newval=
133748 while test "$ompi_done" = "0"; do
133749 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
133750 eval $ompi_eval
133752 ompi_eval="unset ompi_array_$ompi_i"
133753 eval $ompi_eval
133755 ompi_done="`expr $ompi_i \>= $ompi_count`"
133756 ompi_i="`expr $ompi_i + 1`"
133759 # Done; do the assignment
133761 ompi_newval="`echo $ompi_newval`"
133762 ompi_eval="$ompi_name=\"$ompi_newval\""
133763 eval $ompi_eval
133765 # Clean up
133767 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
133769 { echo "$as_me:$LINENO: checking for OPAL CPPFLAGS" >&5
133770 echo $ECHO_N "checking for OPAL CPPFLAGS... $ECHO_C" >&6; }
133771 OPAL_WRAPPER_EXTRA_CPPFLAGS="$WRAPPER_EXTRA_CPPFLAGS $USER_WRAPPER_EXTRA_CPPFLAGS"
133773 { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CPPFLAGS" >&5
133774 echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_CPPFLAGS" >&6; }
133776 { echo "$as_me:$LINENO: checking for OPAL CFLAGS" >&5
133777 echo $ECHO_N "checking for OPAL CFLAGS... $ECHO_C" >&6; }
133778 OPAL_WRAPPER_EXTRA_CFLAGS="$WRAPPER_EXTRA_CFLAGS $USER_WRAPPER_EXTRA_CFLAGS"
133780 { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CFLAGS" >&5
133781 echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_CFLAGS" >&6; }
133783 { echo "$as_me:$LINENO: checking for OPAL CXXFLAGS" >&5
133784 echo $ECHO_N "checking for OPAL CXXFLAGS... $ECHO_C" >&6; }
133785 OPAL_WRAPPER_EXTRA_CXXFLAGS="$WRAPPER_EXTRA_CXXFLAGS $USER_WRAPPER_EXTRA_CXXFLAGS"
133787 { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_CXXFLAGS" >&5
133788 echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_CXXFLAGS" >&6; }
133790 { echo "$as_me:$LINENO: checking for OPAL LDFLAGS" >&5
133791 echo $ECHO_N "checking for OPAL LDFLAGS... $ECHO_C" >&6; }
133792 OPAL_WRAPPER_EXTRA_LDFLAGS="$opal_WRAPPER_EXTRA_LDFLAGS $WRAPPER_EXTRA_LDFLAGS $USER_WRAPPER_EXTRA_LDFLAGS"
133794 { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_LDFLAGS" >&5
133795 echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_LDFLAGS" >&6; }
133797 { echo "$as_me:$LINENO: checking for OPAL LIBS" >&5
133798 echo $ECHO_N "checking for OPAL LIBS... $ECHO_C" >&6; }
133799 OPAL_WRAPPER_EXTRA_LIBS="$opal_WRAPPER_EXTRA_LIBS $WRAPPER_EXTRA_LIBS $USER_WRAPPER_EXTRA_LIBS"
133801 { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_LIBS" >&5
133802 echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_LIBS" >&6; }
133804 { echo "$as_me:$LINENO: checking for OPAL extra include dirs" >&5
133805 echo $ECHO_N "checking for OPAL extra include dirs... $ECHO_C" >&6; }
133806 if test "$WANT_INSTALL_HEADERS" = "1" ; then
133807 OPAL_WRAPPER_EXTRA_INCLUDES="openmpi"
133809 OPAL_WRAPPER_EXTRA_INCLUDES=
133812 { echo "$as_me:$LINENO: result: $OPAL_WRAPPER_EXTRA_INCLUDES" >&5
133813 echo "${ECHO_T}$OPAL_WRAPPER_EXTRA_INCLUDES" >&6; }
133817 # ORTE
133820 # 1 is the variable name to be uniq-ized
133821 ompi_name=orte_WRAPPER_EXTRA_LDFLAGS
133823 # Go through each item in the variable and only keep the unique ones
133825 ompi_count=0
133826 for val in ${orte_WRAPPER_EXTRA_LDFLAGS}; do
133827 ompi_done=0
133828 ompi_i=1
133829 ompi_found=0
133831 # Loop over every token we've seen so far
133833 ompi_done="`expr $ompi_i \> $ompi_count`"
133834 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
133836 # Have we seen this token already? Prefix the comparison with
133837 # "x" so that "-Lfoo" values won't be cause an error.
133839 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
133840 ompi_found=`eval $ompi_eval`
133842 # Check the ending condition
133844 ompi_done="`expr $ompi_i \>= $ompi_count`"
133846 # Increment the counter
133848 ompi_i="`expr $ompi_i + 1`"
133851 # If we didn't find the token, add it to the "array"
133853 if test "$ompi_found" = "0"; then
133854 ompi_eval="ompi_array_$ompi_i=$val"
133855 eval $ompi_eval
133856 ompi_count="`expr $ompi_count + 1`"
133858 ompi_i="`expr $ompi_i - 1`"
133862 # Take all the items in the "array" and assemble them back into a
133863 # single variable
133865 ompi_i=1
133866 ompi_done="`expr $ompi_i \> $ompi_count`"
133867 ompi_newval=
133868 while test "$ompi_done" = "0"; do
133869 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
133870 eval $ompi_eval
133872 ompi_eval="unset ompi_array_$ompi_i"
133873 eval $ompi_eval
133875 ompi_done="`expr $ompi_i \>= $ompi_count`"
133876 ompi_i="`expr $ompi_i + 1`"
133879 # Done; do the assignment
133881 ompi_newval="`echo $ompi_newval`"
133882 ompi_eval="$ompi_name=\"$ompi_newval\""
133883 eval $ompi_eval
133885 # Clean up
133887 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
133889 # 1 is the variable name to be uniq-ized
133890 ompi_name=orte_WRAPPER_EXTRA_LIBS
133892 # Go through each item in the variable and only keep the unique ones
133894 ompi_count=0
133895 for val in ${orte_WRAPPER_EXTRA_LIBS}; do
133896 ompi_done=0
133897 ompi_i=1
133898 ompi_found=0
133900 # Loop over every token we've seen so far
133902 ompi_done="`expr $ompi_i \> $ompi_count`"
133903 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
133905 # Have we seen this token already? Prefix the comparison with
133906 # "x" so that "-Lfoo" values won't be cause an error.
133908 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
133909 ompi_found=`eval $ompi_eval`
133911 # Check the ending condition
133913 ompi_done="`expr $ompi_i \>= $ompi_count`"
133915 # Increment the counter
133917 ompi_i="`expr $ompi_i + 1`"
133920 # If we didn't find the token, add it to the "array"
133922 if test "$ompi_found" = "0"; then
133923 ompi_eval="ompi_array_$ompi_i=$val"
133924 eval $ompi_eval
133925 ompi_count="`expr $ompi_count + 1`"
133927 ompi_i="`expr $ompi_i - 1`"
133931 # Take all the items in the "array" and assemble them back into a
133932 # single variable
133934 ompi_i=1
133935 ompi_done="`expr $ompi_i \> $ompi_count`"
133936 ompi_newval=
133937 while test "$ompi_done" = "0"; do
133938 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
133939 eval $ompi_eval
133941 ompi_eval="unset ompi_array_$ompi_i"
133942 eval $ompi_eval
133944 ompi_done="`expr $ompi_i \>= $ompi_count`"
133945 ompi_i="`expr $ompi_i + 1`"
133948 # Done; do the assignment
133950 ompi_newval="`echo $ompi_newval`"
133951 ompi_eval="$ompi_name=\"$ompi_newval\""
133952 eval $ompi_eval
133954 # Clean up
133956 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
133958 { echo "$as_me:$LINENO: checking for ORTE CPPFLAGS" >&5
133959 echo $ECHO_N "checking for ORTE CPPFLAGS... $ECHO_C" >&6; }
133960 ORTE_WRAPPER_EXTRA_CPPFLAGS="$OPAL_WRAPPER_EXTRA_CPPFLAGS"
133962 { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CPPFLAGS" >&5
133963 echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_CPPFLAGS" >&6; }
133965 { echo "$as_me:$LINENO: checking for ORTE CFLAGS" >&5
133966 echo $ECHO_N "checking for ORTE CFLAGS... $ECHO_C" >&6; }
133967 ORTE_WRAPPER_EXTRA_CFLAGS="$OPAL_WRAPPER_EXTRA_CFLAGS"
133969 { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CFLAGS" >&5
133970 echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_CFLAGS" >&6; }
133972 { echo "$as_me:$LINENO: checking for ORTE CXXFLAGS" >&5
133973 echo $ECHO_N "checking for ORTE CXXFLAGS... $ECHO_C" >&6; }
133974 ORTE_WRAPPER_EXTRA_CXXFLAGS="$OPAL_WRAPPER_EXTRA_CXXFLAGS"
133976 { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_CXXFLAGS" >&5
133977 echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_CXXFLAGS" >&6; }
133979 { echo "$as_me:$LINENO: checking for ORTE LDFLAGS" >&5
133980 echo $ECHO_N "checking for ORTE LDFLAGS... $ECHO_C" >&6; }
133981 ORTE_WRAPPER_EXTRA_LDFLAGS="$orte_WRAPPER_EXTRA_LDFLAGS $OPAL_WRAPPER_EXTRA_LDFLAGS"
133983 { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_LDFLAGS" >&5
133984 echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_LDFLAGS" >&6; }
133986 { echo "$as_me:$LINENO: checking for ORTE LIBS" >&5
133987 echo $ECHO_N "checking for ORTE LIBS... $ECHO_C" >&6; }
133988 ORTE_WRAPPER_EXTRA_LIBS="$orte_WRAPPER_EXTRA_LIBS $OPAL_WRAPPER_EXTRA_LIBS"
133990 { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_LIBS" >&5
133991 echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_LIBS" >&6; }
133993 { echo "$as_me:$LINENO: checking for ORTE extra include dirs" >&5
133994 echo $ECHO_N "checking for ORTE extra include dirs... $ECHO_C" >&6; }
133995 ORTE_WRAPPER_EXTRA_INCLUDES="$OPAL_WRAPPER_EXTRA_INCLUDES"
133997 { echo "$as_me:$LINENO: result: $ORTE_WRAPPER_EXTRA_INCLUDES" >&5
133998 echo "${ECHO_T}$ORTE_WRAPPER_EXTRA_INCLUDES" >&6; }
134002 # OMPI
134005 # 1 is the variable name to be uniq-ized
134006 ompi_name=ompi_WRAPPER_EXTRA_LDFLAGS
134008 # Go through each item in the variable and only keep the unique ones
134010 ompi_count=0
134011 for val in ${ompi_WRAPPER_EXTRA_LDFLAGS}; do
134012 ompi_done=0
134013 ompi_i=1
134014 ompi_found=0
134016 # Loop over every token we've seen so far
134018 ompi_done="`expr $ompi_i \> $ompi_count`"
134019 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
134021 # Have we seen this token already? Prefix the comparison with
134022 # "x" so that "-Lfoo" values won't be cause an error.
134024 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
134025 ompi_found=`eval $ompi_eval`
134027 # Check the ending condition
134029 ompi_done="`expr $ompi_i \>= $ompi_count`"
134031 # Increment the counter
134033 ompi_i="`expr $ompi_i + 1`"
134036 # If we didn't find the token, add it to the "array"
134038 if test "$ompi_found" = "0"; then
134039 ompi_eval="ompi_array_$ompi_i=$val"
134040 eval $ompi_eval
134041 ompi_count="`expr $ompi_count + 1`"
134043 ompi_i="`expr $ompi_i - 1`"
134047 # Take all the items in the "array" and assemble them back into a
134048 # single variable
134050 ompi_i=1
134051 ompi_done="`expr $ompi_i \> $ompi_count`"
134052 ompi_newval=
134053 while test "$ompi_done" = "0"; do
134054 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
134055 eval $ompi_eval
134057 ompi_eval="unset ompi_array_$ompi_i"
134058 eval $ompi_eval
134060 ompi_done="`expr $ompi_i \>= $ompi_count`"
134061 ompi_i="`expr $ompi_i + 1`"
134064 # Done; do the assignment
134066 ompi_newval="`echo $ompi_newval`"
134067 ompi_eval="$ompi_name=\"$ompi_newval\""
134068 eval $ompi_eval
134070 # Clean up
134072 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
134074 # 1 is the variable name to be uniq-ized
134075 ompi_name=ompi_WRAPPER_EXTRA_LIBS
134077 # Go through each item in the variable and only keep the unique ones
134079 ompi_count=0
134080 for val in ${ompi_WRAPPER_EXTRA_LIBS}; do
134081 ompi_done=0
134082 ompi_i=1
134083 ompi_found=0
134085 # Loop over every token we've seen so far
134087 ompi_done="`expr $ompi_i \> $ompi_count`"
134088 while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
134090 # Have we seen this token already? Prefix the comparison with
134091 # "x" so that "-Lfoo" values won't be cause an error.
134093 ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
134094 ompi_found=`eval $ompi_eval`
134096 # Check the ending condition
134098 ompi_done="`expr $ompi_i \>= $ompi_count`"
134100 # Increment the counter
134102 ompi_i="`expr $ompi_i + 1`"
134105 # If we didn't find the token, add it to the "array"
134107 if test "$ompi_found" = "0"; then
134108 ompi_eval="ompi_array_$ompi_i=$val"
134109 eval $ompi_eval
134110 ompi_count="`expr $ompi_count + 1`"
134112 ompi_i="`expr $ompi_i - 1`"
134116 # Take all the items in the "array" and assemble them back into a
134117 # single variable
134119 ompi_i=1
134120 ompi_done="`expr $ompi_i \> $ompi_count`"
134121 ompi_newval=
134122 while test "$ompi_done" = "0"; do
134123 ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
134124 eval $ompi_eval
134126 ompi_eval="unset ompi_array_$ompi_i"
134127 eval $ompi_eval
134129 ompi_done="`expr $ompi_i \>= $ompi_count`"
134130 ompi_i="`expr $ompi_i + 1`"
134133 # Done; do the assignment
134135 ompi_newval="`echo $ompi_newval`"
134136 ompi_eval="$ompi_name=\"$ompi_newval\""
134137 eval $ompi_eval
134139 # Clean up
134141 unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
134143 { echo "$as_me:$LINENO: checking for OMPI CPPFLAGS" >&5
134144 echo $ECHO_N "checking for OMPI CPPFLAGS... $ECHO_C" >&6; }
134145 OMPI_WRAPPER_EXTRA_CPPFLAGS="$ORTE_WRAPPER_EXTRA_CPPFLAGS"
134147 { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CPPFLAGS" >&5
134148 echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_CPPFLAGS" >&6; }
134150 { echo "$as_me:$LINENO: checking for OMPI CFLAGS" >&5
134151 echo $ECHO_N "checking for OMPI CFLAGS... $ECHO_C" >&6; }
134152 OMPI_WRAPPER_EXTRA_CFLAGS="$ORTE_WRAPPER_EXTRA_CFLAGS"
134154 { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CFLAGS" >&5
134155 echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_CFLAGS" >&6; }
134157 { echo "$as_me:$LINENO: checking for OMPI CXXFLAGS" >&5
134158 echo $ECHO_N "checking for OMPI CXXFLAGS... $ECHO_C" >&6; }
134159 OMPI_WRAPPER_EXTRA_CXXFLAGS="$ORTE_WRAPPER_EXTRA_CXXFLAGS"
134161 { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_CXXFLAGS" >&5
134162 echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_CXXFLAGS" >&6; }
134164 { echo "$as_me:$LINENO: checking for OMPI FFLAGS" >&5
134165 echo $ECHO_N "checking for OMPI FFLAGS... $ECHO_C" >&6; }
134166 OMPI_WRAPPER_EXTRA_FFLAGS="$WRAPPER_EXTRA_FFLAGS $USER_WRAPPER_EXTRA_FFLAGS"
134168 { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_FFLAGS" >&5
134169 echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_FFLAGS" >&6; }
134171 { echo "$as_me:$LINENO: checking for OMPI FCFLAGS" >&5
134172 echo $ECHO_N "checking for OMPI FCFLAGS... $ECHO_C" >&6; }
134173 OMPI_WRAPPER_EXTRA_FCFLAGS="$WRAPPER_EXTRA_FCFLAGS $USER_WRAPPER_EXTRA_FCFLAGS"
134175 { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_FCFLAGS" >&5
134176 echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_FCFLAGS" >&6; }
134178 { echo "$as_me:$LINENO: checking for OMPI LDFLAGS" >&5
134179 echo $ECHO_N "checking for OMPI LDFLAGS... $ECHO_C" >&6; }
134180 OMPI_WRAPPER_EXTRA_LDFLAGS="$ompi_WRAPPER_EXTRA_LDFLAGS $ORTE_WRAPPER_EXTRA_LDFLAGS"
134182 { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_LDFLAGS" >&5
134183 echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_LDFLAGS" >&6; }
134185 { echo "$as_me:$LINENO: checking for OMPI LIBS" >&5
134186 echo $ECHO_N "checking for OMPI LIBS... $ECHO_C" >&6; }
134187 OMPI_WRAPPER_EXTRA_LIBS="$ompi_WRAPPER_EXTRA_LIBS $ORTE_WRAPPER_EXTRA_LIBS"
134189 { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_LIBS" >&5
134190 echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_LIBS" >&6; }
134192 { echo "$as_me:$LINENO: checking for OMPI extra include dirs" >&5
134193 echo $ECHO_N "checking for OMPI extra include dirs... $ECHO_C" >&6; }
134194 if test "$WANT_INSTALL_HEADERS" = "1" ; then
134195 # Always include openmpi in case C++ bindings get installed
134196 OMPI_WRAPPER_EXTRA_INCLUDES="$ORTE_WRAPPER_EXTRA_INCLUDES"
134198 OMPI_WRAPPER_EXTRA_INCLUDES="$ORTE_WRAPPER_EXTRA_INCLUDES openmpi"
134201 { echo "$as_me:$LINENO: result: $OMPI_WRAPPER_EXTRA_INCLUDES" >&5
134202 echo "${ECHO_T}$OMPI_WRAPPER_EXTRA_INCLUDES" >&6; }
134204 # language binding support. C++ is a bit different, as the
134205 # compiler should work even if there is no language support.
134206 if test "$WANT_MPI_CXX_SUPPORT" = "1" ; then
134207 OMPI_WRAPPER_CXX_LIB="-lmpi_cxx"
134208 OMPI_WRAPPER_CXX_REQUIRED_FILE="libmpi_cxx.la"
134210 OMPI_WRAPPER_CXX_LIB=""
134211 OMPI_WRAPPER_CXX_REQUIRED_FILE=""
134216 if test "$OMPI_WANT_F77_BINDINGS" = "1" ; then
134217 OMPI_WRAPPER_F77_REQUIRED_FILE=""
134219 OMPI_WRAPPER_F77_REQUIRED_FILE="not supported"
134223 if test "$OMPI_WANT_F90_BINDINGS" = "1" ; then
134224 OMPI_WRAPPER_F90_REQUIRED_FILE="libmpi_f90.a"
134226 OMPI_WRAPPER_F90_REQUIRED_FILE="not supported"
134231 # compatibility defines that will eventually go away
134232 WRAPPER_EXTRA_CFLAGS="$OMPI_WRAPPER_EXTRA_CFLAGS"
134233 WRAPPER_EXTRA_CXXFLAGS="$OMPI_WRAPPER_EXTRA_CXXFLAGS"
134234 WRAPPER_EXTRA_FFLAGS="$OMPI_WRAPPER_EXTRA_FFLAGS"
134235 WRAPPER_EXTRA_FCFLAGS="$OMPI_WRAPPER_EXTRA_FCFLAGS"
134236 WRAPPER_EXTRA_LDFLAGS="$OMPI_WRAPPER_EXTRA_LDFLAGS"
134237 WRAPPER_EXTRA_LIBS="$OMPI_WRAPPER_EXTRA_LIBS"
134247 cat >>confdefs.h <<_ACEOF
134248 #define WRAPPER_EXTRA_CFLAGS "$WRAPPER_EXTRA_CFLAGS"
134249 _ACEOF
134252 cat >>confdefs.h <<_ACEOF
134253 #define WRAPPER_EXTRA_CXXFLAGS "$WRAPPER_EXTRA_CXXFLAGS"
134254 _ACEOF
134257 cat >>confdefs.h <<_ACEOF
134258 #define WRAPPER_EXTRA_FFLAGS "$WRAPPER_EXTRA_FFLAGS"
134259 _ACEOF
134262 cat >>confdefs.h <<_ACEOF
134263 #define WRAPPER_EXTRA_FCFLAGS "$WRAPPER_EXTRA_FCFLAGS"
134264 _ACEOF
134267 cat >>confdefs.h <<_ACEOF
134268 #define WRAPPER_EXTRA_LDFLAGS "$WRAPPER_EXTRA_LDFLAGS"
134269 _ACEOF
134272 cat >>confdefs.h <<_ACEOF
134273 #define WRAPPER_EXTRA_LIBS "$WRAPPER_EXTRA_LIBS"
134274 _ACEOF
134278 ############################################################################
134279 # Party on
134280 ############################################################################
134282 ompi_show_subtitle "Final output"
134285 ompi_exec_prefix_save="$exec_prefix"
134286 ompi_prefix_save="$prefix"
134288 # need to temporarily expand this out as almost exactly as it will
134289 # be done later so that NONE doesn't show up in the
134290 # {exec_}prefix-based variables.
134291 test "x$prefix" = xNONE && prefix=$ac_default_prefix
134292 test "x$exec_prefix" = xNONE && exec_prefix="$prefix"
134294 OPAL_PREFIX="$prefix"
134295 OPAL_EXEC_PREFIX="$exec_prefix"
134296 eval OPAL_BINDIR="$bindir"
134297 eval OPAL_SBINDIR="$sbindir"
134298 eval OPAL_LIBEXECDIR="$libexecdir"
134299 eval OPAL_DATADIR="$datadir"
134300 eval OPAL_SYSCONFDIR="$sysconfdir"
134301 eval OPAL_SHAREDSTATEDIR="$sharedstatedir"
134302 eval OPAL_LOCALSTATEDIR="$localstatedir"
134303 eval OPAL_LIBDIR="$libdir"
134304 eval OPAL_INCLUDEDIR="$includedir"
134305 eval OPAL_INFODIR="$infodir"
134306 eval OPAL_MANDIR="$mandir"
134322 prefix="$ompi_prefix_save"
134323 exec_prefix="$ompi_exec_prefix_save"
134325 ac_config_files="$ac_config_files opal/include/opal/install_dirs.h"
134329 ac_config_headers="$ac_config_headers opal/include/opal_config.h orte/include/orte_config.h ompi/include/ompi_config.h ompi/include/mpi.h"
134331 ac_config_files="$ac_config_files Makefile config/Makefile contrib/Makefile opal/Makefile opal/etc/Makefile opal/include/Makefile opal/asm/Makefile opal/event/Makefile opal/event/compat/Makefile opal/event/compat/sys/Makefile opal/util/Makefile opal/util/keyval/Makefile opal/mca/base/Makefile opal/tools/wrappers/Makefile opal/tools/wrappers/opalcc-wrapper-data.txt opal/tools/wrappers/opalc++-wrapper-data.txt orte/Makefile orte/include/Makefile orte/etc/Makefile orte/tools/orted/Makefile orte/tools/orterun/Makefile orte/tools/wrappers/Makefile orte/tools/wrappers/ortecc-wrapper-data.txt orte/tools/wrappers/ortec++-wrapper-data.txt ompi/Makefile ompi/etc/Makefile ompi/include/Makefile ompi/include/mpif.h ompi/include/mpif-config.h ompi/datatype/Makefile ompi/debuggers/Makefile ompi/mpi/Makefile ompi/mpi/c/Makefile ompi/mpi/c/profile/Makefile ompi/mpi/cxx/Makefile ompi/mpi/f77/Makefile ompi/mpi/f77/profile/Makefile ompi/mpi/f90/Makefile ompi/mpi/f90/fortran_kinds.sh ompi/mpi/f90/fortran_sizes.h ompi/mpi/f90/scripts/Makefile ompi/tools/ompi_info/Makefile ompi/tools/wrappers/Makefile ompi/tools/wrappers/mpicc-wrapper-data.txt ompi/tools/wrappers/mpic++-wrapper-data.txt ompi/tools/wrappers/mpif77-wrapper-data.txt ompi/tools/wrappers/mpif90-wrapper-data.txt test/Makefile test/asm/Makefile test/class/Makefile test/dss/Makefile test/mca/Makefile test/mca/gpr/Makefile test/mca/gpr/remote/Makefile test/mca/ns/Makefile test/mca/oob/Makefile test/mca/ras/Makefile test/mca/rds/Makefile test/mca/rmaps/Makefile test/mca/rmgr/Makefile test/mca/schema/Makefile test/mca/soh/Makefile test/memory/Makefile test/runtime/Makefile test/support/Makefile test/threads/Makefile test/util/Makefile test/peruse/Makefile"
134333 cat >confcache <<\_ACEOF
134334 # This file is a shell script that caches the results of configure
134335 # tests run on this system so they can be shared between configure
134336 # scripts and configure runs, see configure's option --config-cache.
134337 # It is not useful on other systems. If it contains results you don't
134338 # want to keep, you may remove or edit it.
134340 # config.status only pays attention to the cache file if you give it
134341 # the --recheck option to rerun configure.
134343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
134344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
134345 # following values.
134347 _ACEOF
134349 # The following way of writing the cache mishandles newlines in values,
134350 # but we know of no workaround that is simple, portable, and efficient.
134351 # So, we kill variables containing newlines.
134352 # Ultrix sh set writes to stderr and can't be redirected directly,
134353 # and sets the high bit in the cache file unless we assign to the vars.
134355 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
134356 eval ac_val=\$$ac_var
134357 case $ac_val in #(
134358 *${as_nl}*)
134359 case $ac_var in #(
134360 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
134361 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
134363 case $ac_var in #(
134364 _ | IFS | as_nl) ;; #(
134365 *) $as_unset $ac_var ;;
134366 esac ;;
134370 (set) 2>&1 |
134371 case $as_nl`(ac_space=' '; set) 2>&1` in #(
134372 *${as_nl}ac_space=\ *)
134373 # `set' does not quote correctly, so add quotes (double-quote
134374 # substitution turns \\\\ into \\, and sed turns \\ into \).
134375 sed -n \
134376 "s/'/'\\\\''/g;
134377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
134378 ;; #(
134380 # `set' quotes correctly as required by POSIX, so do not add quotes.
134381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
134383 esac |
134386 sed '
134387 /^ac_cv_env_/b end
134388 t clear
134389 :clear
134390 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
134391 t end
134392 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
134393 :end' >>confcache
134394 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
134395 if test -w "$cache_file"; then
134396 test "x$cache_file" != "x/dev/null" &&
134397 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
134398 echo "$as_me: updating cache $cache_file" >&6;}
134399 cat confcache >$cache_file
134401 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
134402 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
134405 rm -f confcache
134407 test "x$prefix" = xNONE && prefix=$ac_default_prefix
134408 # Let make expand exec_prefix.
134409 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
134411 DEFS=-DHAVE_CONFIG_H
134413 ac_libobjs=
134414 ac_ltlibobjs=
134415 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
134416 # 1. Remove the extension, and $U if already installed.
134417 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
134418 ac_i=`echo "$ac_i" | sed "$ac_script"`
134419 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
134420 # will be set to the directory where LIBOBJS objects are built.
134421 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
134422 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
134424 LIBOBJS=$ac_libobjs
134426 LTLIBOBJS=$ac_ltlibobjs
134429 if test -z "${OMPI_WANT_BUILD_F90_TRIVIAL_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_TRIVIAL_FALSE}"; then
134430 { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_TRIVIAL\" was never defined.
134431 Usually this means the macro was only invoked conditionally." >&5
134432 echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_TRIVIAL\" was never defined.
134433 Usually this means the macro was only invoked conditionally." >&2;}
134434 { (exit 1); exit 1; }; }
134436 if test -z "${OMPI_WANT_BUILD_F90_SMALL_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_SMALL_FALSE}"; then
134437 { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_SMALL\" was never defined.
134438 Usually this means the macro was only invoked conditionally." >&5
134439 echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_SMALL\" was never defined.
134440 Usually this means the macro was only invoked conditionally." >&2;}
134441 { (exit 1); exit 1; }; }
134443 if test -z "${OMPI_WANT_BUILD_F90_MEDIUM_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_MEDIUM_FALSE}"; then
134444 { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_MEDIUM\" was never defined.
134445 Usually this means the macro was only invoked conditionally." >&5
134446 echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_MEDIUM\" was never defined.
134447 Usually this means the macro was only invoked conditionally." >&2;}
134448 { (exit 1); exit 1; }; }
134450 if test -z "${OMPI_WANT_BUILD_F90_LARGE_TRUE}" && test -z "${OMPI_WANT_BUILD_F90_LARGE_FALSE}"; then
134451 { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_BUILD_F90_LARGE\" was never defined.
134452 Usually this means the macro was only invoked conditionally." >&5
134453 echo "$as_me: error: conditional \"OMPI_WANT_BUILD_F90_LARGE\" was never defined.
134454 Usually this means the macro was only invoked conditionally." >&2;}
134455 { (exit 1); exit 1; }; }
134457 if test -z "${WANT_INSTALL_HEADERS_TRUE}" && test -z "${WANT_INSTALL_HEADERS_FALSE}"; then
134458 { { echo "$as_me:$LINENO: error: conditional \"WANT_INSTALL_HEADERS\" was never defined.
134459 Usually this means the macro was only invoked conditionally." >&5
134460 echo "$as_me: error: conditional \"WANT_INSTALL_HEADERS\" was never defined.
134461 Usually this means the macro was only invoked conditionally." >&2;}
134462 { (exit 1); exit 1; }; }
134464 if test -z "${WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE}" && test -z "${WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE}"; then
134465 { { echo "$as_me:$LINENO: error: conditional \"WANT_DEPRECATED_EXECUTABLE_NAMES\" was never defined.
134466 Usually this means the macro was only invoked conditionally." >&5
134467 echo "$as_me: error: conditional \"WANT_DEPRECATED_EXECUTABLE_NAMES\" was never defined.
134468 Usually this means the macro was only invoked conditionally." >&2;}
134469 { (exit 1); exit 1; }; }
134471 if test -z "${WANT_PERUSE_TRUE}" && test -z "${WANT_PERUSE_FALSE}"; then
134472 { { echo "$as_me:$LINENO: error: conditional \"WANT_PERUSE\" was never defined.
134473 Usually this means the macro was only invoked conditionally." >&5
134474 echo "$as_me: error: conditional \"WANT_PERUSE\" was never defined.
134475 Usually this means the macro was only invoked conditionally." >&2;}
134476 { (exit 1); exit 1; }; }
134478 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
134479 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
134480 Usually this means the macro was only invoked conditionally." >&5
134481 echo "$as_me: error: conditional \"AMDEP\" was never defined.
134482 Usually this means the macro was only invoked conditionally." >&2;}
134483 { (exit 1); exit 1; }; }
134485 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
134486 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
134487 Usually this means the macro was only invoked conditionally." >&5
134488 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
134489 Usually this means the macro was only invoked conditionally." >&2;}
134490 { (exit 1); exit 1; }; }
134492 if test -z "${OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE}" && test -z "${OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE}"; then
134493 { { echo "$as_me:$LINENO: error: conditional \"OMPI_NEED_WINDOWS_REPLACEMENTS\" was never defined.
134494 Usually this means the macro was only invoked conditionally." >&5
134495 echo "$as_me: error: conditional \"OMPI_NEED_WINDOWS_REPLACEMENTS\" was never defined.
134496 Usually this means the macro was only invoked conditionally." >&2;}
134497 { (exit 1); exit 1; }; }
134499 if test -z "${WANT_MPI_BINDINGS_LAYER_TRUE}" && test -z "${WANT_MPI_BINDINGS_LAYER_FALSE}"; then
134500 { { echo "$as_me:$LINENO: error: conditional \"WANT_MPI_BINDINGS_LAYER\" was never defined.
134501 Usually this means the macro was only invoked conditionally." >&5
134502 echo "$as_me: error: conditional \"WANT_MPI_BINDINGS_LAYER\" was never defined.
134503 Usually this means the macro was only invoked conditionally." >&2;}
134504 { (exit 1); exit 1; }; }
134506 if test -z "${WANT_PMPI_BINDINGS_LAYER_TRUE}" && test -z "${WANT_PMPI_BINDINGS_LAYER_FALSE}"; then
134507 { { echo "$as_me:$LINENO: error: conditional \"WANT_PMPI_BINDINGS_LAYER\" was never defined.
134508 Usually this means the macro was only invoked conditionally." >&5
134509 echo "$as_me: error: conditional \"WANT_PMPI_BINDINGS_LAYER\" was never defined.
134510 Usually this means the macro was only invoked conditionally." >&2;}
134511 { (exit 1); exit 1; }; }
134513 if test -z "${COMPILE_PROFILING_SEPARATELY_TRUE}" && test -z "${COMPILE_PROFILING_SEPARATELY_FALSE}"; then
134514 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_PROFILING_SEPARATELY\" was never defined.
134515 Usually this means the macro was only invoked conditionally." >&5
134516 echo "$as_me: error: conditional \"COMPILE_PROFILING_SEPARATELY\" was never defined.
134517 Usually this means the macro was only invoked conditionally." >&2;}
134518 { (exit 1); exit 1; }; }
134520 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
134521 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
134522 Usually this means the macro was only invoked conditionally." >&5
134523 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
134524 Usually this means the macro was only invoked conditionally." >&2;}
134525 { (exit 1); exit 1; }; }
134527 if test -z "${WANT_MPI_CXX_BINDINGS_TRUE}" && test -z "${WANT_MPI_CXX_BINDINGS_FALSE}"; then
134528 { { echo "$as_me:$LINENO: error: conditional \"WANT_MPI_CXX_BINDINGS\" was never defined.
134529 Usually this means the macro was only invoked conditionally." >&5
134530 echo "$as_me: error: conditional \"WANT_MPI_CXX_BINDINGS\" was never defined.
134531 Usually this means the macro was only invoked conditionally." >&2;}
134532 { (exit 1); exit 1; }; }
134534 if test -z "${OMPI_HAVE_ASM_FILE_TRUE}" && test -z "${OMPI_HAVE_ASM_FILE_FALSE}"; then
134535 { { echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_ASM_FILE\" was never defined.
134536 Usually this means the macro was only invoked conditionally." >&5
134537 echo "$as_me: error: conditional \"OMPI_HAVE_ASM_FILE\" was never defined.
134538 Usually this means the macro was only invoked conditionally." >&2;}
134539 { (exit 1); exit 1; }; }
134541 if test -z "${OMPI_WANT_F77_BINDINGS_TRUE}" && test -z "${OMPI_WANT_F77_BINDINGS_FALSE}"; then
134542 { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_F77_BINDINGS\" was never defined.
134543 Usually this means the macro was only invoked conditionally." >&5
134544 echo "$as_me: error: conditional \"OMPI_WANT_F77_BINDINGS\" was never defined.
134545 Usually this means the macro was only invoked conditionally." >&2;}
134546 { (exit 1); exit 1; }; }
134548 if test -z "${WANT_MPI_F77_BINDINGS_LAYER_TRUE}" && test -z "${WANT_MPI_F77_BINDINGS_LAYER_FALSE}"; then
134549 { { echo "$as_me:$LINENO: error: conditional \"WANT_MPI_F77_BINDINGS_LAYER\" was never defined.
134550 Usually this means the macro was only invoked conditionally." >&5
134551 echo "$as_me: error: conditional \"WANT_MPI_F77_BINDINGS_LAYER\" was never defined.
134552 Usually this means the macro was only invoked conditionally." >&2;}
134553 { (exit 1); exit 1; }; }
134555 if test -z "${WANT_PMPI_F77_BINDINGS_LAYER_TRUE}" && test -z "${WANT_PMPI_F77_BINDINGS_LAYER_FALSE}"; then
134556 { { echo "$as_me:$LINENO: error: conditional \"WANT_PMPI_F77_BINDINGS_LAYER\" was never defined.
134557 Usually this means the macro was only invoked conditionally." >&5
134558 echo "$as_me: error: conditional \"WANT_PMPI_F77_BINDINGS_LAYER\" was never defined.
134559 Usually this means the macro was only invoked conditionally." >&2;}
134560 { (exit 1); exit 1; }; }
134562 if test -z "${OMPI_WANT_F90_BINDINGS_TRUE}" && test -z "${OMPI_WANT_F90_BINDINGS_FALSE}"; then
134563 { { echo "$as_me:$LINENO: error: conditional \"OMPI_WANT_F90_BINDINGS\" was never defined.
134564 Usually this means the macro was only invoked conditionally." >&5
134565 echo "$as_me: error: conditional \"OMPI_WANT_F90_BINDINGS\" was never defined.
134566 Usually this means the macro was only invoked conditionally." >&2;}
134567 { (exit 1); exit 1; }; }
134569 if test -z "${OMPI_HAVE_POSIX_THREADS_TRUE}" && test -z "${OMPI_HAVE_POSIX_THREADS_FALSE}"; then
134570 { { echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_POSIX_THREADS\" was never defined.
134571 Usually this means the macro was only invoked conditionally." >&5
134572 echo "$as_me: error: conditional \"OMPI_HAVE_POSIX_THREADS\" was never defined.
134573 Usually this means the macro was only invoked conditionally." >&2;}
134574 { (exit 1); exit 1; }; }
134576 if test -z "${OMPI_HAVE_SOLARIS_THREADS_TRUE}" && test -z "${OMPI_HAVE_SOLARIS_THREADS_FALSE}"; then
134577 { { echo "$as_me:$LINENO: error: conditional \"OMPI_HAVE_SOLARIS_THREADS\" was never defined.
134578 Usually this means the macro was only invoked conditionally." >&5
134579 echo "$as_me: error: conditional \"OMPI_HAVE_SOLARIS_THREADS\" was never defined.
134580 Usually this means the macro was only invoked conditionally." >&2;}
134581 { (exit 1); exit 1; }; }
134583 if test -z "${CASE_SENSITIVE_FS_TRUE}" && test -z "${CASE_SENSITIVE_FS_FALSE}"; then
134584 { { echo "$as_me:$LINENO: error: conditional \"CASE_SENSITIVE_FS\" was never defined.
134585 Usually this means the macro was only invoked conditionally." >&5
134586 echo "$as_me: error: conditional \"CASE_SENSITIVE_FS\" was never defined.
134587 Usually this means the macro was only invoked conditionally." >&2;}
134588 { (exit 1); exit 1; }; }
134590 if test -z "${OMPI_BUILD_maffinity_first_use_DSO_TRUE}" && test -z "${OMPI_BUILD_maffinity_first_use_DSO_FALSE}"; then
134591 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_maffinity_first_use_DSO\" was never defined.
134592 Usually this means the macro was only invoked conditionally." >&5
134593 echo "$as_me: error: conditional \"OMPI_BUILD_maffinity_first_use_DSO\" was never defined.
134594 Usually this means the macro was only invoked conditionally." >&2;}
134595 { (exit 1); exit 1; }; }
134597 if test -z "${OMPI_BUILD_maffinity_libnuma_DSO_TRUE}" && test -z "${OMPI_BUILD_maffinity_libnuma_DSO_FALSE}"; then
134598 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_maffinity_libnuma_DSO\" was never defined.
134599 Usually this means the macro was only invoked conditionally." >&5
134600 echo "$as_me: error: conditional \"OMPI_BUILD_maffinity_libnuma_DSO\" was never defined.
134601 Usually this means the macro was only invoked conditionally." >&2;}
134602 { (exit 1); exit 1; }; }
134604 if test -z "${OMPI_BUILD_memory_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_darwin_DSO_FALSE}"; then
134605 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_darwin_DSO\" was never defined.
134606 Usually this means the macro was only invoked conditionally." >&5
134607 echo "$as_me: error: conditional \"OMPI_BUILD_memory_darwin_DSO\" was never defined.
134608 Usually this means the macro was only invoked conditionally." >&2;}
134609 { (exit 1); exit 1; }; }
134611 if test -z "${OMPI_BUILD_memory_ptmalloc2_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_ptmalloc2_DSO_FALSE}"; then
134612 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_ptmalloc2_DSO\" was never defined.
134613 Usually this means the macro was only invoked conditionally." >&5
134614 echo "$as_me: error: conditional \"OMPI_BUILD_memory_ptmalloc2_DSO\" was never defined.
134615 Usually this means the macro was only invoked conditionally." >&2;}
134616 { (exit 1); exit 1; }; }
134618 if test -z "${OMPI_BUILD_memory_malloc_hooks_DSO_TRUE}" && test -z "${OMPI_BUILD_memory_malloc_hooks_DSO_FALSE}"; then
134619 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_memory_malloc_hooks_DSO\" was never defined.
134620 Usually this means the macro was only invoked conditionally." >&5
134621 echo "$as_me: error: conditional \"OMPI_BUILD_memory_malloc_hooks_DSO\" was never defined.
134622 Usually this means the macro was only invoked conditionally." >&2;}
134623 { (exit 1); exit 1; }; }
134625 if test -z "${OMPI_BUILD_paffinity_linux_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_linux_DSO_FALSE}"; then
134626 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_linux_DSO\" was never defined.
134627 Usually this means the macro was only invoked conditionally." >&5
134628 echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_linux_DSO\" was never defined.
134629 Usually this means the macro was only invoked conditionally." >&2;}
134630 { (exit 1); exit 1; }; }
134632 if test -z "${OMPI_BUILD_paffinity_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_solaris_DSO_FALSE}"; then
134633 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_solaris_DSO\" was never defined.
134634 Usually this means the macro was only invoked conditionally." >&5
134635 echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_solaris_DSO\" was never defined.
134636 Usually this means the macro was only invoked conditionally." >&2;}
134637 { (exit 1); exit 1; }; }
134639 if test -z "${OMPI_BUILD_paffinity_windows_DSO_TRUE}" && test -z "${OMPI_BUILD_paffinity_windows_DSO_FALSE}"; then
134640 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_paffinity_windows_DSO\" was never defined.
134641 Usually this means the macro was only invoked conditionally." >&5
134642 echo "$as_me: error: conditional \"OMPI_BUILD_paffinity_windows_DSO\" was never defined.
134643 Usually this means the macro was only invoked conditionally." >&2;}
134644 { (exit 1); exit 1; }; }
134646 if test -z "${OMPI_BUILD_timer_aix_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_aix_DSO_FALSE}"; then
134647 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_aix_DSO\" was never defined.
134648 Usually this means the macro was only invoked conditionally." >&5
134649 echo "$as_me: error: conditional \"OMPI_BUILD_timer_aix_DSO\" was never defined.
134650 Usually this means the macro was only invoked conditionally." >&2;}
134651 { (exit 1); exit 1; }; }
134653 if test -z "${OMPI_BUILD_timer_altix_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_altix_DSO_FALSE}"; then
134654 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_altix_DSO\" was never defined.
134655 Usually this means the macro was only invoked conditionally." >&5
134656 echo "$as_me: error: conditional \"OMPI_BUILD_timer_altix_DSO\" was never defined.
134657 Usually this means the macro was only invoked conditionally." >&2;}
134658 { (exit 1); exit 1; }; }
134660 if test -z "${OMPI_BUILD_timer_darwin_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_darwin_DSO_FALSE}"; then
134661 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_darwin_DSO\" was never defined.
134662 Usually this means the macro was only invoked conditionally." >&5
134663 echo "$as_me: error: conditional \"OMPI_BUILD_timer_darwin_DSO\" was never defined.
134664 Usually this means the macro was only invoked conditionally." >&2;}
134665 { (exit 1); exit 1; }; }
134667 if test -z "${OMPI_BUILD_timer_solaris_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_solaris_DSO_FALSE}"; then
134668 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_solaris_DSO\" was never defined.
134669 Usually this means the macro was only invoked conditionally." >&5
134670 echo "$as_me: error: conditional \"OMPI_BUILD_timer_solaris_DSO\" was never defined.
134671 Usually this means the macro was only invoked conditionally." >&2;}
134672 { (exit 1); exit 1; }; }
134674 if test -z "${OMPI_BUILD_timer_windows_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_windows_DSO_FALSE}"; then
134675 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_windows_DSO\" was never defined.
134676 Usually this means the macro was only invoked conditionally." >&5
134677 echo "$as_me: error: conditional \"OMPI_BUILD_timer_windows_DSO\" was never defined.
134678 Usually this means the macro was only invoked conditionally." >&2;}
134679 { (exit 1); exit 1; }; }
134681 if test -z "${OMPI_BUILD_timer_linux_DSO_TRUE}" && test -z "${OMPI_BUILD_timer_linux_DSO_FALSE}"; then
134682 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_timer_linux_DSO\" was never defined.
134683 Usually this means the macro was only invoked conditionally." >&5
134684 echo "$as_me: error: conditional \"OMPI_BUILD_timer_linux_DSO\" was never defined.
134685 Usually this means the macro was only invoked conditionally." >&2;}
134686 { (exit 1); exit 1; }; }
134688 if test -z "${OMPI_BUILD_gpr_null_DSO_TRUE}" && test -z "${OMPI_BUILD_gpr_null_DSO_FALSE}"; then
134689 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_gpr_null_DSO\" was never defined.
134690 Usually this means the macro was only invoked conditionally." >&5
134691 echo "$as_me: error: conditional \"OMPI_BUILD_gpr_null_DSO\" was never defined.
134692 Usually this means the macro was only invoked conditionally." >&2;}
134693 { (exit 1); exit 1; }; }
134695 if test -z "${OMPI_BUILD_gpr_proxy_DSO_TRUE}" && test -z "${OMPI_BUILD_gpr_proxy_DSO_FALSE}"; then
134696 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_gpr_proxy_DSO\" was never defined.
134697 Usually this means the macro was only invoked conditionally." >&5
134698 echo "$as_me: error: conditional \"OMPI_BUILD_gpr_proxy_DSO\" was never defined.
134699 Usually this means the macro was only invoked conditionally." >&2;}
134700 { (exit 1); exit 1; }; }
134702 if test -z "${OMPI_BUILD_gpr_replica_DSO_TRUE}" && test -z "${OMPI_BUILD_gpr_replica_DSO_FALSE}"; then
134703 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_gpr_replica_DSO\" was never defined.
134704 Usually this means the macro was only invoked conditionally." >&5
134705 echo "$as_me: error: conditional \"OMPI_BUILD_gpr_replica_DSO\" was never defined.
134706 Usually this means the macro was only invoked conditionally." >&2;}
134707 { (exit 1); exit 1; }; }
134709 if test -z "${OMPI_BUILD_iof_proxy_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_proxy_DSO_FALSE}"; then
134710 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_iof_proxy_DSO\" was never defined.
134711 Usually this means the macro was only invoked conditionally." >&5
134712 echo "$as_me: error: conditional \"OMPI_BUILD_iof_proxy_DSO\" was never defined.
134713 Usually this means the macro was only invoked conditionally." >&2;}
134714 { (exit 1); exit 1; }; }
134716 if test -z "${OMPI_BUILD_iof_svc_DSO_TRUE}" && test -z "${OMPI_BUILD_iof_svc_DSO_FALSE}"; then
134717 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_iof_svc_DSO\" was never defined.
134718 Usually this means the macro was only invoked conditionally." >&5
134719 echo "$as_me: error: conditional \"OMPI_BUILD_iof_svc_DSO\" was never defined.
134720 Usually this means the macro was only invoked conditionally." >&2;}
134721 { (exit 1); exit 1; }; }
134723 if test -z "${OMPI_BUILD_ns_proxy_DSO_TRUE}" && test -z "${OMPI_BUILD_ns_proxy_DSO_FALSE}"; then
134724 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ns_proxy_DSO\" was never defined.
134725 Usually this means the macro was only invoked conditionally." >&5
134726 echo "$as_me: error: conditional \"OMPI_BUILD_ns_proxy_DSO\" was never defined.
134727 Usually this means the macro was only invoked conditionally." >&2;}
134728 { (exit 1); exit 1; }; }
134730 if test -z "${OMPI_BUILD_ns_replica_DSO_TRUE}" && test -z "${OMPI_BUILD_ns_replica_DSO_FALSE}"; then
134731 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ns_replica_DSO\" was never defined.
134732 Usually this means the macro was only invoked conditionally." >&5
134733 echo "$as_me: error: conditional \"OMPI_BUILD_ns_replica_DSO\" was never defined.
134734 Usually this means the macro was only invoked conditionally." >&2;}
134735 { (exit 1); exit 1; }; }
134737 if test -z "${OMPI_BUILD_oob_tcp_DSO_TRUE}" && test -z "${OMPI_BUILD_oob_tcp_DSO_FALSE}"; then
134738 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_oob_tcp_DSO\" was never defined.
134739 Usually this means the macro was only invoked conditionally." >&5
134740 echo "$as_me: error: conditional \"OMPI_BUILD_oob_tcp_DSO\" was never defined.
134741 Usually this means the macro was only invoked conditionally." >&2;}
134742 { (exit 1); exit 1; }; }
134744 if test -z "${OMPI_BUILD_pls_bproc_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_bproc_DSO_FALSE}"; then
134745 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_bproc_DSO\" was never defined.
134746 Usually this means the macro was only invoked conditionally." >&5
134747 echo "$as_me: error: conditional \"OMPI_BUILD_pls_bproc_DSO\" was never defined.
134748 Usually this means the macro was only invoked conditionally." >&2;}
134749 { (exit 1); exit 1; }; }
134751 if test -z "${OMPI_BUILD_pls_bproc_orted_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_bproc_orted_DSO_FALSE}"; then
134752 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_bproc_orted_DSO\" was never defined.
134753 Usually this means the macro was only invoked conditionally." >&5
134754 echo "$as_me: error: conditional \"OMPI_BUILD_pls_bproc_orted_DSO\" was never defined.
134755 Usually this means the macro was only invoked conditionally." >&2;}
134756 { (exit 1); exit 1; }; }
134758 if test -z "${OMPI_BUILD_pls_fork_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_fork_DSO_FALSE}"; then
134759 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_fork_DSO\" was never defined.
134760 Usually this means the macro was only invoked conditionally." >&5
134761 echo "$as_me: error: conditional \"OMPI_BUILD_pls_fork_DSO\" was never defined.
134762 Usually this means the macro was only invoked conditionally." >&2;}
134763 { (exit 1); exit 1; }; }
134765 if test -z "${OMPI_BUILD_pls_poe_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_poe_DSO_FALSE}"; then
134766 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_poe_DSO\" was never defined.
134767 Usually this means the macro was only invoked conditionally." >&5
134768 echo "$as_me: error: conditional \"OMPI_BUILD_pls_poe_DSO\" was never defined.
134769 Usually this means the macro was only invoked conditionally." >&2;}
134770 { (exit 1); exit 1; }; }
134772 if test -z "${OMPI_BUILD_pls_rsh_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_rsh_DSO_FALSE}"; then
134773 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_rsh_DSO\" was never defined.
134774 Usually this means the macro was only invoked conditionally." >&5
134775 echo "$as_me: error: conditional \"OMPI_BUILD_pls_rsh_DSO\" was never defined.
134776 Usually this means the macro was only invoked conditionally." >&2;}
134777 { (exit 1); exit 1; }; }
134779 if test -z "${OMPI_BUILD_pls_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_slurm_DSO_FALSE}"; then
134780 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_slurm_DSO\" was never defined.
134781 Usually this means the macro was only invoked conditionally." >&5
134782 echo "$as_me: error: conditional \"OMPI_BUILD_pls_slurm_DSO\" was never defined.
134783 Usually this means the macro was only invoked conditionally." >&2;}
134784 { (exit 1); exit 1; }; }
134786 if test -z "${OMPI_BUILD_pls_tm_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_tm_DSO_FALSE}"; then
134787 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_tm_DSO\" was never defined.
134788 Usually this means the macro was only invoked conditionally." >&5
134789 echo "$as_me: error: conditional \"OMPI_BUILD_pls_tm_DSO\" was never defined.
134790 Usually this means the macro was only invoked conditionally." >&2;}
134791 { (exit 1); exit 1; }; }
134793 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
134794 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
134795 Usually this means the macro was only invoked conditionally." >&5
134796 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
134797 Usually this means the macro was only invoked conditionally." >&2;}
134798 { (exit 1); exit 1; }; }
134800 if test -z "${OMPI_BUILD_pls_xgrid_DSO_TRUE}" && test -z "${OMPI_BUILD_pls_xgrid_DSO_FALSE}"; then
134801 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pls_xgrid_DSO\" was never defined.
134802 Usually this means the macro was only invoked conditionally." >&5
134803 echo "$as_me: error: conditional \"OMPI_BUILD_pls_xgrid_DSO\" was never defined.
134804 Usually this means the macro was only invoked conditionally." >&2;}
134805 { (exit 1); exit 1; }; }
134807 if test -z "${OMPI_BUILD_ras_dash_host_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_dash_host_DSO_FALSE}"; then
134808 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_dash_host_DSO\" was never defined.
134809 Usually this means the macro was only invoked conditionally." >&5
134810 echo "$as_me: error: conditional \"OMPI_BUILD_ras_dash_host_DSO\" was never defined.
134811 Usually this means the macro was only invoked conditionally." >&2;}
134812 { (exit 1); exit 1; }; }
134814 if test -z "${OMPI_BUILD_ras_hostfile_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_hostfile_DSO_FALSE}"; then
134815 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_hostfile_DSO\" was never defined.
134816 Usually this means the macro was only invoked conditionally." >&5
134817 echo "$as_me: error: conditional \"OMPI_BUILD_ras_hostfile_DSO\" was never defined.
134818 Usually this means the macro was only invoked conditionally." >&2;}
134819 { (exit 1); exit 1; }; }
134821 if test -z "${OMPI_BUILD_ras_localhost_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_localhost_DSO_FALSE}"; then
134822 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_localhost_DSO\" was never defined.
134823 Usually this means the macro was only invoked conditionally." >&5
134824 echo "$as_me: error: conditional \"OMPI_BUILD_ras_localhost_DSO\" was never defined.
134825 Usually this means the macro was only invoked conditionally." >&2;}
134826 { (exit 1); exit 1; }; }
134828 if test -z "${OMPI_BUILD_ras_bjs_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_bjs_DSO_FALSE}"; then
134829 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_bjs_DSO\" was never defined.
134830 Usually this means the macro was only invoked conditionally." >&5
134831 echo "$as_me: error: conditional \"OMPI_BUILD_ras_bjs_DSO\" was never defined.
134832 Usually this means the macro was only invoked conditionally." >&2;}
134833 { (exit 1); exit 1; }; }
134835 if test -z "${OMPI_BUILD_ras_loadleveler_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_loadleveler_DSO_FALSE}"; then
134836 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_loadleveler_DSO\" was never defined.
134837 Usually this means the macro was only invoked conditionally." >&5
134838 echo "$as_me: error: conditional \"OMPI_BUILD_ras_loadleveler_DSO\" was never defined.
134839 Usually this means the macro was only invoked conditionally." >&2;}
134840 { (exit 1); exit 1; }; }
134842 if test -z "${OMPI_BUILD_ras_lsf_bproc_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_lsf_bproc_DSO_FALSE}"; then
134843 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_lsf_bproc_DSO\" was never defined.
134844 Usually this means the macro was only invoked conditionally." >&5
134845 echo "$as_me: error: conditional \"OMPI_BUILD_ras_lsf_bproc_DSO\" was never defined.
134846 Usually this means the macro was only invoked conditionally." >&2;}
134847 { (exit 1); exit 1; }; }
134849 if test -z "${OMPI_BUILD_ras_poe_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_poe_DSO_FALSE}"; then
134850 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_poe_DSO\" was never defined.
134851 Usually this means the macro was only invoked conditionally." >&5
134852 echo "$as_me: error: conditional \"OMPI_BUILD_ras_poe_DSO\" was never defined.
134853 Usually this means the macro was only invoked conditionally." >&2;}
134854 { (exit 1); exit 1; }; }
134856 if test -z "${OMPI_BUILD_ras_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_slurm_DSO_FALSE}"; then
134857 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_slurm_DSO\" was never defined.
134858 Usually this means the macro was only invoked conditionally." >&5
134859 echo "$as_me: error: conditional \"OMPI_BUILD_ras_slurm_DSO\" was never defined.
134860 Usually this means the macro was only invoked conditionally." >&2;}
134861 { (exit 1); exit 1; }; }
134863 if test -z "${OMPI_BUILD_ras_tm_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_tm_DSO_FALSE}"; then
134864 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_tm_DSO\" was never defined.
134865 Usually this means the macro was only invoked conditionally." >&5
134866 echo "$as_me: error: conditional \"OMPI_BUILD_ras_tm_DSO\" was never defined.
134867 Usually this means the macro was only invoked conditionally." >&2;}
134868 { (exit 1); exit 1; }; }
134870 if test -z "${OMPI_BUILD_ras_xgrid_DSO_TRUE}" && test -z "${OMPI_BUILD_ras_xgrid_DSO_FALSE}"; then
134871 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_ras_xgrid_DSO\" was never defined.
134872 Usually this means the macro was only invoked conditionally." >&5
134873 echo "$as_me: error: conditional \"OMPI_BUILD_ras_xgrid_DSO\" was never defined.
134874 Usually this means the macro was only invoked conditionally." >&2;}
134875 { (exit 1); exit 1; }; }
134877 if test -z "${OMPI_BUILD_rds_hostfile_DSO_TRUE}" && test -z "${OMPI_BUILD_rds_hostfile_DSO_FALSE}"; then
134878 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rds_hostfile_DSO\" was never defined.
134879 Usually this means the macro was only invoked conditionally." >&5
134880 echo "$as_me: error: conditional \"OMPI_BUILD_rds_hostfile_DSO\" was never defined.
134881 Usually this means the macro was only invoked conditionally." >&2;}
134882 { (exit 1); exit 1; }; }
134884 if test -z "${OMPI_BUILD_rds_resfile_DSO_TRUE}" && test -z "${OMPI_BUILD_rds_resfile_DSO_FALSE}"; then
134885 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rds_resfile_DSO\" was never defined.
134886 Usually this means the macro was only invoked conditionally." >&5
134887 echo "$as_me: error: conditional \"OMPI_BUILD_rds_resfile_DSO\" was never defined.
134888 Usually this means the macro was only invoked conditionally." >&2;}
134889 { (exit 1); exit 1; }; }
134891 if test -z "${OMPI_BUILD_rmaps_round_robin_DSO_TRUE}" && test -z "${OMPI_BUILD_rmaps_round_robin_DSO_FALSE}"; then
134892 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmaps_round_robin_DSO\" was never defined.
134893 Usually this means the macro was only invoked conditionally." >&5
134894 echo "$as_me: error: conditional \"OMPI_BUILD_rmaps_round_robin_DSO\" was never defined.
134895 Usually this means the macro was only invoked conditionally." >&2;}
134896 { (exit 1); exit 1; }; }
134898 if test -z "${OMPI_BUILD_rmgr_proxy_DSO_TRUE}" && test -z "${OMPI_BUILD_rmgr_proxy_DSO_FALSE}"; then
134899 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmgr_proxy_DSO\" was never defined.
134900 Usually this means the macro was only invoked conditionally." >&5
134901 echo "$as_me: error: conditional \"OMPI_BUILD_rmgr_proxy_DSO\" was never defined.
134902 Usually this means the macro was only invoked conditionally." >&2;}
134903 { (exit 1); exit 1; }; }
134905 if test -z "${OMPI_BUILD_rmgr_urm_DSO_TRUE}" && test -z "${OMPI_BUILD_rmgr_urm_DSO_FALSE}"; then
134906 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmgr_urm_DSO\" was never defined.
134907 Usually this means the macro was only invoked conditionally." >&5
134908 echo "$as_me: error: conditional \"OMPI_BUILD_rmgr_urm_DSO\" was never defined.
134909 Usually this means the macro was only invoked conditionally." >&2;}
134910 { (exit 1); exit 1; }; }
134912 if test -z "${OMPI_BUILD_rmgr_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_rmgr_cnos_DSO_FALSE}"; then
134913 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rmgr_cnos_DSO\" was never defined.
134914 Usually this means the macro was only invoked conditionally." >&5
134915 echo "$as_me: error: conditional \"OMPI_BUILD_rmgr_cnos_DSO\" was never defined.
134916 Usually this means the macro was only invoked conditionally." >&2;}
134917 { (exit 1); exit 1; }; }
134919 if test -z "${OMPI_BUILD_rml_oob_DSO_TRUE}" && test -z "${OMPI_BUILD_rml_oob_DSO_FALSE}"; then
134920 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rml_oob_DSO\" was never defined.
134921 Usually this means the macro was only invoked conditionally." >&5
134922 echo "$as_me: error: conditional \"OMPI_BUILD_rml_oob_DSO\" was never defined.
134923 Usually this means the macro was only invoked conditionally." >&2;}
134924 { (exit 1); exit 1; }; }
134926 if test -z "${OMPI_BUILD_rml_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_rml_cnos_DSO_FALSE}"; then
134927 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rml_cnos_DSO\" was never defined.
134928 Usually this means the macro was only invoked conditionally." >&5
134929 echo "$as_me: error: conditional \"OMPI_BUILD_rml_cnos_DSO\" was never defined.
134930 Usually this means the macro was only invoked conditionally." >&2;}
134931 { (exit 1); exit 1; }; }
134933 if test -z "${OMPI_BUILD_sds_env_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_env_DSO_FALSE}"; then
134934 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_env_DSO\" was never defined.
134935 Usually this means the macro was only invoked conditionally." >&5
134936 echo "$as_me: error: conditional \"OMPI_BUILD_sds_env_DSO\" was never defined.
134937 Usually this means the macro was only invoked conditionally." >&2;}
134938 { (exit 1); exit 1; }; }
134940 if test -z "${OMPI_BUILD_sds_seed_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_seed_DSO_FALSE}"; then
134941 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_seed_DSO\" was never defined.
134942 Usually this means the macro was only invoked conditionally." >&5
134943 echo "$as_me: error: conditional \"OMPI_BUILD_sds_seed_DSO\" was never defined.
134944 Usually this means the macro was only invoked conditionally." >&2;}
134945 { (exit 1); exit 1; }; }
134947 if test -z "${OMPI_BUILD_sds_singleton_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_singleton_DSO_FALSE}"; then
134948 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_singleton_DSO\" was never defined.
134949 Usually this means the macro was only invoked conditionally." >&5
134950 echo "$as_me: error: conditional \"OMPI_BUILD_sds_singleton_DSO\" was never defined.
134951 Usually this means the macro was only invoked conditionally." >&2;}
134952 { (exit 1); exit 1; }; }
134954 if test -z "${OMPI_BUILD_sds_bproc_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_bproc_DSO_FALSE}"; then
134955 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_bproc_DSO\" was never defined.
134956 Usually this means the macro was only invoked conditionally." >&5
134957 echo "$as_me: error: conditional \"OMPI_BUILD_sds_bproc_DSO\" was never defined.
134958 Usually this means the macro was only invoked conditionally." >&2;}
134959 { (exit 1); exit 1; }; }
134961 if test -z "${OMPI_BUILD_sds_cnos_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_cnos_DSO_FALSE}"; then
134962 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_cnos_DSO\" was never defined.
134963 Usually this means the macro was only invoked conditionally." >&5
134964 echo "$as_me: error: conditional \"OMPI_BUILD_sds_cnos_DSO\" was never defined.
134965 Usually this means the macro was only invoked conditionally." >&2;}
134966 { (exit 1); exit 1; }; }
134968 if test -z "${OMPI_BUILD_sds_pipe_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_pipe_DSO_FALSE}"; then
134969 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_pipe_DSO\" was never defined.
134970 Usually this means the macro was only invoked conditionally." >&5
134971 echo "$as_me: error: conditional \"OMPI_BUILD_sds_pipe_DSO\" was never defined.
134972 Usually this means the macro was only invoked conditionally." >&2;}
134973 { (exit 1); exit 1; }; }
134975 if test -z "${OMPI_BUILD_sds_portals_utcp_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_portals_utcp_DSO_FALSE}"; then
134976 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_portals_utcp_DSO\" was never defined.
134977 Usually this means the macro was only invoked conditionally." >&5
134978 echo "$as_me: error: conditional \"OMPI_BUILD_sds_portals_utcp_DSO\" was never defined.
134979 Usually this means the macro was only invoked conditionally." >&2;}
134980 { (exit 1); exit 1; }; }
134982 if test -z "${OMPI_BUILD_sds_slurm_DSO_TRUE}" && test -z "${OMPI_BUILD_sds_slurm_DSO_FALSE}"; then
134983 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_sds_slurm_DSO\" was never defined.
134984 Usually this means the macro was only invoked conditionally." >&5
134985 echo "$as_me: error: conditional \"OMPI_BUILD_sds_slurm_DSO\" was never defined.
134986 Usually this means the macro was only invoked conditionally." >&2;}
134987 { (exit 1); exit 1; }; }
134989 if test -z "${OMPI_BUILD_soh_bproc_DSO_TRUE}" && test -z "${OMPI_BUILD_soh_bproc_DSO_FALSE}"; then
134990 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_soh_bproc_DSO\" was never defined.
134991 Usually this means the macro was only invoked conditionally." >&5
134992 echo "$as_me: error: conditional \"OMPI_BUILD_soh_bproc_DSO\" was never defined.
134993 Usually this means the macro was only invoked conditionally." >&2;}
134994 { (exit 1); exit 1; }; }
134996 if test -z "${OMPI_BUILD_allocator_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_allocator_basic_DSO_FALSE}"; then
134997 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_allocator_basic_DSO\" was never defined.
134998 Usually this means the macro was only invoked conditionally." >&5
134999 echo "$as_me: error: conditional \"OMPI_BUILD_allocator_basic_DSO\" was never defined.
135000 Usually this means the macro was only invoked conditionally." >&2;}
135001 { (exit 1); exit 1; }; }
135003 if test -z "${OMPI_BUILD_allocator_bucket_DSO_TRUE}" && test -z "${OMPI_BUILD_allocator_bucket_DSO_FALSE}"; then
135004 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_allocator_bucket_DSO\" was never defined.
135005 Usually this means the macro was only invoked conditionally." >&5
135006 echo "$as_me: error: conditional \"OMPI_BUILD_allocator_bucket_DSO\" was never defined.
135007 Usually this means the macro was only invoked conditionally." >&2;}
135008 { (exit 1); exit 1; }; }
135010 if test -z "${OMPI_BUILD_bml_r2_DSO_TRUE}" && test -z "${OMPI_BUILD_bml_r2_DSO_FALSE}"; then
135011 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_bml_r2_DSO\" was never defined.
135012 Usually this means the macro was only invoked conditionally." >&5
135013 echo "$as_me: error: conditional \"OMPI_BUILD_bml_r2_DSO\" was never defined.
135014 Usually this means the macro was only invoked conditionally." >&2;}
135015 { (exit 1); exit 1; }; }
135017 if test -z "${OMPI_BUILD_btl_self_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_self_DSO_FALSE}"; then
135018 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_self_DSO\" was never defined.
135019 Usually this means the macro was only invoked conditionally." >&5
135020 echo "$as_me: error: conditional \"OMPI_BUILD_btl_self_DSO\" was never defined.
135021 Usually this means the macro was only invoked conditionally." >&2;}
135022 { (exit 1); exit 1; }; }
135024 if test -z "${OMPI_BUILD_btl_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_sm_DSO_FALSE}"; then
135025 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_sm_DSO\" was never defined.
135026 Usually this means the macro was only invoked conditionally." >&5
135027 echo "$as_me: error: conditional \"OMPI_BUILD_btl_sm_DSO\" was never defined.
135028 Usually this means the macro was only invoked conditionally." >&2;}
135029 { (exit 1); exit 1; }; }
135031 if test -z "${OMPI_BUILD_btl_gm_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_gm_DSO_FALSE}"; then
135032 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_gm_DSO\" was never defined.
135033 Usually this means the macro was only invoked conditionally." >&5
135034 echo "$as_me: error: conditional \"OMPI_BUILD_btl_gm_DSO\" was never defined.
135035 Usually this means the macro was only invoked conditionally." >&2;}
135036 { (exit 1); exit 1; }; }
135038 if test -z "${OMPI_BUILD_btl_mvapi_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_mvapi_DSO_FALSE}"; then
135039 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_mvapi_DSO\" was never defined.
135040 Usually this means the macro was only invoked conditionally." >&5
135041 echo "$as_me: error: conditional \"OMPI_BUILD_btl_mvapi_DSO\" was never defined.
135042 Usually this means the macro was only invoked conditionally." >&2;}
135043 { (exit 1); exit 1; }; }
135045 if test -z "${OMPI_BUILD_btl_mx_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_mx_DSO_FALSE}"; then
135046 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_mx_DSO\" was never defined.
135047 Usually this means the macro was only invoked conditionally." >&5
135048 echo "$as_me: error: conditional \"OMPI_BUILD_btl_mx_DSO\" was never defined.
135049 Usually this means the macro was only invoked conditionally." >&2;}
135050 { (exit 1); exit 1; }; }
135052 if test -z "${OMPI_BUILD_btl_openib_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_openib_DSO_FALSE}"; then
135053 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_openib_DSO\" was never defined.
135054 Usually this means the macro was only invoked conditionally." >&5
135055 echo "$as_me: error: conditional \"OMPI_BUILD_btl_openib_DSO\" was never defined.
135056 Usually this means the macro was only invoked conditionally." >&2;}
135057 { (exit 1); exit 1; }; }
135059 if test -z "${OMPI_BUILD_btl_portals_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_portals_DSO_FALSE}"; then
135060 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_portals_DSO\" was never defined.
135061 Usually this means the macro was only invoked conditionally." >&5
135062 echo "$as_me: error: conditional \"OMPI_BUILD_btl_portals_DSO\" was never defined.
135063 Usually this means the macro was only invoked conditionally." >&2;}
135064 { (exit 1); exit 1; }; }
135066 if test -z "${OMPI_BUILD_btl_tcp_DSO_TRUE}" && test -z "${OMPI_BUILD_btl_tcp_DSO_FALSE}"; then
135067 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_btl_tcp_DSO\" was never defined.
135068 Usually this means the macro was only invoked conditionally." >&5
135069 echo "$as_me: error: conditional \"OMPI_BUILD_btl_tcp_DSO\" was never defined.
135070 Usually this means the macro was only invoked conditionally." >&2;}
135071 { (exit 1); exit 1; }; }
135073 if test -z "${OMPI_BUILD_coll_basic_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_basic_DSO_FALSE}"; then
135074 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_basic_DSO\" was never defined.
135075 Usually this means the macro was only invoked conditionally." >&5
135076 echo "$as_me: error: conditional \"OMPI_BUILD_coll_basic_DSO\" was never defined.
135077 Usually this means the macro was only invoked conditionally." >&2;}
135078 { (exit 1); exit 1; }; }
135080 if test -z "${OMPI_BUILD_coll_hierarch_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_hierarch_DSO_FALSE}"; then
135081 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_hierarch_DSO\" was never defined.
135082 Usually this means the macro was only invoked conditionally." >&5
135083 echo "$as_me: error: conditional \"OMPI_BUILD_coll_hierarch_DSO\" was never defined.
135084 Usually this means the macro was only invoked conditionally." >&2;}
135085 { (exit 1); exit 1; }; }
135087 if test -z "${OMPI_BUILD_coll_self_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_self_DSO_FALSE}"; then
135088 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_self_DSO\" was never defined.
135089 Usually this means the macro was only invoked conditionally." >&5
135090 echo "$as_me: error: conditional \"OMPI_BUILD_coll_self_DSO\" was never defined.
135091 Usually this means the macro was only invoked conditionally." >&2;}
135092 { (exit 1); exit 1; }; }
135094 if test -z "${OMPI_BUILD_coll_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_sm_DSO_FALSE}"; then
135095 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_sm_DSO\" was never defined.
135096 Usually this means the macro was only invoked conditionally." >&5
135097 echo "$as_me: error: conditional \"OMPI_BUILD_coll_sm_DSO\" was never defined.
135098 Usually this means the macro was only invoked conditionally." >&2;}
135099 { (exit 1); exit 1; }; }
135101 if test -z "${OMPI_BUILD_coll_tuned_DSO_TRUE}" && test -z "${OMPI_BUILD_coll_tuned_DSO_FALSE}"; then
135102 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_coll_tuned_DSO\" was never defined.
135103 Usually this means the macro was only invoked conditionally." >&5
135104 echo "$as_me: error: conditional \"OMPI_BUILD_coll_tuned_DSO\" was never defined.
135105 Usually this means the macro was only invoked conditionally." >&2;}
135106 { (exit 1); exit 1; }; }
135108 if test -z "${OMPI_BUILD_common_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_common_sm_DSO_FALSE}"; then
135109 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_common_sm_DSO\" was never defined.
135110 Usually this means the macro was only invoked conditionally." >&5
135111 echo "$as_me: error: conditional \"OMPI_BUILD_common_sm_DSO\" was never defined.
135112 Usually this means the macro was only invoked conditionally." >&2;}
135113 { (exit 1); exit 1; }; }
135115 if test -z "${OMPI_BUILD_io_romio_DSO_TRUE}" && test -z "${OMPI_BUILD_io_romio_DSO_FALSE}"; then
135116 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_io_romio_DSO\" was never defined.
135117 Usually this means the macro was only invoked conditionally." >&5
135118 echo "$as_me: error: conditional \"OMPI_BUILD_io_romio_DSO\" was never defined.
135119 Usually this means the macro was only invoked conditionally." >&2;}
135120 { (exit 1); exit 1; }; }
135122 if test -z "${OMPI_BUILD_mpool_sm_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_sm_DSO_FALSE}"; then
135123 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_sm_DSO\" was never defined.
135124 Usually this means the macro was only invoked conditionally." >&5
135125 echo "$as_me: error: conditional \"OMPI_BUILD_mpool_sm_DSO\" was never defined.
135126 Usually this means the macro was only invoked conditionally." >&2;}
135127 { (exit 1); exit 1; }; }
135129 if test -z "${OMPI_BUILD_mpool_gm_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_gm_DSO_FALSE}"; then
135130 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_gm_DSO\" was never defined.
135131 Usually this means the macro was only invoked conditionally." >&5
135132 echo "$as_me: error: conditional \"OMPI_BUILD_mpool_gm_DSO\" was never defined.
135133 Usually this means the macro was only invoked conditionally." >&2;}
135134 { (exit 1); exit 1; }; }
135136 if test -z "${OMPI_BUILD_mpool_mvapi_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_mvapi_DSO_FALSE}"; then
135137 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_mvapi_DSO\" was never defined.
135138 Usually this means the macro was only invoked conditionally." >&5
135139 echo "$as_me: error: conditional \"OMPI_BUILD_mpool_mvapi_DSO\" was never defined.
135140 Usually this means the macro was only invoked conditionally." >&2;}
135141 { (exit 1); exit 1; }; }
135143 if test -z "${OMPI_BUILD_mpool_openib_DSO_TRUE}" && test -z "${OMPI_BUILD_mpool_openib_DSO_FALSE}"; then
135144 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_mpool_openib_DSO\" was never defined.
135145 Usually this means the macro was only invoked conditionally." >&5
135146 echo "$as_me: error: conditional \"OMPI_BUILD_mpool_openib_DSO\" was never defined.
135147 Usually this means the macro was only invoked conditionally." >&2;}
135148 { (exit 1); exit 1; }; }
135150 if test -z "${OMPI_BUILD_osc_pt2pt_DSO_TRUE}" && test -z "${OMPI_BUILD_osc_pt2pt_DSO_FALSE}"; then
135151 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_osc_pt2pt_DSO\" was never defined.
135152 Usually this means the macro was only invoked conditionally." >&5
135153 echo "$as_me: error: conditional \"OMPI_BUILD_osc_pt2pt_DSO\" was never defined.
135154 Usually this means the macro was only invoked conditionally." >&2;}
135155 { (exit 1); exit 1; }; }
135157 if test -z "${OMPI_BUILD_pml_ob1_DSO_TRUE}" && test -z "${OMPI_BUILD_pml_ob1_DSO_FALSE}"; then
135158 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_pml_ob1_DSO\" was never defined.
135159 Usually this means the macro was only invoked conditionally." >&5
135160 echo "$as_me: error: conditional \"OMPI_BUILD_pml_ob1_DSO\" was never defined.
135161 Usually this means the macro was only invoked conditionally." >&2;}
135162 { (exit 1); exit 1; }; }
135164 if test -z "${OMPI_BUILD_rcache_rb_DSO_TRUE}" && test -z "${OMPI_BUILD_rcache_rb_DSO_FALSE}"; then
135165 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_rcache_rb_DSO\" was never defined.
135166 Usually this means the macro was only invoked conditionally." >&5
135167 echo "$as_me: error: conditional \"OMPI_BUILD_rcache_rb_DSO\" was never defined.
135168 Usually this means the macro was only invoked conditionally." >&2;}
135169 { (exit 1); exit 1; }; }
135171 if test -z "${OMPI_BUILD_topo_unity_DSO_TRUE}" && test -z "${OMPI_BUILD_topo_unity_DSO_FALSE}"; then
135172 { { echo "$as_me:$LINENO: error: conditional \"OMPI_BUILD_topo_unity_DSO\" was never defined.
135173 Usually this means the macro was only invoked conditionally." >&5
135174 echo "$as_me: error: conditional \"OMPI_BUILD_topo_unity_DSO\" was never defined.
135175 Usually this means the macro was only invoked conditionally." >&2;}
135176 { (exit 1); exit 1; }; }
135178 if test -z "${WANT_LIBLTDL_TRUE}" && test -z "${WANT_LIBLTDL_FALSE}"; then
135179 { { echo "$as_me:$LINENO: error: conditional \"WANT_LIBLTDL\" was never defined.
135180 Usually this means the macro was only invoked conditionally." >&5
135181 echo "$as_me: error: conditional \"WANT_LIBLTDL\" was never defined.
135182 Usually this means the macro was only invoked conditionally." >&2;}
135183 { (exit 1); exit 1; }; }
135186 : ${CONFIG_STATUS=./config.status}
135187 ac_clean_files_save=$ac_clean_files
135188 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
135189 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
135190 echo "$as_me: creating $CONFIG_STATUS" >&6;}
135191 cat >$CONFIG_STATUS <<_ACEOF
135192 #! $SHELL
135193 # Generated by $as_me.
135194 # Run this file to recreate the current configuration.
135195 # Compiler output produced by configure, useful for debugging
135196 # configure, is in config.log if it exists.
135198 debug=false
135199 ac_cs_recheck=false
135200 ac_cs_silent=false
135201 SHELL=\${CONFIG_SHELL-$SHELL}
135202 _ACEOF
135204 cat >>$CONFIG_STATUS <<\_ACEOF
135205 ## --------------------- ##
135206 ## M4sh Initialization. ##
135207 ## --------------------- ##
135209 # Be more Bourne compatible
135210 DUALCASE=1; export DUALCASE # for MKS sh
135211 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
135212 emulate sh
135213 NULLCMD=:
135214 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
135215 # is contrary to our usage. Disable this feature.
135216 alias -g '${1+"$@"}'='"$@"'
135217 setopt NO_GLOB_SUBST
135219 case `(set -o) 2>/dev/null` in
135220 *posix*) set -o posix ;;
135228 # PATH needs CR
135229 # Avoid depending upon Character Ranges.
135230 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
135231 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
135232 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
135233 as_cr_digits='0123456789'
135234 as_cr_alnum=$as_cr_Letters$as_cr_digits
135236 # The user is always right.
135237 if test "${PATH_SEPARATOR+set}" != set; then
135238 echo "#! /bin/sh" >conf$$.sh
135239 echo "exit 0" >>conf$$.sh
135240 chmod +x conf$$.sh
135241 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
135242 PATH_SEPARATOR=';'
135244 PATH_SEPARATOR=:
135246 rm -f conf$$.sh
135249 # Support unset when possible.
135250 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
135251 as_unset=unset
135253 as_unset=false
135257 # IFS
135258 # We need space, tab and new line, in precisely that order. Quoting is
135259 # there to prevent editors from complaining about space-tab.
135260 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
135261 # splitting by setting IFS to empty value.)
135262 as_nl='
135264 IFS=" "" $as_nl"
135266 # Find who we are. Look in the path if we contain no directory separator.
135267 case $0 in
135268 *[\\/]* ) as_myself=$0 ;;
135269 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135270 for as_dir in $PATH
135272 IFS=$as_save_IFS
135273 test -z "$as_dir" && as_dir=.
135274 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
135276 IFS=$as_save_IFS
135280 # We did not find ourselves, most probably we were run as `sh COMMAND'
135281 # in which case we are not to be found in the path.
135282 if test "x$as_myself" = x; then
135283 as_myself=$0
135285 if test ! -f "$as_myself"; then
135286 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
135287 { (exit 1); exit 1; }
135290 # Work around bugs in pre-3.0 UWIN ksh.
135291 for as_var in ENV MAIL MAILPATH
135292 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
135294 PS1='$ '
135295 PS2='> '
135296 PS4='+ '
135298 # NLS nuisances.
135299 for as_var in \
135300 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
135301 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
135302 LC_TELEPHONE LC_TIME
135304 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
135305 eval $as_var=C; export $as_var
135307 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
135311 # Required to use basename.
135312 if expr a : '\(a\)' >/dev/null 2>&1 &&
135313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
135314 as_expr=expr
135316 as_expr=false
135319 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
135320 as_basename=basename
135322 as_basename=false
135326 # Name of the executable.
135327 as_me=`$as_basename -- "$0" ||
135328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135329 X"$0" : 'X\(//\)$' \| \
135330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135331 echo X/"$0" |
135332 sed '/^.*\/\([^/][^/]*\)\/*$/{
135333 s//\1/
135336 /^X\/\(\/\/\)$/{
135337 s//\1/
135340 /^X\/\(\/\).*/{
135341 s//\1/
135344 s/.*/./; q'`
135346 # CDPATH.
135347 $as_unset CDPATH
135351 as_lineno_1=$LINENO
135352 as_lineno_2=$LINENO
135353 test "x$as_lineno_1" != "x$as_lineno_2" &&
135354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
135356 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
135357 # uniformly replaced by the line number. The first 'sed' inserts a
135358 # line-number line after each line using $LINENO; the second 'sed'
135359 # does the real work. The second script uses 'N' to pair each
135360 # line-number line with the line containing $LINENO, and appends
135361 # trailing '-' during substitution so that $LINENO is not a special
135362 # case at line end.
135363 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
135364 # scripts with optimization help from Paolo Bonzini. Blame Lee
135365 # E. McMahon (1931-1989) for sed's syntax. :-)
135366 sed -n '
135368 /[$]LINENO/=
135369 ' <$as_myself |
135370 sed '
135371 s/[$]LINENO.*/&-/
135372 t lineno
135374 :lineno
135376 :loop
135377 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
135378 t loop
135379 s/-\n.*//
135380 ' >$as_me.lineno &&
135381 chmod +x "$as_me.lineno" ||
135382 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
135383 { (exit 1); exit 1; }; }
135385 # Don't try to exec as it changes $[0], causing all sort of problems
135386 # (the dirname of $[0] is not the place where we might find the
135387 # original and so on. Autoconf is especially sensitive to this).
135388 . "./$as_me.lineno"
135389 # Exit status is that of the last command.
135394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
135395 as_dirname=dirname
135397 as_dirname=false
135400 ECHO_C= ECHO_N= ECHO_T=
135401 case `echo -n x` in
135403 case `echo 'x\c'` in
135404 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
135405 *) ECHO_C='\c';;
135406 esac;;
135408 ECHO_N='-n';;
135411 if expr a : '\(a\)' >/dev/null 2>&1 &&
135412 test "X`expr 00001 : '.*\(...\)'`" = X001; then
135413 as_expr=expr
135415 as_expr=false
135418 rm -f conf$$ conf$$.exe conf$$.file
135419 if test -d conf$$.dir; then
135420 rm -f conf$$.dir/conf$$.file
135422 rm -f conf$$.dir
135423 mkdir conf$$.dir
135425 echo >conf$$.file
135426 if ln -s conf$$.file conf$$ 2>/dev/null; then
135427 as_ln_s='ln -s'
135428 # ... but there are two gotchas:
135429 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
135430 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
135431 # In both cases, we have to default to `cp -p'.
135432 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
135433 as_ln_s='cp -p'
135434 elif ln conf$$.file conf$$ 2>/dev/null; then
135435 as_ln_s=ln
135437 as_ln_s='cp -p'
135439 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
135440 rmdir conf$$.dir 2>/dev/null
135442 if mkdir -p . 2>/dev/null; then
135443 as_mkdir_p=:
135445 test -d ./-p && rmdir ./-p
135446 as_mkdir_p=false
135449 if test -x / >/dev/null 2>&1; then
135450 as_test_x='test -x'
135452 if ls -dL / >/dev/null 2>&1; then
135453 as_ls_L_option=L
135455 as_ls_L_option=
135457 as_test_x='
135458 eval sh -c '\''
135459 if test -d "$1"; then
135460 test -d "$1/.";
135462 case $1 in
135463 -*)set "./$1";;
135464 esac;
135465 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
135466 ???[sx]*):;;*)false;;esac;fi
135467 '\'' sh
135470 as_executable_p=$as_test_x
135472 # Sed expression to map a string onto a valid CPP name.
135473 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
135475 # Sed expression to map a string onto a valid variable name.
135476 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
135479 exec 6>&1
135481 # Save the log message, to keep $[0] and so on meaningful, and to
135482 # report actual input values of CONFIG_FILES etc. instead of their
135483 # values after options handling.
135484 ac_log="
135485 This file was extended by Open MPI $as_me 1.1.2, which was
135486 generated by GNU Autoconf 2.61. Invocation command line was
135488 CONFIG_FILES = $CONFIG_FILES
135489 CONFIG_HEADERS = $CONFIG_HEADERS
135490 CONFIG_LINKS = $CONFIG_LINKS
135491 CONFIG_COMMANDS = $CONFIG_COMMANDS
135492 $ $0 $@
135494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
135497 _ACEOF
135499 cat >>$CONFIG_STATUS <<_ACEOF
135500 # Files that config.status was made for.
135501 config_files="$ac_config_files"
135502 config_headers="$ac_config_headers"
135503 config_links="$ac_config_links"
135504 config_commands="$ac_config_commands"
135506 _ACEOF
135508 cat >>$CONFIG_STATUS <<\_ACEOF
135509 ac_cs_usage="\
135510 \`$as_me' instantiates files from templates according to the
135511 current configuration.
135513 Usage: $0 [OPTIONS] [FILE]...
135515 -h, --help print this help, then exit
135516 -V, --version print version number and configuration settings, then exit
135517 -q, --quiet do not print progress messages
135518 -d, --debug don't remove temporary files
135519 --recheck update $as_me by reconfiguring in the same conditions
135520 --file=FILE[:TEMPLATE]
135521 instantiate the configuration file FILE
135522 --header=FILE[:TEMPLATE]
135523 instantiate the configuration header FILE
135525 Configuration files:
135526 $config_files
135528 Configuration headers:
135529 $config_headers
135531 Configuration links:
135532 $config_links
135534 Configuration commands:
135535 $config_commands
135537 Report bugs to <bug-autoconf@gnu.org>."
135539 _ACEOF
135540 cat >>$CONFIG_STATUS <<_ACEOF
135541 ac_cs_version="\\
135542 Open MPI config.status 1.1.2
135543 configured by $0, generated by GNU Autoconf 2.61,
135544 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
135546 Copyright (C) 2006 Free Software Foundation, Inc.
135547 This config.status script is free software; the Free Software Foundation
135548 gives unlimited permission to copy, distribute and modify it."
135550 ac_pwd='$ac_pwd'
135551 srcdir='$srcdir'
135552 INSTALL='$INSTALL'
135553 _ACEOF
135555 cat >>$CONFIG_STATUS <<\_ACEOF
135556 # If no file are specified by the user, then we need to provide default
135557 # value. By we need to know if files were specified by the user.
135558 ac_need_defaults=:
135559 while test $# != 0
135561 case $1 in
135562 --*=*)
135563 ac_option=`expr "X$1" : 'X\([^=]*\)='`
135564 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
135565 ac_shift=:
135568 ac_option=$1
135569 ac_optarg=$2
135570 ac_shift=shift
135574 case $ac_option in
135575 # Handling of the options.
135576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
135577 ac_cs_recheck=: ;;
135578 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
135579 echo "$ac_cs_version"; exit ;;
135580 --debug | --debu | --deb | --de | --d | -d )
135581 debug=: ;;
135582 --file | --fil | --fi | --f )
135583 $ac_shift
135584 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
135585 ac_need_defaults=false;;
135586 --header | --heade | --head | --hea )
135587 $ac_shift
135588 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
135589 ac_need_defaults=false;;
135590 --he | --h)
135591 # Conflict between --help and --header
135592 { echo "$as_me: error: ambiguous option: $1
135593 Try \`$0 --help' for more information." >&2
135594 { (exit 1); exit 1; }; };;
135595 --help | --hel | -h )
135596 echo "$ac_cs_usage"; exit ;;
135597 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
135598 | -silent | --silent | --silen | --sile | --sil | --si | --s)
135599 ac_cs_silent=: ;;
135601 # This is an error.
135602 -*) { echo "$as_me: error: unrecognized option: $1
135603 Try \`$0 --help' for more information." >&2
135604 { (exit 1); exit 1; }; } ;;
135606 *) ac_config_targets="$ac_config_targets $1"
135607 ac_need_defaults=false ;;
135610 shift
135613 ac_configure_extra_args=
135615 if $ac_cs_silent; then
135616 exec 6>/dev/null
135617 ac_configure_extra_args="$ac_configure_extra_args --silent"
135620 _ACEOF
135621 cat >>$CONFIG_STATUS <<_ACEOF
135622 if \$ac_cs_recheck; then
135623 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
135624 CONFIG_SHELL=$SHELL
135625 export CONFIG_SHELL
135626 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
135629 _ACEOF
135630 cat >>$CONFIG_STATUS <<\_ACEOF
135631 exec 5>>config.log
135634 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
135635 ## Running $as_me. ##
135636 _ASBOX
135637 echo "$ac_log"
135638 } >&5
135640 _ACEOF
135641 cat >>$CONFIG_STATUS <<_ACEOF
135643 # INIT-COMMANDS
135645 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
135647 _ACEOF
135649 cat >>$CONFIG_STATUS <<\_ACEOF
135651 # Handling of arguments.
135652 for ac_config_target in $ac_config_targets
135654 case $ac_config_target in
135655 "ompi/include/ompi/version.h") CONFIG_FILES="$CONFIG_FILES ompi/include/ompi/version.h" ;;
135656 "orte/include/orte/version.h") CONFIG_FILES="$CONFIG_FILES orte/include/orte/version.h" ;;
135657 "opal/include/opal/version.h") CONFIG_FILES="$CONFIG_FILES opal/include/opal/version.h" ;;
135658 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
135659 "opal/mca/maffinity/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/Makefile" ;;
135660 "opal/mca/memcpy/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memcpy/Makefile" ;;
135661 "opal/mca/memcpy/base/base_impl.h") CONFIG_LINKS="$CONFIG_LINKS opal/mca/memcpy/base/base_impl.h:opal/mca/memcpy/$memcpy_base_include" ;;
135662 "opal/mca/memory/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/Makefile" ;;
135663 "opal/mca/paffinity/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/Makefile" ;;
135664 "opal/mca/timer/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/Makefile" ;;
135665 "opal/mca/timer/base/base_impl.h") CONFIG_LINKS="$CONFIG_LINKS opal/mca/timer/base/base_impl.h:opal/mca/timer/$timer_base_include" ;;
135666 "orte/mca/errmgr/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/errmgr/Makefile" ;;
135667 "orte/mca/gpr/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/Makefile" ;;
135668 "orte/mca/iof/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/Makefile" ;;
135669 "orte/mca/ns/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ns/Makefile" ;;
135670 "orte/mca/oob/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/oob/Makefile" ;;
135671 "orte/mca/pls/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/pls/Makefile" ;;
135672 "orte/mca/ras/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/Makefile" ;;
135673 "orte/mca/rds/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rds/Makefile" ;;
135674 "orte/mca/rmaps/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/Makefile" ;;
135675 "orte/mca/rmgr/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmgr/Makefile" ;;
135676 "orte/mca/rml/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/Makefile" ;;
135677 "orte/mca/schema/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/schema/Makefile" ;;
135678 "orte/mca/sds/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/sds/Makefile" ;;
135679 "orte/mca/soh/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/soh/Makefile" ;;
135680 "ompi/mca/allocator/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/Makefile" ;;
135681 "ompi/mca/bml/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/Makefile" ;;
135682 "ompi/mca/btl/portals/btl_portals_compat.c") CONFIG_LINKS="$CONFIG_LINKS ompi/mca/btl/portals/btl_portals_compat.c:ompi/mca/btl/portals/btl_portals_compat_${btl_portals_compat}.c" ;;
135683 "ompi/mca/btl/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/Makefile" ;;
135684 "ompi/mca/coll/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/Makefile" ;;
135685 "ompi/mca/common/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/Makefile" ;;
135686 "ompi/mca/io/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/io/Makefile" ;;
135687 "ompi/mca/mpool/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/Makefile" ;;
135688 "ompi/mca/osc/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/Makefile" ;;
135689 "ompi/mca/pml/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/Makefile" ;;
135690 "ompi/mca/rcache/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rcache/Makefile" ;;
135691 "ompi/mca/topo/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/Makefile" ;;
135692 "ompi/mca/pml/pml_direct_call.h.tmp") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/pml_direct_call.h.tmp:ompi/mca/pml/pml_direct_call.h.in" ;;
135693 "pml-direct") CONFIG_COMMANDS="$CONFIG_COMMANDS pml-direct" ;;
135694 "opal/mca/maffinity/first_use/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/first_use/Makefile" ;;
135695 "opal/mca/maffinity/libnuma/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/maffinity/libnuma/Makefile" ;;
135696 "opal/mca/memory/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/darwin/Makefile" ;;
135697 "opal/mca/memory/malloc_hooks/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/malloc_hooks/Makefile" ;;
135698 "opal/mca/memory/ptmalloc2/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/memory/ptmalloc2/Makefile" ;;
135699 "opal/mca/paffinity/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/linux/Makefile" ;;
135700 "opal/mca/paffinity/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/solaris/Makefile" ;;
135701 "opal/mca/paffinity/windows/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/paffinity/windows/Makefile" ;;
135702 "opal/mca/timer/aix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/aix/Makefile" ;;
135703 "opal/mca/timer/altix/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/altix/Makefile" ;;
135704 "opal/mca/timer/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/darwin/Makefile" ;;
135705 "opal/mca/timer/linux/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/linux/Makefile" ;;
135706 "opal/mca/timer/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/solaris/Makefile" ;;
135707 "opal/mca/timer/windows/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/timer/windows/Makefile" ;;
135708 "orte/mca/gpr/null/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/null/Makefile" ;;
135709 "orte/mca/gpr/proxy/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/proxy/Makefile" ;;
135710 "orte/mca/gpr/replica/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/replica/Makefile" ;;
135711 "orte/mca/gpr/replica/api_layer/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/replica/api_layer/Makefile" ;;
135712 "orte/mca/gpr/replica/transition_layer/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/replica/transition_layer/Makefile" ;;
135713 "orte/mca/gpr/replica/functional_layer/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/replica/functional_layer/Makefile" ;;
135714 "orte/mca/gpr/replica/communications/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/gpr/replica/communications/Makefile" ;;
135715 "orte/mca/iof/proxy/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/proxy/Makefile" ;;
135716 "orte/mca/iof/svc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/iof/svc/Makefile" ;;
135717 "orte/mca/ns/proxy/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ns/proxy/Makefile" ;;
135718 "orte/mca/ns/replica/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ns/replica/Makefile" ;;
135719 "orte/mca/oob/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/oob/tcp/Makefile" ;;
135720 "orte/mca/pls/bproc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/pls/bproc/Makefile" ;;
135721 "orte/mca/pls/bproc_orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/pls/bproc_orted/Makefile" ;;
135722 "orte/mca/pls/fork/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/pls/fork/Makefile" ;;
135723 "orte/mca/pls/poe/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/pls/poe/Makefile" ;;
135724 "orte/mca/pls/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/pls/rsh/Makefile" ;;
135725 "orte/mca/pls/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/pls/slurm/Makefile" ;;
135726 "orte/mca/pls/tm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/pls/tm/Makefile" ;;
135727 "orte/mca/pls/xgrid/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/pls/xgrid/Makefile" ;;
135728 "orte/mca/ras/bjs/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/bjs/Makefile" ;;
135729 "orte/mca/ras/dash_host/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/dash_host/Makefile" ;;
135730 "orte/mca/ras/hostfile/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/hostfile/Makefile" ;;
135731 "orte/mca/ras/loadleveler/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/loadleveler/Makefile" ;;
135732 "orte/mca/ras/localhost/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/localhost/Makefile" ;;
135733 "orte/mca/ras/lsf_bproc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/lsf_bproc/Makefile" ;;
135734 "orte/mca/ras/poe/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/poe/Makefile" ;;
135735 "orte/mca/ras/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/slurm/Makefile" ;;
135736 "orte/mca/ras/tm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/tm/Makefile" ;;
135737 "orte/mca/ras/xgrid/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/ras/xgrid/Makefile" ;;
135738 "orte/mca/rds/hostfile/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rds/hostfile/Makefile" ;;
135739 "orte/mca/rds/resfile/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rds/resfile/Makefile" ;;
135740 "orte/mca/rmaps/round_robin/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmaps/round_robin/Makefile" ;;
135741 "orte/mca/rmgr/cnos/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmgr/cnos/Makefile" ;;
135742 "orte/mca/rmgr/proxy/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmgr/proxy/Makefile" ;;
135743 "orte/mca/rmgr/urm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rmgr/urm/Makefile" ;;
135744 "orte/mca/rml/cnos/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/cnos/Makefile" ;;
135745 "orte/mca/rml/oob/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/rml/oob/Makefile" ;;
135746 "orte/mca/sds/bproc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/sds/bproc/Makefile" ;;
135747 "orte/mca/sds/cnos/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/sds/cnos/Makefile" ;;
135748 "orte/mca/sds/env/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/sds/env/Makefile" ;;
135749 "orte/mca/sds/pipe/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/sds/pipe/Makefile" ;;
135750 "orte/mca/sds/portals_utcp/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/sds/portals_utcp/Makefile" ;;
135751 "orte/mca/sds/seed/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/sds/seed/Makefile" ;;
135752 "orte/mca/sds/singleton/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/sds/singleton/Makefile" ;;
135753 "orte/mca/sds/slurm/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/sds/slurm/Makefile" ;;
135754 "orte/mca/soh/bproc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/mca/soh/bproc/Makefile" ;;
135755 "ompi/mca/allocator/basic/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/basic/Makefile" ;;
135756 "ompi/mca/allocator/bucket/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/allocator/bucket/Makefile" ;;
135757 "ompi/mca/bml/r2/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/bml/r2/Makefile" ;;
135758 "ompi/mca/btl/gm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/gm/Makefile" ;;
135759 "ompi/mca/btl/mvapi/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/mvapi/Makefile" ;;
135760 "ompi/mca/btl/mx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/mx/Makefile" ;;
135761 "ompi/mca/btl/openib/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/openib/Makefile" ;;
135762 "ompi/mca/btl/portals/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/portals/Makefile" ;;
135763 "ompi/mca/btl/self/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/self/Makefile" ;;
135764 "ompi/mca/btl/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/sm/Makefile" ;;
135765 "ompi/mca/btl/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/btl/tcp/Makefile" ;;
135766 "ompi/mca/coll/basic/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/basic/Makefile" ;;
135767 "ompi/mca/coll/hierarch/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/hierarch/Makefile" ;;
135768 "ompi/mca/coll/self/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/self/Makefile" ;;
135769 "ompi/mca/coll/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/sm/Makefile" ;;
135770 "ompi/mca/coll/tuned/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/coll/tuned/Makefile" ;;
135771 "ompi/mca/common/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/common/sm/Makefile" ;;
135772 "ompi/mca/io/romio/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/io/romio/Makefile" ;;
135773 "ompi/mca/mpool/gm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/gm/Makefile" ;;
135774 "ompi/mca/mpool/mvapi/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/mvapi/Makefile" ;;
135775 "ompi/mca/mpool/openib/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/openib/Makefile" ;;
135776 "ompi/mca/mpool/sm/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/mpool/sm/Makefile" ;;
135777 "ompi/mca/osc/pt2pt/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/osc/pt2pt/Makefile" ;;
135778 "ompi/mca/pml/ob1/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/pml/ob1/Makefile" ;;
135779 "ompi/mca/rcache/rb/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/rcache/rb/Makefile" ;;
135780 "ompi/mca/topo/unity/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mca/topo/unity/Makefile" ;;
135781 "opal/include/opal/install_dirs.h") CONFIG_FILES="$CONFIG_FILES opal/include/opal/install_dirs.h" ;;
135782 "opal/include/opal_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opal/include/opal_config.h" ;;
135783 "orte/include/orte_config.h") CONFIG_HEADERS="$CONFIG_HEADERS orte/include/orte_config.h" ;;
135784 "ompi/include/ompi_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ompi/include/ompi_config.h" ;;
135785 "ompi/include/mpi.h") CONFIG_HEADERS="$CONFIG_HEADERS ompi/include/mpi.h" ;;
135786 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
135787 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
135788 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
135789 "opal/Makefile") CONFIG_FILES="$CONFIG_FILES opal/Makefile" ;;
135790 "opal/etc/Makefile") CONFIG_FILES="$CONFIG_FILES opal/etc/Makefile" ;;
135791 "opal/include/Makefile") CONFIG_FILES="$CONFIG_FILES opal/include/Makefile" ;;
135792 "opal/asm/Makefile") CONFIG_FILES="$CONFIG_FILES opal/asm/Makefile" ;;
135793 "opal/event/Makefile") CONFIG_FILES="$CONFIG_FILES opal/event/Makefile" ;;
135794 "opal/event/compat/Makefile") CONFIG_FILES="$CONFIG_FILES opal/event/compat/Makefile" ;;
135795 "opal/event/compat/sys/Makefile") CONFIG_FILES="$CONFIG_FILES opal/event/compat/sys/Makefile" ;;
135796 "opal/util/Makefile") CONFIG_FILES="$CONFIG_FILES opal/util/Makefile" ;;
135797 "opal/util/keyval/Makefile") CONFIG_FILES="$CONFIG_FILES opal/util/keyval/Makefile" ;;
135798 "opal/mca/base/Makefile") CONFIG_FILES="$CONFIG_FILES opal/mca/base/Makefile" ;;
135799 "opal/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/Makefile" ;;
135800 "opal/tools/wrappers/opalcc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opalcc-wrapper-data.txt" ;;
135801 "opal/tools/wrappers/opalc++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES opal/tools/wrappers/opalc++-wrapper-data.txt" ;;
135802 "orte/Makefile") CONFIG_FILES="$CONFIG_FILES orte/Makefile" ;;
135803 "orte/include/Makefile") CONFIG_FILES="$CONFIG_FILES orte/include/Makefile" ;;
135804 "orte/etc/Makefile") CONFIG_FILES="$CONFIG_FILES orte/etc/Makefile" ;;
135805 "orte/tools/orted/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orted/Makefile" ;;
135806 "orte/tools/orterun/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/orterun/Makefile" ;;
135807 "orte/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/Makefile" ;;
135808 "orte/tools/wrappers/ortecc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/ortecc-wrapper-data.txt" ;;
135809 "orte/tools/wrappers/ortec++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES orte/tools/wrappers/ortec++-wrapper-data.txt" ;;
135810 "ompi/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/Makefile" ;;
135811 "ompi/etc/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/etc/Makefile" ;;
135812 "ompi/include/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/include/Makefile" ;;
135813 "ompi/include/mpif.h") CONFIG_FILES="$CONFIG_FILES ompi/include/mpif.h" ;;
135814 "ompi/include/mpif-config.h") CONFIG_FILES="$CONFIG_FILES ompi/include/mpif-config.h" ;;
135815 "ompi/datatype/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/datatype/Makefile" ;;
135816 "ompi/debuggers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/debuggers/Makefile" ;;
135817 "ompi/mpi/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/Makefile" ;;
135818 "ompi/mpi/c/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/c/Makefile" ;;
135819 "ompi/mpi/c/profile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/c/profile/Makefile" ;;
135820 "ompi/mpi/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/cxx/Makefile" ;;
135821 "ompi/mpi/f77/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f77/Makefile" ;;
135822 "ompi/mpi/f77/profile/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f77/profile/Makefile" ;;
135823 "ompi/mpi/f90/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/Makefile" ;;
135824 "ompi/mpi/f90/fortran_kinds.sh") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/fortran_kinds.sh" ;;
135825 "ompi/mpi/f90/fortran_sizes.h") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/fortran_sizes.h" ;;
135826 "ompi/mpi/f90/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/mpi/f90/scripts/Makefile" ;;
135827 "ompi/tools/ompi_info/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/ompi_info/Makefile" ;;
135828 "ompi/tools/wrappers/Makefile") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/Makefile" ;;
135829 "ompi/tools/wrappers/mpicc-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpicc-wrapper-data.txt" ;;
135830 "ompi/tools/wrappers/mpic++-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpic++-wrapper-data.txt" ;;
135831 "ompi/tools/wrappers/mpif77-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpif77-wrapper-data.txt" ;;
135832 "ompi/tools/wrappers/mpif90-wrapper-data.txt") CONFIG_FILES="$CONFIG_FILES ompi/tools/wrappers/mpif90-wrapper-data.txt" ;;
135833 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
135834 "test/asm/Makefile") CONFIG_FILES="$CONFIG_FILES test/asm/Makefile" ;;
135835 "test/class/Makefile") CONFIG_FILES="$CONFIG_FILES test/class/Makefile" ;;
135836 "test/dss/Makefile") CONFIG_FILES="$CONFIG_FILES test/dss/Makefile" ;;
135837 "test/mca/Makefile") CONFIG_FILES="$CONFIG_FILES test/mca/Makefile" ;;
135838 "test/mca/gpr/Makefile") CONFIG_FILES="$CONFIG_FILES test/mca/gpr/Makefile" ;;
135839 "test/mca/gpr/remote/Makefile") CONFIG_FILES="$CONFIG_FILES test/mca/gpr/remote/Makefile" ;;
135840 "test/mca/ns/Makefile") CONFIG_FILES="$CONFIG_FILES test/mca/ns/Makefile" ;;
135841 "test/mca/oob/Makefile") CONFIG_FILES="$CONFIG_FILES test/mca/oob/Makefile" ;;
135842 "test/mca/ras/Makefile") CONFIG_FILES="$CONFIG_FILES test/mca/ras/Makefile" ;;
135843 "test/mca/rds/Makefile") CONFIG_FILES="$CONFIG_FILES test/mca/rds/Makefile" ;;
135844 "test/mca/rmaps/Makefile") CONFIG_FILES="$CONFIG_FILES test/mca/rmaps/Makefile" ;;
135845 "test/mca/rmgr/Makefile") CONFIG_FILES="$CONFIG_FILES test/mca/rmgr/Makefile" ;;
135846 "test/mca/schema/Makefile") CONFIG_FILES="$CONFIG_FILES test/mca/schema/Makefile" ;;
135847 "test/mca/soh/Makefile") CONFIG_FILES="$CONFIG_FILES test/mca/soh/Makefile" ;;
135848 "test/memory/Makefile") CONFIG_FILES="$CONFIG_FILES test/memory/Makefile" ;;
135849 "test/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES test/runtime/Makefile" ;;
135850 "test/support/Makefile") CONFIG_FILES="$CONFIG_FILES test/support/Makefile" ;;
135851 "test/threads/Makefile") CONFIG_FILES="$CONFIG_FILES test/threads/Makefile" ;;
135852 "test/util/Makefile") CONFIG_FILES="$CONFIG_FILES test/util/Makefile" ;;
135853 "test/peruse/Makefile") CONFIG_FILES="$CONFIG_FILES test/peruse/Makefile" ;;
135855 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
135856 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
135857 { (exit 1); exit 1; }; };;
135862 # If the user did not use the arguments to specify the items to instantiate,
135863 # then the envvar interface is used. Set only those that are not.
135864 # We use the long form for the default assignment because of an extremely
135865 # bizarre bug on SunOS 4.1.3.
135866 if $ac_need_defaults; then
135867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
135868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
135869 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
135870 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
135873 # Have a temporary directory for convenience. Make it in the build tree
135874 # simply because there is no reason against having it here, and in addition,
135875 # creating and moving files from /tmp can sometimes cause problems.
135876 # Hook for its removal unless debugging.
135877 # Note that there is a small window in which the directory will not be cleaned:
135878 # after its creation but before its name has been assigned to `$tmp'.
135879 $debug ||
135882 trap 'exit_status=$?
135883 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
135885 trap '{ (exit 1); exit 1; }' 1 2 13 15
135887 # Create a (secure) tmp directory for tmp files.
135890 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
135891 test -n "$tmp" && test -d "$tmp"
135894 tmp=./conf$$-$RANDOM
135895 (umask 077 && mkdir "$tmp")
135898 echo "$me: cannot create a temporary directory in ." >&2
135899 { (exit 1); exit 1; }
135903 # Set up the sed scripts for CONFIG_FILES section.
135906 # No need to generate the scripts if there are no CONFIG_FILES.
135907 # This happens for instance when ./config.status config.h
135908 if test -n "$CONFIG_FILES"; then
135910 _ACEOF
135914 ac_delim='%!_!# '
135915 for ac_last_try in false false false false false :; do
135916 cat >conf$$subs.sed <<_ACEOF
135917 SHELL!$SHELL$ac_delim
135918 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
135919 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
135920 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
135921 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
135922 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
135923 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
135924 exec_prefix!$exec_prefix$ac_delim
135925 prefix!$prefix$ac_delim
135926 program_transform_name!$program_transform_name$ac_delim
135927 bindir!$bindir$ac_delim
135928 sbindir!$sbindir$ac_delim
135929 libexecdir!$libexecdir$ac_delim
135930 datarootdir!$datarootdir$ac_delim
135931 datadir!$datadir$ac_delim
135932 sysconfdir!$sysconfdir$ac_delim
135933 sharedstatedir!$sharedstatedir$ac_delim
135934 localstatedir!$localstatedir$ac_delim
135935 includedir!$includedir$ac_delim
135936 oldincludedir!$oldincludedir$ac_delim
135937 docdir!$docdir$ac_delim
135938 infodir!$infodir$ac_delim
135939 htmldir!$htmldir$ac_delim
135940 dvidir!$dvidir$ac_delim
135941 pdfdir!$pdfdir$ac_delim
135942 psdir!$psdir$ac_delim
135943 libdir!$libdir$ac_delim
135944 localedir!$localedir$ac_delim
135945 mandir!$mandir$ac_delim
135946 DEFS!$DEFS$ac_delim
135947 ECHO_C!$ECHO_C$ac_delim
135948 ECHO_N!$ECHO_N$ac_delim
135949 ECHO_T!$ECHO_T$ac_delim
135950 LIBS!$LIBS$ac_delim
135951 build_alias!$build_alias$ac_delim
135952 host_alias!$host_alias$ac_delim
135953 target_alias!$target_alias$ac_delim
135954 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
135955 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
135956 INSTALL_DATA!$INSTALL_DATA$ac_delim
135957 CYGPATH_W!$CYGPATH_W$ac_delim
135958 PACKAGE!$PACKAGE$ac_delim
135959 VERSION!$VERSION$ac_delim
135960 ACLOCAL!$ACLOCAL$ac_delim
135961 AUTOCONF!$AUTOCONF$ac_delim
135962 AUTOMAKE!$AUTOMAKE$ac_delim
135963 AUTOHEADER!$AUTOHEADER$ac_delim
135964 MAKEINFO!$MAKEINFO$ac_delim
135965 install_sh!$install_sh$ac_delim
135966 STRIP!$STRIP$ac_delim
135967 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
135968 mkdir_p!$mkdir_p$ac_delim
135969 AWK!$AWK$ac_delim
135970 SET_MAKE!$SET_MAKE$ac_delim
135971 am__leading_dot!$am__leading_dot$ac_delim
135972 AMTAR!$AMTAR$ac_delim
135973 am__tar!$am__tar$ac_delim
135974 am__untar!$am__untar$ac_delim
135975 CONFIGURE_DEPENDENCIES!$CONFIGURE_DEPENDENCIES$ac_delim
135976 OMPI_CONFIGURE_USER!$OMPI_CONFIGURE_USER$ac_delim
135977 OMPI_CONFIGURE_HOST!$OMPI_CONFIGURE_HOST$ac_delim
135978 OMPI_CONFIGURE_DATE!$OMPI_CONFIGURE_DATE$ac_delim
135979 OMPI_MAJOR_VERSION!$OMPI_MAJOR_VERSION$ac_delim
135980 OMPI_MINOR_VERSION!$OMPI_MINOR_VERSION$ac_delim
135981 OMPI_RELEASE_VERSION!$OMPI_RELEASE_VERSION$ac_delim
135982 OMPI_GREEK_VERSION!$OMPI_GREEK_VERSION$ac_delim
135983 OMPI_WANT_SVN!$OMPI_WANT_SVN$ac_delim
135984 OMPI_SVN_R!$OMPI_SVN_R$ac_delim
135985 OMPI_VERSION!$OMPI_VERSION$ac_delim
135986 ORTE_MAJOR_VERSION!$ORTE_MAJOR_VERSION$ac_delim
135987 ORTE_MINOR_VERSION!$ORTE_MINOR_VERSION$ac_delim
135988 ORTE_RELEASE_VERSION!$ORTE_RELEASE_VERSION$ac_delim
135989 ORTE_GREEK_VERSION!$ORTE_GREEK_VERSION$ac_delim
135990 ORTE_WANT_SVN!$ORTE_WANT_SVN$ac_delim
135991 ORTE_SVN_R!$ORTE_SVN_R$ac_delim
135992 ORTE_VERSION!$ORTE_VERSION$ac_delim
135993 OPAL_MAJOR_VERSION!$OPAL_MAJOR_VERSION$ac_delim
135994 OPAL_MINOR_VERSION!$OPAL_MINOR_VERSION$ac_delim
135995 OPAL_RELEASE_VERSION!$OPAL_RELEASE_VERSION$ac_delim
135996 OPAL_GREEK_VERSION!$OPAL_GREEK_VERSION$ac_delim
135997 OPAL_WANT_SVN!$OPAL_WANT_SVN$ac_delim
135998 OPAL_SVN_R!$OPAL_SVN_R$ac_delim
135999 OPAL_VERSION!$OPAL_VERSION$ac_delim
136000 OMPI_TOP_BUILDDIR!$OMPI_TOP_BUILDDIR$ac_delim
136001 OMPI_TOP_SRCDIR!$OMPI_TOP_SRCDIR$ac_delim
136002 CLEANFILES!$CLEANFILES$ac_delim
136003 build!$build$ac_delim
136004 build_cpu!$build_cpu$ac_delim
136005 build_vendor!$build_vendor$ac_delim
136006 build_os!$build_os$ac_delim
136007 host!$host$ac_delim
136008 host_cpu!$host_cpu$ac_delim
136009 host_vendor!$host_vendor$ac_delim
136010 host_os!$host_os$ac_delim
136011 ac_prefix_program!$ac_prefix_program$ac_delim
136012 top_ompi_srcdir!$top_ompi_srcdir$ac_delim
136013 top_ompi_builddir!$top_ompi_builddir$ac_delim
136014 _ACEOF
136016 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
136017 break
136018 elif $ac_last_try; then
136019 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
136020 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
136021 { (exit 1); exit 1; }; }
136023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
136027 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
136028 if test -n "$ac_eof"; then
136029 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
136030 ac_eof=`expr $ac_eof + 1`
136033 cat >>$CONFIG_STATUS <<_ACEOF
136034 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
136035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
136036 _ACEOF
136037 sed '
136038 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
136039 s/^/s,@/; s/!/@,|#_!!_#|/
136042 s/'"$ac_delim"'$/,g/; t
136043 s/$/\\/; p
136044 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
136045 ' >>$CONFIG_STATUS <conf$$subs.sed
136046 rm -f conf$$subs.sed
136047 cat >>$CONFIG_STATUS <<_ACEOF
136048 CEOF$ac_eof
136049 _ACEOF
136052 ac_delim='%!_!# '
136053 for ac_last_try in false false false false false :; do
136054 cat >conf$$subs.sed <<_ACEOF
136055 OMPI_WANT_BUILD_F90_TRIVIAL_TRUE!$OMPI_WANT_BUILD_F90_TRIVIAL_TRUE$ac_delim
136056 OMPI_WANT_BUILD_F90_TRIVIAL_FALSE!$OMPI_WANT_BUILD_F90_TRIVIAL_FALSE$ac_delim
136057 OMPI_WANT_BUILD_F90_SMALL_TRUE!$OMPI_WANT_BUILD_F90_SMALL_TRUE$ac_delim
136058 OMPI_WANT_BUILD_F90_SMALL_FALSE!$OMPI_WANT_BUILD_F90_SMALL_FALSE$ac_delim
136059 OMPI_WANT_BUILD_F90_MEDIUM_TRUE!$OMPI_WANT_BUILD_F90_MEDIUM_TRUE$ac_delim
136060 OMPI_WANT_BUILD_F90_MEDIUM_FALSE!$OMPI_WANT_BUILD_F90_MEDIUM_FALSE$ac_delim
136061 OMPI_WANT_BUILD_F90_LARGE_TRUE!$OMPI_WANT_BUILD_F90_LARGE_TRUE$ac_delim
136062 OMPI_WANT_BUILD_F90_LARGE_FALSE!$OMPI_WANT_BUILD_F90_LARGE_FALSE$ac_delim
136063 OMPI_F90_BUILD_SIZE!$OMPI_F90_BUILD_SIZE$ac_delim
136064 MPIF_H_PMPI_W_FUNCS!$MPIF_H_PMPI_W_FUNCS$ac_delim
136065 WANT_INSTALL_HEADERS_TRUE!$WANT_INSTALL_HEADERS_TRUE$ac_delim
136066 WANT_INSTALL_HEADERS_FALSE!$WANT_INSTALL_HEADERS_FALSE$ac_delim
136067 WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE!$WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE$ac_delim
136068 WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE!$WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE$ac_delim
136069 WANT_PERUSE_TRUE!$WANT_PERUSE_TRUE$ac_delim
136070 WANT_PERUSE_FALSE!$WANT_PERUSE_FALSE$ac_delim
136071 OMPI_FORTRAN_MAX_ARRAY_RANK!$OMPI_FORTRAN_MAX_ARRAY_RANK$ac_delim
136072 CC!$CC$ac_delim
136073 CFLAGS!$CFLAGS$ac_delim
136074 LDFLAGS!$LDFLAGS$ac_delim
136075 CPPFLAGS!$CPPFLAGS$ac_delim
136076 ac_ct_CC!$ac_ct_CC$ac_delim
136077 EXEEXT!$EXEEXT$ac_delim
136078 OBJEXT!$OBJEXT$ac_delim
136079 DEPDIR!$DEPDIR$ac_delim
136080 am__include!$am__include$ac_delim
136081 am__quote!$am__quote$ac_delim
136082 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
136083 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
136084 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
136085 CCDEPMODE!$CCDEPMODE$ac_delim
136086 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
136087 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
136088 OMPI_CC_ABSOLUTE!$OMPI_CC_ABSOLUTE$ac_delim
136089 OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE!$OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE$ac_delim
136090 OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE!$OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE$ac_delim
136091 CPP!$CPP$ac_delim
136092 GREP!$GREP$ac_delim
136093 EGREP!$EGREP$ac_delim
136094 WANT_MPI_BINDINGS_LAYER_TRUE!$WANT_MPI_BINDINGS_LAYER_TRUE$ac_delim
136095 WANT_MPI_BINDINGS_LAYER_FALSE!$WANT_MPI_BINDINGS_LAYER_FALSE$ac_delim
136096 WANT_PMPI_BINDINGS_LAYER_TRUE!$WANT_PMPI_BINDINGS_LAYER_TRUE$ac_delim
136097 WANT_PMPI_BINDINGS_LAYER_FALSE!$WANT_PMPI_BINDINGS_LAYER_FALSE$ac_delim
136098 COMPILE_PROFILING_SEPARATELY_TRUE!$COMPILE_PROFILING_SEPARATELY_TRUE$ac_delim
136099 COMPILE_PROFILING_SEPARATELY_FALSE!$COMPILE_PROFILING_SEPARATELY_FALSE$ac_delim
136100 CXX!$CXX$ac_delim
136101 CXXFLAGS!$CXXFLAGS$ac_delim
136102 ac_ct_CXX!$ac_ct_CXX$ac_delim
136103 CXXDEPMODE!$CXXDEPMODE$ac_delim
136104 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
136105 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
136106 CXXCPP!$CXXCPP$ac_delim
136107 OMPI_CXX_ABSOLUTE!$OMPI_CXX_ABSOLUTE$ac_delim
136108 WANT_MPI_CXX_BINDINGS_TRUE!$WANT_MPI_CXX_BINDINGS_TRUE$ac_delim
136109 WANT_MPI_CXX_BINDINGS_FALSE!$WANT_MPI_CXX_BINDINGS_FALSE$ac_delim
136110 CCAS!$CCAS$ac_delim
136111 CCASFLAGS!$CCASFLAGS$ac_delim
136112 OMPI_ASM_TEXT!$OMPI_ASM_TEXT$ac_delim
136113 OMPI_AS_GLOBAL!$OMPI_AS_GLOBAL$ac_delim
136114 OBJDUMP!$OBJDUMP$ac_delim
136115 OMPI_AS_LABEL_SUFFIX!$OMPI_AS_LABEL_SUFFIX$ac_delim
136116 OMPI_ASM_GSYM!$OMPI_ASM_GSYM$ac_delim
136117 OMPI_ASM_LSYM!$OMPI_ASM_LSYM$ac_delim
136118 OMPI_ASM_TYPE!$OMPI_ASM_TYPE$ac_delim
136119 OMPI_ASM_SUPPORT_64BIT!$OMPI_ASM_SUPPORT_64BIT$ac_delim
136120 OMPI_ASSEMBLY_FORMAT!$OMPI_ASSEMBLY_FORMAT$ac_delim
136121 OMPI_ASSEMBLY_ARCH!$OMPI_ASSEMBLY_ARCH$ac_delim
136122 FGREP!$FGREP$ac_delim
136123 PERL!$PERL$ac_delim
136124 OMPI_HAVE_ASM_FILE_TRUE!$OMPI_HAVE_ASM_FILE_TRUE$ac_delim
136125 OMPI_HAVE_ASM_FILE_FALSE!$OMPI_HAVE_ASM_FILE_FALSE$ac_delim
136126 OMPI_ASM_FILE!$OMPI_ASM_FILE$ac_delim
136127 F77!$F77$ac_delim
136128 FFLAGS!$FFLAGS$ac_delim
136129 ac_ct_F77!$ac_ct_F77$ac_delim
136130 OMPI_WANT_F77_BINDINGS_TRUE!$OMPI_WANT_F77_BINDINGS_TRUE$ac_delim
136131 OMPI_WANT_F77_BINDINGS_FALSE!$OMPI_WANT_F77_BINDINGS_FALSE$ac_delim
136132 OMPI_F77_ABSOLUTE!$OMPI_F77_ABSOLUTE$ac_delim
136133 WANT_MPI_F77_BINDINGS_LAYER_TRUE!$WANT_MPI_F77_BINDINGS_LAYER_TRUE$ac_delim
136134 WANT_MPI_F77_BINDINGS_LAYER_FALSE!$WANT_MPI_F77_BINDINGS_LAYER_FALSE$ac_delim
136135 WANT_PMPI_F77_BINDINGS_LAYER_TRUE!$WANT_PMPI_F77_BINDINGS_LAYER_TRUE$ac_delim
136136 WANT_PMPI_F77_BINDINGS_LAYER_FALSE!$WANT_PMPI_F77_BINDINGS_LAYER_FALSE$ac_delim
136137 FC!$FC$ac_delim
136138 FCFLAGS!$FCFLAGS$ac_delim
136139 ac_ct_FC!$ac_ct_FC$ac_delim
136140 FCFLAGS_f!$FCFLAGS_f$ac_delim
136141 FCFLAGS_f90!$FCFLAGS_f90$ac_delim
136142 OMPI_WANT_F90_BINDINGS_TRUE!$OMPI_WANT_F90_BINDINGS_TRUE$ac_delim
136143 OMPI_WANT_F90_BINDINGS_FALSE!$OMPI_WANT_F90_BINDINGS_FALSE$ac_delim
136144 OMPI_F90_ABSOLUTE!$OMPI_F90_ABSOLUTE$ac_delim
136145 OMPI_FC_MODULE_FLAG!$OMPI_FC_MODULE_FLAG$ac_delim
136146 OMPI_SIZEOF_F90_LOGICAL!$OMPI_SIZEOF_F90_LOGICAL$ac_delim
136147 OMPI_SIZEOF_F90_INTEGER!$OMPI_SIZEOF_F90_INTEGER$ac_delim
136148 OMPI_SIZEOF_F90_INTEGER1!$OMPI_SIZEOF_F90_INTEGER1$ac_delim
136149 OMPI_SIZEOF_F90_INTEGER2!$OMPI_SIZEOF_F90_INTEGER2$ac_delim
136150 OMPI_SIZEOF_F90_INTEGER4!$OMPI_SIZEOF_F90_INTEGER4$ac_delim
136151 OMPI_SIZEOF_F90_INTEGER8!$OMPI_SIZEOF_F90_INTEGER8$ac_delim
136152 _ACEOF
136154 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
136155 break
136156 elif $ac_last_try; then
136157 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
136158 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
136159 { (exit 1); exit 1; }; }
136161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
136165 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
136166 if test -n "$ac_eof"; then
136167 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
136168 ac_eof=`expr $ac_eof + 1`
136171 cat >>$CONFIG_STATUS <<_ACEOF
136172 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
136173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
136174 _ACEOF
136175 sed '
136176 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
136177 s/^/s,@/; s/!/@,|#_!!_#|/
136180 s/'"$ac_delim"'$/,g/; t
136181 s/$/\\/; p
136182 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
136183 ' >>$CONFIG_STATUS <conf$$subs.sed
136184 rm -f conf$$subs.sed
136185 cat >>$CONFIG_STATUS <<_ACEOF
136186 CEOF$ac_eof
136187 _ACEOF
136190 ac_delim='%!_!# '
136191 for ac_last_try in false false false false false :; do
136192 cat >conf$$subs.sed <<_ACEOF
136193 OMPI_SIZEOF_F90_INTEGER16!$OMPI_SIZEOF_F90_INTEGER16$ac_delim
136194 OMPI_SIZEOF_F90_REAL!$OMPI_SIZEOF_F90_REAL$ac_delim
136195 OMPI_SIZEOF_F90_REAL4!$OMPI_SIZEOF_F90_REAL4$ac_delim
136196 OMPI_SIZEOF_F90_REAL8!$OMPI_SIZEOF_F90_REAL8$ac_delim
136197 OMPI_SIZEOF_F90_REAL16!$OMPI_SIZEOF_F90_REAL16$ac_delim
136198 OMPI_SIZEOF_F90_DOUBLE_PRECISION!$OMPI_SIZEOF_F90_DOUBLE_PRECISION$ac_delim
136199 OMPI_SIZEOF_F90_COMPLEX!$OMPI_SIZEOF_F90_COMPLEX$ac_delim
136200 OMPI_SIZEOF_F90_COMPLEX8!$OMPI_SIZEOF_F90_COMPLEX8$ac_delim
136201 OMPI_SIZEOF_F90_COMPLEX16!$OMPI_SIZEOF_F90_COMPLEX16$ac_delim
136202 OMPI_SIZEOF_F90_COMPLEX32!$OMPI_SIZEOF_F90_COMPLEX32$ac_delim
136203 OMPI_SIZEOF_F90_DOUBLE_COMPLEX!$OMPI_SIZEOF_F90_DOUBLE_COMPLEX$ac_delim
136204 OMPI_F90_IKINDS!$OMPI_F90_IKINDS$ac_delim
136205 OMPI_F90_RKINDS!$OMPI_F90_RKINDS$ac_delim
136206 OMPI_F90_CKINDS!$OMPI_F90_CKINDS$ac_delim
136207 OMPI_MPI_INTEGER_KIND!$OMPI_MPI_INTEGER_KIND$ac_delim
136208 OMPI_MPI_ADDRESS_KIND!$OMPI_MPI_ADDRESS_KIND$ac_delim
136209 OMPI_MPI_OFFSET_KIND!$OMPI_MPI_OFFSET_KIND$ac_delim
136210 OMPI_HAVE_POSIX_THREADS_TRUE!$OMPI_HAVE_POSIX_THREADS_TRUE$ac_delim
136211 OMPI_HAVE_POSIX_THREADS_FALSE!$OMPI_HAVE_POSIX_THREADS_FALSE$ac_delim
136212 OMPI_HAVE_SOLARIS_THREADS_TRUE!$OMPI_HAVE_SOLARIS_THREADS_TRUE$ac_delim
136213 OMPI_HAVE_SOLARIS_THREADS_FALSE!$OMPI_HAVE_SOLARIS_THREADS_FALSE$ac_delim
136214 LN_S!$LN_S$ac_delim
136215 LEX!$LEX$ac_delim
136216 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
136217 LEXLIB!$LEXLIB$ac_delim
136218 CASE_SENSITIVE_FS_TRUE!$CASE_SENSITIVE_FS_TRUE$ac_delim
136219 CASE_SENSITIVE_FS_FALSE!$CASE_SENSITIVE_FS_FALSE$ac_delim
136220 OMPI_BUILD_maffinity_first_use_DSO_TRUE!$OMPI_BUILD_maffinity_first_use_DSO_TRUE$ac_delim
136221 OMPI_BUILD_maffinity_first_use_DSO_FALSE!$OMPI_BUILD_maffinity_first_use_DSO_FALSE$ac_delim
136222 maffinity_libnuma_CPPFLAGS!$maffinity_libnuma_CPPFLAGS$ac_delim
136223 maffinity_libnuma_LDFLAGS!$maffinity_libnuma_LDFLAGS$ac_delim
136224 maffinity_libnuma_LIBS!$maffinity_libnuma_LIBS$ac_delim
136225 OMPI_BUILD_maffinity_libnuma_DSO_TRUE!$OMPI_BUILD_maffinity_libnuma_DSO_TRUE$ac_delim
136226 OMPI_BUILD_maffinity_libnuma_DSO_FALSE!$OMPI_BUILD_maffinity_libnuma_DSO_FALSE$ac_delim
136227 MCA_maffinity_ALL_COMPONENTS!$MCA_maffinity_ALL_COMPONENTS$ac_delim
136228 MCA_maffinity_STATIC_COMPONENTS!$MCA_maffinity_STATIC_COMPONENTS$ac_delim
136229 MCA_maffinity_DSO_COMPONENTS!$MCA_maffinity_DSO_COMPONENTS$ac_delim
136230 MCA_maffinity_STATIC_LTLIBS!$MCA_maffinity_STATIC_LTLIBS$ac_delim
136231 MCA_maffinity_ALL_SUBDIRS!$MCA_maffinity_ALL_SUBDIRS$ac_delim
136232 MCA_maffinity_STATIC_SUBDIRS!$MCA_maffinity_STATIC_SUBDIRS$ac_delim
136233 MCA_maffinity_DSO_SUBDIRS!$MCA_maffinity_DSO_SUBDIRS$ac_delim
136234 MCA_memcpy_ALL_COMPONENTS!$MCA_memcpy_ALL_COMPONENTS$ac_delim
136235 MCA_memcpy_STATIC_COMPONENTS!$MCA_memcpy_STATIC_COMPONENTS$ac_delim
136236 MCA_memcpy_DSO_COMPONENTS!$MCA_memcpy_DSO_COMPONENTS$ac_delim
136237 MCA_memcpy_STATIC_LTLIBS!$MCA_memcpy_STATIC_LTLIBS$ac_delim
136238 MCA_memcpy_ALL_SUBDIRS!$MCA_memcpy_ALL_SUBDIRS$ac_delim
136239 MCA_memcpy_STATIC_SUBDIRS!$MCA_memcpy_STATIC_SUBDIRS$ac_delim
136240 MCA_memcpy_DSO_SUBDIRS!$MCA_memcpy_DSO_SUBDIRS$ac_delim
136241 OMPI_BUILD_memory_darwin_DSO_TRUE!$OMPI_BUILD_memory_darwin_DSO_TRUE$ac_delim
136242 OMPI_BUILD_memory_darwin_DSO_FALSE!$OMPI_BUILD_memory_darwin_DSO_FALSE$ac_delim
136243 memory_ptmalloc2_LIBS!$memory_ptmalloc2_LIBS$ac_delim
136244 OMPI_BUILD_memory_ptmalloc2_DSO_TRUE!$OMPI_BUILD_memory_ptmalloc2_DSO_TRUE$ac_delim
136245 OMPI_BUILD_memory_ptmalloc2_DSO_FALSE!$OMPI_BUILD_memory_ptmalloc2_DSO_FALSE$ac_delim
136246 memory_malloc_hooks_LIBS!$memory_malloc_hooks_LIBS$ac_delim
136247 OMPI_BUILD_memory_malloc_hooks_DSO_TRUE!$OMPI_BUILD_memory_malloc_hooks_DSO_TRUE$ac_delim
136248 OMPI_BUILD_memory_malloc_hooks_DSO_FALSE!$OMPI_BUILD_memory_malloc_hooks_DSO_FALSE$ac_delim
136249 MCA_memory_ALL_COMPONENTS!$MCA_memory_ALL_COMPONENTS$ac_delim
136250 MCA_memory_STATIC_COMPONENTS!$MCA_memory_STATIC_COMPONENTS$ac_delim
136251 MCA_memory_DSO_COMPONENTS!$MCA_memory_DSO_COMPONENTS$ac_delim
136252 MCA_memory_STATIC_LTLIBS!$MCA_memory_STATIC_LTLIBS$ac_delim
136253 MCA_memory_ALL_SUBDIRS!$MCA_memory_ALL_SUBDIRS$ac_delim
136254 MCA_memory_STATIC_SUBDIRS!$MCA_memory_STATIC_SUBDIRS$ac_delim
136255 MCA_memory_DSO_SUBDIRS!$MCA_memory_DSO_SUBDIRS$ac_delim
136256 OMPI_BUILD_paffinity_linux_DSO_TRUE!$OMPI_BUILD_paffinity_linux_DSO_TRUE$ac_delim
136257 OMPI_BUILD_paffinity_linux_DSO_FALSE!$OMPI_BUILD_paffinity_linux_DSO_FALSE$ac_delim
136258 OMPI_BUILD_paffinity_solaris_DSO_TRUE!$OMPI_BUILD_paffinity_solaris_DSO_TRUE$ac_delim
136259 OMPI_BUILD_paffinity_solaris_DSO_FALSE!$OMPI_BUILD_paffinity_solaris_DSO_FALSE$ac_delim
136260 OMPI_BUILD_paffinity_windows_DSO_TRUE!$OMPI_BUILD_paffinity_windows_DSO_TRUE$ac_delim
136261 OMPI_BUILD_paffinity_windows_DSO_FALSE!$OMPI_BUILD_paffinity_windows_DSO_FALSE$ac_delim
136262 MCA_paffinity_ALL_COMPONENTS!$MCA_paffinity_ALL_COMPONENTS$ac_delim
136263 MCA_paffinity_STATIC_COMPONENTS!$MCA_paffinity_STATIC_COMPONENTS$ac_delim
136264 MCA_paffinity_DSO_COMPONENTS!$MCA_paffinity_DSO_COMPONENTS$ac_delim
136265 MCA_paffinity_STATIC_LTLIBS!$MCA_paffinity_STATIC_LTLIBS$ac_delim
136266 MCA_paffinity_ALL_SUBDIRS!$MCA_paffinity_ALL_SUBDIRS$ac_delim
136267 MCA_paffinity_STATIC_SUBDIRS!$MCA_paffinity_STATIC_SUBDIRS$ac_delim
136268 MCA_paffinity_DSO_SUBDIRS!$MCA_paffinity_DSO_SUBDIRS$ac_delim
136269 timer_aix_LIBS!$timer_aix_LIBS$ac_delim
136270 OMPI_BUILD_timer_aix_DSO_TRUE!$OMPI_BUILD_timer_aix_DSO_TRUE$ac_delim
136271 OMPI_BUILD_timer_aix_DSO_FALSE!$OMPI_BUILD_timer_aix_DSO_FALSE$ac_delim
136272 OMPI_BUILD_timer_altix_DSO_TRUE!$OMPI_BUILD_timer_altix_DSO_TRUE$ac_delim
136273 OMPI_BUILD_timer_altix_DSO_FALSE!$OMPI_BUILD_timer_altix_DSO_FALSE$ac_delim
136274 OMPI_BUILD_timer_darwin_DSO_TRUE!$OMPI_BUILD_timer_darwin_DSO_TRUE$ac_delim
136275 OMPI_BUILD_timer_darwin_DSO_FALSE!$OMPI_BUILD_timer_darwin_DSO_FALSE$ac_delim
136276 OMPI_BUILD_timer_solaris_DSO_TRUE!$OMPI_BUILD_timer_solaris_DSO_TRUE$ac_delim
136277 OMPI_BUILD_timer_solaris_DSO_FALSE!$OMPI_BUILD_timer_solaris_DSO_FALSE$ac_delim
136278 OMPI_BUILD_timer_windows_DSO_TRUE!$OMPI_BUILD_timer_windows_DSO_TRUE$ac_delim
136279 OMPI_BUILD_timer_windows_DSO_FALSE!$OMPI_BUILD_timer_windows_DSO_FALSE$ac_delim
136280 OMPI_BUILD_timer_linux_DSO_TRUE!$OMPI_BUILD_timer_linux_DSO_TRUE$ac_delim
136281 OMPI_BUILD_timer_linux_DSO_FALSE!$OMPI_BUILD_timer_linux_DSO_FALSE$ac_delim
136282 MCA_timer_ALL_COMPONENTS!$MCA_timer_ALL_COMPONENTS$ac_delim
136283 MCA_timer_STATIC_COMPONENTS!$MCA_timer_STATIC_COMPONENTS$ac_delim
136284 MCA_timer_DSO_COMPONENTS!$MCA_timer_DSO_COMPONENTS$ac_delim
136285 MCA_timer_STATIC_LTLIBS!$MCA_timer_STATIC_LTLIBS$ac_delim
136286 MCA_timer_ALL_SUBDIRS!$MCA_timer_ALL_SUBDIRS$ac_delim
136287 MCA_timer_STATIC_SUBDIRS!$MCA_timer_STATIC_SUBDIRS$ac_delim
136288 MCA_timer_DSO_SUBDIRS!$MCA_timer_DSO_SUBDIRS$ac_delim
136289 MCA_opal_FRAMEWORKS!$MCA_opal_FRAMEWORKS$ac_delim
136290 _ACEOF
136292 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
136293 break
136294 elif $ac_last_try; then
136295 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
136296 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
136297 { (exit 1); exit 1; }; }
136299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
136303 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
136304 if test -n "$ac_eof"; then
136305 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
136306 ac_eof=`expr $ac_eof + 1`
136309 cat >>$CONFIG_STATUS <<_ACEOF
136310 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
136311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
136312 _ACEOF
136313 sed '
136314 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
136315 s/^/s,@/; s/!/@,|#_!!_#|/
136318 s/'"$ac_delim"'$/,g/; t
136319 s/$/\\/; p
136320 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
136321 ' >>$CONFIG_STATUS <conf$$subs.sed
136322 rm -f conf$$subs.sed
136323 cat >>$CONFIG_STATUS <<_ACEOF
136324 CEOF$ac_eof
136325 _ACEOF
136328 ac_delim='%!_!# '
136329 for ac_last_try in false false false false false :; do
136330 cat >conf$$subs.sed <<_ACEOF
136331 MCA_opal_FRAMEWORKS_SUBDIRS!$MCA_opal_FRAMEWORKS_SUBDIRS$ac_delim
136332 MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS!$MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS$ac_delim
136333 MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS!$MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS$ac_delim
136334 MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS!$MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$ac_delim
136335 MCA_opal_FRAMEWORK_LIBS!$MCA_opal_FRAMEWORK_LIBS$ac_delim
136336 MCA_errmgr_ALL_COMPONENTS!$MCA_errmgr_ALL_COMPONENTS$ac_delim
136337 MCA_errmgr_STATIC_COMPONENTS!$MCA_errmgr_STATIC_COMPONENTS$ac_delim
136338 MCA_errmgr_DSO_COMPONENTS!$MCA_errmgr_DSO_COMPONENTS$ac_delim
136339 MCA_errmgr_STATIC_LTLIBS!$MCA_errmgr_STATIC_LTLIBS$ac_delim
136340 MCA_errmgr_ALL_SUBDIRS!$MCA_errmgr_ALL_SUBDIRS$ac_delim
136341 MCA_errmgr_STATIC_SUBDIRS!$MCA_errmgr_STATIC_SUBDIRS$ac_delim
136342 MCA_errmgr_DSO_SUBDIRS!$MCA_errmgr_DSO_SUBDIRS$ac_delim
136343 OMPI_BUILD_gpr_null_DSO_TRUE!$OMPI_BUILD_gpr_null_DSO_TRUE$ac_delim
136344 OMPI_BUILD_gpr_null_DSO_FALSE!$OMPI_BUILD_gpr_null_DSO_FALSE$ac_delim
136345 OMPI_BUILD_gpr_proxy_DSO_TRUE!$OMPI_BUILD_gpr_proxy_DSO_TRUE$ac_delim
136346 OMPI_BUILD_gpr_proxy_DSO_FALSE!$OMPI_BUILD_gpr_proxy_DSO_FALSE$ac_delim
136347 OMPI_BUILD_gpr_replica_DSO_TRUE!$OMPI_BUILD_gpr_replica_DSO_TRUE$ac_delim
136348 OMPI_BUILD_gpr_replica_DSO_FALSE!$OMPI_BUILD_gpr_replica_DSO_FALSE$ac_delim
136349 MCA_gpr_ALL_COMPONENTS!$MCA_gpr_ALL_COMPONENTS$ac_delim
136350 MCA_gpr_STATIC_COMPONENTS!$MCA_gpr_STATIC_COMPONENTS$ac_delim
136351 MCA_gpr_DSO_COMPONENTS!$MCA_gpr_DSO_COMPONENTS$ac_delim
136352 MCA_gpr_STATIC_LTLIBS!$MCA_gpr_STATIC_LTLIBS$ac_delim
136353 MCA_gpr_ALL_SUBDIRS!$MCA_gpr_ALL_SUBDIRS$ac_delim
136354 MCA_gpr_STATIC_SUBDIRS!$MCA_gpr_STATIC_SUBDIRS$ac_delim
136355 MCA_gpr_DSO_SUBDIRS!$MCA_gpr_DSO_SUBDIRS$ac_delim
136356 OMPI_BUILD_iof_proxy_DSO_TRUE!$OMPI_BUILD_iof_proxy_DSO_TRUE$ac_delim
136357 OMPI_BUILD_iof_proxy_DSO_FALSE!$OMPI_BUILD_iof_proxy_DSO_FALSE$ac_delim
136358 OMPI_BUILD_iof_svc_DSO_TRUE!$OMPI_BUILD_iof_svc_DSO_TRUE$ac_delim
136359 OMPI_BUILD_iof_svc_DSO_FALSE!$OMPI_BUILD_iof_svc_DSO_FALSE$ac_delim
136360 MCA_iof_ALL_COMPONENTS!$MCA_iof_ALL_COMPONENTS$ac_delim
136361 MCA_iof_STATIC_COMPONENTS!$MCA_iof_STATIC_COMPONENTS$ac_delim
136362 MCA_iof_DSO_COMPONENTS!$MCA_iof_DSO_COMPONENTS$ac_delim
136363 MCA_iof_STATIC_LTLIBS!$MCA_iof_STATIC_LTLIBS$ac_delim
136364 MCA_iof_ALL_SUBDIRS!$MCA_iof_ALL_SUBDIRS$ac_delim
136365 MCA_iof_STATIC_SUBDIRS!$MCA_iof_STATIC_SUBDIRS$ac_delim
136366 MCA_iof_DSO_SUBDIRS!$MCA_iof_DSO_SUBDIRS$ac_delim
136367 OMPI_BUILD_ns_proxy_DSO_TRUE!$OMPI_BUILD_ns_proxy_DSO_TRUE$ac_delim
136368 OMPI_BUILD_ns_proxy_DSO_FALSE!$OMPI_BUILD_ns_proxy_DSO_FALSE$ac_delim
136369 OMPI_BUILD_ns_replica_DSO_TRUE!$OMPI_BUILD_ns_replica_DSO_TRUE$ac_delim
136370 OMPI_BUILD_ns_replica_DSO_FALSE!$OMPI_BUILD_ns_replica_DSO_FALSE$ac_delim
136371 MCA_ns_ALL_COMPONENTS!$MCA_ns_ALL_COMPONENTS$ac_delim
136372 MCA_ns_STATIC_COMPONENTS!$MCA_ns_STATIC_COMPONENTS$ac_delim
136373 MCA_ns_DSO_COMPONENTS!$MCA_ns_DSO_COMPONENTS$ac_delim
136374 MCA_ns_STATIC_LTLIBS!$MCA_ns_STATIC_LTLIBS$ac_delim
136375 MCA_ns_ALL_SUBDIRS!$MCA_ns_ALL_SUBDIRS$ac_delim
136376 MCA_ns_STATIC_SUBDIRS!$MCA_ns_STATIC_SUBDIRS$ac_delim
136377 MCA_ns_DSO_SUBDIRS!$MCA_ns_DSO_SUBDIRS$ac_delim
136378 OMPI_BUILD_oob_tcp_DSO_TRUE!$OMPI_BUILD_oob_tcp_DSO_TRUE$ac_delim
136379 OMPI_BUILD_oob_tcp_DSO_FALSE!$OMPI_BUILD_oob_tcp_DSO_FALSE$ac_delim
136380 MCA_oob_ALL_COMPONENTS!$MCA_oob_ALL_COMPONENTS$ac_delim
136381 MCA_oob_STATIC_COMPONENTS!$MCA_oob_STATIC_COMPONENTS$ac_delim
136382 MCA_oob_DSO_COMPONENTS!$MCA_oob_DSO_COMPONENTS$ac_delim
136383 MCA_oob_STATIC_LTLIBS!$MCA_oob_STATIC_LTLIBS$ac_delim
136384 MCA_oob_ALL_SUBDIRS!$MCA_oob_ALL_SUBDIRS$ac_delim
136385 MCA_oob_STATIC_SUBDIRS!$MCA_oob_STATIC_SUBDIRS$ac_delim
136386 MCA_oob_DSO_SUBDIRS!$MCA_oob_DSO_SUBDIRS$ac_delim
136387 pls_bproc_CPPFLAGS!$pls_bproc_CPPFLAGS$ac_delim
136388 pls_bproc_LDFLAGS!$pls_bproc_LDFLAGS$ac_delim
136389 pls_bproc_LIBS!$pls_bproc_LIBS$ac_delim
136390 OMPI_BUILD_pls_bproc_DSO_TRUE!$OMPI_BUILD_pls_bproc_DSO_TRUE$ac_delim
136391 OMPI_BUILD_pls_bproc_DSO_FALSE!$OMPI_BUILD_pls_bproc_DSO_FALSE$ac_delim
136392 pls_bproc_orted_CPPFLAGS!$pls_bproc_orted_CPPFLAGS$ac_delim
136393 pls_bproc_orted_LDFLAGS!$pls_bproc_orted_LDFLAGS$ac_delim
136394 pls_bproc_orted_LIBS!$pls_bproc_orted_LIBS$ac_delim
136395 OMPI_BUILD_pls_bproc_orted_DSO_TRUE!$OMPI_BUILD_pls_bproc_orted_DSO_TRUE$ac_delim
136396 OMPI_BUILD_pls_bproc_orted_DSO_FALSE!$OMPI_BUILD_pls_bproc_orted_DSO_FALSE$ac_delim
136397 OMPI_BUILD_pls_fork_DSO_TRUE!$OMPI_BUILD_pls_fork_DSO_TRUE$ac_delim
136398 OMPI_BUILD_pls_fork_DSO_FALSE!$OMPI_BUILD_pls_fork_DSO_FALSE$ac_delim
136399 OMPI_BUILD_pls_poe_DSO_TRUE!$OMPI_BUILD_pls_poe_DSO_TRUE$ac_delim
136400 OMPI_BUILD_pls_poe_DSO_FALSE!$OMPI_BUILD_pls_poe_DSO_FALSE$ac_delim
136401 OMPI_BUILD_pls_rsh_DSO_TRUE!$OMPI_BUILD_pls_rsh_DSO_TRUE$ac_delim
136402 OMPI_BUILD_pls_rsh_DSO_FALSE!$OMPI_BUILD_pls_rsh_DSO_FALSE$ac_delim
136403 pls_slurm_CPPFLAGS!$pls_slurm_CPPFLAGS$ac_delim
136404 pls_slurm_LDFLAGS!$pls_slurm_LDFLAGS$ac_delim
136405 pls_slurm_LIBS!$pls_slurm_LIBS$ac_delim
136406 OMPI_BUILD_pls_slurm_DSO_TRUE!$OMPI_BUILD_pls_slurm_DSO_TRUE$ac_delim
136407 OMPI_BUILD_pls_slurm_DSO_FALSE!$OMPI_BUILD_pls_slurm_DSO_FALSE$ac_delim
136408 pls_tm_CPPFLAGS!$pls_tm_CPPFLAGS$ac_delim
136409 pls_tm_LDFLAGS!$pls_tm_LDFLAGS$ac_delim
136410 pls_tm_LIBS!$pls_tm_LIBS$ac_delim
136411 OMPI_BUILD_pls_tm_DSO_TRUE!$OMPI_BUILD_pls_tm_DSO_TRUE$ac_delim
136412 OMPI_BUILD_pls_tm_DSO_FALSE!$OMPI_BUILD_pls_tm_DSO_FALSE$ac_delim
136413 OBJC!$OBJC$ac_delim
136414 OBJCFLAGS!$OBJCFLAGS$ac_delim
136415 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
136416 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
136417 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
136418 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
136419 pls_xgrid_OBJCFLAGS!$pls_xgrid_OBJCFLAGS$ac_delim
136420 pls_xgrid_LDFLAGS!$pls_xgrid_LDFLAGS$ac_delim
136421 OMPI_BUILD_pls_xgrid_DSO_TRUE!$OMPI_BUILD_pls_xgrid_DSO_TRUE$ac_delim
136422 OMPI_BUILD_pls_xgrid_DSO_FALSE!$OMPI_BUILD_pls_xgrid_DSO_FALSE$ac_delim
136423 MCA_pls_ALL_COMPONENTS!$MCA_pls_ALL_COMPONENTS$ac_delim
136424 MCA_pls_STATIC_COMPONENTS!$MCA_pls_STATIC_COMPONENTS$ac_delim
136425 MCA_pls_DSO_COMPONENTS!$MCA_pls_DSO_COMPONENTS$ac_delim
136426 MCA_pls_STATIC_LTLIBS!$MCA_pls_STATIC_LTLIBS$ac_delim
136427 MCA_pls_ALL_SUBDIRS!$MCA_pls_ALL_SUBDIRS$ac_delim
136428 _ACEOF
136430 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
136431 break
136432 elif $ac_last_try; then
136433 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
136434 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
136435 { (exit 1); exit 1; }; }
136437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
136441 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
136442 if test -n "$ac_eof"; then
136443 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
136444 ac_eof=`expr $ac_eof + 1`
136447 cat >>$CONFIG_STATUS <<_ACEOF
136448 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
136449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
136450 _ACEOF
136451 sed '
136452 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
136453 s/^/s,@/; s/!/@,|#_!!_#|/
136456 s/'"$ac_delim"'$/,g/; t
136457 s/$/\\/; p
136458 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
136459 ' >>$CONFIG_STATUS <conf$$subs.sed
136460 rm -f conf$$subs.sed
136461 cat >>$CONFIG_STATUS <<_ACEOF
136462 CEOF$ac_eof
136463 _ACEOF
136466 ac_delim='%!_!# '
136467 for ac_last_try in false false false false false :; do
136468 cat >conf$$subs.sed <<_ACEOF
136469 MCA_pls_STATIC_SUBDIRS!$MCA_pls_STATIC_SUBDIRS$ac_delim
136470 MCA_pls_DSO_SUBDIRS!$MCA_pls_DSO_SUBDIRS$ac_delim
136471 OMPI_BUILD_ras_dash_host_DSO_TRUE!$OMPI_BUILD_ras_dash_host_DSO_TRUE$ac_delim
136472 OMPI_BUILD_ras_dash_host_DSO_FALSE!$OMPI_BUILD_ras_dash_host_DSO_FALSE$ac_delim
136473 OMPI_BUILD_ras_hostfile_DSO_TRUE!$OMPI_BUILD_ras_hostfile_DSO_TRUE$ac_delim
136474 OMPI_BUILD_ras_hostfile_DSO_FALSE!$OMPI_BUILD_ras_hostfile_DSO_FALSE$ac_delim
136475 OMPI_BUILD_ras_localhost_DSO_TRUE!$OMPI_BUILD_ras_localhost_DSO_TRUE$ac_delim
136476 OMPI_BUILD_ras_localhost_DSO_FALSE!$OMPI_BUILD_ras_localhost_DSO_FALSE$ac_delim
136477 ras_bjs_CPPFLAGS!$ras_bjs_CPPFLAGS$ac_delim
136478 ras_bjs_LDFLAGS!$ras_bjs_LDFLAGS$ac_delim
136479 ras_bjs_LIBS!$ras_bjs_LIBS$ac_delim
136480 OMPI_BUILD_ras_bjs_DSO_TRUE!$OMPI_BUILD_ras_bjs_DSO_TRUE$ac_delim
136481 OMPI_BUILD_ras_bjs_DSO_FALSE!$OMPI_BUILD_ras_bjs_DSO_FALSE$ac_delim
136482 ras_loadleveler_CPPFLAGS!$ras_loadleveler_CPPFLAGS$ac_delim
136483 ras_loadleveler_LDFLAGS!$ras_loadleveler_LDFLAGS$ac_delim
136484 ras_loadleveler_LIBS!$ras_loadleveler_LIBS$ac_delim
136485 OMPI_BUILD_ras_loadleveler_DSO_TRUE!$OMPI_BUILD_ras_loadleveler_DSO_TRUE$ac_delim
136486 OMPI_BUILD_ras_loadleveler_DSO_FALSE!$OMPI_BUILD_ras_loadleveler_DSO_FALSE$ac_delim
136487 ras_lsf_bproc_CPPFLAGS!$ras_lsf_bproc_CPPFLAGS$ac_delim
136488 ras_lsf_bproc_LDFLAGS!$ras_lsf_bproc_LDFLAGS$ac_delim
136489 ras_lsf_bproc_LIBS!$ras_lsf_bproc_LIBS$ac_delim
136490 OMPI_BUILD_ras_lsf_bproc_DSO_TRUE!$OMPI_BUILD_ras_lsf_bproc_DSO_TRUE$ac_delim
136491 OMPI_BUILD_ras_lsf_bproc_DSO_FALSE!$OMPI_BUILD_ras_lsf_bproc_DSO_FALSE$ac_delim
136492 OMPI_BUILD_ras_poe_DSO_TRUE!$OMPI_BUILD_ras_poe_DSO_TRUE$ac_delim
136493 OMPI_BUILD_ras_poe_DSO_FALSE!$OMPI_BUILD_ras_poe_DSO_FALSE$ac_delim
136494 ras_slurm_CPPFLAGS!$ras_slurm_CPPFLAGS$ac_delim
136495 ras_slurm_LDFLAGS!$ras_slurm_LDFLAGS$ac_delim
136496 ras_slurm_LIBS!$ras_slurm_LIBS$ac_delim
136497 OMPI_BUILD_ras_slurm_DSO_TRUE!$OMPI_BUILD_ras_slurm_DSO_TRUE$ac_delim
136498 OMPI_BUILD_ras_slurm_DSO_FALSE!$OMPI_BUILD_ras_slurm_DSO_FALSE$ac_delim
136499 ras_tm_CPPFLAGS!$ras_tm_CPPFLAGS$ac_delim
136500 ras_tm_LDFLAGS!$ras_tm_LDFLAGS$ac_delim
136501 ras_tm_LIBS!$ras_tm_LIBS$ac_delim
136502 OMPI_BUILD_ras_tm_DSO_TRUE!$OMPI_BUILD_ras_tm_DSO_TRUE$ac_delim
136503 OMPI_BUILD_ras_tm_DSO_FALSE!$OMPI_BUILD_ras_tm_DSO_FALSE$ac_delim
136504 OMPI_BUILD_ras_xgrid_DSO_TRUE!$OMPI_BUILD_ras_xgrid_DSO_TRUE$ac_delim
136505 OMPI_BUILD_ras_xgrid_DSO_FALSE!$OMPI_BUILD_ras_xgrid_DSO_FALSE$ac_delim
136506 MCA_ras_ALL_COMPONENTS!$MCA_ras_ALL_COMPONENTS$ac_delim
136507 MCA_ras_STATIC_COMPONENTS!$MCA_ras_STATIC_COMPONENTS$ac_delim
136508 MCA_ras_DSO_COMPONENTS!$MCA_ras_DSO_COMPONENTS$ac_delim
136509 MCA_ras_STATIC_LTLIBS!$MCA_ras_STATIC_LTLIBS$ac_delim
136510 MCA_ras_ALL_SUBDIRS!$MCA_ras_ALL_SUBDIRS$ac_delim
136511 MCA_ras_STATIC_SUBDIRS!$MCA_ras_STATIC_SUBDIRS$ac_delim
136512 MCA_ras_DSO_SUBDIRS!$MCA_ras_DSO_SUBDIRS$ac_delim
136513 OMPI_BUILD_rds_hostfile_DSO_TRUE!$OMPI_BUILD_rds_hostfile_DSO_TRUE$ac_delim
136514 OMPI_BUILD_rds_hostfile_DSO_FALSE!$OMPI_BUILD_rds_hostfile_DSO_FALSE$ac_delim
136515 OMPI_BUILD_rds_resfile_DSO_TRUE!$OMPI_BUILD_rds_resfile_DSO_TRUE$ac_delim
136516 OMPI_BUILD_rds_resfile_DSO_FALSE!$OMPI_BUILD_rds_resfile_DSO_FALSE$ac_delim
136517 MCA_rds_ALL_COMPONENTS!$MCA_rds_ALL_COMPONENTS$ac_delim
136518 MCA_rds_STATIC_COMPONENTS!$MCA_rds_STATIC_COMPONENTS$ac_delim
136519 MCA_rds_DSO_COMPONENTS!$MCA_rds_DSO_COMPONENTS$ac_delim
136520 MCA_rds_STATIC_LTLIBS!$MCA_rds_STATIC_LTLIBS$ac_delim
136521 MCA_rds_ALL_SUBDIRS!$MCA_rds_ALL_SUBDIRS$ac_delim
136522 MCA_rds_STATIC_SUBDIRS!$MCA_rds_STATIC_SUBDIRS$ac_delim
136523 MCA_rds_DSO_SUBDIRS!$MCA_rds_DSO_SUBDIRS$ac_delim
136524 OMPI_BUILD_rmaps_round_robin_DSO_TRUE!$OMPI_BUILD_rmaps_round_robin_DSO_TRUE$ac_delim
136525 OMPI_BUILD_rmaps_round_robin_DSO_FALSE!$OMPI_BUILD_rmaps_round_robin_DSO_FALSE$ac_delim
136526 MCA_rmaps_ALL_COMPONENTS!$MCA_rmaps_ALL_COMPONENTS$ac_delim
136527 MCA_rmaps_STATIC_COMPONENTS!$MCA_rmaps_STATIC_COMPONENTS$ac_delim
136528 MCA_rmaps_DSO_COMPONENTS!$MCA_rmaps_DSO_COMPONENTS$ac_delim
136529 MCA_rmaps_STATIC_LTLIBS!$MCA_rmaps_STATIC_LTLIBS$ac_delim
136530 MCA_rmaps_ALL_SUBDIRS!$MCA_rmaps_ALL_SUBDIRS$ac_delim
136531 MCA_rmaps_STATIC_SUBDIRS!$MCA_rmaps_STATIC_SUBDIRS$ac_delim
136532 MCA_rmaps_DSO_SUBDIRS!$MCA_rmaps_DSO_SUBDIRS$ac_delim
136533 OMPI_BUILD_rmgr_proxy_DSO_TRUE!$OMPI_BUILD_rmgr_proxy_DSO_TRUE$ac_delim
136534 OMPI_BUILD_rmgr_proxy_DSO_FALSE!$OMPI_BUILD_rmgr_proxy_DSO_FALSE$ac_delim
136535 OMPI_BUILD_rmgr_urm_DSO_TRUE!$OMPI_BUILD_rmgr_urm_DSO_TRUE$ac_delim
136536 OMPI_BUILD_rmgr_urm_DSO_FALSE!$OMPI_BUILD_rmgr_urm_DSO_FALSE$ac_delim
136537 OMPI_BUILD_rmgr_cnos_DSO_TRUE!$OMPI_BUILD_rmgr_cnos_DSO_TRUE$ac_delim
136538 OMPI_BUILD_rmgr_cnos_DSO_FALSE!$OMPI_BUILD_rmgr_cnos_DSO_FALSE$ac_delim
136539 MCA_rmgr_ALL_COMPONENTS!$MCA_rmgr_ALL_COMPONENTS$ac_delim
136540 MCA_rmgr_STATIC_COMPONENTS!$MCA_rmgr_STATIC_COMPONENTS$ac_delim
136541 MCA_rmgr_DSO_COMPONENTS!$MCA_rmgr_DSO_COMPONENTS$ac_delim
136542 MCA_rmgr_STATIC_LTLIBS!$MCA_rmgr_STATIC_LTLIBS$ac_delim
136543 MCA_rmgr_ALL_SUBDIRS!$MCA_rmgr_ALL_SUBDIRS$ac_delim
136544 MCA_rmgr_STATIC_SUBDIRS!$MCA_rmgr_STATIC_SUBDIRS$ac_delim
136545 MCA_rmgr_DSO_SUBDIRS!$MCA_rmgr_DSO_SUBDIRS$ac_delim
136546 OMPI_BUILD_rml_oob_DSO_TRUE!$OMPI_BUILD_rml_oob_DSO_TRUE$ac_delim
136547 OMPI_BUILD_rml_oob_DSO_FALSE!$OMPI_BUILD_rml_oob_DSO_FALSE$ac_delim
136548 OMPI_BUILD_rml_cnos_DSO_TRUE!$OMPI_BUILD_rml_cnos_DSO_TRUE$ac_delim
136549 OMPI_BUILD_rml_cnos_DSO_FALSE!$OMPI_BUILD_rml_cnos_DSO_FALSE$ac_delim
136550 MCA_rml_ALL_COMPONENTS!$MCA_rml_ALL_COMPONENTS$ac_delim
136551 MCA_rml_STATIC_COMPONENTS!$MCA_rml_STATIC_COMPONENTS$ac_delim
136552 MCA_rml_DSO_COMPONENTS!$MCA_rml_DSO_COMPONENTS$ac_delim
136553 MCA_rml_STATIC_LTLIBS!$MCA_rml_STATIC_LTLIBS$ac_delim
136554 MCA_rml_ALL_SUBDIRS!$MCA_rml_ALL_SUBDIRS$ac_delim
136555 MCA_rml_STATIC_SUBDIRS!$MCA_rml_STATIC_SUBDIRS$ac_delim
136556 MCA_rml_DSO_SUBDIRS!$MCA_rml_DSO_SUBDIRS$ac_delim
136557 MCA_schema_ALL_COMPONENTS!$MCA_schema_ALL_COMPONENTS$ac_delim
136558 MCA_schema_STATIC_COMPONENTS!$MCA_schema_STATIC_COMPONENTS$ac_delim
136559 MCA_schema_DSO_COMPONENTS!$MCA_schema_DSO_COMPONENTS$ac_delim
136560 MCA_schema_STATIC_LTLIBS!$MCA_schema_STATIC_LTLIBS$ac_delim
136561 MCA_schema_ALL_SUBDIRS!$MCA_schema_ALL_SUBDIRS$ac_delim
136562 MCA_schema_STATIC_SUBDIRS!$MCA_schema_STATIC_SUBDIRS$ac_delim
136563 MCA_schema_DSO_SUBDIRS!$MCA_schema_DSO_SUBDIRS$ac_delim
136564 OMPI_BUILD_sds_env_DSO_TRUE!$OMPI_BUILD_sds_env_DSO_TRUE$ac_delim
136565 OMPI_BUILD_sds_env_DSO_FALSE!$OMPI_BUILD_sds_env_DSO_FALSE$ac_delim
136566 _ACEOF
136568 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
136569 break
136570 elif $ac_last_try; then
136571 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
136572 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
136573 { (exit 1); exit 1; }; }
136575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
136579 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
136580 if test -n "$ac_eof"; then
136581 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
136582 ac_eof=`expr $ac_eof + 1`
136585 cat >>$CONFIG_STATUS <<_ACEOF
136586 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
136587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
136588 _ACEOF
136589 sed '
136590 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
136591 s/^/s,@/; s/!/@,|#_!!_#|/
136594 s/'"$ac_delim"'$/,g/; t
136595 s/$/\\/; p
136596 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
136597 ' >>$CONFIG_STATUS <conf$$subs.sed
136598 rm -f conf$$subs.sed
136599 cat >>$CONFIG_STATUS <<_ACEOF
136600 CEOF$ac_eof
136601 _ACEOF
136604 ac_delim='%!_!# '
136605 for ac_last_try in false false false false false :; do
136606 cat >conf$$subs.sed <<_ACEOF
136607 OMPI_BUILD_sds_seed_DSO_TRUE!$OMPI_BUILD_sds_seed_DSO_TRUE$ac_delim
136608 OMPI_BUILD_sds_seed_DSO_FALSE!$OMPI_BUILD_sds_seed_DSO_FALSE$ac_delim
136609 OMPI_BUILD_sds_singleton_DSO_TRUE!$OMPI_BUILD_sds_singleton_DSO_TRUE$ac_delim
136610 OMPI_BUILD_sds_singleton_DSO_FALSE!$OMPI_BUILD_sds_singleton_DSO_FALSE$ac_delim
136611 sds_bproc_CPPFLAGS!$sds_bproc_CPPFLAGS$ac_delim
136612 sds_bproc_LDFLAGS!$sds_bproc_LDFLAGS$ac_delim
136613 sds_bproc_LIBS!$sds_bproc_LIBS$ac_delim
136614 OMPI_BUILD_sds_bproc_DSO_TRUE!$OMPI_BUILD_sds_bproc_DSO_TRUE$ac_delim
136615 OMPI_BUILD_sds_bproc_DSO_FALSE!$OMPI_BUILD_sds_bproc_DSO_FALSE$ac_delim
136616 OMPI_BUILD_sds_cnos_DSO_TRUE!$OMPI_BUILD_sds_cnos_DSO_TRUE$ac_delim
136617 OMPI_BUILD_sds_cnos_DSO_FALSE!$OMPI_BUILD_sds_cnos_DSO_FALSE$ac_delim
136618 OMPI_BUILD_sds_pipe_DSO_TRUE!$OMPI_BUILD_sds_pipe_DSO_TRUE$ac_delim
136619 OMPI_BUILD_sds_pipe_DSO_FALSE!$OMPI_BUILD_sds_pipe_DSO_FALSE$ac_delim
136620 sds_portals_utcp_CPPFLAGS!$sds_portals_utcp_CPPFLAGS$ac_delim
136621 sds_portals_utcp_LDFLAGS!$sds_portals_utcp_LDFLAGS$ac_delim
136622 sds_portals_utcp_LIBS!$sds_portals_utcp_LIBS$ac_delim
136623 OMPI_BUILD_sds_portals_utcp_DSO_TRUE!$OMPI_BUILD_sds_portals_utcp_DSO_TRUE$ac_delim
136624 OMPI_BUILD_sds_portals_utcp_DSO_FALSE!$OMPI_BUILD_sds_portals_utcp_DSO_FALSE$ac_delim
136625 sds_slurm_CPPFLAGS!$sds_slurm_CPPFLAGS$ac_delim
136626 sds_slurm_LDFLAGS!$sds_slurm_LDFLAGS$ac_delim
136627 sds_slurm_LIBS!$sds_slurm_LIBS$ac_delim
136628 OMPI_BUILD_sds_slurm_DSO_TRUE!$OMPI_BUILD_sds_slurm_DSO_TRUE$ac_delim
136629 OMPI_BUILD_sds_slurm_DSO_FALSE!$OMPI_BUILD_sds_slurm_DSO_FALSE$ac_delim
136630 MCA_sds_ALL_COMPONENTS!$MCA_sds_ALL_COMPONENTS$ac_delim
136631 MCA_sds_STATIC_COMPONENTS!$MCA_sds_STATIC_COMPONENTS$ac_delim
136632 MCA_sds_DSO_COMPONENTS!$MCA_sds_DSO_COMPONENTS$ac_delim
136633 MCA_sds_STATIC_LTLIBS!$MCA_sds_STATIC_LTLIBS$ac_delim
136634 MCA_sds_ALL_SUBDIRS!$MCA_sds_ALL_SUBDIRS$ac_delim
136635 MCA_sds_STATIC_SUBDIRS!$MCA_sds_STATIC_SUBDIRS$ac_delim
136636 MCA_sds_DSO_SUBDIRS!$MCA_sds_DSO_SUBDIRS$ac_delim
136637 soh_bproc_CPPFLAGS!$soh_bproc_CPPFLAGS$ac_delim
136638 soh_bproc_LDFLAGS!$soh_bproc_LDFLAGS$ac_delim
136639 soh_bproc_LIBS!$soh_bproc_LIBS$ac_delim
136640 OMPI_BUILD_soh_bproc_DSO_TRUE!$OMPI_BUILD_soh_bproc_DSO_TRUE$ac_delim
136641 OMPI_BUILD_soh_bproc_DSO_FALSE!$OMPI_BUILD_soh_bproc_DSO_FALSE$ac_delim
136642 MCA_soh_ALL_COMPONENTS!$MCA_soh_ALL_COMPONENTS$ac_delim
136643 MCA_soh_STATIC_COMPONENTS!$MCA_soh_STATIC_COMPONENTS$ac_delim
136644 MCA_soh_DSO_COMPONENTS!$MCA_soh_DSO_COMPONENTS$ac_delim
136645 MCA_soh_STATIC_LTLIBS!$MCA_soh_STATIC_LTLIBS$ac_delim
136646 MCA_soh_ALL_SUBDIRS!$MCA_soh_ALL_SUBDIRS$ac_delim
136647 MCA_soh_STATIC_SUBDIRS!$MCA_soh_STATIC_SUBDIRS$ac_delim
136648 MCA_soh_DSO_SUBDIRS!$MCA_soh_DSO_SUBDIRS$ac_delim
136649 MCA_orte_FRAMEWORKS!$MCA_orte_FRAMEWORKS$ac_delim
136650 MCA_orte_FRAMEWORKS_SUBDIRS!$MCA_orte_FRAMEWORKS_SUBDIRS$ac_delim
136651 MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS!$MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS$ac_delim
136652 MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS!$MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS$ac_delim
136653 MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS!$MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$ac_delim
136654 MCA_orte_FRAMEWORK_LIBS!$MCA_orte_FRAMEWORK_LIBS$ac_delim
136655 OMPI_BUILD_allocator_basic_DSO_TRUE!$OMPI_BUILD_allocator_basic_DSO_TRUE$ac_delim
136656 OMPI_BUILD_allocator_basic_DSO_FALSE!$OMPI_BUILD_allocator_basic_DSO_FALSE$ac_delim
136657 OMPI_BUILD_allocator_bucket_DSO_TRUE!$OMPI_BUILD_allocator_bucket_DSO_TRUE$ac_delim
136658 OMPI_BUILD_allocator_bucket_DSO_FALSE!$OMPI_BUILD_allocator_bucket_DSO_FALSE$ac_delim
136659 MCA_allocator_ALL_COMPONENTS!$MCA_allocator_ALL_COMPONENTS$ac_delim
136660 MCA_allocator_STATIC_COMPONENTS!$MCA_allocator_STATIC_COMPONENTS$ac_delim
136661 MCA_allocator_DSO_COMPONENTS!$MCA_allocator_DSO_COMPONENTS$ac_delim
136662 MCA_allocator_STATIC_LTLIBS!$MCA_allocator_STATIC_LTLIBS$ac_delim
136663 MCA_allocator_ALL_SUBDIRS!$MCA_allocator_ALL_SUBDIRS$ac_delim
136664 MCA_allocator_STATIC_SUBDIRS!$MCA_allocator_STATIC_SUBDIRS$ac_delim
136665 MCA_allocator_DSO_SUBDIRS!$MCA_allocator_DSO_SUBDIRS$ac_delim
136666 OMPI_BUILD_bml_r2_DSO_TRUE!$OMPI_BUILD_bml_r2_DSO_TRUE$ac_delim
136667 OMPI_BUILD_bml_r2_DSO_FALSE!$OMPI_BUILD_bml_r2_DSO_FALSE$ac_delim
136668 MCA_bml_ALL_COMPONENTS!$MCA_bml_ALL_COMPONENTS$ac_delim
136669 MCA_bml_STATIC_COMPONENTS!$MCA_bml_STATIC_COMPONENTS$ac_delim
136670 MCA_bml_DSO_COMPONENTS!$MCA_bml_DSO_COMPONENTS$ac_delim
136671 MCA_bml_STATIC_LTLIBS!$MCA_bml_STATIC_LTLIBS$ac_delim
136672 MCA_bml_ALL_SUBDIRS!$MCA_bml_ALL_SUBDIRS$ac_delim
136673 MCA_bml_STATIC_SUBDIRS!$MCA_bml_STATIC_SUBDIRS$ac_delim
136674 MCA_bml_DSO_SUBDIRS!$MCA_bml_DSO_SUBDIRS$ac_delim
136675 OMPI_BUILD_btl_self_DSO_TRUE!$OMPI_BUILD_btl_self_DSO_TRUE$ac_delim
136676 OMPI_BUILD_btl_self_DSO_FALSE!$OMPI_BUILD_btl_self_DSO_FALSE$ac_delim
136677 OMPI_BUILD_btl_sm_DSO_TRUE!$OMPI_BUILD_btl_sm_DSO_TRUE$ac_delim
136678 OMPI_BUILD_btl_sm_DSO_FALSE!$OMPI_BUILD_btl_sm_DSO_FALSE$ac_delim
136679 btl_gm_CFLAGS!$btl_gm_CFLAGS$ac_delim
136680 btl_gm_CPPFLAGS!$btl_gm_CPPFLAGS$ac_delim
136681 btl_gm_LDFLAGS!$btl_gm_LDFLAGS$ac_delim
136682 btl_gm_LIBS!$btl_gm_LIBS$ac_delim
136683 OMPI_BUILD_btl_gm_DSO_TRUE!$OMPI_BUILD_btl_gm_DSO_TRUE$ac_delim
136684 OMPI_BUILD_btl_gm_DSO_FALSE!$OMPI_BUILD_btl_gm_DSO_FALSE$ac_delim
136685 btl_mvapi_CFLAGS!$btl_mvapi_CFLAGS$ac_delim
136686 btl_mvapi_CPPFLAGS!$btl_mvapi_CPPFLAGS$ac_delim
136687 btl_mvapi_LDFLAGS!$btl_mvapi_LDFLAGS$ac_delim
136688 btl_mvapi_LIBS!$btl_mvapi_LIBS$ac_delim
136689 OMPI_BUILD_btl_mvapi_DSO_TRUE!$OMPI_BUILD_btl_mvapi_DSO_TRUE$ac_delim
136690 OMPI_BUILD_btl_mvapi_DSO_FALSE!$OMPI_BUILD_btl_mvapi_DSO_FALSE$ac_delim
136691 btl_mx_CFLAGS!$btl_mx_CFLAGS$ac_delim
136692 btl_mx_CPPFLAGS!$btl_mx_CPPFLAGS$ac_delim
136693 btl_mx_LDFLAGS!$btl_mx_LDFLAGS$ac_delim
136694 btl_mx_LIBS!$btl_mx_LIBS$ac_delim
136695 OMPI_BUILD_btl_mx_DSO_TRUE!$OMPI_BUILD_btl_mx_DSO_TRUE$ac_delim
136696 OMPI_BUILD_btl_mx_DSO_FALSE!$OMPI_BUILD_btl_mx_DSO_FALSE$ac_delim
136697 btl_openib_CFLAGS!$btl_openib_CFLAGS$ac_delim
136698 btl_openib_CPPFLAGS!$btl_openib_CPPFLAGS$ac_delim
136699 btl_openib_LDFLAGS!$btl_openib_LDFLAGS$ac_delim
136700 btl_openib_LIBS!$btl_openib_LIBS$ac_delim
136701 OMPI_BUILD_btl_openib_DSO_TRUE!$OMPI_BUILD_btl_openib_DSO_TRUE$ac_delim
136702 OMPI_BUILD_btl_openib_DSO_FALSE!$OMPI_BUILD_btl_openib_DSO_FALSE$ac_delim
136703 btl_portals_CPPFLAGS!$btl_portals_CPPFLAGS$ac_delim
136704 _ACEOF
136706 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
136707 break
136708 elif $ac_last_try; then
136709 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
136710 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
136711 { (exit 1); exit 1; }; }
136713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
136717 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
136718 if test -n "$ac_eof"; then
136719 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
136720 ac_eof=`expr $ac_eof + 1`
136723 cat >>$CONFIG_STATUS <<_ACEOF
136724 cat >"\$tmp/subs-6.sed" <<\CEOF$ac_eof
136725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
136726 _ACEOF
136727 sed '
136728 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
136729 s/^/s,@/; s/!/@,|#_!!_#|/
136732 s/'"$ac_delim"'$/,g/; t
136733 s/$/\\/; p
136734 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
136735 ' >>$CONFIG_STATUS <conf$$subs.sed
136736 rm -f conf$$subs.sed
136737 cat >>$CONFIG_STATUS <<_ACEOF
136738 CEOF$ac_eof
136739 _ACEOF
136742 ac_delim='%!_!# '
136743 for ac_last_try in false false false false false :; do
136744 cat >conf$$subs.sed <<_ACEOF
136745 btl_portals_LDFLAGS!$btl_portals_LDFLAGS$ac_delim
136746 btl_portals_LIBS!$btl_portals_LIBS$ac_delim
136747 OMPI_BUILD_btl_portals_DSO_TRUE!$OMPI_BUILD_btl_portals_DSO_TRUE$ac_delim
136748 OMPI_BUILD_btl_portals_DSO_FALSE!$OMPI_BUILD_btl_portals_DSO_FALSE$ac_delim
136749 OMPI_BUILD_btl_tcp_DSO_TRUE!$OMPI_BUILD_btl_tcp_DSO_TRUE$ac_delim
136750 OMPI_BUILD_btl_tcp_DSO_FALSE!$OMPI_BUILD_btl_tcp_DSO_FALSE$ac_delim
136751 MCA_btl_ALL_COMPONENTS!$MCA_btl_ALL_COMPONENTS$ac_delim
136752 MCA_btl_STATIC_COMPONENTS!$MCA_btl_STATIC_COMPONENTS$ac_delim
136753 MCA_btl_DSO_COMPONENTS!$MCA_btl_DSO_COMPONENTS$ac_delim
136754 MCA_btl_STATIC_LTLIBS!$MCA_btl_STATIC_LTLIBS$ac_delim
136755 MCA_btl_ALL_SUBDIRS!$MCA_btl_ALL_SUBDIRS$ac_delim
136756 MCA_btl_STATIC_SUBDIRS!$MCA_btl_STATIC_SUBDIRS$ac_delim
136757 MCA_btl_DSO_SUBDIRS!$MCA_btl_DSO_SUBDIRS$ac_delim
136758 OMPI_BUILD_coll_basic_DSO_TRUE!$OMPI_BUILD_coll_basic_DSO_TRUE$ac_delim
136759 OMPI_BUILD_coll_basic_DSO_FALSE!$OMPI_BUILD_coll_basic_DSO_FALSE$ac_delim
136760 OMPI_BUILD_coll_hierarch_DSO_TRUE!$OMPI_BUILD_coll_hierarch_DSO_TRUE$ac_delim
136761 OMPI_BUILD_coll_hierarch_DSO_FALSE!$OMPI_BUILD_coll_hierarch_DSO_FALSE$ac_delim
136762 OMPI_BUILD_coll_self_DSO_TRUE!$OMPI_BUILD_coll_self_DSO_TRUE$ac_delim
136763 OMPI_BUILD_coll_self_DSO_FALSE!$OMPI_BUILD_coll_self_DSO_FALSE$ac_delim
136764 OMPI_BUILD_coll_sm_DSO_TRUE!$OMPI_BUILD_coll_sm_DSO_TRUE$ac_delim
136765 OMPI_BUILD_coll_sm_DSO_FALSE!$OMPI_BUILD_coll_sm_DSO_FALSE$ac_delim
136766 OMPI_BUILD_coll_tuned_DSO_TRUE!$OMPI_BUILD_coll_tuned_DSO_TRUE$ac_delim
136767 OMPI_BUILD_coll_tuned_DSO_FALSE!$OMPI_BUILD_coll_tuned_DSO_FALSE$ac_delim
136768 MCA_coll_ALL_COMPONENTS!$MCA_coll_ALL_COMPONENTS$ac_delim
136769 MCA_coll_STATIC_COMPONENTS!$MCA_coll_STATIC_COMPONENTS$ac_delim
136770 MCA_coll_DSO_COMPONENTS!$MCA_coll_DSO_COMPONENTS$ac_delim
136771 MCA_coll_STATIC_LTLIBS!$MCA_coll_STATIC_LTLIBS$ac_delim
136772 MCA_coll_ALL_SUBDIRS!$MCA_coll_ALL_SUBDIRS$ac_delim
136773 MCA_coll_STATIC_SUBDIRS!$MCA_coll_STATIC_SUBDIRS$ac_delim
136774 MCA_coll_DSO_SUBDIRS!$MCA_coll_DSO_SUBDIRS$ac_delim
136775 OMPI_BUILD_common_sm_DSO_TRUE!$OMPI_BUILD_common_sm_DSO_TRUE$ac_delim
136776 OMPI_BUILD_common_sm_DSO_FALSE!$OMPI_BUILD_common_sm_DSO_FALSE$ac_delim
136777 MCA_common_ALL_COMPONENTS!$MCA_common_ALL_COMPONENTS$ac_delim
136778 MCA_common_STATIC_COMPONENTS!$MCA_common_STATIC_COMPONENTS$ac_delim
136779 MCA_common_DSO_COMPONENTS!$MCA_common_DSO_COMPONENTS$ac_delim
136780 MCA_common_STATIC_LTLIBS!$MCA_common_STATIC_LTLIBS$ac_delim
136781 MCA_common_ALL_SUBDIRS!$MCA_common_ALL_SUBDIRS$ac_delim
136782 MCA_common_STATIC_SUBDIRS!$MCA_common_STATIC_SUBDIRS$ac_delim
136783 MCA_common_DSO_SUBDIRS!$MCA_common_DSO_SUBDIRS$ac_delim
136784 OMPI_BUILD_io_romio_DSO_TRUE!$OMPI_BUILD_io_romio_DSO_TRUE$ac_delim
136785 OMPI_BUILD_io_romio_DSO_FALSE!$OMPI_BUILD_io_romio_DSO_FALSE$ac_delim
136786 MCA_io_ALL_COMPONENTS!$MCA_io_ALL_COMPONENTS$ac_delim
136787 MCA_io_STATIC_COMPONENTS!$MCA_io_STATIC_COMPONENTS$ac_delim
136788 MCA_io_DSO_COMPONENTS!$MCA_io_DSO_COMPONENTS$ac_delim
136789 MCA_io_STATIC_LTLIBS!$MCA_io_STATIC_LTLIBS$ac_delim
136790 MCA_io_ALL_SUBDIRS!$MCA_io_ALL_SUBDIRS$ac_delim
136791 MCA_io_STATIC_SUBDIRS!$MCA_io_STATIC_SUBDIRS$ac_delim
136792 MCA_io_DSO_SUBDIRS!$MCA_io_DSO_SUBDIRS$ac_delim
136793 OMPI_BUILD_mpool_sm_DSO_TRUE!$OMPI_BUILD_mpool_sm_DSO_TRUE$ac_delim
136794 OMPI_BUILD_mpool_sm_DSO_FALSE!$OMPI_BUILD_mpool_sm_DSO_FALSE$ac_delim
136795 mpool_gm_CFLAGS!$mpool_gm_CFLAGS$ac_delim
136796 mpool_gm_CPPFLAGS!$mpool_gm_CPPFLAGS$ac_delim
136797 mpool_gm_LDFLAGS!$mpool_gm_LDFLAGS$ac_delim
136798 mpool_gm_LIBS!$mpool_gm_LIBS$ac_delim
136799 OMPI_BUILD_mpool_gm_DSO_TRUE!$OMPI_BUILD_mpool_gm_DSO_TRUE$ac_delim
136800 OMPI_BUILD_mpool_gm_DSO_FALSE!$OMPI_BUILD_mpool_gm_DSO_FALSE$ac_delim
136801 mpool_mvapi_CFLAGS!$mpool_mvapi_CFLAGS$ac_delim
136802 mpool_mvapi_CPPFLAGS!$mpool_mvapi_CPPFLAGS$ac_delim
136803 mpool_mvapi_LDFLAGS!$mpool_mvapi_LDFLAGS$ac_delim
136804 mpool_mvapi_LIBS!$mpool_mvapi_LIBS$ac_delim
136805 OMPI_BUILD_mpool_mvapi_DSO_TRUE!$OMPI_BUILD_mpool_mvapi_DSO_TRUE$ac_delim
136806 OMPI_BUILD_mpool_mvapi_DSO_FALSE!$OMPI_BUILD_mpool_mvapi_DSO_FALSE$ac_delim
136807 mpool_openib_CFLAGS!$mpool_openib_CFLAGS$ac_delim
136808 mpool_openib_CPPFLAGS!$mpool_openib_CPPFLAGS$ac_delim
136809 mpool_openib_LDFLAGS!$mpool_openib_LDFLAGS$ac_delim
136810 mpool_openib_LIBS!$mpool_openib_LIBS$ac_delim
136811 OMPI_BUILD_mpool_openib_DSO_TRUE!$OMPI_BUILD_mpool_openib_DSO_TRUE$ac_delim
136812 OMPI_BUILD_mpool_openib_DSO_FALSE!$OMPI_BUILD_mpool_openib_DSO_FALSE$ac_delim
136813 MCA_mpool_ALL_COMPONENTS!$MCA_mpool_ALL_COMPONENTS$ac_delim
136814 MCA_mpool_STATIC_COMPONENTS!$MCA_mpool_STATIC_COMPONENTS$ac_delim
136815 MCA_mpool_DSO_COMPONENTS!$MCA_mpool_DSO_COMPONENTS$ac_delim
136816 MCA_mpool_STATIC_LTLIBS!$MCA_mpool_STATIC_LTLIBS$ac_delim
136817 MCA_mpool_ALL_SUBDIRS!$MCA_mpool_ALL_SUBDIRS$ac_delim
136818 MCA_mpool_STATIC_SUBDIRS!$MCA_mpool_STATIC_SUBDIRS$ac_delim
136819 MCA_mpool_DSO_SUBDIRS!$MCA_mpool_DSO_SUBDIRS$ac_delim
136820 OMPI_BUILD_osc_pt2pt_DSO_TRUE!$OMPI_BUILD_osc_pt2pt_DSO_TRUE$ac_delim
136821 OMPI_BUILD_osc_pt2pt_DSO_FALSE!$OMPI_BUILD_osc_pt2pt_DSO_FALSE$ac_delim
136822 MCA_osc_ALL_COMPONENTS!$MCA_osc_ALL_COMPONENTS$ac_delim
136823 MCA_osc_STATIC_COMPONENTS!$MCA_osc_STATIC_COMPONENTS$ac_delim
136824 MCA_osc_DSO_COMPONENTS!$MCA_osc_DSO_COMPONENTS$ac_delim
136825 MCA_osc_STATIC_LTLIBS!$MCA_osc_STATIC_LTLIBS$ac_delim
136826 MCA_osc_ALL_SUBDIRS!$MCA_osc_ALL_SUBDIRS$ac_delim
136827 MCA_osc_STATIC_SUBDIRS!$MCA_osc_STATIC_SUBDIRS$ac_delim
136828 MCA_osc_DSO_SUBDIRS!$MCA_osc_DSO_SUBDIRS$ac_delim
136829 OMPI_BUILD_pml_ob1_DSO_TRUE!$OMPI_BUILD_pml_ob1_DSO_TRUE$ac_delim
136830 OMPI_BUILD_pml_ob1_DSO_FALSE!$OMPI_BUILD_pml_ob1_DSO_FALSE$ac_delim
136831 MCA_pml_ALL_COMPONENTS!$MCA_pml_ALL_COMPONENTS$ac_delim
136832 MCA_pml_STATIC_COMPONENTS!$MCA_pml_STATIC_COMPONENTS$ac_delim
136833 MCA_pml_DSO_COMPONENTS!$MCA_pml_DSO_COMPONENTS$ac_delim
136834 MCA_pml_STATIC_LTLIBS!$MCA_pml_STATIC_LTLIBS$ac_delim
136835 MCA_pml_ALL_SUBDIRS!$MCA_pml_ALL_SUBDIRS$ac_delim
136836 MCA_pml_STATIC_SUBDIRS!$MCA_pml_STATIC_SUBDIRS$ac_delim
136837 MCA_pml_DSO_SUBDIRS!$MCA_pml_DSO_SUBDIRS$ac_delim
136838 OMPI_BUILD_rcache_rb_DSO_TRUE!$OMPI_BUILD_rcache_rb_DSO_TRUE$ac_delim
136839 OMPI_BUILD_rcache_rb_DSO_FALSE!$OMPI_BUILD_rcache_rb_DSO_FALSE$ac_delim
136840 MCA_rcache_ALL_COMPONENTS!$MCA_rcache_ALL_COMPONENTS$ac_delim
136841 MCA_rcache_STATIC_COMPONENTS!$MCA_rcache_STATIC_COMPONENTS$ac_delim
136842 _ACEOF
136844 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
136845 break
136846 elif $ac_last_try; then
136847 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
136848 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
136849 { (exit 1); exit 1; }; }
136851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
136855 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
136856 if test -n "$ac_eof"; then
136857 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
136858 ac_eof=`expr $ac_eof + 1`
136861 cat >>$CONFIG_STATUS <<_ACEOF
136862 cat >"\$tmp/subs-7.sed" <<\CEOF$ac_eof
136863 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
136864 _ACEOF
136865 sed '
136866 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
136867 s/^/s,@/; s/!/@,|#_!!_#|/
136870 s/'"$ac_delim"'$/,g/; t
136871 s/$/\\/; p
136872 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
136873 ' >>$CONFIG_STATUS <conf$$subs.sed
136874 rm -f conf$$subs.sed
136875 cat >>$CONFIG_STATUS <<_ACEOF
136876 CEOF$ac_eof
136877 _ACEOF
136880 ac_delim='%!_!# '
136881 for ac_last_try in false false false false false :; do
136882 cat >conf$$subs.sed <<_ACEOF
136883 MCA_rcache_DSO_COMPONENTS!$MCA_rcache_DSO_COMPONENTS$ac_delim
136884 MCA_rcache_STATIC_LTLIBS!$MCA_rcache_STATIC_LTLIBS$ac_delim
136885 MCA_rcache_ALL_SUBDIRS!$MCA_rcache_ALL_SUBDIRS$ac_delim
136886 MCA_rcache_STATIC_SUBDIRS!$MCA_rcache_STATIC_SUBDIRS$ac_delim
136887 MCA_rcache_DSO_SUBDIRS!$MCA_rcache_DSO_SUBDIRS$ac_delim
136888 OMPI_BUILD_topo_unity_DSO_TRUE!$OMPI_BUILD_topo_unity_DSO_TRUE$ac_delim
136889 OMPI_BUILD_topo_unity_DSO_FALSE!$OMPI_BUILD_topo_unity_DSO_FALSE$ac_delim
136890 MCA_topo_ALL_COMPONENTS!$MCA_topo_ALL_COMPONENTS$ac_delim
136891 MCA_topo_STATIC_COMPONENTS!$MCA_topo_STATIC_COMPONENTS$ac_delim
136892 MCA_topo_DSO_COMPONENTS!$MCA_topo_DSO_COMPONENTS$ac_delim
136893 MCA_topo_STATIC_LTLIBS!$MCA_topo_STATIC_LTLIBS$ac_delim
136894 MCA_topo_ALL_SUBDIRS!$MCA_topo_ALL_SUBDIRS$ac_delim
136895 MCA_topo_STATIC_SUBDIRS!$MCA_topo_STATIC_SUBDIRS$ac_delim
136896 MCA_topo_DSO_SUBDIRS!$MCA_topo_DSO_SUBDIRS$ac_delim
136897 MCA_ompi_FRAMEWORKS!$MCA_ompi_FRAMEWORKS$ac_delim
136898 MCA_ompi_FRAMEWORKS_SUBDIRS!$MCA_ompi_FRAMEWORKS_SUBDIRS$ac_delim
136899 MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS!$MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS$ac_delim
136900 MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS!$MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS$ac_delim
136901 MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS!$MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS$ac_delim
136902 MCA_ompi_FRAMEWORK_LIBS!$MCA_ompi_FRAMEWORK_LIBS$ac_delim
136903 MCA_pml_DIRECT_CALL_HEADER!$MCA_pml_DIRECT_CALL_HEADER$ac_delim
136904 MCA_PROJECT_SUBDIRS!$MCA_PROJECT_SUBDIRS$ac_delim
136905 OMPI_LIBEVENT_SOURCES!$OMPI_LIBEVENT_SOURCES$ac_delim
136906 LTDLINCL!$LTDLINCL$ac_delim
136907 LIBLTDL!$LIBLTDL$ac_delim
136908 ECHO!$ECHO$ac_delim
136909 AR!$AR$ac_delim
136910 RANLIB!$RANLIB$ac_delim
136911 LIBTOOL!$LIBTOOL$ac_delim
136912 LIBLTDL_SUBDIR!$LIBLTDL_SUBDIR$ac_delim
136913 LIBLTDL_LTLIB!$LIBLTDL_LTLIB$ac_delim
136914 OPAL_LTDL_CPPFLAGS!$OPAL_LTDL_CPPFLAGS$ac_delim
136915 WANT_LIBLTDL_TRUE!$WANT_LIBLTDL_TRUE$ac_delim
136916 WANT_LIBLTDL_FALSE!$WANT_LIBLTDL_FALSE$ac_delim
136917 CFLAGS_WITHOUT_OPTFLAGS!$CFLAGS_WITHOUT_OPTFLAGS$ac_delim
136918 TOTALVIEW_DEBUG_FLAGS!$TOTALVIEW_DEBUG_FLAGS$ac_delim
136919 CXXCPPFLAGS!$CXXCPPFLAGS$ac_delim
136920 OPAL_WRAPPER_EXTRA_CPPFLAGS!$OPAL_WRAPPER_EXTRA_CPPFLAGS$ac_delim
136921 OPAL_WRAPPER_EXTRA_CFLAGS!$OPAL_WRAPPER_EXTRA_CFLAGS$ac_delim
136922 OPAL_WRAPPER_EXTRA_CXXFLAGS!$OPAL_WRAPPER_EXTRA_CXXFLAGS$ac_delim
136923 OPAL_WRAPPER_EXTRA_LDFLAGS!$OPAL_WRAPPER_EXTRA_LDFLAGS$ac_delim
136924 OPAL_WRAPPER_EXTRA_LIBS!$OPAL_WRAPPER_EXTRA_LIBS$ac_delim
136925 OPAL_WRAPPER_EXTRA_INCLUDES!$OPAL_WRAPPER_EXTRA_INCLUDES$ac_delim
136926 ORTE_WRAPPER_EXTRA_CPPFLAGS!$ORTE_WRAPPER_EXTRA_CPPFLAGS$ac_delim
136927 ORTE_WRAPPER_EXTRA_CFLAGS!$ORTE_WRAPPER_EXTRA_CFLAGS$ac_delim
136928 ORTE_WRAPPER_EXTRA_CXXFLAGS!$ORTE_WRAPPER_EXTRA_CXXFLAGS$ac_delim
136929 ORTE_WRAPPER_EXTRA_LDFLAGS!$ORTE_WRAPPER_EXTRA_LDFLAGS$ac_delim
136930 ORTE_WRAPPER_EXTRA_LIBS!$ORTE_WRAPPER_EXTRA_LIBS$ac_delim
136931 ORTE_WRAPPER_EXTRA_INCLUDES!$ORTE_WRAPPER_EXTRA_INCLUDES$ac_delim
136932 OMPI_WRAPPER_EXTRA_CPPFLAGS!$OMPI_WRAPPER_EXTRA_CPPFLAGS$ac_delim
136933 OMPI_WRAPPER_EXTRA_CFLAGS!$OMPI_WRAPPER_EXTRA_CFLAGS$ac_delim
136934 OMPI_WRAPPER_EXTRA_CXXFLAGS!$OMPI_WRAPPER_EXTRA_CXXFLAGS$ac_delim
136935 OMPI_WRAPPER_EXTRA_FFLAGS!$OMPI_WRAPPER_EXTRA_FFLAGS$ac_delim
136936 OMPI_WRAPPER_EXTRA_FCFLAGS!$OMPI_WRAPPER_EXTRA_FCFLAGS$ac_delim
136937 OMPI_WRAPPER_EXTRA_LDFLAGS!$OMPI_WRAPPER_EXTRA_LDFLAGS$ac_delim
136938 OMPI_WRAPPER_EXTRA_LIBS!$OMPI_WRAPPER_EXTRA_LIBS$ac_delim
136939 OMPI_WRAPPER_EXTRA_INCLUDES!$OMPI_WRAPPER_EXTRA_INCLUDES$ac_delim
136940 OMPI_WRAPPER_CXX_LIB!$OMPI_WRAPPER_CXX_LIB$ac_delim
136941 OMPI_WRAPPER_CXX_REQUIRED_FILE!$OMPI_WRAPPER_CXX_REQUIRED_FILE$ac_delim
136942 OMPI_WRAPPER_F77_REQUIRED_FILE!$OMPI_WRAPPER_F77_REQUIRED_FILE$ac_delim
136943 OMPI_WRAPPER_F90_REQUIRED_FILE!$OMPI_WRAPPER_F90_REQUIRED_FILE$ac_delim
136944 WRAPPER_EXTRA_CFLAGS!$WRAPPER_EXTRA_CFLAGS$ac_delim
136945 WRAPPER_EXTRA_CXXFLAGS!$WRAPPER_EXTRA_CXXFLAGS$ac_delim
136946 WRAPPER_EXTRA_FFLAGS!$WRAPPER_EXTRA_FFLAGS$ac_delim
136947 WRAPPER_EXTRA_FCFLAGS!$WRAPPER_EXTRA_FCFLAGS$ac_delim
136948 WRAPPER_EXTRA_LDFLAGS!$WRAPPER_EXTRA_LDFLAGS$ac_delim
136949 WRAPPER_EXTRA_LIBS!$WRAPPER_EXTRA_LIBS$ac_delim
136950 OPAL_PREFIX!$OPAL_PREFIX$ac_delim
136951 OPAL_EXEC_PREFIX!$OPAL_EXEC_PREFIX$ac_delim
136952 OPAL_BINDIR!$OPAL_BINDIR$ac_delim
136953 OPAL_SBINDIR!$OPAL_SBINDIR$ac_delim
136954 OPAL_LIBEXECDIR!$OPAL_LIBEXECDIR$ac_delim
136955 OPAL_DATADIR!$OPAL_DATADIR$ac_delim
136956 OPAL_SYSCONFDIR!$OPAL_SYSCONFDIR$ac_delim
136957 OPAL_SHAREDSTATEDIR!$OPAL_SHAREDSTATEDIR$ac_delim
136958 OPAL_LOCALSTATEDIR!$OPAL_LOCALSTATEDIR$ac_delim
136959 OPAL_LIBDIR!$OPAL_LIBDIR$ac_delim
136960 OPAL_INCLUDEDIR!$OPAL_INCLUDEDIR$ac_delim
136961 OPAL_INFODIR!$OPAL_INFODIR$ac_delim
136962 OPAL_MANDIR!$OPAL_MANDIR$ac_delim
136963 LIBOBJS!$LIBOBJS$ac_delim
136964 LTLIBOBJS!$LTLIBOBJS$ac_delim
136965 _ACEOF
136967 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
136968 break
136969 elif $ac_last_try; then
136970 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
136971 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
136972 { (exit 1); exit 1; }; }
136974 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
136978 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
136979 if test -n "$ac_eof"; then
136980 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
136981 ac_eof=`expr $ac_eof + 1`
136984 cat >>$CONFIG_STATUS <<_ACEOF
136985 cat >"\$tmp/subs-8.sed" <<\CEOF$ac_eof
136986 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
136987 _ACEOF
136988 sed '
136989 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
136990 s/^/s,@/; s/!/@,|#_!!_#|/
136993 s/'"$ac_delim"'$/,g/; t
136994 s/$/\\/; p
136995 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
136996 ' >>$CONFIG_STATUS <conf$$subs.sed
136997 rm -f conf$$subs.sed
136998 cat >>$CONFIG_STATUS <<_ACEOF
137000 s/|#_!!_#|//g
137001 CEOF$ac_eof
137002 _ACEOF
137005 # VPATH may cause trouble with some makes, so we remove $(srcdir),
137006 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
137007 # trailing colons and then remove the whole line if VPATH becomes empty
137008 # (actually we leave an empty line to preserve line numbers).
137009 if test "x$srcdir" = x.; then
137010 ac_vpsub='/^[ ]*VPATH[ ]*=/{
137011 s/:*\$(srcdir):*/:/
137012 s/:*\${srcdir}:*/:/
137013 s/:*@srcdir@:*/:/
137014 s/^\([^=]*=[ ]*\):*/\1/
137015 s/:*$//
137016 s/^[^=]*=[ ]*$//
137020 cat >>$CONFIG_STATUS <<\_ACEOF
137021 fi # test -n "$CONFIG_FILES"
137024 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
137026 case $ac_tag in
137027 :[FHLC]) ac_mode=$ac_tag; continue;;
137029 case $ac_mode$ac_tag in
137030 :[FHL]*:*);;
137031 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
137032 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
137033 { (exit 1); exit 1; }; };;
137034 :[FH]-) ac_tag=-:-;;
137035 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
137037 ac_save_IFS=$IFS
137038 IFS=:
137039 set x $ac_tag
137040 IFS=$ac_save_IFS
137041 shift
137042 ac_file=$1
137043 shift
137045 case $ac_mode in
137046 :L) ac_source=$1;;
137047 :[FH])
137048 ac_file_inputs=
137049 for ac_f
137051 case $ac_f in
137052 -) ac_f="$tmp/stdin";;
137053 *) # Look for the file first in the build tree, then in the source tree
137054 # (if the path is not absolute). The absolute path cannot be DOS-style,
137055 # because $ac_f cannot contain `:'.
137056 test -f "$ac_f" ||
137057 case $ac_f in
137058 [\\/$]*) false;;
137059 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
137060 esac ||
137061 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
137062 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
137063 { (exit 1); exit 1; }; };;
137065 ac_file_inputs="$ac_file_inputs $ac_f"
137068 # Let's still pretend it is `configure' which instantiates (i.e., don't
137069 # use $as_me), people would be surprised to read:
137070 # /* config.h. Generated by config.status. */
137071 configure_input="Generated from "`IFS=:
137072 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
137073 if test x"$ac_file" != x-; then
137074 configure_input="$ac_file. $configure_input"
137075 { echo "$as_me:$LINENO: creating $ac_file" >&5
137076 echo "$as_me: creating $ac_file" >&6;}
137079 case $ac_tag in
137080 *:-:* | *:-) cat >"$tmp/stdin";;
137085 ac_dir=`$as_dirname -- "$ac_file" ||
137086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
137087 X"$ac_file" : 'X\(//\)[^/]' \| \
137088 X"$ac_file" : 'X\(//\)$' \| \
137089 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
137090 echo X"$ac_file" |
137091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
137092 s//\1/
137095 /^X\(\/\/\)[^/].*/{
137096 s//\1/
137099 /^X\(\/\/\)$/{
137100 s//\1/
137103 /^X\(\/\).*/{
137104 s//\1/
137107 s/.*/./; q'`
137108 { as_dir="$ac_dir"
137109 case $as_dir in #(
137110 -*) as_dir=./$as_dir;;
137112 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
137113 as_dirs=
137114 while :; do
137115 case $as_dir in #(
137116 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
137117 *) as_qdir=$as_dir;;
137119 as_dirs="'$as_qdir' $as_dirs"
137120 as_dir=`$as_dirname -- "$as_dir" ||
137121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
137122 X"$as_dir" : 'X\(//\)[^/]' \| \
137123 X"$as_dir" : 'X\(//\)$' \| \
137124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
137125 echo X"$as_dir" |
137126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
137127 s//\1/
137130 /^X\(\/\/\)[^/].*/{
137131 s//\1/
137134 /^X\(\/\/\)$/{
137135 s//\1/
137138 /^X\(\/\).*/{
137139 s//\1/
137142 s/.*/./; q'`
137143 test -d "$as_dir" && break
137145 test -z "$as_dirs" || eval "mkdir $as_dirs"
137146 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
137147 echo "$as_me: error: cannot create directory $as_dir" >&2;}
137148 { (exit 1); exit 1; }; }; }
137149 ac_builddir=.
137151 case "$ac_dir" in
137152 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
137154 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
137155 # A ".." for each directory in $ac_dir_suffix.
137156 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
137157 case $ac_top_builddir_sub in
137158 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
137159 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
137160 esac ;;
137162 ac_abs_top_builddir=$ac_pwd
137163 ac_abs_builddir=$ac_pwd$ac_dir_suffix
137164 # for backward compatibility:
137165 ac_top_builddir=$ac_top_build_prefix
137167 case $srcdir in
137168 .) # We are building in place.
137169 ac_srcdir=.
137170 ac_top_srcdir=$ac_top_builddir_sub
137171 ac_abs_top_srcdir=$ac_pwd ;;
137172 [\\/]* | ?:[\\/]* ) # Absolute name.
137173 ac_srcdir=$srcdir$ac_dir_suffix;
137174 ac_top_srcdir=$srcdir
137175 ac_abs_top_srcdir=$srcdir ;;
137176 *) # Relative name.
137177 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
137178 ac_top_srcdir=$ac_top_build_prefix$srcdir
137179 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
137181 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
137184 case $ac_mode in
137187 # CONFIG_FILE
137190 case $INSTALL in
137191 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
137192 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
137194 _ACEOF
137196 cat >>$CONFIG_STATUS <<\_ACEOF
137197 # If the template does not know about datarootdir, expand it.
137198 # FIXME: This hack should be removed a few years after 2.60.
137199 ac_datarootdir_hack=; ac_datarootdir_seen=
137201 case `sed -n '/datarootdir/ {
137205 /@datadir@/p
137206 /@docdir@/p
137207 /@infodir@/p
137208 /@localedir@/p
137209 /@mandir@/p
137210 ' $ac_file_inputs` in
137211 *datarootdir*) ac_datarootdir_seen=yes;;
137212 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
137213 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
137214 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
137215 _ACEOF
137216 cat >>$CONFIG_STATUS <<_ACEOF
137217 ac_datarootdir_hack='
137218 s&@datadir@&$datadir&g
137219 s&@docdir@&$docdir&g
137220 s&@infodir@&$infodir&g
137221 s&@localedir@&$localedir&g
137222 s&@mandir@&$mandir&g
137223 s&\\\${datarootdir}&$datarootdir&g' ;;
137225 _ACEOF
137227 # Neutralize VPATH when `$srcdir' = `.'.
137228 # Shell code in configure.ac might set extrasub.
137229 # FIXME: do we really want to maintain this feature?
137230 cat >>$CONFIG_STATUS <<_ACEOF
137231 sed "$ac_vpsub
137232 $extrasub
137233 _ACEOF
137234 cat >>$CONFIG_STATUS <<\_ACEOF
137236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
137237 s&@configure_input@&$configure_input&;t t
137238 s&@top_builddir@&$ac_top_builddir_sub&;t t
137239 s&@srcdir@&$ac_srcdir&;t t
137240 s&@abs_srcdir@&$ac_abs_srcdir&;t t
137241 s&@top_srcdir@&$ac_top_srcdir&;t t
137242 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
137243 s&@builddir@&$ac_builddir&;t t
137244 s&@abs_builddir@&$ac_abs_builddir&;t t
137245 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
137246 s&@INSTALL@&$ac_INSTALL&;t t
137247 $ac_datarootdir_hack
137248 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" | sed -f "$tmp/subs-6.sed" | sed -f "$tmp/subs-7.sed" | sed -f "$tmp/subs-8.sed" >$tmp/out
137250 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
137251 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
137252 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
137253 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
137254 which seems to be undefined. Please make sure it is defined." >&5
137255 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
137256 which seems to be undefined. Please make sure it is defined." >&2;}
137258 rm -f "$tmp/stdin"
137259 case $ac_file in
137260 -) cat "$tmp/out"; rm -f "$tmp/out";;
137261 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
137266 # CONFIG_HEADER
137268 _ACEOF
137270 # Transform confdefs.h into a sed script `conftest.defines', that
137271 # substitutes the proper values into config.h.in to produce config.h.
137272 rm -f conftest.defines conftest.tail
137273 # First, append a space to every undef/define line, to ease matching.
137274 echo 's/$/ /' >conftest.defines
137275 # Then, protect against being on the right side of a sed subst, or in
137276 # an unquoted here document, in config.status. If some macros were
137277 # called several times there might be several #defines for the same
137278 # symbol, which is useless. But do not sort them, since the last
137279 # AC_DEFINE must be honored.
137280 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
137281 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
137282 # NAME is the cpp macro being defined, VALUE is the value it is being given.
137283 # PARAMS is the parameter list in the macro definition--in most cases, it's
137284 # just an empty string.
137285 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
137286 ac_dB='\\)[ (].*,\\1define\\2'
137287 ac_dC=' '
137288 ac_dD=' ,'
137290 uniq confdefs.h |
137291 sed -n '
137292 t rset
137293 :rset
137294 s/^[ ]*#[ ]*define[ ][ ]*//
137298 s/[\\&,]/\\&/g
137299 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
137300 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
137301 ' >>conftest.defines
137303 # Remove the space that was appended to ease matching.
137304 # Then replace #undef with comments. This is necessary, for
137305 # example, in the case of _POSIX_SOURCE, which is predefined and required
137306 # on some systems where configure will not decide to define it.
137307 # (The regexp can be short, since the line contains either #define or #undef.)
137308 echo 's/ $//
137309 s,^[ #]*u.*,/* & */,' >>conftest.defines
137311 # Break up conftest.defines:
137312 ac_max_sed_lines=50
137314 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
137315 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
137316 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
137317 # et cetera.
137318 ac_in='$ac_file_inputs'
137319 ac_out='"$tmp/out1"'
137320 ac_nxt='"$tmp/out2"'
137322 while :
137324 # Write a here document:
137325 cat >>$CONFIG_STATUS <<_ACEOF
137326 # First, check the format of the line:
137327 cat >"\$tmp/defines.sed" <<\\CEOF
137328 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
137329 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
137332 _ACEOF
137333 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
137334 echo 'CEOF
137335 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
137336 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
137337 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
137338 grep . conftest.tail >/dev/null || break
137339 rm -f conftest.defines
137340 mv conftest.tail conftest.defines
137342 rm -f conftest.defines conftest.tail
137344 echo "ac_result=$ac_in" >>$CONFIG_STATUS
137345 cat >>$CONFIG_STATUS <<\_ACEOF
137346 if test x"$ac_file" != x-; then
137347 echo "/* $configure_input */" >"$tmp/config.h"
137348 cat "$ac_result" >>"$tmp/config.h"
137349 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
137350 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
137351 echo "$as_me: $ac_file is unchanged" >&6;}
137353 rm -f $ac_file
137354 mv "$tmp/config.h" $ac_file
137357 echo "/* $configure_input */"
137358 cat "$ac_result"
137360 rm -f "$tmp/out12"
137361 # Compute $ac_file's index in $config_headers.
137362 _am_stamp_count=1
137363 for _am_header in $config_headers :; do
137364 case $_am_header in
137365 $ac_file | $ac_file:* )
137366 break ;;
137368 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
137371 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
137372 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
137373 X$ac_file : 'X\(//\)[^/]' \| \
137374 X$ac_file : 'X\(//\)$' \| \
137375 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
137376 echo X$ac_file |
137377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
137378 s//\1/
137381 /^X\(\/\/\)[^/].*/{
137382 s//\1/
137385 /^X\(\/\/\)$/{
137386 s//\1/
137389 /^X\(\/\).*/{
137390 s//\1/
137393 s/.*/./; q'`/stamp-h$_am_stamp_count
137397 # CONFIG_LINK
137400 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
137401 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
137403 if test ! -r "$srcdir/$ac_source"; then
137404 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
137405 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
137406 { (exit 1); exit 1; }; }
137408 rm -f "$ac_file"
137410 # Try a relative symlink, then a hard link, then a copy.
137411 case $srcdir in
137412 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
137413 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
137415 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
137416 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
137417 cp -p "$srcdir/$ac_source" "$ac_file" ||
137418 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
137419 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
137420 { (exit 1); exit 1; }; }
137422 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
137423 echo "$as_me: executing $ac_file commands" >&6;}
137428 case $ac_file$ac_mode in
137429 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
137430 # Strip MF so we end up with the name of the file.
137431 mf=`echo "$mf" | sed -e 's/:.*$//'`
137432 # Check whether this is an Automake generated Makefile or not.
137433 # We used to match only the files named `Makefile.in', but
137434 # some people rename them; so instead we look at the file content.
137435 # Grep'ing the first line is not enough: some people post-process
137436 # each Makefile.in and add a new line on top of each file to say so.
137437 # So let's grep whole file.
137438 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
137439 dirpart=`$as_dirname -- "$mf" ||
137440 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
137441 X"$mf" : 'X\(//\)[^/]' \| \
137442 X"$mf" : 'X\(//\)$' \| \
137443 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
137444 echo X"$mf" |
137445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
137446 s//\1/
137449 /^X\(\/\/\)[^/].*/{
137450 s//\1/
137453 /^X\(\/\/\)$/{
137454 s//\1/
137457 /^X\(\/\).*/{
137458 s//\1/
137461 s/.*/./; q'`
137463 continue
137465 # Extract the definition of DEPDIR, am__include, and am__quote
137466 # from the Makefile without running `make'.
137467 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
137468 test -z "$DEPDIR" && continue
137469 am__include=`sed -n 's/^am__include = //p' < "$mf"`
137470 test -z "am__include" && continue
137471 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
137472 # When using ansi2knr, U may be empty or an underscore; expand it
137473 U=`sed -n 's/^U = //p' < "$mf"`
137474 # Find all dependency output files, they are included files with
137475 # $(DEPDIR) in their names. We invoke sed twice because it is the
137476 # simplest approach to changing $(DEPDIR) to its actual value in the
137477 # expansion.
137478 for file in `sed -n "
137479 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
137480 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
137481 # Make sure the directory exists.
137482 test -f "$dirpart/$file" && continue
137483 fdir=`$as_dirname -- "$file" ||
137484 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
137485 X"$file" : 'X\(//\)[^/]' \| \
137486 X"$file" : 'X\(//\)$' \| \
137487 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
137488 echo X"$file" |
137489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
137490 s//\1/
137493 /^X\(\/\/\)[^/].*/{
137494 s//\1/
137497 /^X\(\/\/\)$/{
137498 s//\1/
137501 /^X\(\/\).*/{
137502 s//\1/
137505 s/.*/./; q'`
137506 { as_dir=$dirpart/$fdir
137507 case $as_dir in #(
137508 -*) as_dir=./$as_dir;;
137510 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
137511 as_dirs=
137512 while :; do
137513 case $as_dir in #(
137514 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
137515 *) as_qdir=$as_dir;;
137517 as_dirs="'$as_qdir' $as_dirs"
137518 as_dir=`$as_dirname -- "$as_dir" ||
137519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
137520 X"$as_dir" : 'X\(//\)[^/]' \| \
137521 X"$as_dir" : 'X\(//\)$' \| \
137522 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
137523 echo X"$as_dir" |
137524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
137525 s//\1/
137528 /^X\(\/\/\)[^/].*/{
137529 s//\1/
137532 /^X\(\/\/\)$/{
137533 s//\1/
137536 /^X\(\/\).*/{
137537 s//\1/
137540 s/.*/./; q'`
137541 test -d "$as_dir" && break
137543 test -z "$as_dirs" || eval "mkdir $as_dirs"
137544 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
137545 echo "$as_me: error: cannot create directory $as_dir" >&2;}
137546 { (exit 1); exit 1; }; }; }
137547 # echo "creating $dirpart/$file"
137548 echo '# dummy' > "$dirpart/$file"
137552 "pml-direct":C) if test -f "ompi/mca/pml/pml_direct_call"; then
137553 diff "ompi/mca/pml/pml_direct_call.h" "ompi/mca/pml/pml_direct_call.h.tmp" > /dev/null 2>&1
137554 if test "$?" != "0"; then
137555 cp "ompi/mca/pml/pml_direct_call.h.tmp" "ompi/mca/pml/pml_direct_call.h"
137556 echo "config.status: regenerating ompi/mca/pml/pml_direct_call.h"
137558 echo "config.status: ompi/mca/pml/pml_direct_call.h unchanged"
137561 cp "ompi/mca/pml/pml_direct_call.h.tmp" "ompi/mca/pml/pml_direct_call.h"
137562 echo "config.status: creating ompi/mca/pml/pml_direct_call.h"
137564 rm ompi/mca/pml/pml_direct_call.h.tmp ;;
137567 done # for ac_tag
137570 { (exit 0); exit 0; }
137571 _ACEOF
137572 chmod +x $CONFIG_STATUS
137573 ac_clean_files=$ac_clean_files_save
137576 # configure is writing to config.log, and then calls config.status.
137577 # config.status does its own redirection, appending to config.log.
137578 # Unfortunately, on DOS this fails, as config.log is still kept open
137579 # by configure, so config.status won't be able to write to it; its
137580 # output is simply discarded. So we exec the FD to /dev/null,
137581 # effectively closing config.log, so it can be properly (re)opened and
137582 # appended to by config.status. When coming back to configure, we
137583 # need to make the FD available again.
137584 if test "$no_create" != yes; then
137585 ac_cs_success=:
137586 ac_config_status_args=
137587 test "$silent" = yes &&
137588 ac_config_status_args="$ac_config_status_args --quiet"
137589 exec 5>/dev/null
137590 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
137591 exec 5>>config.log
137592 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
137593 # would make configure fail if this is the last instruction.
137594 $ac_cs_success || { (exit 1); exit 1; }