[Sheepdog] [PATCH] Autotoolize sheepdog

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sun May 16 21:48:15 CEST 2010


At Fri, 14 May 2010 23:06:35 -0700,
Steven Dake wrote:
> 
> This patch contains the initial work to autotoolize sheepdog.  To generate the
> configure script, run the autogen.sh script.  Then run ./configure followed by
> make.  make install also works properly.
> 
> Then run configure as normal.  The configure.ac supports several options
> including --enable-profiling and --enable-debug as well as the standard GNU
> automake setup.
> 
> The warnings list is a pretty standard list of warning catches, but does
> generate alot of warning output.
> 
> One thing that is missing is using the git version field rather then
> PACKAGE_VERSION generated from configure.ac.
> 
> Finally, if you want to generate an output tarball, run make dist.
> 
> make distcheck verifies the make system included all the proper files to
> support a self-build.
> 
> Signed-off-by: Steven Dake <sdake at redhat.com>
> ---
>  Makefile            |   40 ----
>  Makefile.am         |   23 ++
>  autogen.sh          |    5 +
>  collie/Makefile     |   30 ---
>  configure.ac        |  326 ++++++++++++++++++++++++++
>  include/Makefile.am |    3 +
>  lib/Makefile        |    3 -
>  lib/Makefile.am     |    3 +
>  script/Makefile.am  |    3 +
>  sheep/Makefile      |   30 ---
>  sheep/Makefile.am   |   42 ++++
>  sheep/net.c         |  643 ---------------------------------------------------
>  sheep/sdnet.c       |  643 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  sheep/sheep.c       |    7 +-
>  sheep/store.c       |    3 +
>  15 files changed, 1056 insertions(+), 748 deletions(-)
>  delete mode 100644 Makefile
>  create mode 100644 Makefile.am
>  create mode 100755 autogen.sh
>  delete mode 100644 collie/Makefile
>  create mode 100644 configure.ac
>  create mode 100644 include/Makefile.am
>  delete mode 100644 lib/Makefile
>  create mode 100644 lib/Makefile.am
>  create mode 100644 script/Makefile.am
>  delete mode 100644 sheep/Makefile
>  create mode 100644 sheep/Makefile.am
>  delete mode 100644 sheep/net.c
>  create mode 100644 sheep/sdnet.c
> 

Is collie/Makefile.am missing, isn't it?  If so, please add the file
and resend the patch.

I also thought that autotools was complicated, but, as you say, using
it looks to be a right way.

Kazutaka



More information about the sheepdog mailing list