[PATCH] Autoconf 2.50 upgrade
NOTE: This patch has been committed. Dear Big Brothers, this is the promised upgrade to Autoconf 2.50. Nothing has changed for the end-user. For developers, the important things to know are: 1/ you *must* now use autoconf 2.50 to regenerate the configure script. It is *not* backward compatible with Autoconf 2.13. 2/ the source file for the configure script has been renamed from `configure.in' to `configure.ac'. I'll post a new configure script in a separate message. ChangeLog addition: 2001-06-05 Didier Verna [EMAIL PROTECTED] * aclocal.m4: upgrade to Autoconf 2.50. * aclocal.m4 (BBDB_PRE_INIT): new. * aclocal.m4 (BBDB_ARG_SUBST): new. * configure.ac: renamed from configure.in. Upgrade to Autoconf 2.50. BBDB Patch (runsocks cvs -q diff -u -t -b -B -w configure.in configure.ac aclocal.m4): Executing ssh-askpass to query the password... cvs server: configure.in was removed, no comparison available cvs server: configure.ac is a new entry, no comparison available Index: aclocal.m4 === RCS file: /cvsroot/bbdb/bbdb/aclocal.m4,v retrieving revision 1.2 diff -u -u -t -b -B -w -r1.2 aclocal.m4 --- aclocal.m4 2001/05/23 07:49:04 1.2 +++ aclocal.m4 2001/06/05 12:17:04 @@ -22,13 +22,58 @@ dnl Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl Transforms a colon separated list into a space separated one: +dnl BBDB_PRE_INIT +dnl +dnl Find BBDB version number and put it in the m4 macro BBDB_VERSION +dnl +dnl I fought really hard, but finally I got it accepted to make autoconf load +dnl aclocal *before* AC_INIT is called. This is important for me, in +dnl situations like this precise one, where I want to dynamically compute the +dnl version number to pass to AC_INIT. +dnl There's one minor glitch however, the AC_DEFUN mechanism is not available +dnl before AC_INIT is called because of diversions. So this macro is defined +dnl only in terms of m4 sugar. +m4_define([BBDB_PRE_INIT], +[ m4_define([_BBDB_VERSION], + m4_esyscmd([sed -n 's/^(defconst bbdb-version \(.*\))/\1/p' +lisp/bbdb.el])) + m4_define([BBDB_VERSION], + m4_substr(_BBDB_VERSION, 0, decr(len(_BBDB_VERSION + m4_undefine([_BBDB_VERSION]) +]) + +dnl BBDB_ARG_SUBST(VAR, OPTION, VAL, DESC[, DEFAULT[, ACTION]]) +dnl +dnl Substitute the autoconf variable VAR to a value specified by the user +dnl option --with-OPTION[=VAL] (described by DESC), or with a DEFAULT value. +dnl If an additional ACTION is given, it is executed at the top of the +dnl ACTION-IF-FOUND part of AC_ARG_WITH. +dnl WARNING: pay attention to the quoting of ACTION if given ! +AC_DEFUN([BBDB_ARG_SUBST], +[ + AC_SUBST([$1]) + AC_ARG_WITH([$2], +AC_HELP_STRING([--with-][$2]ifelse($3, [], [], [=$3]), + [$4]ifelse($5, [], [], [ [[[$5)), +[ + ifelse($6, [], [], $6) + $1=${withval} +], +ifelse($5, [], [], [$1=$5])) +]) + +dnl BBDB_COLON_TO_SPACE(VAR) +dnl +dnl Transforms a (possibly) colon separated list VAR into a space separated +dnl one. VAR needs not be quoted. AC_DEFUN([BBDB_COLON_TO_SPACE], [ case $$1 in *:*) $1=`echo $$1 | sed -e 's/:/ /g'`;; esac ]) -dnl Find GNU tar: +dnl BBDB_PROG_GNU_TAR +dnl +dnl Find a (g)tar program and make sure it is GNU one. A failure is not fatal +dnl since tar is needed for non critical targets only. AC_DEFUN([BBDB_PROG_GNU_TAR], [ AC_CHECK_PROGS(TAR, gtar tar) if test x${TAR} = xtar ; then @@ -45,7 +90,10 @@ AC_MSG_WARN([*** Some targets will be unavailable.]) fi ]) -dnl Choose a compression program: +dnl BBDB_PROG_COMPRESS +dnl +dnl Find a gzip / compress compression program. A failure is not fatal, only +dnl tarballs won't be compressed. AC_DEFUN([BBDB_PROG_COMPRESS], [ AC_CHECK_PROGS(COMPRESS, gzip compress) AC_SUBST(COMPEXT) @@ -60,7 +108,10 @@ COMPEXT=Z fi ]) -dnl Find makeinfo: +dnl BBDB_PROG_MAKEINFO +dnl +dnl Find a makeinfo program. A failure is not fatal, only info files won't be +dnl built. AC_DEFUN([BBDB_PROG_MAKEINFO], [ AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo) if test x${MAKEINFO} = x ; then @@ -68,7 +119,10 @@ AC_MSG_WARN([*** Info files will not be built.]) fi ]) -dnl Find texi2dvi: +dnl BBDB_PROG_TEXI2DVI +dnl +dnl Find a texi2dvi program. A failure is not fatal, only dvi and pdf files +dnl won't be built. AC_DEFUN([BBDB_PROG_TEXI2DVI], [ AC_CHECK_PROG(TEXI2DVI, texi2dvi, texi2dvi) if test x${TEXI2DVI} = x ; then @@ -76,7 +130,10 @@ AC_MSG_WARN([*** DVI and PDF files will not be built.]) fi ]) -dnl Find etags: +dnl BBDB_PROG_ETAGS +dnl +dnl Find an etags program. A failure is not fatal, only TAGS file won't be +dnl built. AC_DEFUN([BBDB_PROG_ETAGS], [ AC_CHECK_PROG(ETAGS, etags, etags) if test x${ETAGS} = x ; then @@ -84,7 +141,10 @@ AC_MSG_WARN([*** Tags file will not be built.]) fi ])
Autoconf 2.50 generated `configure' script
configure.gz -- Didier Verna, [EMAIL PROTECTED], http://www.lrde.epita.fr/~didier EPITA / LRDE, 14-16 rue Voltaire Tel.+33 (1) 53 14 59 47 94276 Le Kremlin-BicĂȘtre, France Fax.+33 (1) 44 08 01 99 [EMAIL PROTECTED]
Re: which bbdb?
Adam == Adam C Finnefrock [EMAIL PROTECTED] writes: Adam Laura Conrad [EMAIL PROTECTED] writes: I too have tried SyncBBDB and had trouble getting the necessary perl framework set up. Adam I, too, had a lot of difficulty with this. The fault lies Adam with pilotmgr, not SyncBBDB. After about three hours I got Adam it. I can help someone else, if they have a linux/redhat Adam system. I'm using Mandrake 8, and I can't get even the bootstrap program to run the perl. I have installed SyncBBDB-2.3 and MD5-1.7, and when I run bootstrap I get: Can't locate PDA/Pilot.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/site_perl/SyncUtil/ConduitHost.pm line 9. Compilation failed in require at /usr/lib/perl5/site_perl/SyncUtil/StandAloneHost.pm line 10. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/SyncUtil/StandAloneHost.pm line 10. Compilation failed in require at ./bootstrap line 5. I assume this is something about the way perl is set up, that people who install perl modules all the time are so used to dealing with that they don't bother mentioning it. Or alternatively, SyncBBDB is only ever tested with pilotmgr, which I can't try right now because the site seems to be down. I put the SyncBBDB directories in /usr/lib/perl5/site-perl, and for the MD5 I ran: perl Makefile.PL make make install What am I missing? -- Laura (mailto:[EMAIL PROTECTED] , http://www.laymusic.org/ ) (617) 661-8097 fax: (801) 365-6574 233 Broadway, Cambridge, MA 02139 ___ [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: which bbdb?
On June 5, [EMAIL PROTECTED] said: I have installed SyncBBDB-2.3 and MD5-1.7, and when I run bootstrap I get: Can't locate PDA/Pilot.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/site_perl/SyncUtil/ConduitHost.pm line 9. PDA::Pilot is part of the pilot-link package. If you don't have it, get the pilot-link source (last seen floating around http://plucker.gnu-designs.com/) and build the stuff in the Perl5 directory. I'm rather surprised if Thomas doesn't mention this in the doco. Cheers, Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me. not much I could do about it could I lie down and look up the stars are so bright - deirdre ___ [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
tarball
Please note that the nightly tarball build is temporarily broken. Apologies for the inconvenience; normal service will be restored as soon as possible. Cheers, Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me. It would be hard to design a worse outdoor chair without making it irresistably delicious to squirrels. - L. Fitzgerald Sjoberg ___ [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
tarball redux
'kay, tarball build should be fixed again. Cheers, Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me. I think i was far too young when i went to uni to make any type of serious decision about what i wanted to do with my life. - Jo Gread ___ [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: which bbdb?
Ronan == Ronan Waide [EMAIL PROTECTED] writes: Ronan On June 5, [EMAIL PROTECTED] said: I have installed SyncBBDB-2.3 and MD5-1.7, and when I run bootstrap I get: Can't locate PDA/Pilot.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/site_perl/SyncUtil/ConduitHost.pm line 9. Ronan PDA::Pilot is part of the pilot-link package. If you don't have it, Ronan get the pilot-link source (last seen floating around Ronan http://plucker.gnu-designs.com/) and build the stuff in the Perl5 Ronan directory. Ronan I'm rather surprised if Thomas doesn't mention this in the doco. He does, and I do have it. Obviously my perl setup doesn't work like the one he's thinking of. -- Laura (mailto:[EMAIL PROTECTED] , http://www.laymusic.org/ ) (617) 661-8097 fax: (801) 365-6574 233 Broadway, Cambridge, MA 02139 ___ [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/