Allow --with-gtk2 to disable GTK+ 3.

This commit is contained in:
Brandon Wright 2018-04-28 11:27:57 -05:00
parent c56a2751be
commit f2dcb275d2
1 changed files with 7 additions and 1 deletions

View File

@ -159,6 +159,12 @@ AC_ARG_WITH(gtk3,
[],
[with_gtk3=yes])
AC_ARG_WITH(gtk2,
[AS_HELP_STRING([--with(out)-gtk2],
[Build with GTK+ 3 if available (default: without)])],
[],
[with_gtk2=no])
if test yes = "$with_debug" ; then
CFLAGS="$CFLAGS -g"
else
@ -190,7 +196,7 @@ GTK=yes
snes9x_info_display="GTK"
GTK3_WARNING=no
if test yes = "$with_gtk3" ; then
if test yes = "$with_gtk3" -a no = "$with_gtk2"; then
GTK_VERSION="gtk+-3.0"
GTK3_WARNING=yes
CFLAGS="$CFLAGS -DUSE_GTK3"