[Spread-users] [PATCH] autoconf build missing aclocal.m4
Jonathan Stanton
jonathan at cnds.jhu.edu
Mon May 10 18:29:33 EDT 2004
Hi Daniel,
Actually this macro is included. There is a "buildtools" subdirectory of
the "daemon" directory that has all of the autoconf support files. The
main source directory only has "*.in" and "*.h" files for autoconf
support.
To rebuild the configure script you need to run:
autoconf -I buildtools
If you add new header defines you may also need to run
autoheader -I buildtools
So I do not think adding this to the main daemon directory is needed. Your
copy of the macro is nicer since it is properly indented so I will replace
the current buildtools/aclocal.m4 with your version.
Cheers,
Jonathan
On Mon, Apr 19, 2004 at 07:07:49PM -0700, Daniel Rall wrote:
> Part of Theo's original patch [1] to change the build system to
> autoconf-based is missing from CVS! Without it, I get errors like the
> following when trying to generate a configure script (on a RedHat 9 Linux
> box):
>
> dlr at despot:daemon$ autoconf
> configure.in:81: error: possibly undefined macro: AC_PTHREAD_FREEBSD
> If this token and others are legitimate, please use m4_pattern_allow.
> See the Autoconf documentation.
>
> Attached is it as a properly indented autoconf defun which should be
> commited to CVS as spread/daemon/aclocal.m4. Though the same result can be
> achieved by inlining this defun into configure.in, this local macros file
> appears to be picked up automatically by autoconf, and seems to be the more
> idiomatic way of doing things.
>
> [1]
> http://lists.spread.org/pipermail/spread-users/2002-September/001029.html
> dnl FreeBSD -pthread check - Jonathan McDowell
> AC_DEFUN(AC_PTHREAD_FREEBSD,
> [AC_MSG_CHECKING([if we need -pthread for threads])
> AC_CACHE_VAL(ac_ldflag_pthread,
> [ac_save_LDFLAGS="$LDFLAGS"
> LDFLAGS="-pthread $LDFLAGS"
> AC_TRY_LINK([char pthread_create();],
> pthread_create();,
> eval "ac_ldflag_pthread=yes",
> eval "ac_ldflag_pthread=no"),
> LIBS="$ac_save_LDFLAGS"
> ])
> if eval "test \"`echo $ac_ldflag_pthread`\" = yes"; then
> AC_MSG_RESULT(yes)
> else
> AC_MSG_RESULT(no)
> fi
> ])
--
-------------------------------------------------------
Jonathan R. Stanton jonathan at cs.jhu.edu
Dept. of Computer Science
Johns Hopkins University
-------------------------------------------------------
More information about the Spread-users
mailing list