F77FLAGSPIC="-fPIC"
;;
esac
-
- F77LIBS="$F77LIBS -lg2c"
-
+
+ case "$F77$" in
+ *gfortran* )
+ F77LIBS="$F77LIBS -lgfortran"
+ ;;
+ *g77* )
+ F77LIBS="$F77LIBS -lg2c"
+ ;;
+ * )
+ AC_MSG_ERROR([Error in configure script, please report a bug])
+ ;;
+ esac
+
;;
AIXF77)
#! /bin/sh
-# From configure.in Revision: 1.233 .
+# From configure.in Revision: 13353 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for deal.II 5.3.pre.
#
echo "$as_me:$LINENO: result: ----------------- configuring F77 compilers -----------------" >&5
echo "${ECHO_T}----------------- configuring F77 compilers -----------------" >&6
-for ac_prog in f77 g77
+for ac_prog in f77 gfortran g77
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
;;
esac
- F77LIBS="$F77LIBS -lg2c"
+ case "$F77$" in
+ *gfortran* )
+ F77LIBS="$F77LIBS -lgfortran"
+ ;;
+ *g77* )
+ F77LIBS="$F77LIBS -lg2c"
+ ;;
+ * )
+ { { echo "$as_me:$LINENO: error: Error in configure script, please report a bug" >&5
+echo "$as_me: error: Error in configure script, please report a bug" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ esac
;;
dnl It is possible that no Fortran 77 compiler was found. Don't care,
dnl it may be that we don't need one (but we check below, when we must
dnl have it).
-AC_PATH_PROGS(F77, [f77 g77])
+AC_PATH_PROGS(F77, [f77 gfortran g77])
dnl Next determine which f77 compiler we have here and set compilation
dnl flags accordingly. Only do that if we have an F77 compiler at all.