[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OPENMP_FLAGS in autoconf not working

From: Rudra Banerjee
Subject: Re: OPENMP_FLAGS in autoconf not working
Date: Thu, 23 Jun 2016 16:51:45 +0200

Thanks a lot for your reply. But this (AC_LANG) is making make to
Copying your, I am getting:

checking for gfortran... gfortran
checking whether the Fortran compiler works... yes
checking for Fortran compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking for gfortran option to support OpenMP... -fopenmp
configure: creating ./config.status

Makefile:15: *** missing separator.  Stop.

On Thu, 2016-06-23 at 10:24 -0400, Nick Bowler wrote:
> Hello,
> On 6/23/16, Rudra Banerjee <address@hidden> wrote:
> > I am trying to compile a fortran code with gnu-autotools. The
> > openmp
> > specific lines in is:
> > 
> > AC_PROG_FC([gfortran])
> > FCFLAGS="$OPENMP_FFLAGS -fcheck=all"
> The tests performed by AC_OPENMP (and the variables set) depend on
> the current language.  You have not posted a complete, compilable
>, but unless you've done something else to switch the
> language, the default language is C.
> It's also strange to test for openmp before testing the compiler --
> this will probably not do what you intended.  Also, you are testing
> for modern Fortran (AC_PROG_FC) yet OPENMP_FFLAGS is for Fortan 77,
> which is probably not what you wanted.
> Try this:
>   AC_INIT([test], [0])
>   AC_LANG([Fortran])
>   printf 'OPENMP_FCFLAGS = %s\n' "$OPENMP_FCFLAGS"
> Cheers,
>   Nick

reply via email to

[Prev in Thread] Current Thread [Next in Thread]