Commit 3052949c authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

configure: added option --disable-cf-interface to omit the cfortran interface

parent f19982b7
......@@ -884,6 +884,7 @@ enable_iso_c_interface
enable_swig
enable_ruby
enable_python
enable_cf_interface
'
ac_precious_vars='build_alias
host_alias
......@@ -1578,6 +1579,7 @@ Optional Features:
(EXPERIMENTAL)
--enable-ruby ruby language bindings [default=no] (EXPERIMENTAL)
--enable-python python language bindings [default=no] (EXPERIMENTAL)
--disable-cf-interface Omit building of cfortran Interface
 
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
......@@ -30103,6 +30105,17 @@ else
CREATE_INTERFACES_FALSE=
fi
 
# ----------------------------------------------------------------------
# Create the CDI Fortran77 Interface via cfortran.h
# Check whether --enable-cf-interface was given.
if test "${enable_cf_interface+set}" = set; then :
enableval=$enable_cf_interface; enable_cfinterface=${enableval}
else
enable_cfinterface=yes
fi
if test "x${enable_cfinterface}" = "xyes"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking C preprocessor flags for Fortran calling convention cfortran.h" >&5
$as_echo_n "checking C preprocessor flags for Fortran calling convention cfortran.h... " >&6; }
if ${acx_cv_cf_flag+:} false; then :
......@@ -30524,6 +30537,8 @@ $as_echo "$as_me: Disabling cfortran.h bindings generation" >&6;}
acx_cv_cfortran_works=no
fi
 
fi
fi
if test -n "$FC" -a X"$FC" != Xno -a x"$acx_cv_cfortran_works" = xyes; then
USE_FC_TRUE=
......@@ -316,6 +316,13 @@ AM_CONDITIONAL(ENABLE_PYTHON, [test "x$enable_python" != "xno"])
AS_IF([test "x$enable_python" != "xno"],[AC_SUBST([ENABLE_PYTHON],[true])],[AC_SUBST([ENABLE_PYTHON],[false])])
# ----------------------------------------------------------------------
AM_CONDITIONAL(CREATE_INTERFACES, [test "x$enable_ruby" = "xyes" -o "x$enable_python" = "xyes"])
# ----------------------------------------------------------------------
# Create the CDI Fortran77 Interface via cfortran.h
AC_ARG_ENABLE([cf-interface],
[AS_HELP_STRING([--disable-cf-interface],
[Omit building of cfortran Interface])],
[enable_cfinterface=${enableval}],[enable_cfinterface=yes])
AS_IF([test "x${enable_cfinterface}" = "xyes"], [
dnl ######################################################################
dnl Test whether cfortran.h works correctly
dnl ######################################################################
......@@ -335,6 +342,7 @@ AS_IF([test -n "$FC" -a X"$FC" != Xno -o -n "$F77" -a X"$F77" != Xno],
[AC_MSG_NOTICE([Unexpected error when linking C and Fortran via cfortran.h!])])
AC_MSG_NOTICE([Disabling cfortran.h bindings generation])
acx_cv_cfortran_works=no])])
])
AM_CONDITIONAL([USE_FC],[test -n "$FC" -a X"$FC" != Xno -a x"$acx_cv_cfortran_works" = xyes])dnl
dnl
AC_SUBST([CPPFLAGS])dnl
......
Supports Markdown
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