| 4946 |
|
|
| 4947 |
|
|
| 4948 |
|
# clean out junk possibly left behind by a previous configuration |
| 4949 |
< |
rm -f src/utils/getopt.h |
| 4949 |
> |
rm -f src/getopt.h |
| 4950 |
|
# Check for getopt_long support |
| 4951 |
|
|
| 4952 |
|
for ac_header in getopt.h |
| 5286 |
|
*) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;; |
| 5287 |
|
esac |
| 5288 |
|
|
| 5289 |
< |
ac_config_links="$ac_config_links src/utils/getopt.h:src/utils/gnugetopt.h" |
| 5289 |
> |
ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h" |
| 5290 |
|
|
| 5291 |
|
fi |
| 5292 |
|
|
| 7232 |
|
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
| 7233 |
|
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
| 7234 |
|
MPI_LIB="-lmpi -llam" |
| 7235 |
+ |
fi |
| 7236 |
+ |
|
| 7237 |
+ |
fi |
| 7238 |
+ |
$as_unset ac_cv_lib_mpich_MPI_Init |
| 7239 |
+ |
if test x = x"$MPI_LIB"; then |
| 7240 |
+ |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
| 7241 |
+ |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
| 7242 |
+ |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
| 7243 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7244 |
+ |
else |
| 7245 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 7246 |
+ |
LIBS="-lmpich "-lpmpich" $LIBS" |
| 7247 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
| 7248 |
+ |
/* confdefs.h. */ |
| 7249 |
+ |
_ACEOF |
| 7250 |
+ |
cat confdefs.h >>conftest.$ac_ext |
| 7251 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
| 7252 |
+ |
/* end confdefs.h. */ |
| 7253 |
+ |
|
| 7254 |
+ |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7255 |
+ |
#ifdef __cplusplus |
| 7256 |
+ |
extern "C" |
| 7257 |
+ |
#endif |
| 7258 |
+ |
/* We use char because int might match the return type of a gcc2 |
| 7259 |
+ |
builtin and then its argument prototype would still apply. */ |
| 7260 |
+ |
char MPI_Init (); |
| 7261 |
+ |
int |
| 7262 |
+ |
main () |
| 7263 |
+ |
{ |
| 7264 |
+ |
MPI_Init (); |
| 7265 |
+ |
; |
| 7266 |
+ |
return 0; |
| 7267 |
+ |
} |
| 7268 |
+ |
_ACEOF |
| 7269 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7270 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7271 |
+ |
(eval $ac_link) 2>conftest.er1 |
| 7272 |
+ |
ac_status=$? |
| 7273 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7274 |
+ |
rm -f conftest.er1 |
| 7275 |
+ |
cat conftest.err >&5 |
| 7276 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7277 |
+ |
(exit $ac_status); } && |
| 7278 |
+ |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7279 |
+ |
|| test ! -s conftest.err' |
| 7280 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7281 |
+ |
(eval $ac_try) 2>&5 |
| 7282 |
+ |
ac_status=$? |
| 7283 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7284 |
+ |
(exit $ac_status); }; } && |
| 7285 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
| 7286 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7287 |
+ |
(eval $ac_try) 2>&5 |
| 7288 |
+ |
ac_status=$? |
| 7289 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7290 |
+ |
(exit $ac_status); }; }; then |
| 7291 |
+ |
ac_cv_lib_mpich_MPI_Init=yes |
| 7292 |
+ |
else |
| 7293 |
+ |
echo "$as_me: failed program was:" >&5 |
| 7294 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7295 |
+ |
|
| 7296 |
+ |
ac_cv_lib_mpich_MPI_Init=no |
| 7297 |
|
fi |
| 7298 |
+ |
rm -f conftest.err conftest.$ac_objext \ |
| 7299 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 7300 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 7301 |
+ |
fi |
| 7302 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
| 7303 |
+ |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
| 7304 |
+ |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
| 7305 |
+ |
MPI_LIB="-lmpich -lpmpich" |
| 7306 |
+ |
fi |
| 7307 |
|
|
| 7308 |
|
fi |
| 7309 |
|
|
| 8027 |
|
|
| 8028 |
|
ac_config_headers="$ac_config_headers src/config.h" |
| 8029 |
|
|
| 8030 |
< |
ac_config_files="$ac_config_files make/Makefile" |
| 8030 |
> |
ac_config_files="$ac_config_files make/Makefile src/utils/Makefile" |
| 8031 |
|
|
| 8032 |
|
|
| 8033 |
|
cat >confcache <<\_ACEOF |
| 8559 |
|
case "$ac_config_target" in |
| 8560 |
|
# Handling of arguments. |
| 8561 |
|
"make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; |
| 8562 |
< |
"src/utils/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/utils/getopt.h:src/utils/gnugetopt.h" ;; |
| 8562 |
> |
"src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; |
| 8563 |
> |
"src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;; |
| 8564 |
|
"src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 8565 |
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 8566 |
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |