def METHOD_NAME(self):
    config_args = ["--enable-static"]
    config_args += self.enable_or_disable("shared")
    config_args += self.enable_or_disable("doxygen", variant="doc")
    netcdf_c_spec = self.spec["netcdf-c"]
    if "+mpi" in netcdf_c_spec or "+parallel-netcdf" in netcdf_c_spec:
        # Prefixing with 'mpiexec -n 4' is not necessarily the correct way
        # to launch MPI programs on a particular machine (e.g. 'srun -n 4'
        # with additional arguments might be the right one). Therefore, we
        # make sure the parallel tests are not launched at all (although it
        # is the default behaviour currently):
        config_args.append("--disable-parallel-tests")
        if self.spec.satisfies("@4.5.0:4.5.2"):
            # Versions from 4.5.0 to 4.5.2 check whether the Fortran MPI
            # interface is available and fail the configuration if it is
            # not. However, the interface is needed for a subset of the test
            # programs only (the library itself does not need it), which are
            # not run by default and explicitly disabled above. To avoid the
            # configuration failure, we set the following cache variable:
            config_args.append("ac_cv_func_MPI_File_open=yes")
    return config_args