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

f2c and autotools



Hi there,

  I am trying to work on #702882

  Upstream is basically doing:

if test "$internal_f2c" = "no"; then
  AC_CHECK_LIB([f2c], [f77_alloc_], [],
     AC_CHECK_LIB([f2c], [f77_alloc], [],
        AC_CHECK_LIB([f2c], [F77_ALLOC_], [],
           AC_CHECK_LIB([f2c], [F77_ALLOC], [],
              [AC_MSG_RESULT(not found, trying to use -lf2c anyway.)]))))
  LDFLAGS="${LDFLAGS}"
else  AC_DEFINE([INTERNAL_F2C], [1], [Define to 1 if you use the internal
F2C library])
fi


  As explained in #702882#5, this fails on debian system since one
cannot link to f2c without first defining a MAIN__ symbol. Has anyone
work on autotools and f2c issue on debian in the past ? How should one
use the autotools *F77* macros to handle this case ?

Thanks,


Reply to: