<<< Date Index >>>     <<< Thread Index >>>

Re: Error - Adding NNTP patch



Hi, David.  I have some more information for you.

On Mon, Oct 20, 2003 at 01:31:21PM -0400, David Fishburn wrote:
> ******
> WARNING: Run the following script before configure:
> 
> aclocal -I m4
> autoheader
> cd m4
> make -f Makefile.am.in
> cd ..
> automake --foreign
> autoconf
> ******
> So at this point I am a bit confused, so I decide I should patch 
> everthing first, then come back and take care of these instructions. I
> also tried it the other way around, same problem.

These directions definitely look like they should be performed after
the patch.  The aclocal command will regenerate the aclocal.m4 file,
so that it can recognize system-wide libraries with m4 files, as well
as macros defined in the m4/ subdirectory of the source tree.
autoheader is for config.h.in, automake for Makefile.in ...  (I'm not
sure about the (cd m4 && make -f Makefile.am.in))

> autoconf
> **********
> configure.in:296: error: do not use LIBOBJS directly, use AC_LIBOBJ (see
> 
> section `AC_LIBOBJ vs LIBOBJS'
>       If this token and others are legitimate, please use 
>       m4_pattern_allow.
>             See the Autoconf documentation.
> **********
> Does anyone know what I might be doing wrong?

The info files for autoconf have a section about this, and recommend
replacing something like LIBOBJS="$LIBOBJS foo.o" with
AC_LIBOBJ([foo])

A bientot,
 Allister

-- 
Allister MacLeod <amacleod@xxxxxxxx>
 Elen síla lúmenn'omentielvo.
--- configure.in        2003-10-20 15:55:55.000000000 -0400
+++ configure.in.new    2003-10-20 15:33:00.000000000 -0400
@@ -293,7 +293,7 @@
 AC_CHECK_FUNCS(snprintf, , [mutt_cv_snprintf=yes])
 AC_CHECK_FUNCS(vsnprintf, , [mutt_cv_snprintf=yes])
 if test $mutt_cv_snprintf = yes; then
-        LIBOBJS="$LIBOBJS snprintf.o"
+       AC_LIBOBJ([snprintf])
 fi
 
 dnl SCO uses chsize() instead of ftruncate()
@@ -325,7 +325,7 @@
 
 if test $mutt_cv_regex = yes; then
         AC_DEFINE(USE_GNU_REGEX,1,[ Define if you want to use the included 
regex.c. ])
-        LIBOBJS="$LIBOBJS regex.o"
+       AC_LIBOBJ([regex])
 fi