1 | | http://trac.filezilla-project.org/ticket/9582 |
2 | | |
3 | | --- configure.orig |
4 | | +++ configure |
5 | | @@ -17870,12 +17870,12 @@ if test -n "$LIBGTK_CFLAGS"; then |
6 | | pkg_cv_LIBGTK_CFLAGS="$LIBGTK_CFLAGS" |
7 | | elif test -n "$PKG_CONFIG"; then |
8 | | if test -n "$PKG_CONFIG" && \ |
9 | | - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5 |
10 | | - ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5 |
11 | | + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5 |
12 | | + ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5 |
13 | | ac_status=$? |
14 | | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15 | | test $ac_status = 0; }; then |
16 | | - pkg_cv_LIBGTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null` |
17 | | + pkg_cv_LIBGTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null` |
18 | | test "x$?" != "x0" && pkg_failed=yes |
19 | | else |
20 | | pkg_failed=yes |
21 | | @@ -17887,12 +17887,12 @@ if test -n "$LIBGTK_LIBS"; then |
22 | | pkg_cv_LIBGTK_LIBS="$LIBGTK_LIBS" |
23 | | elif test -n "$PKG_CONFIG"; then |
24 | | if test -n "$PKG_CONFIG" && \ |
25 | | - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5 |
26 | | - ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5 |
27 | | + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5 |
28 | | + ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5 |
29 | | ac_status=$? |
30 | | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
31 | | test $ac_status = 0; }; then |
32 | | - pkg_cv_LIBGTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null` |
33 | | + pkg_cv_LIBGTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null` |
34 | | test "x$?" != "x0" && pkg_failed=yes |
35 | | else |
36 | | pkg_failed=yes |
37 | | @@ -17913,21 +17913,21 @@ else |
38 | | _pkg_short_errors_supported=no |
39 | | fi |
40 | | if test $_pkg_short_errors_supported = yes; then |
41 | | - LIBGTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1` |
42 | | + LIBGTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1` |
43 | | else |
44 | | - LIBGTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1` |
45 | | + LIBGTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1` |
46 | | fi |
47 | | # Put the nasty error message in config.log where it belongs |
48 | | echo "$LIBGTK_PKG_ERRORS" >&5 |
49 | | |
50 | | |
51 | | - as_fn_error $? "gtk+-2.0 was not found, even though the used version of wxWidgets depends on it. Are you missing the gtk+2.0 development files?" "$LINENO" 5 |
52 | | + as_fn_error $? "gtk+-3.0 was not found, even though the used version of wxWidgets depends on it. Are you missing the gtk+2.0 development files?" "$LINENO" 5 |
53 | | |
54 | | elif test $pkg_failed = untried; then |
55 | | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
56 | | $as_echo "no" >&6; } |
57 | | |
58 | | - as_fn_error $? "gtk+-2.0 was not found, even though the used version of wxWidgets depends on it. Are you missing the gtk+2.0 development files?" "$LINENO" 5 |
59 | | + as_fn_error $? "gtk+-3.0 was not found, even though the used version of wxWidgets depends on it. Are you missing the gtk+2.0 development files?" "$LINENO" 5 |
60 | | |
61 | | else |
62 | | LIBGTK_CFLAGS=$pkg_cv_LIBGTK_CFLAGS |