mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-27 11:59:17 +00:00
Add --with-gtk option in the configure.ac. By default it is used gtk+ 2.
This commit is contained in:
parent
6eee2fe5f3
commit
4b2bbd9bd7
38
configure.ac
38
configure.ac
|
@ -51,18 +51,32 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
|
|||
|
||||
AC_CHECK_LIB([m], [sinf])
|
||||
|
||||
PKG_CHECK_EXISTS([gtk+-3.0 >= 2.90],
|
||||
[
|
||||
GTK_REQUIRED=gtk+-3.0
|
||||
GTK_REQUIRED_VERSION=2.90.0
|
||||
GTKSOURCEVIEW_REQUIRED=gtksourceview-3.0
|
||||
GTKSOURCEVIEW_REQUIRED_VERSION=2.90.0
|
||||
],[
|
||||
GTK_REQUIRED=gtk+-2.0
|
||||
GTK_REQUIRED_VERSION=2.18.0
|
||||
GTKSOURCEVIEW_REQUIRED=gtksourceview-2.0
|
||||
GTKSOURCEVIEW_REQUIRED_VERSION=2.8.0
|
||||
])
|
||||
# Which gtk+ API version to compile against
|
||||
|
||||
AC_MSG_CHECKING([which gtk+ version to compile against])
|
||||
AC_ARG_WITH([gtk],
|
||||
[AS_HELP_STRING([--with-gtk=2.0|3.0],[which gtk+ version to compile against (default: 2.0)])],
|
||||
[case "$with_gtk" in
|
||||
2.0|3.0) ;;
|
||||
*) AC_MSG_ERROR([invalid gtk version specified]) ;;
|
||||
esac],
|
||||
[with_gtk=2.0])
|
||||
AC_MSG_RESULT([$with_gtk])
|
||||
|
||||
case "$with_gtk" in
|
||||
2.0)
|
||||
GTK_REQUIRED=gtk+-2.0
|
||||
GTK_REQUIRED_VERSION=2.18.0
|
||||
GTKSOURCEVIEW_REQUIRED=gtksourceview-2.0
|
||||
GTKSOURCEVIEW_REQUIRED_VERSION=2.8.0
|
||||
;;
|
||||
3.0)
|
||||
GTK_REQUIRED=gtk+-3.0
|
||||
GTK_REQUIRED_VERSION=2.90.0
|
||||
GTKSOURCEVIEW_REQUIRED=gtksourceview-3.0
|
||||
GTKSOURCEVIEW_REQUIRED_VERSION=2.90.0
|
||||
;;
|
||||
esac
|
||||
|
||||
GLIB_REQUIRED_VERSION=2.26
|
||||
|
||||
|
|
Loading…
Reference in a new issue