Unix Programming - Autoconf question (AC_F77_WRAPPERS)

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > October 2004 > Autoconf question (AC_F77_WRAPPERS)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Autoconf question (AC_F77_WRAPPERS)
Radu Serban

2004-10-28, 2:48 am

I am using autoconf for a package that is all in C, but it does
have a few examples in mixed C-Fortran. By default, Fortran support
is enabled and, among other tests, I use the AC_F77_WRAPPERS.

However, I want to be able to disable all Fortran support, so I have
added the option --without-f77 which sets some variable F77_ENABLED to
'no' and all the Fortran-related settings are encapsulated within an

if test ${F77_ENABLED} != no
....
AC_F77_WRAPPERS
....
....
fi

If F77_ENABLED is 'no', then everything works as expected, except for
the check for name mangling which seems to be done no matter what!
That's fine (although it looks weird) if a Fortran compiler exists, but
if one doesn't exists (which is why I want the --without-f77 option in
the first place) configure will crash because of the name mangling test.

How can I enforce that no Fortran-related checks are done when I use
my --without-f77 option?

Thanks!

--Radu
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com