Bug#568520: autoconf: AC_PROG_F77 code executed though in a test that is always false

2010-02-05 Thread Vincent Lefevre
Package: autoconf
Version: 2.65-3
Severity: normal

In MPFR, we had in configure.in:

if test -n $variable_indefinie ; then
 AC_PROG_CXX([g++])
 AC_PROG_F77([g77])
 AC_PROG_CXXCPP
fi

This doesn't seem to be forbidden according to the autoconf
documentation. Even though the test

  test -n $variable_indefinie

is always false, the configure script checks for the GNU Fortran 77
compiler.

To reproduce the problem:

$ svn checkout svn://scm.gforge.inria.fr/svn/mpfr/tr...@6694 mpfr
$ cd mpfr
$ autoreconf -i
$ ./configure

In the configure output:

checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no

But if one replaces

 AC_PROG_F77([g77])

by

dnl AC_PROG_F77([g77])

and rerun autoreconf -i and ./configure, the above lines are
no longer there. There seems to be a similar problem for:

 AC_PROG_CXX([g++])

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages autoconf depends on:
ii  debianutils   3.2.2  Miscellaneous utilities specific t
ii  m41.4.13-3   a macro processing language
ii  perl  5.10.1-9   Larry Wall's Practical Extraction 

Versions of packages autoconf recommends:
ii  automake [automaken]  1:1.11.1-1 A tool for generating GNU Standard

Versions of packages autoconf suggests:
pn  autoconf-archivenone   (no description available)
ii  autoconf-doc2.65-1   automatic configure script builder
pn  autoconf2.13none   (no description available)
ii  gettext 0.17-8   GNU Internationalization utilities
ii  gnu-standards   2010.01.27-1 GNU coding and package maintenance
ii  libtool 2.2.6b-2 Generic library support script

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#568520: autoconf: AC_PROG_F77 code executed though in a test that is always false

2010-02-05 Thread Vincent Lefevre
Note that this is a regression. On a Debian/stable (lenny) machine
with autoconf 2.61-8, there is no such problem.

-- 
Vincent Lefèvre vinc...@vinc17.net - Web: http://www.vinc17.net/
100% accessible validated (X)HTML - Blog: http://www.vinc17.net/blog/
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org