[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_PROG_F77 thinks my compiler is g77 (its not!)
From: |
Paul Martinolich |
Subject: |
AC_PROG_F77 thinks my compiler is g77 (its not!) |
Date: |
Fri, 03 Nov 2000 14:59:33 -0600 |
Here is my config.log (using CVS autoconf):
> configure:2100: checking whether the Fortran 77 compiler works
> configure:2108: /usr/absoft/bin/f77 -o conftest conftest.f >&5
> FORTRAN 77 Compiler 4.5, Copyright (c) 1987-1999, Absoft Corp.
> configure:2112: ./conftest
> configure:2126: result: yes
> configure:2138: checking whether we are cross compiling
> configure:2140: result: no
> configure:2143: checking whether we are using the GNU Fortran 77 compiler
> configure:2154: /usr/absoft/bin/f77 -c conftest.f >&5
> FORTRAN 77 Compiler 4.5, Copyright (c) 1987-1999, Absoft Corp.
> configure:2165: result: yes
> configure:2172: checking whether /usr/absoft/bin/f77 accepts -g
> configure:2184: /usr/absoft/bin/f77 -c -g conftest.f >&5
> FORTRAN 77 Compiler 4.5, Copyright (c) 1987-1999, Absoft Corp.
> configure:2194: result: yes
> configure:2301: checking whether the Fortran 77 compiler works
> configure:2309: /usr/absoft/bin/f77 -o conftest -g -O2 conftest.f >&5
> /usr/absoft/bin/f77: illegal option -- 2
> usage: f77 [options] file [file] ... (man f77 for further details)
> configure: failed program was:
> program main
>
> end
> configure:2332: result: no
The test is (from configure):
> echo "configure:2143: checking whether we are using the GNU Fortran 77
> compiler" >&5
> echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler...
> $ECHO_C" >&6
> if test "${ac_cv_f77_compiler_gnu+set}" = set; then
> echo $ECHO_N "(cached) $ECHO_C" >&6
> else
> cat >conftest.$ac_ext <<_ACEOF
> program main
>
> end
> _ACEOF
> rm -f conftest.$ac_objext
> if { (eval echo configure:2154: \"$ac_compile\") >&5; (eval $ac_compile)
> 2>&5; } && test -s conftest.$ac_objext; then
> ac_compiler_gnu=yes
> else
> echo "configure: failed program was:" >&5
> cat conftest.$ac_ext >&5
> ac_compiler_gnu=no
> fi
> rm -f conftest.$ac_objext conftest.$ac_ext
> ac_cv_f77_compiler_gnu=$ac_compiler_gnu
It would seem that ALL compilers would test true!!! In fact, looking
at my configure output for my SGI f90 compiler, it says its a GNU
compiler too!! This output does not look like what is supposed to be
placed in the configure file from _AC_LANG_COMPILER_GNU. I am checking
for
a C compiler (which also calls _AC_LANG_COMPILER_GNU) before the
AC_PROG_F77
call.
I just tested the order of AC_PROG_CC and AC_PROG_F77 in a configure.in
file and it makes no difference. I am getting the simple test (it looks
very similiar to the _WORKS test). It should be the test with #define
_GNU_
in it.
Paul
--
+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
Paul Martinolich/Software Engr. e-mail:
address@hidden
Neptune Sciences, Inc. voice: (228) 688-5280
NRL Remote Sensing/Ocean Color http://www7240.nrlssc.navy.mil/ocolor/
- AC_PROG_F77 thinks my compiler is g77 (its not!),
Paul Martinolich <=