Skip to content

Commit

Permalink
add option to disable r8 default flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored and rem1776 committed Oct 6, 2023
1 parent b59235b commit 8aa4fd2
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ AS_IF([test ${enable_deprecated_io:-no} = yes],
[enable_deprecated_io=yes],
[enable_deprecated_io=no])

AC_ARG_ENABLE([r8-default],
[AS_HELP_STRING([--disable-r8-default],
[Disables the build from adding the 8 byte default real kind flag during compilation (default no)])])
AS_IF([test ${enable_r8_default:-yes} = yes],
[enable_r8_default=yes],
[enable_r8_default=no])

# user enabled testing with input files
AC_MSG_CHECKING([whether to enable tests with input files])
AC_ARG_ENABLE([test-input],
Expand Down Expand Up @@ -296,9 +303,11 @@ if test $enable_setting_flags = yes; then
# necessary fortran flags.
AC_FC_LINE_LENGTH([unlimited])

# Always build with r8_kind default
GX_FC_DEFAULT_REAL_KIND8_FLAG([dnl
FCFLAGS="$FCFLAGS $FC_DEFAULT_REAL_KIND8_FLAG"])
# Builds with r8 default unless disable flag is given
if test $enable_r8_default = yes; then
GX_FC_DEFAULT_REAL_KIND8_FLAG([dnl
FCFLAGS="$FCFLAGS $FC_DEFAULT_REAL_KIND8_FLAG"])
fi

# individual mixed precision overloads
if test $enable_overload_c4 = yes; then
Expand Down

0 comments on commit 8aa4fd2

Please sign in to comment.