From lev@ftp.translate.ru  Thu Apr  4 11:31:47 2002
Return-Path: <lev@ftp.translate.ru>
Received: from ftp.translate.ru (ftp.translate.ru [195.131.4.140])
	by hub.freebsd.org (Postfix) with ESMTP id A971637B41B
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 Apr 2002 11:31:46 -0800 (PST)
Received: (from lev@localhost)
	by ftp.translate.ru (8.11.6/8.11.2) id g34JVja18466;
	Thu, 4 Apr 2002 23:31:45 +0400 (MSD)
	(envelope-from lev)
Message-Id: <200204041931.g34JVja18466@ftp.translate.ru>
Date: Thu, 4 Apr 2002 23:31:45 +0400 (MSD)
From: "Lev A. Serebryakov" <lev@serebryakov.spb.ru>
Reply-To: "Lev A. Serebryakov" <lev@serebryakov.spb.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Incompatibility between autoconf, automake and libtool
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         36766
>Category:       ports
>Synopsis:       Incompatibility between autoconf, automake and libtool
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ade
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 04 11:40:01 PST 2002
>Closed-Date:    Fri Jun 04 10:41:18 PDT 2004
>Last-Modified:  Fri Jun 04 10:41:18 PDT 2004
>Originator:     Lev A. Serebryakov <lev@serebryakov.spb.ru>
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD freebsd.sereb.net 4.4-STABLE FreeBSD 4.4-STABLE #1: Sat Dec 8 13:48:40 MSK 2001 root@freebsd.sereb.net:/usr/obj/usr/src/sys/LEVMAIL i386
Ports collection: 5 Apr 2001


>Description:
	
   When devel/libtool port are installed, it put aclocal-related
   files to `${PREFIX}/share/aclocal/libtool.m4'. But it is directory for
   automake-1.5 port. And autoconf-2.53 & automake-1.5 ports 
   IS NOT COMPATIBLE with libtool-1.3.6:

%cat configure.in
AC_INIT(src/test.c)
AM_INIT_AUTOMAKE([test], [0.1])
AC_PROG_CC
AC_PROG_LIBTOOL
                                  
AM_CONFIG_HEADER(config.h)

AC_OUTPUT([Makefile src/Makefile])
%
%cat Makefile.am
SUBDIRS = src
%
%libtoolize -f -c && aclocal && autoheader && automake -ac && autoconf
configure.in:6: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst
configure.in:8: warning: do not use m4_regexp: use regexp or m4_bregexp
%
%./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
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 style of include used by make... GNU
checking dependency style of gcc... gcc
checking build system type... i386-unknown-freebsdelf4.4
checking host system type... i386-unknown-freebsdelf4.4
checking for ranlib... ranlib
checking for ld used by GCC... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
loading cache /dev/null within ltconfig
ltconfig: you must specify a host type if you use `--no-verify'
Try `ltconfig --help' for more information.
configure: error: libtool configure failed
%

  When I try to use OLD automake, aclocal and autoconf it COULD NOT find 
  libtool.m4 and AC_PROG_LIBTOOL, because libtool.m4 is in
  `${PREFIX}/share/aclocal/libtool.m4', not in 
  `${PREFIX}/share/automake14/aclocal/libtool.m4':
%libtoolize -f -c && aclocal14 && autoheader213 && automake14 -a -c && autoconf213
%libtoolize -f -c && aclocal14 && autoheader213 && automake14 -a -c && autoconf213
You should update your `aclocal.m4' by running aclocal.
autoconf: Undefined macros:
configure.in:4:AC_PROG_LIBTOOL
%

 This situation could be fixed by copying ${PREFIX}/share/automake14/aclocal/*
 into ${PREFIX}/share/automake14/aclocal/, but it is not good solution, IMHO.

>How-To-Repeat:
	

>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->portmgr 
Responsible-Changed-By: dwcjr 
Responsible-Changed-When: Tue May 21 09:55:28 PDT 2002 
Responsible-Changed-Why:  
Over to portmgr territory 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36766 
Responsible-Changed-From-To: portmgr->ade 
Responsible-Changed-By: ade 
Responsible-Changed-When: Sun Jan 19 20:51:40 PST 2003 
Responsible-Changed-Why:  
I'll be looking at all things libtool prior to 4.8-RELEASE 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36766 
State-Changed-From-To: open->analyzed 
State-Changed-By: ade 
State-Changed-When: Mon Jun 30 13:09:23 PDT 2003 
State-Changed-Why:  
Specific inter-version dependencies between libtool, autoconf, and automake 
will be dealt with after true versioning support has been added to the 
autoconf/automake ports. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36766 
State-Changed-From-To: analyzed->closed 
State-Changed-By: ade 
State-Changed-When: Fri Jun 4 10:40:20 PDT 2004 
State-Changed-Why:  
As far as I am aware, this is now fixed with the new bsd.autotools.mk 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36766 
>Unformatted:
