From owner-freebsd-ports@FreeBSD.ORG Thu Sep 15 13:20:46 2005 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B50116A4DE; Thu, 15 Sep 2005 13:20:46 +0000 (GMT) (envelope-from bu7cher@yandex.ru) Received: from mail.rdu.kirov.ru (ns.rdu.kirov.ru [217.9.151.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A66C43D48; Thu, 15 Sep 2005 13:20:44 +0000 (GMT) (envelope-from bu7cher@yandex.ru) Received: from kirov.so-cdu.ru (kirov [172.21.81.1]) by mail.rdu.kirov.ru (Postfix) with ESMTP id 405C7115666; Thu, 15 Sep 2005 17:20:42 +0400 (MSD) Received: from kirov.so-cdu.ru (localhost [127.0.0.1]) by rdu.kirov.ru (Postfix) with SMTP id 0A11D15C74; Thu, 15 Sep 2005 17:20:42 +0400 (MSD) Received: by rdu.kirov.ru (Postfix, from userid 1014) id 87D8A15C76; Thu, 15 Sep 2005 17:20:41 +0400 (MSD) Received: from [172.21.81.52] (elsukov.kirov.so-cdu.ru [172.21.81.52]) by rdu.kirov.ru (Postfix) with ESMTP id 5A8A915C2E; Thu, 15 Sep 2005 17:20:41 +0400 (MSD) Message-ID: <4329750D.2000307@yandex.ru> Date: Thu, 15 Sep 2005 17:20:13 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.0.6 (FreeBSD/20050716) X-Accept-Language: ru, en MIME-Version: 1.0 To: harti@freebsd.org, ports@FreeBSD.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: libbegemot port to FreeBSD 4.x X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bu7cher@yandex.ru List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 13:20:46 -0000 Hello! I try to make port of libbegemot on FreeBSD 4.x. But i have one problem - freebsd 4.8 have not definition of PRIu64 in inttypes.h. I tried patch: --- configure.ac.orig Thu Sep 15 14:18:10 2005 +++ configure.ac Thu Sep 15 15:34:24 2005 @@ -232,8 +232,14 @@ AC_CACHE_CHECK([how to print quads], ac_cv_quad_fmt, [if test "$ac_have_inttypes_h" = "yes" ; then - ac_cv_quad_fmt=PRIu64 - else + AC_EGREP_CPP(yes, +[ +# include +# ifdef PRIu64 +yes +# endif +], + ac_cv_quad_fmt=PRIu64, AC_TRY_RUN( [[ # include @@ -251,7 +257,7 @@ ac_cv_quad_fmt='"q"', ac_cv_quad_fmt='"ll"', ac_cv_quad_fmt='"ll"') - fi ]) + fi ])) AC_DEFINE_UNQUOTED(QUADFMT, $ac_cv_quad_fmt) # ------------------------------------------------------------ I run following commands after patching: aclocal19 -I /usr/local/share/libtool15/libltdl/ autoconf259 This works. But, how to make this automatic in port? My Makefile: # New ports collection makefile for: libbegemot # Date created: Sep 15 2005 # Whom: Andrey V. Elsukov # # $FreeBSD$ # PORTNAME= libbegemot PORTVERSION= 1.11 CATEGORIES= devel MASTER_SITES= http://people.freebsd.org/~harti/bsnmp/ DISTNAME= libbegemot-${PORTVERSION} MAINTAINER= bu7cher@yandex.ru COMMENT= A function library for begemot tools GNU_CONFIGURE= yes USE_GMAKE= yes USE_AUTOTOOLS= libltdl:15 aclocal:19 autoconf:259 ACLOCAL_ARGS= "-I /usr/local/share/libtool15/libltdl/" .include This fails with message: aclocal: unrecognized option -- `-I /usr/local/share/libtool15/libltdl/' Try `aclocal --help' for more information. *** Error code 1 What i can do? Thanks. -- WBR, Andrey V. Elsukov