bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: automake/autoconf bug


From: Alexandre Duret-Lutz
Subject: Re: automake/autoconf bug
Date: Tue, 11 Jun 2002 09:41:14 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu)

>>> "Andrew" == Andrew D Jewell <address@hidden> writes:

 Andrew> Or perhaps just a documentation oversight, if this is supposed to
 Andrew> happen. Or perhaps I'm missing something obvious.

 Andrew> It seems that mixing .c and .cc files in certain ways confuses things.

Using the Makefile.am and configure.ac file you supplied, I
can't reproduce this.  Could you send more details?

Here is what I did:

~/tmp % mkdir adj
~/tmp % cd adj
~/tmp/adj % cat > configure.ac
dnl Process this file with autoconf to produce a configure script. -*-m4-*-
AC_INIT(foo, 1.2, address@hidden)
            
AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER(config.h:config.hin)
AC_CANONICAL_HOST
            
AM_INIT_AUTOMAKE
            
dnl Checks for programs.
            
AC_PROG_CC  
AC_PROG_CPP 
AC_PROG_CXX 
AC_PROG_GCC_TRADITIONAL
AC_PROG_RANLIB
            
AC_CONFIG_FILES(
   Makefile 
   lib/Makefile
   )        
AC_OUTPUT   
~/tmp/adj % cat > Makefile.am
SUBDIRS = lib
~/tmp/adj % mkdir lib        
~/tmp/adj % cat > lib/Makefile.am
noinst_LIBRARIES = libfoo.a
libfoo_a_SOURCES = foo.c
            
~/tmp/adj % cat > lib/foo.c
int i = 1;  
~/tmp/adj % touch NEWS README AUTHORS ChangeLog config.hin
~/tmp/adj % aclocal
~/tmp/adj % autoconf
~/tmp/adj % automake -a
configure.ac: installing `config/install-sh'
configure.ac: installing `config/mkinstalldirs'
configure.ac: installing `config/missing'
configure.ac:6: installing `config/config.guess'
configure.ac:6: installing `config/config.sub'
lib/Makefile.am: installing `config/depcomp'
automake: processing Makefiles another time to fix them up.
~/tmp/adj % ./configure
checking build system type... i586-pc-linux-gnu
checking host system type... i586-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating config.h
config.status: executing depfiles commands
~/tmp/adj % make
cd . && /bin/sh /home/adl/tmp/adj/config/missing --run autoheader
autoheader: `config.hin' is updated
touch ./config.hin
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
make  all-recursive
make[1]: Entering directory `/home/adl/tmp/adj'
Making all in lib
make[2]: Entering directory `/home/adl/tmp/adj/lib'
source='foo.c' object='foo.o' libtool=no \
depfile='.deps/foo.Po' tmpdepfile='.deps/foo.TPo' \
depmode=gcc /bin/sh ../config/depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'foo.c' || echo 
'./'`foo.c
rm -f libfoo.a
ar cru libfoo.a foo.o
ranlib libfoo.a
make[2]: Leaving directory `/home/adl/tmp/adj/lib'
make[2]: Entering directory `/home/adl/tmp/adj'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/adl/tmp/adj'
make[1]: Leaving directory `/home/adl/tmp/adj'
~/tmp/adj %
-- 
Alexandre Duret-Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]