[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: newbie - autoscan for f90
From: |
Eric Blake |
Subject: |
Re: newbie - autoscan for f90 |
Date: |
Wed, 12 Jan 2011 15:41:40 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
On 01/12/2011 03:11 PM, Eve-Marie Devaliere wrote:
> Hello autoconf community,
>
> I am a newbie to autoconf so I am sorry in advance for my basics
> questions....
>
> I am trying to swicth my existing config to an autoconf config. I tried
> to run autoscan in my src directory but it is not finding any of my f90
> files... From what the verbose mode tells it is not really looking for
> it either.... Can autoscan deal with f90 programs?
Unfortunately, autoscan deals primarily with C, not Fortran. So I'm not
entirely surprised that it isn't turning up much. But running autoscan
tends to be a once-only process done at the initial autoconfiscation
time, and not something done regularly (that explains why it doesn't
work as well); and since it is not a prerequisite to writing a working
autoconf.ac and using autoconf, it shouldn't hurt if you skip that step
as useless in your situation.
>
> I then tried to go back to square 1 and found a mini tutorial about
> autoconf.. I put the following in my configure.ac
> AC_INIT(myconfig, version-0.1)
Quoting style - we recommend:
AC_INIT([myconfig], [version-0.1])
> AC_MSG_NOTICE([Hello, world.])
> AC_INIT(myconfig, version-0.1)
Oops - you called AC_INIT twice. It should only be called once (and
hmm, maybe we should improve AC_INIT to detect and diagnose duplicate
invocation in a nicer manner than just complaining about unbalanced
diversions).
> echo " Testing for a FORTRAN compiler"
> AC_PROG_F77
Do you really want to test for AC_PROG_F77 if you are compiling f90
sources, or did you mean AC_PROG_FC([], [Fortran 90])
Also, have you read the automake tutorial?
http://www.gnu.org/software/automake/manual/automake.html#Autotools-Introduction
It sounds like you want to use both autoconf and automake together, if
you are worried about tracking which .f90 files are built into your package.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature