@@ -200,8 +200,8 @@ AC_ARG_ENABLE([lengthy-tests],
200
200
AM_CONDITIONAL([ ENABLE_LENGTHY_TESTS] , [ test "$enable_lengthy_tests" = "yes"] )
201
201
202
202
AC_ARG_ENABLE ( [ fortran] ,
203
- [ AS_HELP_STRING ( [ --disable -fortran] ,
204
- [ Disable building the Fortran bindings (default: enabled )] ) ] )
203
+ [ AS_HELP_STRING ( [ --enable -fortran] ,
204
+ [ Enable building the Fortran bindings (default: disabled )] ) ] )
205
205
206
206
AC_ARG_ENABLE ( [ cxx] ,
207
207
[ AS_HELP_STRING ( [ --disable-cxx] ,
@@ -402,7 +402,7 @@ AC_PATH_PROG([M4], [m4], [false])
402
402
AS_IF ( [ test "$M4" = "false"] ,
403
403
[ AC_MSG_ERROR ( [ Could not find 'm4' macro processor] ) ] )
404
404
405
- if test "$enable_fortran" ! = "no " ; then
405
+ if test "$enable_fortran" = "yes " ; then
406
406
AC_PROG_FC
407
407
else
408
408
FC=
@@ -1001,17 +1001,17 @@ AS_IF([test -z "$num_transports"],
1001
1001
AS_IF ( [ test "$shmem_cv_c11_works" != "yes"] ,
1002
1002
[ AC_MSG_WARN ( [ C compiler does not support _Generic, unable to verify and test C11 bindings] ) ] )
1003
1003
1004
- AS_IF ( [ test "$enable_c11_checks" == "no"] ,
1004
+ AS_IF ( [ test "$enable_c11_checks" = "no"] ,
1005
1005
[ AC_MSG_WARN ( [ C11 _Generic type checks disabled, not verifying type coverage of C11 bindings] ) ] )
1006
1006
1007
- AS_IF ( [ test "$enable_cxx" == "no"] ,
1007
+ AS_IF ( [ test "$enable_cxx" = "no"] ,
1008
1008
[ AC_MSG_WARN ( [ No C++ compiler or C++ disabled, unable to verify and test C++ bindings] ) ] )
1009
1009
1010
- AS_IF ( [ test "$enable_fortran" == "no "] ,
1011
- [ AC_MSG_WARN ( [ No Fortran compiler or Fortran disabled, unable to test Fortran bindings ] ) ] )
1010
+ AS_IF ( [ test "$enable_fortran" = "yes" -a "$FC" = ""] ,
1011
+ [ AC_MSG_ERROR ( [ Fortran requested but no compiler is available ] ) ] )
1012
1012
1013
- AS_IF ( [ test "$enable_fortran" ! = "no "] ,
1014
- [ AC_MSG_WARN ( [ Fortran bindings have been deprecated as of OpenSHMEM v1.4] ) ] )
1013
+ AS_IF ( [ test "$enable_fortran" = "yes "] ,
1014
+ [ AC_MSG_WARN ( [ The Fortran API was deprecated in OpenSHMEM v1.4 and removed in OpenSHMEM v1.5 ] ) ] )
1015
1015
1016
1016
FORT="$FC"
1017
1017
if test "$FORT" = "" ; then
0 commit comments