Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
afb4cf25
Commit
afb4cf25
authored
7 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Use AS_FOR instead of for loop.
parent
066a0de9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure
+54
-48
54 additions, 48 deletions
configure
m4/acx_lang_check_include.m4
+11
-12
11 additions, 12 deletions
m4/acx_lang_check_include.m4
m4/acx_option_search_libs.m4
+9
-10
9 additions, 10 deletions
m4/acx_option_search_libs.m4
with
74 additions
and
70 deletions
configure
+
54
−
48
View file @
afb4cf25
...
...
@@ -28408,15 +28408,16 @@ $as_echo_n "checking for mpi.h extra include path... " >&6; }
else
ac_include_search_mpi_h_SAVE="$CPPFLAGS"
while :; do
for ac_incdir in ''; do
if test -z "$ac_incdir"; then :
for ac_incdir in ''
do :
if test -z "$ac_incdir"; then :
ac_res="none required"
CPPFLAGS="$MPI_C_INCLUDE $ac_include_search_mpi_h_SAVE"
CPPFLAGS="$MPI_C_INCLUDE $ac_include_search_mpi_h_SAVE"
else
ac_res="-I$ac_incdir"
CPPFLAGS="$MPI_C_INCLUDE $ac_res $ac_include_search_mpi_h_SAVE"
CPPFLAGS="$MPI_C_INCLUDE $ac_res $ac_include_search_mpi_h_SAVE"
fi
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$ac_includes_default
#include <mpi.h>
...
...
@@ -28426,16 +28427,16 @@ if ac_fn_c_try_compile "$LINENO"; then :
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if ${acx_cv_c_include_mpi_h+:} false; then :
if test -z "$ac_incdir"; then :
acx_cv_c_include_mpi_h="$MPI_C_INCLUDE"
if test -z "$ac_incdir"; then :
acx_cv_c_include_mpi_h="$MPI_C_INCLUDE"
else
acx_cv_c_include_mpi_h="$MPI_C_INCLUDE -I$ac_incdir"
acx_cv_c_include_mpi_h="$MPI_C_INCLUDE -I$ac_incdir"
fi
fi
if ${acx_cv_c_include_mpi_h+:} false; then :
if ${acx_cv_c_include_mpi_h+:} false; then :
break
fi
done
done
if ${acx_cv_c_include_mpi_h+:} false; then :
break
fi
...
...
@@ -28505,15 +28506,16 @@ return MPI_Waitall ();
return 0;
}
_ACEOF
for ac_lib in '' mpi mpich; do
if test -z "$ac_lib"; then :
for ac_lib in '' mpi mpich
do :
if test -z "$ac_lib"; then :
ac_res="none required"
LIBS="$MPI_C_LIB $acx_option_func_search_save_LIBS"
LIBS="$MPI_C_LIB $acx_option_func_search_save_LIBS"
else
ac_res="-l$ac_lib"
LIBS="$MPI_C_LIB $ac_res $acx_option_func_search_save_LIBS"
LIBS="$MPI_C_LIB $ac_res $acx_option_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
if ac_fn_c_try_link "$LINENO"; then :
if test x"$ac_res" = x"none required"; then :
acx_cv_option_search_MPI_Waitall_c="$MPI_C_LIB "
else
...
...
@@ -28522,10 +28524,10 @@ fi
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${acx_cv_option_search_MPI_Waitall_c+:} false; then :
if ${acx_cv_option_search_MPI_Waitall_c+:} false; then :
break
fi
done
done
rm conftest.$ac_ext
LIBS="$acx_option_func_search_save_LIBS"
if ${acx_cv_option_search_MPI_Waitall_c+:} false; then :
...
...
@@ -28630,15 +28632,16 @@ $as_echo_n "checking for mpif.h extra include path... " >&6; }
else
ac_include_search_mpif_h_SAVE="$FCFLAGS"
while :; do
for ac_incdir in ''; do
if test -z "$ac_incdir"; then :
for ac_incdir in ''
do :
if test -z "$ac_incdir"; then :
ac_res="none required"
FCFLAGS="$MPI_FC_INCLUDE $ac_include_search_mpif_h_SAVE"
FCFLAGS="$MPI_FC_INCLUDE $ac_include_search_mpif_h_SAVE"
else
ac_res="$FPP_INCOPT$ac_incdir"
FCFLAGS="$MPI_FC_INCLUDE $ac_res $ac_include_search_mpif_h_SAVE"
FCFLAGS="$MPI_FC_INCLUDE $ac_res $ac_include_search_mpif_h_SAVE"
fi
cat > conftest.$ac_ext <<_ACEOF
cat > conftest.$ac_ext <<_ACEOF
program conftest
include 'mpif.h'
end
...
...
@@ -28648,16 +28651,16 @@ if ac_fn_fc_try_compile "$LINENO"; then :
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if ${acx_cv_fc_include_mpif_h+:} false; then :
if test -z "$ac_incdir"; then :
acx_cv_fc_include_mpif_h="$MPI_FC_INCLUDE"
if test -z "$ac_incdir"; then :
acx_cv_fc_include_mpif_h="$MPI_FC_INCLUDE"
else
acx_cv_fc_include_mpif_h="$MPI_FC_INCLUDE $FPP_INCOPT$ac_incdir"
acx_cv_fc_include_mpif_h="$MPI_FC_INCLUDE $FPP_INCOPT$ac_incdir"
fi
fi
if ${acx_cv_fc_include_mpif_h+:} false; then :
if ${acx_cv_fc_include_mpif_h+:} false; then :
break
fi
done
done
if ${acx_cv_fc_include_mpif_h+:} false; then :
break
fi
...
...
@@ -28714,15 +28717,16 @@ else
call mpi_waitall
end
_ACEOF
for ac_lib in '' mpi mpi_f90 mpi_f77 mpich; do
if test -z "$ac_lib"; then :
for ac_lib in '' mpi mpi_f90 mpi_f77 mpich
do :
if test -z "$ac_lib"; then :
ac_res="none required"
LIBS="$MPI_FC_LIB $acx_option_func_search_save_LIBS"
LIBS="$MPI_FC_LIB $acx_option_func_search_save_LIBS"
else
ac_res="-l$ac_lib"
LIBS="$MPI_FC_LIB $ac_res $acx_option_func_search_save_LIBS"
LIBS="$MPI_FC_LIB $ac_res $acx_option_func_search_save_LIBS"
fi
if ac_fn_fc_try_link "$LINENO"; then :
if ac_fn_fc_try_link "$LINENO"; then :
if test x"$ac_res" = x"none required"; then :
acx_cv_option_search_mpi_waitall_fc="$MPI_FC_LIB "
else
...
...
@@ -28731,10 +28735,10 @@ fi
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${acx_cv_option_search_mpi_waitall_fc+:} false; then :
if ${acx_cv_option_search_mpi_waitall_fc+:} false; then :
break
fi
done
done
rm conftest.$ac_ext
LIBS="$acx_option_func_search_save_LIBS"
if ${acx_cv_option_search_mpi_waitall_fc+:} false; then :
...
...
@@ -28746,15 +28750,16 @@ fi
call mpi_waitall
end
_ACEOF
for ac_lib in '' mpi mpi_f90 mpi_f77 mpich; do
if test -z "$ac_lib"; then :
for ac_lib in '' mpi mpi_f90 mpi_f77 mpich
do :
if test -z "$ac_lib"; then :
ac_res="none required"
LIBS="$MPI_FC_LIB -lmpi_f77 -lmpi $acx_option_func_search_save_LIBS"
LIBS="$MPI_FC_LIB -lmpi_f77 -lmpi $acx_option_func_search_save_LIBS"
else
ac_res="-l$ac_lib"
LIBS="$MPI_FC_LIB $ac_res -lmpi_f77 -lmpi $acx_option_func_search_save_LIBS"
LIBS="$MPI_FC_LIB $ac_res -lmpi_f77 -lmpi $acx_option_func_search_save_LIBS"
fi
if ac_fn_fc_try_link "$LINENO"; then :
if ac_fn_fc_try_link "$LINENO"; then :
if test x"$ac_res" = x"none required"; then :
acx_cv_option_search_mpi_waitall_fc="$MPI_FC_LIB -lmpi_f77 -lmpi"
else
...
...
@@ -28763,10 +28768,10 @@ fi
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${acx_cv_option_search_mpi_waitall_fc+:} false; then :
if ${acx_cv_option_search_mpi_waitall_fc+:} false; then :
break
fi
done
done
rm conftest.$ac_ext
LIBS="$acx_option_func_search_save_LIBS"
if ${acx_cv_option_search_mpi_waitall_fc+:} false; then :
...
...
@@ -28778,15 +28783,16 @@ fi
call mpi_waitall
end
_ACEOF
for ac_lib in '' mpi mpi_f90 mpi_f77 mpich; do
if test -z "$ac_lib"; then :
for ac_lib in '' mpi mpi_f90 mpi_f77 mpich
do :
if test -z "$ac_lib"; then :
ac_res="none required"
LIBS="$MPI_FC_LIB -lmpi $acx_option_func_search_save_LIBS"
LIBS="$MPI_FC_LIB -lmpi $acx_option_func_search_save_LIBS"
else
ac_res="-l$ac_lib"
LIBS="$MPI_FC_LIB $ac_res -lmpi $acx_option_func_search_save_LIBS"
LIBS="$MPI_FC_LIB $ac_res -lmpi $acx_option_func_search_save_LIBS"
fi
if ac_fn_fc_try_link "$LINENO"; then :
if ac_fn_fc_try_link "$LINENO"; then :
if test x"$ac_res" = x"none required"; then :
acx_cv_option_search_mpi_waitall_fc="$MPI_FC_LIB -lmpi"
else
...
...
@@ -28795,10 +28801,10 @@ fi
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${acx_cv_option_search_mpi_waitall_fc+:} false; then :
if ${acx_cv_option_search_mpi_waitall_fc+:} false; then :
break
fi
done
done
rm conftest.$ac_ext
LIBS="$acx_option_func_search_save_LIBS"
if ${acx_cv_option_search_mpi_waitall_fc+:} false; then :
This diff is collapsed.
Click to expand it.
m4/acx_lang_check_include.m4
+
11
−
12
View file @
afb4cf25
...
...
@@ -90,18 +90,17 @@ AC_DEFUN([ACX_GENERIC_CHECK_INCLUDE_PATHS_IFELSE],
[AS_VAR_SET([save_flags],["@S|@$1"])
while :; do
m4_foreach([ACX_IncSet],[$9],
[for ac_incdir in ''m4_ifval([$4],[ $4]); do
AS_IF([test -z "$ac_incdir"],
[ac_res="none required"
$1="m4_ifval(ACX_IncSet,ACX_IncSet )$8 AS_VAR_GET([save_flags])"],
[ac_res="$2$ac_incdir"
$1="m4_ifval(ACX_IncSet,ACX_IncSet )$8 $ac_res AS_VAR_GET([save_flags])"])
_ACX_LANG_CHECK_INCLUDE_IFELSE([$3],dnl
[AS_IF([test -z "$ac_incdir"],dnl
[AS_VAR_SET([acx_Include],["]m4_ifval(ACX_IncSet,ACX_IncSet )$8["])],dnl
[AS_VAR_SET([acx_Include],["]m4_ifval(ACX_IncSet,ACX_IncSet )[$8 $2$ac_incdir"])])],,[$7])
AS_VAR_SET_IF([acx_Include], [break])
done
[AS_FOR([AC_INCDIR],[ac_incdir],['']m4_ifval([$4],[ $4]),
[AS_IF([test -z "$ac_incdir"],
[ac_res="none required"
$1="m4_ifval(ACX_IncSet,ACX_IncSet )$8 AS_VAR_GET([save_flags])"],
[ac_res="$2$ac_incdir"
$1="m4_ifval(ACX_IncSet,ACX_IncSet )$8 $ac_res AS_VAR_GET([save_flags])"])
_ACX_LANG_CHECK_INCLUDE_IFELSE([$3],dnl
[AS_IF([test -z "$ac_incdir"],dnl
[AS_VAR_SET([acx_Include],["]m4_ifval(ACX_IncSet,ACX_IncSet )$8["])],dnl
[AS_VAR_SET([acx_Include],["]m4_ifval(ACX_IncSet,ACX_IncSet )[$8 $2$ac_incdir"])])],,[$7])
AS_VAR_SET_IF([acx_Include], [break])])
AS_VAR_SET_IF([acx_Include], [break])
])
break
...
...
This diff is collapsed.
Click to expand it.
m4/acx_option_search_libs.m4
+
9
−
10
View file @
afb4cf25
...
...
@@ -54,17 +54,16 @@ dnl is given or not.
AC_DEFUN([_ACX_OPTION_SEARCH_LIBS],
[acx_option_func_search_save_LIBS="$LIBS"
AC_LANG_CONFTEST([m4_ifval([$6],[AC_LANG_PROGRAM([$5],[$6])],[AC_LANG_CALL([$5], [$1])])])
for
ac_lib
in
'' $2
; do
AS_IF([test -z "
$ac_lib
"],
[ac_res="none required"
LIBS="m4_ifval([$4],[$4 ])m4_ifnblank($3,[$3 ])$acx_option_func_search_save_LIBS"],
[ac_res="-l
$ac_lib
"
LIBS="m4_ifval([$4],[$4 ])$ac_res m4_ifnblank($3,[$3 ])$acx_option_func_search_save_LIBS"])
AC_LINK_IFELSE([], [AS_IF([test x"$ac_res" = x"none required"],dnl
AS_FOR([AC_LIB],[
ac_lib
],[
'' $2
],
[
AS_IF([test -z "
]AC_LIB[
"],
[ac_res="none required"
LIBS="m4_ifval([$4],[$4 ])m4_ifnblank($3,[$3 ])$acx_option_func_search_save_LIBS"],
[ac_res="-l
]AC_LIB[
"
LIBS="m4_ifval([$4],[$4 ])$ac_res m4_ifnblank($3,[$3 ])$acx_option_func_search_save_LIBS"])
AC_LINK_IFELSE([], [AS_IF([test x"$ac_res" = x"none required"],dnl
[AS_VAR_SET([ac_Search],["]m4_ifval([$4],[$4 ])[$3"])],dnl
[AS_VAR_SET([ac_Search],["]m4_ifval([$4],[$4 ])[-l$ac_lib $3"])])])
AS_VAR_SET_IF([ac_Search], [break])
done
[AS_VAR_SET([ac_Search],["]m4_ifval([$4],[$4 ])[-l]AC_LIB[ $3"])])])
AS_VAR_SET_IF([ac_Search], [break])])
rm conftest.$ac_ext
LIBS="$acx_option_func_search_save_LIBS"])
dnl ACX_OPTION_SEARCH_LIBS(FUNCTION, SEARCH-LIBS,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment