forked from osmocom/wireshark
Arrange that "make distcheck" use the GUI configure flags used to
configure Wireshark, so we don't, for example, do "make distcheck" with no options, and thus default to GTK+ 3, on a system without GTK+ 3 where Wireshark was configured with --with-gtk2. (This also means that if we're configuring only with Qt, or with GTK+ *and* Qt, "make distcheck" will check with those.) svn path=/trunk/; revision=51456
This commit is contained in:
parent
438f2f4558
commit
d9ebff02be
|
@ -21,6 +21,7 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
AM_DISTCHECK_CONFIGURE_FLAGS=@GUI_CONFIGURE_FLAGS@
|
||||
ACLOCAL_AMFLAGS = `./aclocal-flags`
|
||||
|
||||
if HAVE_LIBPY
|
||||
|
|
|
@ -1333,7 +1333,8 @@ if test "x$enable_wireshark" = "xyes"; then
|
|||
[
|
||||
CFLAGS="$CFLAGS $Qt_CFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $Qt_CFLAGS"
|
||||
have_qt=yes
|
||||
have_qt=yes
|
||||
GUI_CONFIGURE_FLAGS="$GUI_CONFIGURE_FLAGS --with-qt"
|
||||
],
|
||||
[AC_MSG_ERROR([Qt is not available])])
|
||||
|
||||
|
@ -1362,6 +1363,7 @@ if test "x$enable_wireshark" = "xyes"; then
|
|||
CFLAGS="$CFLAGS $GTK_CFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
|
||||
have_gtk=yes
|
||||
GUI_CONFIGURE_FLAGS="$GUI_CONFIGURE_FLAGS --with-gtk3"
|
||||
],
|
||||
[AC_MSG_ERROR([GTK+ 3 is not available])])
|
||||
elif test "x$with_gtk2" = "xyes"; then
|
||||
|
@ -1374,10 +1376,12 @@ if test "x$enable_wireshark" = "xyes"; then
|
|||
CFLAGS="$CFLAGS $GTK_CFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
|
||||
have_gtk=yes
|
||||
GUI_CONFIGURE_FLAGS="$GUI_CONFIGURE_FLAGS --with-gtk2"
|
||||
],
|
||||
[AC_MSG_ERROR([GTK+ 2 is not available])])
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(GUI_CONFIGURE_FLAGS)
|
||||
|
||||
GLIB_MIN_VERSION=2.16.0
|
||||
AC_SUBST(GLIB_MIN_VERSION)
|
||||
|
|
Loading…
Reference in New Issue