/usr/share/aclocal/llnl_lib_fcmain.m4 is in libsidl-dev 1.4.0.dfsg-8.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | dnl
dnl @synopsis LLNL_LIB_FCMAIN
dnl
dnl Finds the "main" function if the driver is written in fortran
dnl
dnl @version
dnl @author
dnl
dnl Note: Clone of F77 version but tailored to pgf90 needs.
dnl
AC_DEFUN([LLNL_LIB_FCMAIN],
[AC_REQUIRE([AC_PROG_FC])dnl
AC_REQUIRE([LLNL_F90_LIBRARY_LDFLAGS])
AC_CACHE_CHECK([if C linker ($CC) needs a special library for F90 main ($FC)], [llnl_cv_lib_f90main], [
echo "END" > conftest.f90
foutput=`${FC} ${ac_cv_prog_fc_v} -o conftest conftest.f90 2>&1`
fmain=`echo $foutput | grep f90main`
if test -n "$fmain"; then
foutput=`echo $foutput | sed 's/,/ /g'`
fi
f90main=no
for arg in $foutput; do
case "$arg" in
-lgfortranbegin)
found=true
f90main="$arg"
;;
*f90main.o)
if test -e $arg; then
found=true
f90main="$arg"
fi
;;
*fj90rt0.o)
if test -e $arg; then
found=true
f90main="$arg"
fi
;;
*for_main.o)
if test -e $arg; then
found=true
f90main="$arg"
fi
;;
esac
done
if test "x$f90main" != xno; then
llnl_cv_lib_f90main="$f90main"
else
llnl_cv_lib_f90main=
fi
rm -f conftest.f90 conftest
])
AC_SUBST([FCMAIN],[$llnl_cv_lib_f90main])
])
|