Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <425F0319.9090209@yahoo.co.uk>
Date: Fri, 15 Apr 2005 09:56:09 +1000
From: Kees Vonk <keesinoz@yahoo.co.uk>
User-Agent: Debian Thunderbird 1.0 (X11/20050116)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Installing Courier-Imap
References: <425CABBC.1040504@yahoo.co.uk> <425CB466.26E80E7F@dessent.net> <425DF35D.5040800@yahoo.co.uk> <425DF8C5.4B0179C8@dessent.net> <425DFDF5.6020900@yahoo.co.uk> <425E0D72.2E2005A8@dessent.net>
In-Reply-To: <425E0D72.2E2005A8@dessent.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Brian Dessent wrote:
> Kees Vonk wrote:
> 
> Okay, the .la is just the libtool version of an .a file.  That's all
> fine and good.
> 
> 
>>gcc -I./.. -I.. -Wall -g -O2    makedatprog.c   -o makedatprog
> 
> 
> This is your problem.  make is invoking an implicit rule for
> makedatprog, rather than the one specified by the Makefile which
> contains all the required libs.  This happens when the Makefile doesn't
> use $(EXEEXT) for names of executables.  It doesn't matter under linux
> because binares have no extensions but it's required for Cygwin.  You
> probably need to change Makefile.am to
> 
> EXTRA_PROGRAMS=makedatprog$(EXEEXT)
> 
> ...and then autoreconf to regenerate all the files.  There may be other
> cases where a binary name is referenced without $(EXEEXT) that you will
> have to correct.  You should take this up on the courier list though.
> 

I started with a new source tree, removed AC_PROG_SYSCONFTOOL from 
configure.in (otherwise autoreconf fails as it is not defined anywhere, 
maybe I shouldn't do this, but if I don't remove it is just throws up a 
warning when running configure).

Fixed makedat/Makefile.am to look like:

-----

# $Id: Makefile.am,v 1.5 2004/09/08 01:27:34 mrsam Exp $
#
# Copyright 1998 - 2004 Double Precision, Inc.  See COPYING for
# distribution information.

AUTOMAKE = srcdir=${srcdir} @SHELL@ ${srcdir}/../automake.fix @AUTOMAKE@

noinst_PROGRAMS=@makedatprog_target@

EXTRA_PROGRAMS=makedatprog$(EXEEXT)

makedatprog_SOURCES=makedatprog.c
makedatprog_DEPENDENCIES=@dblibrary@
makedatprog_LDADD=@dblibrary@ @LIBGDBM@ @LIBDB@

-----

Then I ran the following commands:

-----

for file in $(ls -l | grep ^d | cut -c45- | grep -v cache)
do
    cd $file
    touch AUTHORS
    touch ChangeLog
    touch NEWS
    touch README
    aclocal
    cd ..
done; autoreconf --install --force --verbose

./configure --without-authldap

make

-----

But the result is still the same makedat fails exactly the same, what am 
I doing wrong.

Sorry for this long drawn out problem.


Kees


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

