Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/coot/files/, sci-chemistry/coot/
Date: Fri, 29 Apr 2011 10:05:54
Message-Id: 1c8a1fdbc046a0feb2460af9d212ae9e7e98f7fb.jlec@gentoo
1 commit: 1c8a1fdbc046a0feb2460af9d212ae9e7e98f7fb
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 28 08:10:39 2011 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 28 08:10:39 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=1c8a1fdb
7
8 Cleaned old patches
9
10 (Portage version: 2.2.0_alpha30/git/Linux x86_64, signed Manifest commit with key 70EB7916)
11
12 ---
13 sci-chemistry/coot/ChangeLog | 5 +
14 sci-chemistry/coot/files/9999-gsl.patch | 14 --
15 sci-chemistry/coot/files/9999-openmp.patch | 28 ---
16 sci-chemistry/coot/files/9999-rappermc.patch | 15 --
17 sci-chemistry/coot/files/fix-namespace-error.patch | 52 -----
18 sci-chemistry/coot/files/glib.m4 | 196 -------------------
19 sci-chemistry/coot/files/gtk.m4 | 199 --------------------
20 7 files changed, 5 insertions(+), 504 deletions(-)
21
22 diff --git a/sci-chemistry/coot/ChangeLog b/sci-chemistry/coot/ChangeLog
23 index edb77b6..c44d9a6 100644
24 --- a/sci-chemistry/coot/ChangeLog
25 +++ b/sci-chemistry/coot/ChangeLog
26 @@ -2,6 +2,11 @@
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 # $Header: $
29
30 + 28 Apr 2011; Justin Lecher <jlec@g.o> -files/9999-gsl.patch,
31 + -files/9999-openmp.patch, -files/9999-rappermc.patch,
32 + -files/fix-namespace-error.patch, -files/glib.m4, -files/gtk.m4:
33 + Cleaned old patches
34 +
35 07 Mar 2011; Justin Lecher <jlec@g.o> coot-9999.ebuild:
36 Correct Slots for gtk 3 introduction to tree
37
38
39 diff --git a/sci-chemistry/coot/files/9999-gsl.patch b/sci-chemistry/coot/files/9999-gsl.patch
40 deleted file mode 100644
41 index af7a405..0000000
42 --- a/sci-chemistry/coot/files/9999-gsl.patch
43 +++ /dev/null
44 @@ -1,14 +0,0 @@
45 -Index: coot-utils/Makefile.am
46 -===================================================================
47 ---- coot-utils/Makefile.am (revision 3299)
48 -+++ coot-utils/Makefile.am (working copy)
49 -@@ -90,7 +90,8 @@
50 - $(top_builddir)/mini-mol/libcoot-mini-mol.la \
51 - libcoot-map-utils.la \
52 - libcoot-coord-utils.la \
53 -- $(top_builddir)/utils/libcoot-utils.la
54 -+ $(top_builddir)/utils/libcoot-utils.la \
55 -+ $(GSL_LIBS)
56 -
57 -
58 - noinst_PROGRAMS = test-h-bonds testshelxreader testcootutils
59
60 diff --git a/sci-chemistry/coot/files/9999-openmp.patch b/sci-chemistry/coot/files/9999-openmp.patch
61 deleted file mode 100644
62 index a239c1f..0000000
63 --- a/sci-chemistry/coot/files/9999-openmp.patch
64 +++ /dev/null
65 @@ -1,28 +0,0 @@
66 -Index: surface/Makefile.am
67 -===================================================================
68 ---- surface/Makefile.am (revision 3299)
69 -+++ surface/Makefile.am (working copy)
70 -@@ -1,7 +1,7 @@
71 -
72 - INCLUDES = -I$(top_srcdir)/coot-utils $(MMDB_CXXFLAGS) $(CLIPPER_CXXFLAGS) $(FFTW_CXXFLAGS)
73 -
74 --AM_CPPFLAGS = $(OPENMP_CFLAGS)
75 -+AM_CXXFLAGS = $(OPENMP_CFLAGS)
76 -
77 - lib_LTLIBRARIES = libccp4mg-surface.la
78 -
79 -Index: src/Makefile.am
80 -===================================================================
81 ---- src/Makefile.am (revision 3299)
82 -+++ src/Makefile.am (working copy)
83 -@@ -417,8 +417,8 @@
84 - # coot_real_LDFLAGS = -static -lstdc++
85 - coot_real_LDFLAGS =
86 -
87 --coot_real_LDADD = $(OPENMP_CFLAGS) \
88 -- $(COOT_EXTRA_LIBS) \
89 -+coot_real_LDADD = \
90 -+ $(COOT_EXTRA_LIBS) \
91 - $(GUILE_GTK_LIBS) \
92 - $(GUILE_LDFLAGS) \
93 - $(CLIPPER_LIBS) \
94
95 diff --git a/sci-chemistry/coot/files/9999-rappermc.patch b/sci-chemistry/coot/files/9999-rappermc.patch
96 deleted file mode 100644
97 index 7b8ba03..0000000
98 --- a/sci-chemistry/coot/files/9999-rappermc.patch
99 +++ /dev/null
100 @@ -1,15 +0,0 @@
101 -Index: python/a_rapper_gui.py
102 -===================================================================
103 ---- python/a_rapper_gui.py (revision 2425)
104 -+++ python/a_rapper_gui.py (working copy)
105 -@@ -20,8 +20,8 @@
106 - home_dir = os.getenv('COOT_HOME')
107 - else:
108 - home_dir = os.getenv('HOME')
109 --rapper_dir = os.path.join(os.path.normpath(home_dir), "rappermc")
110 --rapper_command = "rapper"
111 -+rapper_dir = "/usr/share/rapper"
112 -+rapper_command = "rappermc"
113 -
114 - def rapper_process():
115 - #needed?
116
117 diff --git a/sci-chemistry/coot/files/fix-namespace-error.patch b/sci-chemistry/coot/files/fix-namespace-error.patch
118 deleted file mode 100644
119 index 5bf8a2d..0000000
120 --- a/sci-chemistry/coot/files/fix-namespace-error.patch
121 +++ /dev/null
122 @@ -1,52 +0,0 @@
123 ---- coot-utils/coot-coord-utils.cc.orig 2007-11-14 09:38:31.000000000 -0800
124 -+++ coot-utils/coot-coord-utils.cc 2007-11-14 09:44:50.000000000 -0800
125 -@@ -395,28 +395,30 @@
126 - return SelHnd;
127 - }
128 -
129 --std::ostream& coot::operator<< (std::ostream& s, const coot::atom_spec_t &spec) {
130 -+namespace coot {
131 -+ std::ostream& operator<< (std::ostream& s, const atom_spec_t &spec) {
132 -
133 -- s << "[spec: ";
134 -- s << "\"";
135 -- s << spec.chain;
136 -- s << "\" ";
137 -- s << spec.resno;
138 -- s << " ";
139 -- s << "\"";
140 -- s << spec.insertion_code;
141 -- s << "\"";
142 -- s << " ";
143 -- s << "\"";
144 -- s << spec.atom_name;
145 -- s << "\"";
146 -- s << " ";
147 -- s << "\"";
148 -- s << spec.alt_conf;
149 -- s << "\"]";
150 -+ s << "[spec: ";
151 -+ s << "\"";
152 -+ s << spec.chain;
153 -+ s << "\" ";
154 -+ s << spec.resno;
155 -+ s << " ";
156 -+ s << "\"";
157 -+ s << spec.insertion_code;
158 -+ s << "\"";
159 -+ s << " ";
160 -+ s << "\"";
161 -+ s << spec.atom_name;
162 -+ s << "\"";
163 -+ s << " ";
164 -+ s << "\"";
165 -+ s << spec.alt_conf;
166 -+ s << "\"]";
167 -
168 -- return s;
169 -+ return s;
170 -
171 -+ }
172 - }
173 -
174 -
175
176 diff --git a/sci-chemistry/coot/files/glib.m4 b/sci-chemistry/coot/files/glib.m4
177 deleted file mode 100644
178 index b3c632b..0000000
179 --- a/sci-chemistry/coot/files/glib.m4
180 +++ /dev/null
181 @@ -1,196 +0,0 @@
182 -# Configure paths for GLIB
183 -# Owen Taylor 97-11-3
184 -
185 -dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
186 -dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or
187 -dnl gthread is specified in MODULES, pass to glib-config
188 -dnl
189 -AC_DEFUN([AM_PATH_GLIB],
190 -[dnl
191 -dnl Get the cflags and libraries from the glib-config script
192 -dnl
193 -AC_ARG_WITH(glib-prefix,[ --with-glib-prefix=PFX Prefix where GLIB is installed (optional)],
194 - glib_config_prefix="$withval", glib_config_prefix="")
195 -AC_ARG_WITH(glib-exec-prefix,[ --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)],
196 - glib_config_exec_prefix="$withval", glib_config_exec_prefix="")
197 -AC_ARG_ENABLE(glibtest, [ --disable-glibtest Do not try to compile and run a test GLIB program],
198 - , enable_glibtest=yes)
199 -
200 - if test x$glib_config_exec_prefix != x ; then
201 - glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
202 - if test x${GLIB_CONFIG+set} != xset ; then
203 - GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
204 - fi
205 - fi
206 - if test x$glib_config_prefix != x ; then
207 - glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
208 - if test x${GLIB_CONFIG+set} != xset ; then
209 - GLIB_CONFIG=$glib_config_prefix/bin/glib-config
210 - fi
211 - fi
212 -
213 - for module in . $4
214 - do
215 - case "$module" in
216 - gmodule)
217 - glib_config_args="$glib_config_args gmodule"
218 - ;;
219 - gthread)
220 - glib_config_args="$glib_config_args gthread"
221 - ;;
222 - esac
223 - done
224 -
225 - AC_PATH_PROG(GLIB_CONFIG, glib-config, no)
226 - min_glib_version=ifelse([$1], ,0.99.7,$1)
227 - AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
228 - no_glib=""
229 - if test "$GLIB_CONFIG" = "no" ; then
230 - no_glib=yes
231 - else
232 - GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
233 - GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
234 - glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
235 - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
236 - glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
237 - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
238 - glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
239 - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
240 - if test "x$enable_glibtest" = "xyes" ; then
241 - ac_save_CFLAGS="$CFLAGS"
242 - ac_save_LIBS="$LIBS"
243 - CFLAGS="$CFLAGS $GLIB_CFLAGS"
244 - LIBS="$GLIB_LIBS $LIBS"
245 -dnl
246 -dnl Now check if the installed GLIB is sufficiently new. (Also sanity
247 -dnl checks the results of glib-config to some extent
248 -dnl
249 - rm -f conf.glibtest
250 - AC_TRY_RUN([
251 -#include <glib.h>
252 -#include <stdio.h>
253 -#include <stdlib.h>
254 -
255 -int
256 -main ()
257 -{
258 - int major, minor, micro;
259 - char *tmp_version;
260 -
261 - system ("touch conf.glibtest");
262 -
263 - /* HP/UX 9 (%@#!) writes to sscanf strings */
264 - tmp_version = g_strdup("$min_glib_version");
265 - if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
266 - printf("%s, bad version string\n", "$min_glib_version");
267 - exit(1);
268 - }
269 -
270 - if ((glib_major_version != $glib_config_major_version) ||
271 - (glib_minor_version != $glib_config_minor_version) ||
272 - (glib_micro_version != $glib_config_micro_version))
273 - {
274 - printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
275 - $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
276 - glib_major_version, glib_minor_version, glib_micro_version);
277 - printf ("*** was found! If glib-config was correct, then it is best\n");
278 - printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
279 - printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
280 - printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
281 - printf("*** required on your system.\n");
282 - printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
283 - printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
284 - printf("*** before re-running configure\n");
285 - }
286 - else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
287 - (glib_minor_version != GLIB_MINOR_VERSION) ||
288 - (glib_micro_version != GLIB_MICRO_VERSION))
289 - {
290 - printf("*** GLIB header files (version %d.%d.%d) do not match\n",
291 - GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
292 - printf("*** library (version %d.%d.%d)\n",
293 - glib_major_version, glib_minor_version, glib_micro_version);
294 - }
295 - else
296 - {
297 - if ((glib_major_version > major) ||
298 - ((glib_major_version == major) && (glib_minor_version > minor)) ||
299 - ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
300 - {
301 - return 0;
302 - }
303 - else
304 - {
305 - printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
306 - glib_major_version, glib_minor_version, glib_micro_version);
307 - printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
308 - major, minor, micro);
309 - printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
310 - printf("***\n");
311 - printf("*** If you have already installed a sufficiently new version, this error\n");
312 - printf("*** probably means that the wrong copy of the glib-config shell script is\n");
313 - printf("*** being found. The easiest way to fix this is to remove the old version\n");
314 - printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
315 - printf("*** correct copy of glib-config. (In this case, you will have to\n");
316 - printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
317 - printf("*** so that the correct libraries are found at run-time))\n");
318 - }
319 - }
320 - return 1;
321 -}
322 -],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
323 - CFLAGS="$ac_save_CFLAGS"
324 - LIBS="$ac_save_LIBS"
325 - fi
326 - fi
327 - if test "x$no_glib" = x ; then
328 - AC_MSG_RESULT(yes)
329 - ifelse([$2], , :, [$2])
330 - else
331 - AC_MSG_RESULT(no)
332 - if test "$GLIB_CONFIG" = "no" ; then
333 - echo "*** The glib-config script installed by GLIB could not be found"
334 - echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
335 - echo "*** your path, or set the GLIB_CONFIG environment variable to the"
336 - echo "*** full path to glib-config."
337 - else
338 - if test -f conf.glibtest ; then
339 - :
340 - else
341 - echo "*** Could not run GLIB test program, checking why..."
342 - CFLAGS="$CFLAGS $GLIB_CFLAGS"
343 - LIBS="$LIBS $GLIB_LIBS"
344 - AC_TRY_LINK([
345 -#include <glib.h>
346 -#include <stdio.h>
347 -], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
348 - [ echo "*** The test program compiled, but did not run. This usually means"
349 - echo "*** that the run-time linker is not finding GLIB or finding the wrong"
350 - echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
351 - echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
352 - echo "*** to the installed location Also, make sure you have run ldconfig if that"
353 - echo "*** is required on your system"
354 - echo "***"
355 - echo "*** If you have an old version installed, it is best to remove it, although"
356 - echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
357 - echo "***"
358 - echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
359 - echo "*** came with the system with the command"
360 - echo "***"
361 - echo "*** rpm --erase --nodeps gtk gtk-devel" ],
362 - [ echo "*** The test program failed to compile or link. See the file config.log for the"
363 - echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
364 - echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
365 - echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ])
366 - CFLAGS="$ac_save_CFLAGS"
367 - LIBS="$ac_save_LIBS"
368 - fi
369 - fi
370 - GLIB_CFLAGS=""
371 - GLIB_LIBS=""
372 - ifelse([$3], , :, [$3])
373 - fi
374 - AC_SUBST(GLIB_CFLAGS)
375 - AC_SUBST(GLIB_LIBS)
376 - rm -f conf.glibtest
377 -])
378
379 diff --git a/sci-chemistry/coot/files/gtk.m4 b/sci-chemistry/coot/files/gtk.m4
380 deleted file mode 100644
381 index beb1859..0000000
382 --- a/sci-chemistry/coot/files/gtk.m4
383 +++ /dev/null
384 @@ -1,199 +0,0 @@
385 -# Configure paths for GTK+
386 -# Owen Taylor 97-11-3
387 -AC_DEFUN([GTK_AC_DIVERT_BEFORE_HELP],
388 -[ifdef([m4_divert_text], [m4_divert_text([NOTICE],[$1])],
389 - [ifdef([AC_DIVERT], [AC_DIVERT([NOTICE],[$1])],
390 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
391 -$1
392 -AC_DIVERT_POP()])])])
393 -dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
394 -dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
395 -dnl
396 -AC_DEFUN([AM_PATH_GTK],
397 -[dnl
398 -dnl Get the cflags and libraries from the gtk-config script
399 -dnl
400 -AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)],
401 - gtk_config_prefix="$withval", gtk_config_prefix="")
402 -AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
403 - gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
404 -AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program],
405 - , enable_gtktest=yes)
406 -
407 - for module in . $4
408 - do
409 - case "$module" in
410 - gthread)
411 - gtk_config_args="$gtk_config_args gthread"
412 - ;;
413 - esac
414 - done
415 -
416 - if test x$gtk_config_exec_prefix != x ; then
417 - gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
418 - if test x${GTK_CONFIG+set} != xset ; then
419 - GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
420 - fi
421 - fi
422 - if test x$gtk_config_prefix != x ; then
423 - gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
424 - if test x${GTK_CONFIG+set} != xset ; then
425 - GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
426 - fi
427 - fi
428 -
429 - AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
430 - min_gtk_version=ifelse([$1], ,0.99.7,$1)
431 - AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
432 - no_gtk=""
433 - if test "$GTK_CONFIG" = "no" ; then
434 - no_gtk=yes
435 - else
436 - GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
437 - GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
438 - gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
439 - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
440 - gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
441 - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
442 - gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
443 - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
444 - if test "x$enable_gtktest" = "xyes" ; then
445 - ac_save_CFLAGS="$CFLAGS"
446 - ac_save_LIBS="$LIBS"
447 - CFLAGS="$CFLAGS $GTK_CFLAGS"
448 - LIBS="$GTK_LIBS $LIBS"
449 -dnl
450 -dnl Now check if the installed GTK is sufficiently new. (Also sanity
451 -dnl checks the results of gtk-config to some extent
452 -dnl
453 - rm -f conf.gtktest
454 - AC_TRY_RUN([
455 -#include <gtk/gtk.h>
456 -#include <stdio.h>
457 -#include <stdlib.h>
458 -
459 -int
460 -main ()
461 -{
462 - int major, minor, micro;
463 - char *tmp_version;
464 -
465 - system ("touch conf.gtktest");
466 -
467 - /* HP/UX 9 (%@#!) writes to sscanf strings */
468 - tmp_version = g_strdup("$min_gtk_version");
469 - if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
470 - printf("%s, bad version string\n", "$min_gtk_version");
471 - exit(1);
472 - }
473 -
474 - if ((gtk_major_version != $gtk_config_major_version) ||
475 - (gtk_minor_version != $gtk_config_minor_version) ||
476 - (gtk_micro_version != $gtk_config_micro_version))
477 - {
478 - printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
479 - $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
480 - gtk_major_version, gtk_minor_version, gtk_micro_version);
481 - printf ("*** was found! If gtk-config was correct, then it is best\n");
482 - printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
483 - printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
484 - printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
485 - printf("*** required on your system.\n");
486 - printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
487 - printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
488 - printf("*** before re-running configure\n");
489 - }
490 -#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
491 - else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
492 - (gtk_minor_version != GTK_MINOR_VERSION) ||
493 - (gtk_micro_version != GTK_MICRO_VERSION))
494 - {
495 - printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
496 - GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
497 - printf("*** library (version %d.%d.%d)\n",
498 - gtk_major_version, gtk_minor_version, gtk_micro_version);
499 - }
500 -#endif /* defined (GTK_MAJOR_VERSION) ... */
501 - else
502 - {
503 - if ((gtk_major_version > major) ||
504 - ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
505 - ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
506 - {
507 - return 0;
508 - }
509 - else
510 - {
511 - printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
512 - gtk_major_version, gtk_minor_version, gtk_micro_version);
513 - printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
514 - major, minor, micro);
515 - printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
516 - printf("***\n");
517 - printf("*** If you have already installed a sufficiently new version, this error\n");
518 - printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
519 - printf("*** being found. The easiest way to fix this is to remove the old version\n");
520 - printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
521 - printf("*** correct copy of gtk-config. (In this case, you will have to\n");
522 - printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
523 - printf("*** so that the correct libraries are found at run-time))\n");
524 - }
525 - }
526 - return 1;
527 -}
528 -],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
529 - CFLAGS="$ac_save_CFLAGS"
530 - LIBS="$ac_save_LIBS"
531 - fi
532 - fi
533 - if test "x$no_gtk" = x ; then
534 - AC_MSG_RESULT(yes)
535 - ifelse([$2], , :, [$2])
536 - else
537 - AC_MSG_RESULT(no)
538 - if test "$GTK_CONFIG" = "no" ; then
539 - echo "*** The gtk-config script installed by GTK could not be found"
540 - echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
541 - echo "*** your path, or set the GTK_CONFIG environment variable to the"
542 - echo "*** full path to gtk-config."
543 - else
544 - if test -f conf.gtktest ; then
545 - :
546 - else
547 - echo "*** Could not run GTK test program, checking why..."
548 - CFLAGS="$CFLAGS $GTK_CFLAGS"
549 - LIBS="$LIBS $GTK_LIBS"
550 - AC_TRY_LINK([
551 -#include <gtk/gtk.h>
552 -#include <stdio.h>
553 -], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
554 - [ echo "*** The test program compiled, but did not run. This usually means"
555 - echo "*** that the run-time linker is not finding GTK or finding the wrong"
556 - echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
557 - echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
558 - echo "*** to the installed location Also, make sure you have run ldconfig if that"
559 - echo "*** is required on your system"
560 - echo "***"
561 - echo "*** If you have an old version installed, it is best to remove it, although"
562 - echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
563 - echo "***"
564 - echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
565 - echo "*** came with the system with the command"
566 - echo "***"
567 - echo "*** rpm --erase --nodeps gtk gtk-devel" ],
568 - [ echo "*** The test program failed to compile or link. See the file config.log for the"
569 - echo "*** exact error that occured. This usually means GTK was incorrectly installed"
570 - echo "*** or that you have moved GTK since it was installed. In the latter case, you"
571 - echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ])
572 - CFLAGS="$ac_save_CFLAGS"
573 - LIBS="$ac_save_LIBS"
574 - fi
575 - fi
576 - GTK_CFLAGS=""
577 - GTK_LIBS=""
578 - ifelse([$3], , :, [$3])
579 - fi
580 - AC_SUBST(GTK_CFLAGS)
581 - AC_SUBST(GTK_LIBS)
582 - rm -f conf.gtktest
583 -])