diff options
author | Jörg Mayer <jmayer@loplof.de> | 2002-08-28 00:37:31 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2002-08-28 00:37:31 +0000 |
commit | 8874c97191c120ca1dac2a0a5b2f422aa28ad2d4 (patch) | |
tree | b611516730f708d21d91f9d3cd9f67b7035428c3 /wiretap/configure.in | |
parent | 33008beffa58e754253db3bfcd093ffa5cfed285 (diff) | |
download | wireshark-8874c97191c120ca1dac2a0a5b2f422aa28ad2d4.tar.gz wireshark-8874c97191c120ca1dac2a0a5b2f422aa28ad2d4.tar.bz2 wireshark-8874c97191c120ca1dac2a0a5b2f422aa28ad2d4.zip |
Add gtk2/glib2 handling to configure. Use --enable-gtk2 to use
gtk2 instead of gtk and glib2 instead of glib.
Right now, --enable-gtk2 will fail during compile unless
acompanied by --disable-ethereal, as ethereal does not yet
support gtk2 (but does support glib2 alone).
svn path=/trunk/; revision=6107
Diffstat (limited to 'wiretap/configure.in')
-rw-r--r-- | wiretap/configure.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/wiretap/configure.in b/wiretap/configure.in index c72b9250bc..34469bb001 100644 --- a/wiretap/configure.in +++ b/wiretap/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.39 2002/08/14 14:42:42 jmayer Exp $ +# $Id: configure.in,v 1.40 2002/08/28 00:37:31 jmayer Exp $ dnl dnl Process this file with autoconf 2.13 or later to produce a dnl configure script; 2.12 doesn't generate a "configure" script that @@ -94,8 +94,14 @@ else esac fi -# Check for glib. -AM_PATH_GLIB(1.1.0, CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS") +AC_ARG_ENABLE(gtk2, +[ --enable-gtk2 build Glib2/Gtk2+-based (t)ethereal. [default=no]],enable_gtk2=yes,enable_gtk2=no) + +if test "x$enable_gtk2" = "xyes" ; then + AM_PATH_GLIB_2_0(2.0.0, CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS", , gmodule) +else + AM_PATH_GLIB(1.2.0, CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS", , gmodule) +fi dnl Look in /usr/local for header files and libraries ? AC_ARG_ENABLE(usr-local, |