3 # Run this to generate all the initial makefiles.
5 # Copyright 2014 The Wireshark Authors
7 # Wireshark - Network traffic analyzer
8 # By Gerald Combs <gerald@wireshark.org>
9 # Copyright 1998 Gerald Combs
11 # SPDX-License-Identifier: GPL-2.0-or-later
16 # If you are going to use the non-default name for automake becase your OS
17 # installation has multiple versions, you need to call both aclocal and automake
18 # with that version number, as they come from the same package.
21 ACLOCAL=aclocal$AM_VERSION
23 AUTOMAKE=automake$AM_VERSION
27 # Check for python. Python did not support --version before version 2.5.
28 # Until we require a version > 2.5, we should use -V.
29 PYVER=`exec python -V 2>&1 | sed 's/Python *//'`
30 # If "python" isn't found, try "python3"
31 if test "$PYVER" = "exec: python: not found"
33 PYVER=`exec python3 -V 2>&1 | sed 's/Python *//'`
41 You must have Python in order to compile $PROJECT.
42 Download the appropriate package for your distribution/OS,
43 or get the source tarball at http://www.python.org/
48 ACVER=`$AUTOCONF --version | grep '^autoconf' | sed 's/.*) *//'`
50 '' | 0.* | 1.* | 2.[0-5]* | 2.6[0123]* )
53 You must have autoconf 2.64 or later installed to compile $PROJECT.
54 Download the appropriate package for your distribution/OS,
55 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/
62 AMVER=`$AUTOMAKE --version | grep '^automake' | sed 's/.*) *//'`
71 You must have automake 1.11 or later installed to compile $PROJECT.
72 Download the appropriate package for your distribution/OS,
73 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/
81 # Apple's Developer Tools have a "libtool" that has nothing to do with
82 # the GNU libtool; they call the latter "glibtool". They also call
83 # libtoolize "glibtoolize".
85 # Check for "glibtool" first.
87 LTVER=`glibtool --version 2>/dev/null | grep ' libtool)' | \
88 sed 's/.*libtool) \([0-9][0-9.]*\)[^ ]* .*/\1/'`
91 LTVER=`libtool --version | grep ' libtool)' | \
92 sed 's/.*) \([0-9][0-9.]*\)[^ ]* .*/\1/' `
95 LIBTOOLIZE=glibtoolize
98 '' | 0.* | 1.* | 2.2 )
102 You must have libtool 2.2.2 or later installed to compile $PROJECT.
103 Download the appropriate package for your distribution/OS,
104 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/
111 # XXX - is there some minimum version for which we should be checking?
113 PCVER=`pkg-config --version`
114 if test -z "$PCVER"; then
117 You must have pkg-config installed to compile $PROJECT.
118 Download the appropriate package for your distribution/OS,
119 or get the source tarball at http://pkgconfig.freedesktop.org/releases/
126 LTARGS=" --copy --force"
127 echo $LIBTOOLIZE $LTARGS
128 $LIBTOOLIZE $LTARGS || exit 1
129 aclocal_flags="-I m4"
130 aclocalinclude="$ACLOCAL_FLAGS $aclocal_flags";
131 echo $ACLOCAL $aclocalinclude
132 $ACLOCAL $aclocalinclude || exit 1
134 $AUTOHEADER || exit 1
135 echo $AUTOMAKE --add-missing --gnu $am_opt
136 $AUTOMAKE --add-missing --gnu $am_opt || exit 1
140 echo "Now type \"./configure [options]\" and \"make\" to compile $PROJECT."