summaryrefslogtreecommitdiffstats
path: root/libgomp/configure.ac
diff options
context:
space:
mode:
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-17 07:34:47 +0000
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-17 07:34:47 +0000
commit00b1a0e27e1129924fe45aaa1aca2188e462c64c (patch)
tree3c3b85774e017339e7f9e236a62f97d739356493 /libgomp/configure.ac
parent47306a5dc35d1fa383887fb10c8fda32dc7a7cc3 (diff)
downloadppe42-gcc-00b1a0e27e1129924fe45aaa1aca2188e462c64c.tar.gz
ppe42-gcc-00b1a0e27e1129924fe45aaa1aca2188e462c64c.zip
Fix libgomp without --enable-languages=fortran.
libgomp/: PR libgomp/41418 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no" or a hyphen (happens with fortran language disabled). * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152931 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/configure.ac')
-rw-r--r--libgomp/configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/libgomp/configure.ac b/libgomp/configure.ac
index e0bdf2b9ac9..792c9f52068 100644
--- a/libgomp/configure.ac
+++ b/libgomp/configure.ac
@@ -142,7 +142,12 @@ AM_MAINTAINER_MODE
# We need gfortran to compile parts of the library
# We can't use AC_PROG_FC because it expects a fully working gfortran.
#AC_PROG_FC(gfortran)
-FC="$GFORTRAN"
+case `echo $GFORTRAN` in
+ -* | no* )
+ FC=no ;;
+ *)
+ FC="$GFORTRAN" ;;
+esac
AC_PROG_FC(gfortran)
FCFLAGS="$FCFLAGS -Wall"
OpenPOWER on IntegriCloud