From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Thu, 15 Aug 2013 10:28:55 +0200 From: Alexander Aring Message-ID: <20130815082853.GA1720@x61s.8.8.8.8> References: <1375432732-12559-1-git-send-email-alex.aring@gmail.com> <52091518.1010108@pengutronix.de> <20130815062549.GA4070@x61s.8.8.8.8> <520C8E6B.9030501@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <520C8E6B.9030501@pengutronix.de> Subject: Re: [ptxdist] [PATCH] libcoap: add libcoap package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Marc Kleine-Budde Cc: ptxdist@pengutronix.de Hi Marc, On Thu, Aug 15, 2013 at 10:16:43AM +0200, Marc Kleine-Budde wrote: > On 08/15/2013 08:25 AM, Alexander Aring wrote: > [...] > > >> Argh, autoconf without automake. Not your fault > >> > >> ... > >> > >> What about creating a proper automake'd version of libcoap? > >> > > Now I create a autotools project and see some very very bad things in > > the libcoap. I need to screw up the complete buildsystem. > > > > For exmaple, they have a config.h: > > The config.h is autogenerated by autotools. > Yea, I saw this too. AC_CONFIG_HEADERS([config.h]). But the main "coap.h" header file for the api includes this "config.h" header file. So a aplication which uses autotools can't do a include because it includes the config.h from the autotools generated header file and redefined all autotools related things. Difficult to explain... :) > > ... > > #define PACKAGE_BUGREPORT "" > > > > #define PACKAGE_NAME "libcoap" > > ... > > > > I need to drop the config.h because there stands some defines which is > > setted manually, but normally setted by autoconf with AC_INIT like PACKAGE_NAME. > > > > With this behaviour you get many redefined ... warnings from compiler if > > you use the libcoap in a autotools buildsystem project. > > > > There are several small things like this. > > I need to say, I really don't understand this. They use autoconf but > > setted defines manually so autoconf doesn't matter... > > > > > > I need to rework this, so please don't add this to ptxdist right now. > > > > And yes I will try to insert autoconf/automake into this project. > > Fine. You can call me if you need help. If you need a template I suggest > to use libabc. > Ok thanks. - Alex -- ptxdist mailing list ptxdist@pengutronix.de