# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ ECLASS=fortran-check INHERITED="$INHERITED $ECLASS" fortran-check_pkg_setup() { # Check for a Fortran compiler. if ! which ${F77:-g77} &> /dev/null; then echo eerror "The Fortran compiler \"${F77:-g77}\" could not be found on your system." if [ -z ${F77} ] || [ ${F77} = g77 ]; then eerror 'Please reinstall "sys-devel/gcc" with the "f77" "USE" flag enabled.' else eerror 'Please make sure the variable ${F77} is set to the name of a valid' eerror 'Fortran compiler installed on your system. Make sure this executable' eerror 'is in a directory included in "PATH", and that the corresponding' eerror '"USE" flag is set if applicable (for example "ifc" if you use the' eerror 'Intel Fortran Compiler).' fi die "Fortran compiler not found." fi } EXPORT_FUNCTIONS pkg_setup