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 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License
13 # as published by the Free Software Foundation; either version 2
14 # of the License, or (at your option) any later version.
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 # If you are going to use the non-default name for automake becase your OS
29 # installaion has multiple versions, you need to call both aclocal and automake
30 # with that version number, as they come from the same package.
33 ACLOCAL=aclocal$AM_VERSION
35 AUTOMAKE=automake$AM_VERSION
38 # Check for python. Python did not support --version before version 2.5.
39 # Until we require a version > 2.5, we should use -V.
40 PYVER=`python -V 2>&1 | sed 's/Python *//'`
47 You must have Python in order to compile $PROJECT.
48 Download the appropriate package for your distribution/OS,
49 or get the source tarball at http://www.python.org/
55 ACVER=`$AUTOCONF --version | grep '^autoconf' | sed 's/.*) *//'`
57 '' | 0.* | 1.* | 2.[0-5]* )
60 You must have autoconf 2.60 or later installed to compile $PROJECT.
61 Download the appropriate package for your distribution/OS,
62 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/
69 AMVER=`$AUTOMAKE --version | grep '^automake' | sed 's/.*) *//'`
78 You must have automake 1.9 or later installed to compile $PROJECT.
79 Download the appropriate package for your distribution/OS,
80 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/
88 # Apple's Developer Tools have a "libtool" that has nothing to do with
89 # the GNU libtool; they call the latter "glibtool". They also call
90 # libtoolize "glibtoolize".
92 # Check for "glibtool" first.
94 LTVER=`glibtool --version 2>/dev/null | grep ' libtool)' | \
95 sed 's/.*libtool) \([0-9][0-9.]*\)[^ ]* .*/\1/'`
98 LTVER=`libtool --version | grep ' libtool)' | \
99 sed 's/.*) \([0-9][0-9.]*\)[^ ]* .*/\1/' `
100 LIBTOOLIZE=libtoolize
102 LIBTOOLIZE=glibtoolize
105 '' | 0.* | 1.[0-3]* )
109 You must have libtool 1.4 or later installed to compile $PROJECT.
110 Download the appropriate package for your distribution/OS,
111 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/
119 aclocal_flags=`./aclocal-flags`
120 aclocalinclude="$ACLOCAL_FLAGS $aclocal_flags";
121 echo $ACLOCAL $aclocalinclude
122 $ACLOCAL $aclocalinclude || exit 1
124 # We do NOT want libtoolize overwriting our versions of config.guess and
125 # config.sub, so move them away and then move them back.
126 # We don't omit "--force", as we want libtoolize to install other files
129 mv config.guess config.guess.save-libtool
130 mv config.sub config.sub.save-libtool
131 LTARGS=" --copy --force"
132 echo $LIBTOOLIZE $LTARGS
133 $LIBTOOLIZE $LTARGS || exit 1
134 rm -f config.guess config.sub
135 mv config.guess.save-libtool config.guess
136 mv config.sub.save-libtool config.sub
138 $AUTOHEADER || exit 1
139 echo $AUTOMAKE --add-missing --gnu $am_opt
140 $AUTOMAKE --add-missing --gnu $am_opt || exit 1
144 if [ `uname -s` = Darwin ] ; then
146 echo "To configure Wireshark on OS X, you will need to type:"
147 echo "export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/X11/lib/pkgconfig"
148 echo "before you can run configure."
152 echo "Now type \"./configure [options]\" and \"make\" to compile $PROJECT."