diff options
author | Michael Terry <mike@mterry.name> | 2011-06-01 15:24:28 -0400 |
---|---|---|
committer | Michael Terry <mike@mterry.name> | 2011-06-01 15:24:28 -0400 |
commit | 5ddcf6b51cdcb8d793748ff4a812f843a0d4f6e7 (patch) | |
tree | 67cdd3557d77ae36dbc61ed05cd6c136bf4f2fe8 /configure.ac | |
parent | 3e67ec3d19dd4e31ec68b1b9c33f4b330c7672a3 (diff) | |
download | ayatana-ido-5ddcf6b51cdcb8d793748ff4a812f843a0d4f6e7.tar.gz ayatana-ido-5ddcf6b51cdcb8d793748ff4a812f843a0d4f6e7.tar.bz2 ayatana-ido-5ddcf6b51cdcb8d793748ff4a812f843a0d4f6e7.zip |
allow building either gtk2 or gtk3 versions; some deprecation cleanups
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 1f644c0..fc26c5b 100644 --- a/configure.ac +++ b/configure.ac @@ -68,7 +68,20 @@ AC_FUNC_MALLOC AC_FUNC_MMAP AC_CHECK_FUNCS([memset munmap strcasecmp strdup]) -PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 2.19.7) +PKG_PROG_PKG_CONFIG + +AC_ARG_WITH([gtk], + [AS_HELP_STRING([--with-gtk], + [Which version of gtk to use @<:@default=3@:>@])], + [], + [with_gtk=3]) +AM_CONDITIONAL(USE_GTK3, [test "x$with_gtk" = x3]) + +if test "x$with_gtk" = "x2"; then + PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.19.7) +else + PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.0.0) +fi AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) @@ -114,6 +127,7 @@ AC_CONFIG_FILES([ src/Makefile example/Makefile libido.pc + libido3.pc ]) AC_OUTPUT |