fix fortran compiler detection on FreeBSD
authorMike Nolta <mike@nolta.net>
Wed, 3 Dec 2014 01:47:40 +0000 (20:47 -0500)
committerMike Nolta <mike@nolta.net>
Wed, 3 Dec 2014 01:47:40 +0000 (20:47 -0500)
commit5f846be2e4a83f380eb41773d1493c637b0d5cd3
tree83bf4807da8b8926c4822d156c75de64844dff7b
parentfe7dcf98f3666388b75839c6b3e6656580dcd222
fix fortran compiler detection on FreeBSD

On FreeBSD, passing extra options to `which` causes it to report a non-zero status:

```
$ which gfortran48 -m64
/usr/local/bin/gfortran48
$ echo $?
1
```

```
$ which gfortran48
/usr/local/bin/gfortran48
$ echo $?
0
```
f_check