Commit 82ff696a authored by Andreas Marek's avatar Andreas Marek

User can define his own default kernels

parent 3f456311
......@@ -757,6 +757,30 @@ m4_foreach_w([elpa_m4_type],elpa_m4_kernel_types,[
dnl the list of kernels is now assembled
dnl choosing a default kernel
m4_foreach_w([elpa_m4_kind],[real complex],[
AC_ARG_WITH([default-]elpa_m4_kind[-kernel], m4_expand([AS_HELP_STRING([--with-default-]elpa_m4_kind[-kernel]=KERNEL,
[set a specific ]elpa_m4_kind[ kernel as default kernel. Available kernels are:]
m4_foreach_w([elpa_m4_kernel],m4_expand(elpa_m4_[]elpa_m4_kind[]_kernels),[m4_bpatsubst(elpa_m4_kernel,elpa_m4_kind[]_,[]) ]))]),
[default_]elpa_m4_kind[_kernel="]elpa_m4_kind[_$withval"],[default_]elpa_m4_kind[_kernel=""])
#if test -n "$default_[]elpa_m4_kind[]_kernel" ; then
# found="no"
# m4_foreach_w([elpa_m4_otherkernel],m4_expand(elpa_m4_[]elpa_m4_kind[]_kernels),[
# if test "$default_]elpa_m4_kind[_kernel" = "]elpa_m4_otherkernel[" ; then
# use_[]elpa_m4_otherkernel[]=yes
# found="yes"
# else
# use_[]elpa_m4_otherkernel[]=no
# fi
# ])
# if test x"$found" = x"no" ; then
# AC_MSG_ERROR([Invalid kernel "$default_]elpa_m4_kind[_kernel" specified for --with-default-]elpa_m4_kind[-kernel])
# fi
# AC_DEFINE([WITH_DEFAULT_]m4_toupper(elpa_m4_kind)[_KERNEL],[1],[use specific ]elpa_m4_kind[ default kernel (set at compile time)])
#fi
])
m4_foreach_w([elpa_m4_kind],[real complex],[
m4_foreach_w([elpa_m4_kernel],
m4_foreach_w([elpa_m4_cand_kernel],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment