* aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Fixed bug where

compiler output to stdout was not caught and interpreted.
This commit is contained in:
Akim Demaille 2000-06-09 10:57:16 +00:00
parent 1708332550
commit c39fb79403
5 changed files with 9 additions and 44 deletions

View File

@ -1,3 +1,8 @@
2000-06-09 Steven G. Johnson <stevenj@superjdj.mit.edu>
* aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Fixed bug where
compiler output to stdout was not caught and interpreted.
2000-06-09 Akim Demaille <akim@epita.fr>
`autoconf --trace' dies on filenames with `:'.

View File

@ -1334,25 +1334,15 @@ cat >conftest.$ac_ext <<EOF
end
EOF
# Save the "compiler output file descriptor" to FD 8.
exec 8>&AC_FD_LOG
# Temporarily redirect compiler output to stdout, since this is what
# we want to capture in AC_LINK_OUTPUT.
exec AC_FD_LOG>&1
# Compile and link our simple test program by passing the "-v" flag
# to the Fortran 77 compiler in order to get "verbose" output that
# we can then parse for the Fortran 77 linker flags. I don't know
# what to do if your compiler doesn't have -v.
ac_save_FFLAGS=$FFLAGS
FFLAGS="$FFLAGS -v"
ac_link_output=`eval $ac_link 2>&1 | grep -v 'Driving:'`
ac_link_output=`eval $ac_link AC_FD_LOG>&1 2>&1 | grep -v 'Driving:'`
FFLAGS=$ac_save_FFLAGS
# Restore the "compiler output file descriptor".
exec AC_FD_LOG>&8
rm -f conftest.*
AC_LANG_POP()dnl

View File

@ -1334,25 +1334,15 @@ cat >conftest.$ac_ext <<EOF
end
EOF
# Save the "compiler output file descriptor" to FD 8.
exec 8>&AC_FD_LOG
# Temporarily redirect compiler output to stdout, since this is what
# we want to capture in AC_LINK_OUTPUT.
exec AC_FD_LOG>&1
# Compile and link our simple test program by passing the "-v" flag
# to the Fortran 77 compiler in order to get "verbose" output that
# we can then parse for the Fortran 77 linker flags. I don't know
# what to do if your compiler doesn't have -v.
ac_save_FFLAGS=$FFLAGS
FFLAGS="$FFLAGS -v"
ac_link_output=`eval $ac_link 2>&1 | grep -v 'Driving:'`
ac_link_output=`eval $ac_link AC_FD_LOG>&1 2>&1 | grep -v 'Driving:'`
FFLAGS=$ac_save_FFLAGS
# Restore the "compiler output file descriptor".
exec AC_FD_LOG>&8
rm -f conftest.*
AC_LANG_POP()dnl

View File

@ -1334,25 +1334,15 @@ cat >conftest.$ac_ext <<EOF
end
EOF
# Save the "compiler output file descriptor" to FD 8.
exec 8>&AC_FD_LOG
# Temporarily redirect compiler output to stdout, since this is what
# we want to capture in AC_LINK_OUTPUT.
exec AC_FD_LOG>&1
# Compile and link our simple test program by passing the "-v" flag
# to the Fortran 77 compiler in order to get "verbose" output that
# we can then parse for the Fortran 77 linker flags. I don't know
# what to do if your compiler doesn't have -v.
ac_save_FFLAGS=$FFLAGS
FFLAGS="$FFLAGS -v"
ac_link_output=`eval $ac_link 2>&1 | grep -v 'Driving:'`
ac_link_output=`eval $ac_link AC_FD_LOG>&1 2>&1 | grep -v 'Driving:'`
FFLAGS=$ac_save_FFLAGS
# Restore the "compiler output file descriptor".
exec AC_FD_LOG>&8
rm -f conftest.*
AC_LANG_POP()dnl

View File

@ -1334,25 +1334,15 @@ cat >conftest.$ac_ext <<EOF
end
EOF
# Save the "compiler output file descriptor" to FD 8.
exec 8>&AC_FD_LOG
# Temporarily redirect compiler output to stdout, since this is what
# we want to capture in AC_LINK_OUTPUT.
exec AC_FD_LOG>&1
# Compile and link our simple test program by passing the "-v" flag
# to the Fortran 77 compiler in order to get "verbose" output that
# we can then parse for the Fortran 77 linker flags. I don't know
# what to do if your compiler doesn't have -v.
ac_save_FFLAGS=$FFLAGS
FFLAGS="$FFLAGS -v"
ac_link_output=`eval $ac_link 2>&1 | grep -v 'Driving:'`
ac_link_output=`eval $ac_link AC_FD_LOG>&1 2>&1 | grep -v 'Driving:'`
FFLAGS=$ac_save_FFLAGS
# Restore the "compiler output file descriptor".
exec AC_FD_LOG>&8
rm -f conftest.*
AC_LANG_POP()dnl