Mercurial > dwindows
comparison configure.in @ 1095:1ab93c92d3ea
Add --with-gtk3 switch to enable building with GTK+ 3.x on systems where
it is available. By default builds are done with GTK+ 2.x
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 30 Jun 2011 07:43:35 +0000 |
parents | b2a4cfc3cb87 |
children | 1c24949cf853 |
comparison
equal
deleted
inserted
replaced
1094:b2a4cfc3cb87 | 1095:1ab93c92d3ea |
---|---|
42 AC_ARG_WITH(compat, | 42 AC_ARG_WITH(compat, |
43 [ --with-compat specify this to build the optional dwcompat library], | 43 [ --with-compat specify this to build the optional dwcompat library], |
44 [with_compat=$withval], | 44 [with_compat=$withval], |
45 [with_compat=no], | 45 [with_compat=no], |
46 ) | 46 ) |
47 | |
48 dnl ---------------------- check for '--with-gtk3' switch ----------------- | |
49 AC_ARG_WITH(gtk3, | |
50 [ --with-gtk3 specify this to build with GTK+ 3.x if available], | |
51 [with_gtk3=$withval], | |
52 [with_gtk3=no], | |
53 ) | |
54 | |
47 dnl ---------------------- default targets to build ----------------- | 55 dnl ---------------------- default targets to build ----------------- |
48 if test $with_compat = yes; then | 56 if test $with_compat = yes; then |
49 COMPAT_OBJECT="compat.o" | 57 COMPAT_OBJECT="compat.o" |
50 INSTALL_COMPAT="installcompat" | 58 INSTALL_COMPAT="installcompat" |
51 SYSCONF_LINK_TARGET_SHARED2="lib$TARGET2.$SOSUFFIX.$DW_MAJOR_VERSION.$DW_MINOR_VERSION" | 59 SYSCONF_LINK_TARGET_SHARED2="lib$TARGET2.$SOSUFFIX.$DW_MAJOR_VERSION.$DW_MINOR_VERSION" |
194 esac | 202 esac |
195 | 203 |
196 if test $build_gtk = "yes"; then | 204 if test $build_gtk = "yes"; then |
197 AC_CHECK_PROG(PKG_CFG, pkg-config, pkg-config) | 205 AC_CHECK_PROG(PKG_CFG, pkg-config, pkg-config) |
198 if test x"$PKG_CFG" != x; then | 206 if test x"$PKG_CFG" != x; then |
199 GTK_PACKAGES="gtk+-3.0" | 207 GTK_LIBS="" |
200 GTK_LIBS=`$PKG_CFG --silence-errors --libs $GTK_PACKAGES` | 208 if test $with_gtk3 = "yes"; then |
209 GTK_PACKAGES="gtk+-3.0" | |
210 GTK_LIBS=`$PKG_CFG --silence-errors --libs $GTK_PACKAGES` | |
211 fi | |
201 WEBKIT_PKG="webkit-1.1" | 212 WEBKIT_PKG="webkit-1.1" |
202 if test x"$GTK_LIBS" = x; then | 213 if test x"$GTK_LIBS" = x; then |
203 GTK_PACKAGES="gtk+-2.0 gthread-2.0" | 214 GTK_PACKAGES="gtk+-2.0 gthread-2.0" |
204 GTK_LIBS=`$PKG_CFG --silence-errors --libs $GTK_PACKAGES` | 215 GTK_LIBS=`$PKG_CFG --silence-errors --libs $GTK_PACKAGES` |
205 else | 216 else |