summaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-26 07:57:21 +0000
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-26 07:57:21 +0000
commit647ee0e489b8aa986af6be640879f3d4aed293b0 (patch)
tree9bc678ee45f1e2044e6057963a7c3965594adbe6 /libgomp
parentdb46fcd45d5f2619eb2e4ed66817320761881c90 (diff)
downloadgcc-647ee0e489b8aa986af6be640879f3d4aed293b0.tar.gz
2010-01-20 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Test for executability of GFORTRAN. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156232 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog5
-rwxr-xr-xlibgomp/configure6
-rw-r--r--libgomp/configure.ac6
3 files changed, 15 insertions, 2 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 4bd7efa6ecd..a20b4976aad 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-20 Paolo Bonzini <bonzini@gnu.org>
+
+ * configure.ac: Test for executability of GFORTRAN.
+ * configure: Regenerate.
+
2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* configure: Regenerate.
diff --git a/libgomp/configure b/libgomp/configure
index 02e2861fb5d..23625003a23 100755
--- a/libgomp/configure
+++ b/libgomp/configure
@@ -11459,7 +11459,11 @@ case `echo $GFORTRAN` in
-* | no* )
FC=no ;;
*)
- FC="$GFORTRAN" ;;
+ if test -x "$GFORTRAN"; then
+ FC="$GFORTRAN"
+ else
+ FC=no
+ fi ;;
esac
ac_ext=${ac_fc_srcext-f}
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
diff --git a/libgomp/configure.ac b/libgomp/configure.ac
index 792c9f52068..96c958af6e7 100644
--- a/libgomp/configure.ac
+++ b/libgomp/configure.ac
@@ -146,7 +146,11 @@ case `echo $GFORTRAN` in
-* | no* )
FC=no ;;
*)
- FC="$GFORTRAN" ;;
+ if test -x "$GFORTRAN"; then
+ FC="$GFORTRAN"
+ else
+ FC=no
+ fi ;;
esac
AC_PROG_FC(gfortran)
FCFLAGS="$FCFLAGS -Wall"