Apple f77 vs GNU autoconf

12:00 am in Programming by Gaz

Today, I have been led a merry little chase. I got some email last week asking me to roll a pre-bootstrapped libtool for regression testing on various architectures, and today was the day I found the time to oblige. Except that I couldn’t get `make dist' to succeed as the Dec 2002 Apple Developer’s Tools don’t contain a fortran compiler, so the f77demo directory couldn’t build.

No biggie with fink installed: `sudo apt-get install f77‘ and a few minutes wait. Tried to roll a libtool distribution again, and things were going well until this point:

...
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking how to get verbose linking output from g77... -v
checking for Fortran libraries of g77... -L/sw/lib/gcc/darwin/3.1 -L/sw/lib/gcc/darwin -L/sw/libexec/gcc/darwin/ppc/3.1 -lcrt1.o -lcrtbegin.o -lfrtbegin -lg2c -lSystem
checking for dummy main to link with Fortran libraries...configure: error: linking to Fortran libraries from C fails
...

Read the rest of this entry →