Ethereal-dev: [ethereal-dev] "autogen" problems in CVS sources

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Bruce Korb <bkorb@xxxxxxx>
Date: Mon, 17 Jul 2000 14:17:38 -0700
Since I do not like to pollute a CVS tree with non-CVS-ed files,
I clone the tree before running (see the attached :mksrc):

[[by the way, same problems without the tree-cloning step]]

$ :mksrc
Using `AC_PROG_RANLIB' is rendered obsolete by `AM_PROG_LIBTOOL'
You should add the contents of `/usr/local/share/aclocal/libtool.m4' to `aclocal
.m4'.
Running ./configure with no arguments. If you wish to pass any,
please specify them on the ./autogen.sh command line.
processing .
aclocal: configure.in: 120: macro `AM_PATH_GLIB' not found in library
aclocal: configure.in: 126: macro `AM_PATH_GTK' not found in library
autoheader: error: AC_CONFIG_HEADERS not found in configure.in
automake: configure.in: installing `./install-sh'
automake: configure.in: installing `./mkinstalldirs'
automake: configure.in: installing `./missing'
configure.in: 394: required file `./config.h.in' not found
autoconf: undefined macros:
configure.in:120:AM_PATH_GLIB(1.2.0, , AC_MSG_ERROR(GLib distribution not found.
), gmodule)
configure.in:126:AM_PATH_GTK(1.2.0, CFLAGS="$CFLAGS $GTK_CFLAGS",
configure.in:131:AC_ETHEREAL_GETHOSTBY_LIB_CHECK
configure.in:135:AC_ETHEREAL_SOCKET_LIB_CHECK
configure.in:146:       AC_ETHEREAL_PCAP_CHECK
configure.in:158:        AC_ETHEREAL_ZLIB_CHECK
configure.in:16:AM_INIT_AUTOMAKE(ethereal, 0.8.10)
configure.in:174:       AC_ETHEREAL_IPV6_STACK
configure.in:18:AM_CONDITIONAL(SETUID_INSTALL, test x$enable_setuid_install = xy
es)
configure.in:209:       AC_ETHEREAL_UCDSNMP_CHECK
configure.in:252:AC_ETHEREAL_STRUCT_SA_LEN
configure.in:28:AM_PROG_LEX
configure.in:390:AC_LIBTOOL_DLOPEN
configure.in:391:AM_PROG_LIBTOOL
configure.in:394:AM_CONFIG_HEADER(config.h)
configure.in:84:AC_ETHEREAL_ADD_DASH_L(LDFLAGS, /usr/local/lib)
processing wiretap
aclocal: configure.in: 42: macro `AM_PATH_GTK' not found in library
autoheader: error: AC_CONFIG_HEADERS not found in configure.in
configure.in: 17: required file `./config.h.in' not found
autoconf: undefined macros:
configure.in:16:AM_INIT_AUTOMAKE(libwtap.a, 0.0.0)
configure.in:17:AM_CONFIG_HEADER(config.h)
configure.in:23:AM_PROG_LEX
configure.in:39:AM_PATH_GLIB(1.1.0, CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $G
LIB_LIBS")
configure.in:42: AM_PATH_GTK(1.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GT
K_LIBS",
configure.in:65:        AC_WIRETAP_ZLIB_CHECK
./configure: syntax error at line 692: `AM_INIT_AUTOMAKE' unexpected

Now type 'make' to compile Ethereal.
#! /bin/sh

[ -d src ] && {
  mv src .ZSRC$$
  (rm -rf .ZSRC$$ & )
}

mkdir src

( cd ethereal ; find * -type d | egrep -v 'CVS' ) | \
while read f ; do mkdir src/$f ; done

CDIR=`pwd`

( cd ethereal ; find * -type f | egrep -v 'CVS/' ) | \
while read f ; do ln -s $CDIR/ethereal/$f src/$f ; done

(cd src ; sh ./autogen.sh)