653 |
|
MPICC |
654 |
|
MPILIBS |
655 |
|
MPICXX |
656 |
+ |
LIBDL |
657 |
|
ac_ct_FC |
658 |
|
FCFLAGS |
659 |
|
FC |
4100 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4101 |
|
|
4102 |
|
|
4103 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 |
4104 |
+ |
$as_echo_n "checking for dlopen in -lc... " >&6; } |
4105 |
+ |
if test "${ac_cv_lib_c_dlopen+set}" = set; then : |
4106 |
+ |
$as_echo_n "(cached) " >&6 |
4107 |
+ |
else |
4108 |
+ |
ac_check_lib_save_LIBS=$LIBS |
4109 |
+ |
LIBS="-lc $LIBS" |
4110 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4111 |
+ |
/* end confdefs.h. */ |
4112 |
|
|
4113 |
+ |
/* Override any GCC internal prototype to avoid an error. |
4114 |
+ |
Use char because int might match the return type of a GCC |
4115 |
+ |
builtin and then its argument prototype would still apply. */ |
4116 |
+ |
#ifdef __cplusplus |
4117 |
+ |
extern "C" |
4118 |
+ |
#endif |
4119 |
+ |
char dlopen (); |
4120 |
+ |
int |
4121 |
+ |
main () |
4122 |
+ |
{ |
4123 |
+ |
return dlopen (); |
4124 |
+ |
; |
4125 |
+ |
return 0; |
4126 |
+ |
} |
4127 |
+ |
_ACEOF |
4128 |
+ |
if ac_fn_cxx_try_link "$LINENO"; then : |
4129 |
+ |
ac_cv_lib_c_dlopen=yes |
4130 |
+ |
else |
4131 |
+ |
ac_cv_lib_c_dlopen=no |
4132 |
+ |
fi |
4133 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
4134 |
+ |
conftest$ac_exeext conftest.$ac_ext |
4135 |
+ |
LIBS=$ac_check_lib_save_LIBS |
4136 |
+ |
fi |
4137 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 |
4138 |
+ |
$as_echo "$ac_cv_lib_c_dlopen" >&6; } |
4139 |
+ |
if test "x$ac_cv_lib_c_dlopen" = x""yes; then : |
4140 |
+ |
LIBDL="" |
4141 |
+ |
else |
4142 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
4143 |
+ |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
4144 |
+ |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
4145 |
+ |
$as_echo_n "(cached) " >&6 |
4146 |
+ |
else |
4147 |
+ |
ac_check_lib_save_LIBS=$LIBS |
4148 |
+ |
LIBS="-ldl $LIBS" |
4149 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4150 |
+ |
/* end confdefs.h. */ |
4151 |
|
|
4152 |
+ |
/* Override any GCC internal prototype to avoid an error. |
4153 |
+ |
Use char because int might match the return type of a GCC |
4154 |
+ |
builtin and then its argument prototype would still apply. */ |
4155 |
+ |
#ifdef __cplusplus |
4156 |
+ |
extern "C" |
4157 |
+ |
#endif |
4158 |
+ |
char dlopen (); |
4159 |
+ |
int |
4160 |
+ |
main () |
4161 |
+ |
{ |
4162 |
+ |
return dlopen (); |
4163 |
+ |
; |
4164 |
+ |
return 0; |
4165 |
+ |
} |
4166 |
+ |
_ACEOF |
4167 |
+ |
if ac_fn_cxx_try_link "$LINENO"; then : |
4168 |
+ |
ac_cv_lib_dl_dlopen=yes |
4169 |
+ |
else |
4170 |
+ |
ac_cv_lib_dl_dlopen=no |
4171 |
+ |
fi |
4172 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
4173 |
+ |
conftest$ac_exeext conftest.$ac_ext |
4174 |
+ |
LIBS=$ac_check_lib_save_LIBS |
4175 |
+ |
fi |
4176 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
4177 |
+ |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
4178 |
+ |
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
4179 |
+ |
LIBDL="-ldl" |
4180 |
+ |
fi |
4181 |
|
|
4182 |
+ |
fi |
4183 |
|
|
4184 |
|
|
4185 |
+ |
|
4186 |
+ |
|
4187 |
+ |
|
4188 |
+ |
|
4189 |
+ |
|
4190 |
|
for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++ |
4191 |
|
do |
4192 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |