Removed automatically-generated files from CVS. Some files are generated,
[obnox/wireshark/wip.git] / autogen.sh
1 #!/bin/sh
2 #
3 # Run this to generate all the initial makefiles.
4 #
5 # $Id: autogen.sh,v 1.1 1999/07/27 04:43:01 gram Exp $
6
7 DIE=0
8 PROJECT="Ethereal"
9
10 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
11         echo
12         echo "You must have autoconf installed to compile $PROJECT."
13         echo "Download the appropriate package for your distribution,"
14         echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
15         DIE=1
16 }
17
18 (automake --version) < /dev/null > /dev/null 2>&1 || {
19         echo
20         echo "You must have autoconf installed to compile $PROJECT."
21         echo "Download the appropriate package for your distribution,"
22         echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
23         DIE=1
24 }
25
26 if test "$DIE" -eq 1 ; then
27         exit 1
28 fi
29
30 if test -z "$*"; then
31         echo "Running ./configure with no arguments. If you wish to pass any,",
32         echo "please specify them on the $0 command line."
33 fi
34
35 for dir in . wiretap ;  do
36         echo processing $dir
37         (cd $dir; \
38                 aclocalinclude="$ACLOCAL_FLAGS"; \
39                 aclocal $aclocalinclude; \
40                 autoheader; automake --add-missing --gnu $am_opt; autoconf)
41 done
42
43 for dir in doc;  do
44         echo processing $dir
45         (cd $dir; \
46                 aclocalinclude="$ACLOCAL_FLAGS"; \
47                 aclocal $aclocalinclude; \
48                 autoheader; autoconf)
49 done
50
51 ./configure "$@"
52
53 echo
54 echo "Now type 'make' to compile $PROJECT."