Commit a4b7d4bd authored by Ron Rahaman's avatar Ron Rahaman
Browse files

Initial commit of configure.ac file

parent 13d3b897
AC_PREREQ([2.61])
AC_INIT([Nek5000], [1.0], [nek5000-users@lists.mcs.anl.gov])
#AM_INIT_AUTOMAKE
#LT_PREREQ([2.2])
#LT_INIT([dlopen])
AC_CONFIG_SRCDIR([Nek5000/core/drive1.f])
# C compiler checks
AC_PROG_CC
AC_PROG_CC_C_O
AC_CHECK_SIZEOF([int *]) # Get sizeof int*, set SIZEOF_INT_P
AC_CHECK_SIZEOF([long int]) # Get sizeof long int, set SIZEOF_LONG_INT
# F77 compiler checks
AC_PROG_F77 # Validate F77 compiler
AC_PROG_F77_C_O # Necessary for automake
AC_F77_LIBRARY_LDFLAGS # Determine -l and -L flags, append to $FLIBS
AC_F77_WRAPPERS # Discover how to call F77 funcs from C, set F77_FUNC macro
#AC_FC_PP_DEFINE # Discover flag to define F77 PP symbols (not all compilers use -D)
AC_ARG_ENABLE([timer],
[AS_HELP_STRING([--disable-timer], [disable runtime statistics @<:@default: enabled@:>@])],
[timer=${enableval}], [timer=yes])
AC_ARG_ENABLE([mpi-timer],
[AS_HELP_STRING([--enable-mpi-timer], [enable MPI runtime statistics @<:@default: disabled@:>@])],
[mpi_timer=${enableval}], [mpi_timer=no])
AC_ARG_ENABLE([mpi-io],
[AS_HELP_STRING([--enable-mpi-io], [use MPI-IO I/O kernel @<:@default: disabled@:>@])],
[mpi_io=${enableval}], [mpi_io=no])
AC_ARG_ENABLE([bgq],
[AS_HELP_STRING([--enable-bgq], [enable Blue Gene optimizations (BG/Q) @<:@default: disabled@:>@])],
[bgq=${enableval}], [bgq=no])
AC_ARG_ENABLE([xsmm],
[AS_HELP_STRING([--enable-xsmm], [use libxsmm for mxm @<:@default: disabled@:>@])],
[xsmm=${enableval}], [xsmm=no])
AC_ARG_ENABLE([cvode],
[AS_HELP_STRING([--enable-cvode], [use ODE solver from Sundials to solve for IFIELD>1 @<:@default: disabled@:>@])],
[cvode=${enableval}], [cvode=no])
AC_ARG_ENABLE([moab],
[AS_HELP_STRING([--enable-moab], [enable MOAB/CUBIT support @<:@default: disabled@:>@])],
[moab=${enableval}], [moab=no])
AC_ARG_ENABLE([neknek],
[AS_HELP_STRING([--enable-neknek], [enable multidomain support @<:@default: disabled@:>@])],
[neknek=${enableval}], [neknek=no])
AC_ARG_ENABLE([lapack],
[AS_HELP_STRING([--disable-lapack], [disable Nek-supplied LAPACK routines @<:@default: enabled@:>@])],
[lapack=${enableval}], [lapack=yes])
AC_ARG_ENABLE([blas-mxm],
[AS_HELP_STRING([--disable-blas-mxm], [disable Nek-supplied BLAS routines @<:@default: enabled@:>@])],
[blas_mxm=${enableval}], [blas_mxm=yes])
AC_ARG_ENABLE([extbar],
[AS_HELP_STRING([--enable-extbar], [adds underscore to exit call(for BGQ) @<:@default: disabled@:>@])],
[extbar=${enableval}], [extbar=no])
AC_OUTPUT
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