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 eblake@xxxxxxxxxx +1-801-349-2682 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf