1 |
# generated automatically by aclocal 1.9.2 -*- Autoconf -*- |
# generated automatically by aclocal 1.9.5 -*- Autoconf -*- |
2 |
|
|
3 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
4 |
# Free Software Foundation, Inc. |
# 2005 Free Software Foundation, Inc. |
5 |
# This file is free software; the Free Software Foundation |
# This file is free software; the Free Software Foundation |
6 |
# gives unlimited permission to copy and/or distribute it, |
# gives unlimited permission to copy and/or distribute it, |
7 |
# with or without modifications, as long as this notice is preserved. |
# with or without modifications, as long as this notice is preserved. |
190 |
|
|
191 |
# end of freetype2.m4 |
# end of freetype2.m4 |
192 |
|
|
193 |
# Configure paths for GTK+ |
# gettext.m4 serial 37 (gettext-0.14.4) |
194 |
# Owen Taylor 97-11-3 |
dnl Copyright (C) 1995-2005 Free Software Foundation, Inc. |
195 |
|
dnl This file is free software; the Free Software Foundation |
196 |
dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) |
dnl gives unlimited permission to copy and/or distribute it, |
197 |
dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS |
dnl with or without modifications, as long as this notice is preserved. |
198 |
dnl |
dnl |
199 |
AC_DEFUN(AM_PATH_GTK, |
dnl This file can can be used in projects which are not available under |
200 |
[dnl |
dnl the GNU General Public License or the GNU Library General Public |
201 |
dnl Get the cflags and libraries from the gtk-config script |
dnl License but which still want to provide support for the GNU gettext |
202 |
|
dnl functionality. |
203 |
|
dnl Please note that the actual code of the GNU gettext library is covered |
204 |
|
dnl by the GNU Library General Public License, and the rest of the GNU |
205 |
|
dnl gettext package package is covered by the GNU General Public License. |
206 |
|
dnl They are *not* in the public domain. |
207 |
|
|
208 |
|
dnl Authors: |
209 |
|
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
210 |
|
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
211 |
|
|
212 |
|
dnl Macro to add for using GNU gettext. |
213 |
|
|
214 |
|
dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). |
215 |
|
dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The |
216 |
|
dnl default (if it is not specified or empty) is 'no-libtool'. |
217 |
|
dnl INTLSYMBOL should be 'external' for packages with no intl directory, |
218 |
|
dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. |
219 |
|
dnl If INTLSYMBOL is 'use-libtool', then a libtool library |
220 |
|
dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, |
221 |
|
dnl depending on --{enable,disable}-{shared,static} and on the presence of |
222 |
|
dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library |
223 |
|
dnl $(top_builddir)/intl/libintl.a will be created. |
224 |
|
dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext |
225 |
|
dnl implementations (in libc or libintl) without the ngettext() function |
226 |
|
dnl will be ignored. If NEEDSYMBOL is specified and is |
227 |
|
dnl 'need-formatstring-macros', then GNU gettext implementations that don't |
228 |
|
dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored. |
229 |
|
dnl INTLDIR is used to find the intl libraries. If empty, |
230 |
|
dnl the value `$(top_builddir)/intl/' is used. |
231 |
dnl |
dnl |
232 |
AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)], |
dnl The result of the configuration is one of three cases: |
233 |
gtk_config_prefix="$withval", gtk_config_prefix="") |
dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled |
234 |
AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)], |
dnl and used. |
235 |
gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="") |
dnl Catalog format: GNU --> install in $(datadir) |
236 |
AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program], |
dnl Catalog extension: .mo after installation, .gmo in source tree |
237 |
, enable_gtktest=yes) |
dnl 2) GNU gettext has been found in the system's C library. |
238 |
|
dnl Catalog format: GNU --> install in $(datadir) |
239 |
|
dnl Catalog extension: .mo after installation, .gmo in source tree |
240 |
|
dnl 3) No internationalization, always use English msgid. |
241 |
|
dnl Catalog format: none |
242 |
|
dnl Catalog extension: none |
243 |
|
dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. |
244 |
|
dnl The use of .gmo is historical (it was needed to avoid overwriting the |
245 |
|
dnl GNU format catalogs when building on a platform with an X/Open gettext), |
246 |
|
dnl but we keep it in order not to force irrelevant filename changes on the |
247 |
|
dnl maintainers. |
248 |
|
dnl |
249 |
|
AC_DEFUN([AM_GNU_GETTEXT], |
250 |
|
[ |
251 |
|
dnl Argument checking. |
252 |
|
ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , |
253 |
|
[errprint([ERROR: invalid first argument to AM_GNU_GETTEXT |
254 |
|
])])])])]) |
255 |
|
ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , |
256 |
|
[errprint([ERROR: invalid second argument to AM_GNU_GETTEXT |
257 |
|
])])])]) |
258 |
|
define([gt_included_intl], ifelse([$1], [external], [no], [yes])) |
259 |
|
define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) |
260 |
|
|
261 |
|
AC_REQUIRE([AM_PO_SUBDIRS])dnl |
262 |
|
ifelse(gt_included_intl, yes, [ |
263 |
|
AC_REQUIRE([AM_INTL_SUBDIR])dnl |
264 |
|
]) |
265 |
|
|
266 |
for module in . $4 |
dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. |
267 |
do |
AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
268 |
case "$module" in |
AC_REQUIRE([AC_LIB_RPATH]) |
269 |
gthread) |
|
270 |
gtk_config_args="$gtk_config_args gthread" |
dnl Sometimes libintl requires libiconv, so first search for libiconv. |
271 |
;; |
dnl Ideally we would do this search only after the |
272 |
esac |
dnl if test "$USE_NLS" = "yes"; then |
273 |
done |
dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then |
274 |
|
dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT |
275 |
|
dnl the configure script would need to contain the same shell code |
276 |
|
dnl again, outside any 'if'. There are two solutions: |
277 |
|
dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. |
278 |
|
dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. |
279 |
|
dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not |
280 |
|
dnl documented, we avoid it. |
281 |
|
ifelse(gt_included_intl, yes, , [ |
282 |
|
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) |
283 |
|
]) |
284 |
|
|
285 |
if test x$gtk_config_exec_prefix != x ; then |
dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. |
286 |
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
gt_INTL_MACOSX |
287 |
if test x${GTK_CONFIG+set} != xset ; then |
|
288 |
GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
dnl Set USE_NLS. |
289 |
fi |
AM_NLS |
290 |
|
|
291 |
|
ifelse(gt_included_intl, yes, [ |
292 |
|
BUILD_INCLUDED_LIBINTL=no |
293 |
|
USE_INCLUDED_LIBINTL=no |
294 |
|
]) |
295 |
|
LIBINTL= |
296 |
|
LTLIBINTL= |
297 |
|
POSUB= |
298 |
|
|
299 |
|
dnl If we use NLS figure out what method |
300 |
|
if test "$USE_NLS" = "yes"; then |
301 |
|
gt_use_preinstalled_gnugettext=no |
302 |
|
ifelse(gt_included_intl, yes, [ |
303 |
|
AC_MSG_CHECKING([whether included gettext is requested]) |
304 |
|
AC_ARG_WITH(included-gettext, |
305 |
|
[ --with-included-gettext use the GNU gettext library included here], |
306 |
|
nls_cv_force_use_gnu_gettext=$withval, |
307 |
|
nls_cv_force_use_gnu_gettext=no) |
308 |
|
AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) |
309 |
|
|
310 |
|
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
311 |
|
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
312 |
|
]) |
313 |
|
dnl User does not insist on using GNU NLS library. Figure out what |
314 |
|
dnl to use. If GNU gettext is available we use this. Else we have |
315 |
|
dnl to fall back to GNU NLS library. |
316 |
|
|
317 |
|
dnl Add a version number to the cache macros. |
318 |
|
define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) |
319 |
|
define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) |
320 |
|
define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) |
321 |
|
|
322 |
|
AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, |
323 |
|
[AC_TRY_LINK([#include <libintl.h> |
324 |
|
]ifelse([$2], [need-formatstring-macros], |
325 |
|
[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
326 |
|
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
327 |
|
#endif |
328 |
|
changequote(,)dnl |
329 |
|
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
330 |
|
changequote([,])dnl |
331 |
|
], [])[extern int _nl_msg_cat_cntr; |
332 |
|
extern int *_nl_domain_bindings;], |
333 |
|
[bindtextdomain ("", ""); |
334 |
|
return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], |
335 |
|
gt_cv_func_gnugettext_libc=yes, |
336 |
|
gt_cv_func_gnugettext_libc=no)]) |
337 |
|
|
338 |
|
if test "$gt_cv_func_gnugettext_libc" != "yes"; then |
339 |
|
dnl Sometimes libintl requires libiconv, so first search for libiconv. |
340 |
|
ifelse(gt_included_intl, yes, , [ |
341 |
|
AM_ICONV_LINK |
342 |
|
]) |
343 |
|
dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL |
344 |
|
dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) |
345 |
|
dnl because that would add "-liconv" to LIBINTL and LTLIBINTL |
346 |
|
dnl even if libiconv doesn't exist. |
347 |
|
AC_LIB_LINKFLAGS_BODY([intl]) |
348 |
|
AC_CACHE_CHECK([for GNU gettext in libintl], |
349 |
|
gt_cv_func_gnugettext_libintl, |
350 |
|
[gt_save_CPPFLAGS="$CPPFLAGS" |
351 |
|
CPPFLAGS="$CPPFLAGS $INCINTL" |
352 |
|
gt_save_LIBS="$LIBS" |
353 |
|
LIBS="$LIBS $LIBINTL" |
354 |
|
dnl Now see whether libintl exists and does not depend on libiconv. |
355 |
|
AC_TRY_LINK([#include <libintl.h> |
356 |
|
]ifelse([$2], [need-formatstring-macros], |
357 |
|
[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
358 |
|
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
359 |
|
#endif |
360 |
|
changequote(,)dnl |
361 |
|
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
362 |
|
changequote([,])dnl |
363 |
|
], [])[extern int _nl_msg_cat_cntr; |
364 |
|
extern |
365 |
|
#ifdef __cplusplus |
366 |
|
"C" |
367 |
|
#endif |
368 |
|
const char *_nl_expand_alias (const char *);], |
369 |
|
[bindtextdomain ("", ""); |
370 |
|
return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], |
371 |
|
gt_cv_func_gnugettext_libintl=yes, |
372 |
|
gt_cv_func_gnugettext_libintl=no) |
373 |
|
dnl Now see whether libintl exists and depends on libiconv. |
374 |
|
if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then |
375 |
|
LIBS="$LIBS $LIBICONV" |
376 |
|
AC_TRY_LINK([#include <libintl.h> |
377 |
|
]ifelse([$2], [need-formatstring-macros], |
378 |
|
[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
379 |
|
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
380 |
|
#endif |
381 |
|
changequote(,)dnl |
382 |
|
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
383 |
|
changequote([,])dnl |
384 |
|
], [])[extern int _nl_msg_cat_cntr; |
385 |
|
extern |
386 |
|
#ifdef __cplusplus |
387 |
|
"C" |
388 |
|
#endif |
389 |
|
const char *_nl_expand_alias (const char *);], |
390 |
|
[bindtextdomain ("", ""); |
391 |
|
return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], |
392 |
|
[LIBINTL="$LIBINTL $LIBICONV" |
393 |
|
LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
394 |
|
gt_cv_func_gnugettext_libintl=yes |
395 |
|
]) |
396 |
|
fi |
397 |
|
CPPFLAGS="$gt_save_CPPFLAGS" |
398 |
|
LIBS="$gt_save_LIBS"]) |
399 |
|
fi |
400 |
|
|
401 |
|
dnl If an already present or preinstalled GNU gettext() is found, |
402 |
|
dnl use it. But if this macro is used in GNU gettext, and GNU |
403 |
|
dnl gettext is already preinstalled in libintl, we update this |
404 |
|
dnl libintl. (Cf. the install rule in intl/Makefile.in.) |
405 |
|
if test "$gt_cv_func_gnugettext_libc" = "yes" \ |
406 |
|
|| { test "$gt_cv_func_gnugettext_libintl" = "yes" \ |
407 |
|
&& test "$PACKAGE" != gettext-runtime \ |
408 |
|
&& test "$PACKAGE" != gettext-tools; }; then |
409 |
|
gt_use_preinstalled_gnugettext=yes |
410 |
|
else |
411 |
|
dnl Reset the values set by searching for libintl. |
412 |
|
LIBINTL= |
413 |
|
LTLIBINTL= |
414 |
|
INCINTL= |
415 |
|
fi |
416 |
|
|
417 |
|
ifelse(gt_included_intl, yes, [ |
418 |
|
if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
419 |
|
dnl GNU gettext is not found in the C library. |
420 |
|
dnl Fall back on included GNU gettext library. |
421 |
|
nls_cv_use_gnu_gettext=yes |
422 |
|
fi |
423 |
|
fi |
424 |
|
|
425 |
|
if test "$nls_cv_use_gnu_gettext" = "yes"; then |
426 |
|
dnl Mark actions used to generate GNU NLS library. |
427 |
|
BUILD_INCLUDED_LIBINTL=yes |
428 |
|
USE_INCLUDED_LIBINTL=yes |
429 |
|
LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV" |
430 |
|
LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV" |
431 |
|
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
432 |
|
fi |
433 |
|
|
434 |
|
CATOBJEXT= |
435 |
|
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
436 |
|
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
437 |
|
dnl Mark actions to use GNU gettext tools. |
438 |
|
CATOBJEXT=.gmo |
439 |
|
fi |
440 |
|
]) |
441 |
|
|
442 |
|
if test -n "$INTL_MACOSX_LIBS"; then |
443 |
|
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
444 |
|
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
445 |
|
dnl Some extra flags are needed during linking. |
446 |
|
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
447 |
|
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
448 |
|
fi |
449 |
|
fi |
450 |
|
|
451 |
|
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
452 |
|
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
453 |
|
AC_DEFINE(ENABLE_NLS, 1, |
454 |
|
[Define to 1 if translation of program messages to the user's native language |
455 |
|
is requested.]) |
456 |
|
else |
457 |
|
USE_NLS=no |
458 |
|
fi |
459 |
fi |
fi |
460 |
if test x$gtk_config_prefix != x ; then |
|
461 |
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
AC_MSG_CHECKING([whether to use NLS]) |
462 |
if test x${GTK_CONFIG+set} != xset ; then |
AC_MSG_RESULT([$USE_NLS]) |
463 |
GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
if test "$USE_NLS" = "yes"; then |
464 |
fi |
AC_MSG_CHECKING([where the gettext function comes from]) |
465 |
|
if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
466 |
|
if test "$gt_cv_func_gnugettext_libintl" = "yes"; then |
467 |
|
gt_source="external libintl" |
468 |
|
else |
469 |
|
gt_source="libc" |
470 |
|
fi |
471 |
|
else |
472 |
|
gt_source="included intl directory" |
473 |
|
fi |
474 |
|
AC_MSG_RESULT([$gt_source]) |
475 |
fi |
fi |
476 |
|
|
477 |
AC_PATH_PROG(GTK_CONFIG, gtk-config, no) |
if test "$USE_NLS" = "yes"; then |
478 |
min_gtk_version=ifelse([$1], ,0.99.7,$1) |
|
479 |
AC_MSG_CHECKING(for GTK - version >= $min_gtk_version) |
if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
480 |
no_gtk="" |
if test "$gt_cv_func_gnugettext_libintl" = "yes"; then |
481 |
if test "$GTK_CONFIG" = "no" ; then |
AC_MSG_CHECKING([how to link with libintl]) |
482 |
no_gtk=yes |
AC_MSG_RESULT([$LIBINTL]) |
483 |
else |
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) |
484 |
GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
fi |
485 |
GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
|
486 |
gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
dnl For backward compatibility. Some packages may be using this. |
487 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` |
AC_DEFINE(HAVE_GETTEXT, 1, |
488 |
gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
[Define if the GNU gettext() function is already present or preinstalled.]) |
489 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` |
AC_DEFINE(HAVE_DCGETTEXT, 1, |
490 |
gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
[Define if the GNU dcgettext() function is already present or preinstalled.]) |
491 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` |
fi |
492 |
if test "x$enable_gtktest" = "xyes" ; then |
|
493 |
ac_save_CFLAGS="$CFLAGS" |
dnl We need to process the po/ directory. |
494 |
ac_save_LIBS="$LIBS" |
POSUB=po |
495 |
CFLAGS="$CFLAGS $GTK_CFLAGS" |
fi |
496 |
LIBS="$GTK_LIBS $LIBS" |
|
497 |
dnl |
ifelse(gt_included_intl, yes, [ |
498 |
dnl Now check if the installed GTK is sufficiently new. (Also sanity |
dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL |
499 |
dnl checks the results of gtk-config to some extent |
dnl to 'yes' because some of the testsuite requires it. |
500 |
dnl |
if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
501 |
rm -f conf.gtktest |
BUILD_INCLUDED_LIBINTL=yes |
502 |
AC_TRY_RUN([ |
fi |
503 |
#include <gtk/gtk.h> |
|
504 |
#include <stdio.h> |
dnl Make all variables we use known to autoconf. |
505 |
|
AC_SUBST(BUILD_INCLUDED_LIBINTL) |
506 |
|
AC_SUBST(USE_INCLUDED_LIBINTL) |
507 |
|
AC_SUBST(CATOBJEXT) |
508 |
|
|
509 |
|
dnl For backward compatibility. Some configure.ins may be using this. |
510 |
|
nls_cv_header_intl= |
511 |
|
nls_cv_header_libgt= |
512 |
|
|
513 |
|
dnl For backward compatibility. Some Makefiles may be using this. |
514 |
|
DATADIRNAME=share |
515 |
|
AC_SUBST(DATADIRNAME) |
516 |
|
|
517 |
|
dnl For backward compatibility. Some Makefiles may be using this. |
518 |
|
INSTOBJEXT=.mo |
519 |
|
AC_SUBST(INSTOBJEXT) |
520 |
|
|
521 |
|
dnl For backward compatibility. Some Makefiles may be using this. |
522 |
|
GENCAT=gencat |
523 |
|
AC_SUBST(GENCAT) |
524 |
|
|
525 |
|
dnl For backward compatibility. Some Makefiles may be using this. |
526 |
|
INTLOBJS= |
527 |
|
if test "$USE_INCLUDED_LIBINTL" = yes; then |
528 |
|
INTLOBJS="\$(GETTOBJS)" |
529 |
|
fi |
530 |
|
AC_SUBST(INTLOBJS) |
531 |
|
|
532 |
|
dnl Enable libtool support if the surrounding package wishes it. |
533 |
|
INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix |
534 |
|
AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) |
535 |
|
]) |
536 |
|
|
537 |
|
dnl For backward compatibility. Some Makefiles may be using this. |
538 |
|
INTLLIBS="$LIBINTL" |
539 |
|
AC_SUBST(INTLLIBS) |
540 |
|
|
541 |
|
dnl Make all documented variables known to autoconf. |
542 |
|
AC_SUBST(LIBINTL) |
543 |
|
AC_SUBST(LTLIBINTL) |
544 |
|
AC_SUBST(POSUB) |
545 |
|
]) |
546 |
|
|
547 |
|
|
548 |
|
dnl Checks for all prerequisites of the intl subdirectory, |
549 |
|
dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, |
550 |
|
dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. |
551 |
|
AC_DEFUN([AM_INTL_SUBDIR], |
552 |
|
[ |
553 |
|
AC_REQUIRE([AC_PROG_INSTALL])dnl |
554 |
|
AC_REQUIRE([AM_MKINSTALLDIRS])dnl |
555 |
|
AC_REQUIRE([AC_PROG_CC])dnl |
556 |
|
AC_REQUIRE([AC_CANONICAL_HOST])dnl |
557 |
|
AC_REQUIRE([gt_GLIBC2])dnl |
558 |
|
AC_REQUIRE([AC_PROG_RANLIB])dnl |
559 |
|
AC_REQUIRE([AC_ISC_POSIX])dnl |
560 |
|
AC_REQUIRE([AC_HEADER_STDC])dnl |
561 |
|
AC_REQUIRE([AC_C_CONST])dnl |
562 |
|
AC_REQUIRE([bh_C_SIGNED])dnl |
563 |
|
AC_REQUIRE([AC_C_INLINE])dnl |
564 |
|
AC_REQUIRE([AC_TYPE_OFF_T])dnl |
565 |
|
AC_REQUIRE([AC_TYPE_SIZE_T])dnl |
566 |
|
AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl |
567 |
|
AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl |
568 |
|
AC_REQUIRE([gt_TYPE_WCHAR_T])dnl |
569 |
|
AC_REQUIRE([gt_TYPE_WINT_T])dnl |
570 |
|
AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) |
571 |
|
AC_REQUIRE([gl_AC_HEADER_STDINT_H]) |
572 |
|
AC_REQUIRE([gt_TYPE_INTMAX_T]) |
573 |
|
AC_REQUIRE([gt_PRINTF_POSIX]) |
574 |
|
AC_REQUIRE([AC_FUNC_ALLOCA])dnl |
575 |
|
AC_REQUIRE([AC_FUNC_MMAP])dnl |
576 |
|
AC_REQUIRE([gl_GLIBC21])dnl |
577 |
|
AC_REQUIRE([gt_INTDIV0])dnl |
578 |
|
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl |
579 |
|
AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl |
580 |
|
AC_REQUIRE([gt_INTTYPES_PRI])dnl |
581 |
|
AC_REQUIRE([gl_XSIZE])dnl |
582 |
|
AC_REQUIRE([gt_INTL_MACOSX])dnl |
583 |
|
|
584 |
|
AC_CHECK_TYPE([ptrdiff_t], , |
585 |
|
[AC_DEFINE([ptrdiff_t], [long], |
586 |
|
[Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) |
587 |
|
]) |
588 |
|
AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
589 |
|
stdlib.h string.h unistd.h sys/param.h]) |
590 |
|
AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
591 |
|
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
592 |
|
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
593 |
|
__fsetlocking]) |
594 |
|
|
595 |
|
dnl Use the _snprintf function only if it is declared (because on NetBSD it |
596 |
|
dnl is defined as a weak alias of snprintf; we prefer to use the latter). |
597 |
|
gt_CHECK_DECL(_snprintf, [#include <stdio.h>]) |
598 |
|
gt_CHECK_DECL(_snwprintf, [#include <stdio.h>]) |
599 |
|
|
600 |
|
dnl Use the *_unlocked functions only if they are declared. |
601 |
|
dnl (because some of them were defined without being declared in Solaris |
602 |
|
dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built |
603 |
|
dnl on Solaris 2.5.1 to run on Solaris 2.6). |
604 |
|
dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. |
605 |
|
gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>]) |
606 |
|
gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>]) |
607 |
|
gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>]) |
608 |
|
|
609 |
|
case $gt_cv_func_printf_posix in |
610 |
|
*yes) HAVE_POSIX_PRINTF=1 ;; |
611 |
|
*) HAVE_POSIX_PRINTF=0 ;; |
612 |
|
esac |
613 |
|
AC_SUBST([HAVE_POSIX_PRINTF]) |
614 |
|
if test "$ac_cv_func_asprintf" = yes; then |
615 |
|
HAVE_ASPRINTF=1 |
616 |
|
else |
617 |
|
HAVE_ASPRINTF=0 |
618 |
|
fi |
619 |
|
AC_SUBST([HAVE_ASPRINTF]) |
620 |
|
if test "$ac_cv_func_snprintf" = yes; then |
621 |
|
HAVE_SNPRINTF=1 |
622 |
|
else |
623 |
|
HAVE_SNPRINTF=0 |
624 |
|
fi |
625 |
|
AC_SUBST([HAVE_SNPRINTF]) |
626 |
|
if test "$ac_cv_func_wprintf" = yes; then |
627 |
|
HAVE_WPRINTF=1 |
628 |
|
else |
629 |
|
HAVE_WPRINTF=0 |
630 |
|
fi |
631 |
|
AC_SUBST([HAVE_WPRINTF]) |
632 |
|
|
633 |
|
AM_ICONV |
634 |
|
AM_LANGINFO_CODESET |
635 |
|
if test $ac_cv_header_locale_h = yes; then |
636 |
|
gt_LC_MESSAGES |
637 |
|
fi |
638 |
|
|
639 |
|
if test -n "$INTL_MACOSX_LIBS"; then |
640 |
|
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" |
641 |
|
fi |
642 |
|
|
643 |
|
dnl intl/plural.c is generated from intl/plural.y. It requires bison, |
644 |
|
dnl because plural.y uses bison specific features. It requires at least |
645 |
|
dnl bison-1.26 because earlier versions generate a plural.c that doesn't |
646 |
|
dnl compile. |
647 |
|
dnl bison is only needed for the maintainer (who touches plural.y). But in |
648 |
|
dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put |
649 |
|
dnl the rule in general Makefile. Now, some people carelessly touch the |
650 |
|
dnl files or have a broken "make" program, hence the plural.c rule will |
651 |
|
dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not |
652 |
|
dnl present or too old. |
653 |
|
AC_CHECK_PROGS([INTLBISON], [bison]) |
654 |
|
if test -z "$INTLBISON"; then |
655 |
|
ac_verc_fail=yes |
656 |
|
else |
657 |
|
dnl Found it, now check the version. |
658 |
|
AC_MSG_CHECKING([version of bison]) |
659 |
|
changequote(<<,>>)dnl |
660 |
|
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
661 |
|
case $ac_prog_version in |
662 |
|
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
663 |
|
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
664 |
|
changequote([,])dnl |
665 |
|
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
666 |
|
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
667 |
|
esac |
668 |
|
AC_MSG_RESULT([$ac_prog_version]) |
669 |
|
fi |
670 |
|
if test $ac_verc_fail = yes; then |
671 |
|
INTLBISON=: |
672 |
|
fi |
673 |
|
]) |
674 |
|
|
675 |
|
|
676 |
|
dnl Checks for special options needed on MacOS X. |
677 |
|
dnl Defines INTL_MACOSX_LIBS. |
678 |
|
AC_DEFUN([gt_INTL_MACOSX], |
679 |
|
[ |
680 |
|
dnl Check for API introduced in MacOS X 10.2. |
681 |
|
AC_CACHE_CHECK([for CFPreferencesCopyAppValue], |
682 |
|
gt_cv_func_CFPreferencesCopyAppValue, |
683 |
|
[gt_save_CPPFLAGS="$CPPFLAGS" |
684 |
|
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" |
685 |
|
gt_save_LIBS="$LIBS" |
686 |
|
LIBS="$LIBS -framework CoreFoundation" |
687 |
|
AC_TRY_LINK([#include <CFPreferences.h>], |
688 |
|
[CFPreferencesCopyAppValue(NULL, NULL)], |
689 |
|
[gt_cv_func_CFPreferencesCopyAppValue=yes], |
690 |
|
[gt_cv_func_CFPreferencesCopyAppValue=no]) |
691 |
|
CPPFLAGS="$gt_save_CPPFLAGS" |
692 |
|
LIBS="$gt_save_LIBS"]) |
693 |
|
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
694 |
|
AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, |
695 |
|
[Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) |
696 |
|
fi |
697 |
|
dnl Check for API introduced in MacOS X 10.3. |
698 |
|
AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, |
699 |
|
[gt_save_CPPFLAGS="$CPPFLAGS" |
700 |
|
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" |
701 |
|
gt_save_LIBS="$LIBS" |
702 |
|
LIBS="$LIBS -framework CoreFoundation" |
703 |
|
AC_TRY_LINK([#include <CFLocale.h>], [CFLocaleCopyCurrent();], |
704 |
|
[gt_cv_func_CFLocaleCopyCurrent=yes], |
705 |
|
[gt_cv_func_CFLocaleCopyCurrent=no]) |
706 |
|
CPPFLAGS="$gt_save_CPPFLAGS" |
707 |
|
LIBS="$gt_save_LIBS"]) |
708 |
|
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
709 |
|
AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, |
710 |
|
[Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) |
711 |
|
fi |
712 |
|
INTL_MACOSX_LIBS= |
713 |
|
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
714 |
|
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
715 |
|
fi |
716 |
|
AC_SUBST([INTL_MACOSX_LIBS]) |
717 |
|
]) |
718 |
|
|
719 |
|
|
720 |
|
dnl gt_CHECK_DECL(FUNC, INCLUDES) |
721 |
|
dnl Check whether a function is declared. |
722 |
|
AC_DEFUN([gt_CHECK_DECL], |
723 |
|
[ |
724 |
|
AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, |
725 |
|
[AC_TRY_COMPILE([$2], [ |
726 |
|
#ifndef $1 |
727 |
|
char *p = (char *) $1; |
728 |
|
#endif |
729 |
|
], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) |
730 |
|
if test $ac_cv_have_decl_$1 = yes; then |
731 |
|
gt_value=1 |
732 |
|
else |
733 |
|
gt_value=0 |
734 |
|
fi |
735 |
|
AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], |
736 |
|
[Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) |
737 |
|
]) |
738 |
|
|
739 |
|
|
740 |
|
dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) |
741 |
|
AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) |
742 |
|
|
743 |
|
# iconv.m4 serial AM4 (gettext-0.11.3) |
744 |
|
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. |
745 |
|
dnl This file is free software; the Free Software Foundation |
746 |
|
dnl gives unlimited permission to copy and/or distribute it, |
747 |
|
dnl with or without modifications, as long as this notice is preserved. |
748 |
|
|
749 |
|
dnl From Bruno Haible. |
750 |
|
|
751 |
|
AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], |
752 |
|
[ |
753 |
|
dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. |
754 |
|
AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
755 |
|
AC_REQUIRE([AC_LIB_RPATH]) |
756 |
|
|
757 |
|
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV |
758 |
|
dnl accordingly. |
759 |
|
AC_LIB_LINKFLAGS_BODY([iconv]) |
760 |
|
]) |
761 |
|
|
762 |
|
AC_DEFUN([AM_ICONV_LINK], |
763 |
|
[ |
764 |
|
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and |
765 |
|
dnl those with the standalone portable GNU libiconv installed). |
766 |
|
|
767 |
|
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV |
768 |
|
dnl accordingly. |
769 |
|
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) |
770 |
|
|
771 |
|
dnl Add $INCICONV to CPPFLAGS before performing the following checks, |
772 |
|
dnl because if the user has installed libiconv and not disabled its use |
773 |
|
dnl via --without-libiconv-prefix, he wants to use it. The first |
774 |
|
dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. |
775 |
|
am_save_CPPFLAGS="$CPPFLAGS" |
776 |
|
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) |
777 |
|
|
778 |
|
AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ |
779 |
|
am_cv_func_iconv="no, consider installing GNU libiconv" |
780 |
|
am_cv_lib_iconv=no |
781 |
|
AC_TRY_LINK([#include <stdlib.h> |
782 |
|
#include <iconv.h>], |
783 |
|
[iconv_t cd = iconv_open("",""); |
784 |
|
iconv(cd,NULL,NULL,NULL,NULL); |
785 |
|
iconv_close(cd);], |
786 |
|
am_cv_func_iconv=yes) |
787 |
|
if test "$am_cv_func_iconv" != yes; then |
788 |
|
am_save_LIBS="$LIBS" |
789 |
|
LIBS="$LIBS $LIBICONV" |
790 |
|
AC_TRY_LINK([#include <stdlib.h> |
791 |
|
#include <iconv.h>], |
792 |
|
[iconv_t cd = iconv_open("",""); |
793 |
|
iconv(cd,NULL,NULL,NULL,NULL); |
794 |
|
iconv_close(cd);], |
795 |
|
am_cv_lib_iconv=yes |
796 |
|
am_cv_func_iconv=yes) |
797 |
|
LIBS="$am_save_LIBS" |
798 |
|
fi |
799 |
|
]) |
800 |
|
if test "$am_cv_func_iconv" = yes; then |
801 |
|
AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) |
802 |
|
fi |
803 |
|
if test "$am_cv_lib_iconv" = yes; then |
804 |
|
AC_MSG_CHECKING([how to link with libiconv]) |
805 |
|
AC_MSG_RESULT([$LIBICONV]) |
806 |
|
else |
807 |
|
dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV |
808 |
|
dnl either. |
809 |
|
CPPFLAGS="$am_save_CPPFLAGS" |
810 |
|
LIBICONV= |
811 |
|
LTLIBICONV= |
812 |
|
fi |
813 |
|
AC_SUBST(LIBICONV) |
814 |
|
AC_SUBST(LTLIBICONV) |
815 |
|
]) |
816 |
|
|
817 |
|
AC_DEFUN([AM_ICONV], |
818 |
|
[ |
819 |
|
AM_ICONV_LINK |
820 |
|
if test "$am_cv_func_iconv" = yes; then |
821 |
|
AC_MSG_CHECKING([for iconv declaration]) |
822 |
|
AC_CACHE_VAL(am_cv_proto_iconv, [ |
823 |
|
AC_TRY_COMPILE([ |
824 |
#include <stdlib.h> |
#include <stdlib.h> |
825 |
|
#include <iconv.h> |
826 |
|
extern |
827 |
|
#ifdef __cplusplus |
828 |
|
"C" |
829 |
|
#endif |
830 |
|
#if defined(__STDC__) || defined(__cplusplus) |
831 |
|
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
832 |
|
#else |
833 |
|
size_t iconv(); |
834 |
|
#endif |
835 |
|
], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") |
836 |
|
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) |
837 |
|
am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
838 |
|
AC_MSG_RESULT([$]{ac_t:- |
839 |
|
}[$]am_cv_proto_iconv) |
840 |
|
AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, |
841 |
|
[Define as const if the declaration of iconv() needs const.]) |
842 |
|
fi |
843 |
|
]) |
844 |
|
|
845 |
int |
# lib-ld.m4 serial 3 (gettext-0.13) |
846 |
main () |
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. |
847 |
{ |
dnl This file is free software; the Free Software Foundation |
848 |
int major, minor, micro; |
dnl gives unlimited permission to copy and/or distribute it, |
849 |
char *tmp_version; |
dnl with or without modifications, as long as this notice is preserved. |
850 |
|
|
851 |
|
dnl Subroutines of libtool.m4, |
852 |
|
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision |
853 |
|
dnl with libtool.m4. |
854 |
|
|
855 |
|
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. |
856 |
|
AC_DEFUN([AC_LIB_PROG_LD_GNU], |
857 |
|
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, |
858 |
|
[# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
859 |
|
case `$LD -v 2>&1 </dev/null` in |
860 |
|
*GNU* | *'with BFD'*) |
861 |
|
acl_cv_prog_gnu_ld=yes ;; |
862 |
|
*) |
863 |
|
acl_cv_prog_gnu_ld=no ;; |
864 |
|
esac]) |
865 |
|
with_gnu_ld=$acl_cv_prog_gnu_ld |
866 |
|
]) |
867 |
|
|
868 |
|
dnl From libtool-1.4. Sets the variable LD. |
869 |
|
AC_DEFUN([AC_LIB_PROG_LD], |
870 |
|
[AC_ARG_WITH(gnu-ld, |
871 |
|
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], |
872 |
|
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) |
873 |
|
AC_REQUIRE([AC_PROG_CC])dnl |
874 |
|
AC_REQUIRE([AC_CANONICAL_HOST])dnl |
875 |
|
# Prepare PATH_SEPARATOR. |
876 |
|
# The user is always right. |
877 |
|
if test "${PATH_SEPARATOR+set}" != set; then |
878 |
|
echo "#! /bin/sh" >conf$$.sh |
879 |
|
echo "exit 0" >>conf$$.sh |
880 |
|
chmod +x conf$$.sh |
881 |
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
882 |
|
PATH_SEPARATOR=';' |
883 |
|
else |
884 |
|
PATH_SEPARATOR=: |
885 |
|
fi |
886 |
|
rm -f conf$$.sh |
887 |
|
fi |
888 |
|
ac_prog=ld |
889 |
|
if test "$GCC" = yes; then |
890 |
|
# Check if gcc -print-prog-name=ld gives a path. |
891 |
|
AC_MSG_CHECKING([for ld used by GCC]) |
892 |
|
case $host in |
893 |
|
*-*-mingw*) |
894 |
|
# gcc leaves a trailing carriage return which upsets mingw |
895 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
896 |
|
*) |
897 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
898 |
|
esac |
899 |
|
case $ac_prog in |
900 |
|
# Accept absolute paths. |
901 |
|
[[\\/]* | [A-Za-z]:[\\/]*)] |
902 |
|
[re_direlt='/[^/][^/]*/\.\./'] |
903 |
|
# Canonicalize the path of ld |
904 |
|
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
905 |
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
906 |
|
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
907 |
|
done |
908 |
|
test -z "$LD" && LD="$ac_prog" |
909 |
|
;; |
910 |
|
"") |
911 |
|
# If it fails, then pretend we aren't using GCC. |
912 |
|
ac_prog=ld |
913 |
|
;; |
914 |
|
*) |
915 |
|
# If it is relative, then search for the first ld in PATH. |
916 |
|
with_gnu_ld=unknown |
917 |
|
;; |
918 |
|
esac |
919 |
|
elif test "$with_gnu_ld" = yes; then |
920 |
|
AC_MSG_CHECKING([for GNU ld]) |
921 |
|
else |
922 |
|
AC_MSG_CHECKING([for non-GNU ld]) |
923 |
|
fi |
924 |
|
AC_CACHE_VAL(acl_cv_path_LD, |
925 |
|
[if test -z "$LD"; then |
926 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
927 |
|
for ac_dir in $PATH; do |
928 |
|
test -z "$ac_dir" && ac_dir=. |
929 |
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
930 |
|
acl_cv_path_LD="$ac_dir/$ac_prog" |
931 |
|
# Check to see if the program is GNU ld. I'd rather use --version, |
932 |
|
# but apparently some GNU ld's only accept -v. |
933 |
|
# Break only if it was the GNU/non-GNU ld that we prefer. |
934 |
|
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
935 |
|
*GNU* | *'with BFD'*) |
936 |
|
test "$with_gnu_ld" != no && break ;; |
937 |
|
*) |
938 |
|
test "$with_gnu_ld" != yes && break ;; |
939 |
|
esac |
940 |
|
fi |
941 |
|
done |
942 |
|
IFS="$ac_save_ifs" |
943 |
|
else |
944 |
|
acl_cv_path_LD="$LD" # Let the user override the test with a path. |
945 |
|
fi]) |
946 |
|
LD="$acl_cv_path_LD" |
947 |
|
if test -n "$LD"; then |
948 |
|
AC_MSG_RESULT($LD) |
949 |
|
else |
950 |
|
AC_MSG_RESULT(no) |
951 |
|
fi |
952 |
|
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
953 |
|
AC_LIB_PROG_LD_GNU |
954 |
|
]) |
955 |
|
|
956 |
system ("touch conf.gtktest"); |
# lib-link.m4 serial 6 (gettext-0.14.3) |
957 |
|
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. |
958 |
|
dnl This file is free software; the Free Software Foundation |
959 |
|
dnl gives unlimited permission to copy and/or distribute it, |
960 |
|
dnl with or without modifications, as long as this notice is preserved. |
961 |
|
|
962 |
|
dnl From Bruno Haible. |
963 |
|
|
964 |
|
AC_PREREQ(2.50) |
965 |
|
|
966 |
|
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and |
967 |
|
dnl the libraries corresponding to explicit and implicit dependencies. |
968 |
|
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and |
969 |
|
dnl augments the CPPFLAGS variable. |
970 |
|
AC_DEFUN([AC_LIB_LINKFLAGS], |
971 |
|
[ |
972 |
|
AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
973 |
|
AC_REQUIRE([AC_LIB_RPATH]) |
974 |
|
define([Name],[translit([$1],[./-], [___])]) |
975 |
|
define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], |
976 |
|
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) |
977 |
|
AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ |
978 |
|
AC_LIB_LINKFLAGS_BODY([$1], [$2]) |
979 |
|
ac_cv_lib[]Name[]_libs="$LIB[]NAME" |
980 |
|
ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" |
981 |
|
ac_cv_lib[]Name[]_cppflags="$INC[]NAME" |
982 |
|
]) |
983 |
|
LIB[]NAME="$ac_cv_lib[]Name[]_libs" |
984 |
|
LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" |
985 |
|
INC[]NAME="$ac_cv_lib[]Name[]_cppflags" |
986 |
|
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) |
987 |
|
AC_SUBST([LIB]NAME) |
988 |
|
AC_SUBST([LTLIB]NAME) |
989 |
|
dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the |
990 |
|
dnl results of this search when this library appears as a dependency. |
991 |
|
HAVE_LIB[]NAME=yes |
992 |
|
undefine([Name]) |
993 |
|
undefine([NAME]) |
994 |
|
]) |
995 |
|
|
996 |
/* HP/UX 9 (%@#!) writes to sscanf strings */ |
dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) |
997 |
tmp_version = g_strdup("$min_gtk_version"); |
dnl searches for libname and the libraries corresponding to explicit and |
998 |
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
dnl implicit dependencies, together with the specified include files and |
999 |
printf("%s, bad version string\n", "$min_gtk_version"); |
dnl the ability to compile and link the specified testcode. If found, it |
1000 |
exit(1); |
dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and |
1001 |
} |
dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and |
1002 |
|
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs |
1003 |
|
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. |
1004 |
|
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], |
1005 |
|
[ |
1006 |
|
AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
1007 |
|
AC_REQUIRE([AC_LIB_RPATH]) |
1008 |
|
define([Name],[translit([$1],[./-], [___])]) |
1009 |
|
define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], |
1010 |
|
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) |
1011 |
|
|
1012 |
|
dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME |
1013 |
|
dnl accordingly. |
1014 |
|
AC_LIB_LINKFLAGS_BODY([$1], [$2]) |
1015 |
|
|
1016 |
|
dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, |
1017 |
|
dnl because if the user has installed lib[]Name and not disabled its use |
1018 |
|
dnl via --without-lib[]Name-prefix, he wants to use it. |
1019 |
|
ac_save_CPPFLAGS="$CPPFLAGS" |
1020 |
|
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) |
1021 |
|
|
1022 |
if ((gtk_major_version != $gtk_config_major_version) || |
AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ |
1023 |
(gtk_minor_version != $gtk_config_minor_version) || |
ac_save_LIBS="$LIBS" |
1024 |
(gtk_micro_version != $gtk_config_micro_version)) |
LIBS="$LIBS $LIB[]NAME" |
1025 |
{ |
AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) |
1026 |
printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
LIBS="$ac_save_LIBS" |
1027 |
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
]) |
1028 |
gtk_major_version, gtk_minor_version, gtk_micro_version); |
if test "$ac_cv_lib[]Name" = yes; then |
1029 |
printf ("*** was found! If gtk-config was correct, then it is best\n"); |
HAVE_LIB[]NAME=yes |
1030 |
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) |
1031 |
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
AC_MSG_CHECKING([how to link with lib[]$1]) |
1032 |
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
AC_MSG_RESULT([$LIB[]NAME]) |
|
printf("*** required on your system.\n"); |
|
|
printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); |
|
|
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); |
|
|
printf("*** before re-running configure\n"); |
|
|
} |
|
|
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
|
|
else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
|
|
(gtk_minor_version != GTK_MINOR_VERSION) || |
|
|
(gtk_micro_version != GTK_MICRO_VERSION)) |
|
|
{ |
|
|
printf("*** GTK+ header files (version %d.%d.%d) do not match\n", |
|
|
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
|
|
printf("*** library (version %d.%d.%d)\n", |
|
|
gtk_major_version, gtk_minor_version, gtk_micro_version); |
|
|
} |
|
|
#endif /* defined (GTK_MAJOR_VERSION) ... */ |
|
1033 |
else |
else |
1034 |
{ |
HAVE_LIB[]NAME=no |
1035 |
if ((gtk_major_version > major) || |
dnl If $LIB[]NAME didn't lead to a usable library, we don't need |
1036 |
((gtk_major_version == major) && (gtk_minor_version > minor)) || |
dnl $INC[]NAME either. |
1037 |
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) |
CPPFLAGS="$ac_save_CPPFLAGS" |
1038 |
{ |
LIB[]NAME= |
1039 |
return 0; |
LTLIB[]NAME= |
1040 |
} |
fi |
1041 |
else |
AC_SUBST([HAVE_LIB]NAME) |
1042 |
{ |
AC_SUBST([LIB]NAME) |
1043 |
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", |
AC_SUBST([LTLIB]NAME) |
1044 |
gtk_major_version, gtk_minor_version, gtk_micro_version); |
undefine([Name]) |
1045 |
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", |
undefine([NAME]) |
1046 |
major, minor, micro); |
]) |
1047 |
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
|
1048 |
printf("***\n"); |
dnl Determine the platform dependent parameters needed to use rpath: |
1049 |
printf("*** If you have already installed a sufficiently new version, this error\n"); |
dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, |
1050 |
printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); |
dnl hardcode_direct, hardcode_minus_L. |
1051 |
printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
AC_DEFUN([AC_LIB_RPATH], |
1052 |
printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); |
[ |
1053 |
printf("*** correct copy of gtk-config. (In this case, you will have to\n"); |
dnl Tell automake >= 1.10 to complain if config.rpath is missing. |
1054 |
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) |
1055 |
printf("*** so that the correct libraries are found at run-time))\n"); |
AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS |
1056 |
} |
AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld |
1057 |
} |
AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host |
1058 |
return 1; |
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir |
1059 |
} |
AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ |
1060 |
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) |
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
1061 |
CFLAGS="$ac_save_CFLAGS" |
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
1062 |
LIBS="$ac_save_LIBS" |
. ./conftest.sh |
1063 |
fi |
rm -f ./conftest.sh |
1064 |
|
acl_cv_rpath=done |
1065 |
|
]) |
1066 |
|
wl="$acl_cv_wl" |
1067 |
|
libext="$acl_cv_libext" |
1068 |
|
shlibext="$acl_cv_shlibext" |
1069 |
|
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
1070 |
|
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
1071 |
|
hardcode_direct="$acl_cv_hardcode_direct" |
1072 |
|
hardcode_minus_L="$acl_cv_hardcode_minus_L" |
1073 |
|
dnl Determine whether the user wants rpath handling at all. |
1074 |
|
AC_ARG_ENABLE(rpath, |
1075 |
|
[ --disable-rpath do not hardcode runtime library paths], |
1076 |
|
:, enable_rpath=yes) |
1077 |
|
]) |
1078 |
|
|
1079 |
|
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and |
1080 |
|
dnl the libraries corresponding to explicit and implicit dependencies. |
1081 |
|
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. |
1082 |
|
AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
1083 |
|
[ |
1084 |
|
define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], |
1085 |
|
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) |
1086 |
|
dnl By default, look in $includedir and $libdir. |
1087 |
|
use_additional=yes |
1088 |
|
AC_LIB_WITH_FINAL_PREFIX([ |
1089 |
|
eval additional_includedir=\"$includedir\" |
1090 |
|
eval additional_libdir=\"$libdir\" |
1091 |
|
]) |
1092 |
|
AC_LIB_ARG_WITH([lib$1-prefix], |
1093 |
|
[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib |
1094 |
|
--without-lib$1-prefix don't search for lib$1 in includedir and libdir], |
1095 |
|
[ |
1096 |
|
if test "X$withval" = "Xno"; then |
1097 |
|
use_additional=no |
1098 |
|
else |
1099 |
|
if test "X$withval" = "X"; then |
1100 |
|
AC_LIB_WITH_FINAL_PREFIX([ |
1101 |
|
eval additional_includedir=\"$includedir\" |
1102 |
|
eval additional_libdir=\"$libdir\" |
1103 |
|
]) |
1104 |
|
else |
1105 |
|
additional_includedir="$withval/include" |
1106 |
|
additional_libdir="$withval/lib" |
1107 |
|
fi |
1108 |
|
fi |
1109 |
|
]) |
1110 |
|
dnl Search the library and its dependencies in $additional_libdir and |
1111 |
|
dnl $LDFLAGS. Using breadth-first-seach. |
1112 |
|
LIB[]NAME= |
1113 |
|
LTLIB[]NAME= |
1114 |
|
INC[]NAME= |
1115 |
|
rpathdirs= |
1116 |
|
ltrpathdirs= |
1117 |
|
names_already_handled= |
1118 |
|
names_next_round='$1 $2' |
1119 |
|
while test -n "$names_next_round"; do |
1120 |
|
names_this_round="$names_next_round" |
1121 |
|
names_next_round= |
1122 |
|
for name in $names_this_round; do |
1123 |
|
already_handled= |
1124 |
|
for n in $names_already_handled; do |
1125 |
|
if test "$n" = "$name"; then |
1126 |
|
already_handled=yes |
1127 |
|
break |
1128 |
|
fi |
1129 |
|
done |
1130 |
|
if test -z "$already_handled"; then |
1131 |
|
names_already_handled="$names_already_handled $name" |
1132 |
|
dnl See if it was already located by an earlier AC_LIB_LINKFLAGS |
1133 |
|
dnl or AC_LIB_HAVE_LINKFLAGS call. |
1134 |
|
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
1135 |
|
eval value=\"\$HAVE_LIB$uppername\" |
1136 |
|
if test -n "$value"; then |
1137 |
|
if test "$value" = yes; then |
1138 |
|
eval value=\"\$LIB$uppername\" |
1139 |
|
test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" |
1140 |
|
eval value=\"\$LTLIB$uppername\" |
1141 |
|
test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" |
1142 |
|
else |
1143 |
|
dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined |
1144 |
|
dnl that this library doesn't exist. So just drop it. |
1145 |
|
: |
1146 |
|
fi |
1147 |
|
else |
1148 |
|
dnl Search the library lib$name in $additional_libdir and $LDFLAGS |
1149 |
|
dnl and the already constructed $LIBNAME/$LTLIBNAME. |
1150 |
|
found_dir= |
1151 |
|
found_la= |
1152 |
|
found_so= |
1153 |
|
found_a= |
1154 |
|
if test $use_additional = yes; then |
1155 |
|
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
1156 |
|
found_dir="$additional_libdir" |
1157 |
|
found_so="$additional_libdir/lib$name.$shlibext" |
1158 |
|
if test -f "$additional_libdir/lib$name.la"; then |
1159 |
|
found_la="$additional_libdir/lib$name.la" |
1160 |
|
fi |
1161 |
|
else |
1162 |
|
if test -f "$additional_libdir/lib$name.$libext"; then |
1163 |
|
found_dir="$additional_libdir" |
1164 |
|
found_a="$additional_libdir/lib$name.$libext" |
1165 |
|
if test -f "$additional_libdir/lib$name.la"; then |
1166 |
|
found_la="$additional_libdir/lib$name.la" |
1167 |
|
fi |
1168 |
|
fi |
1169 |
|
fi |
1170 |
|
fi |
1171 |
|
if test "X$found_dir" = "X"; then |
1172 |
|
for x in $LDFLAGS $LTLIB[]NAME; do |
1173 |
|
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
1174 |
|
case "$x" in |
1175 |
|
-L*) |
1176 |
|
dir=`echo "X$x" | sed -e 's/^X-L//'` |
1177 |
|
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
1178 |
|
found_dir="$dir" |
1179 |
|
found_so="$dir/lib$name.$shlibext" |
1180 |
|
if test -f "$dir/lib$name.la"; then |
1181 |
|
found_la="$dir/lib$name.la" |
1182 |
|
fi |
1183 |
|
else |
1184 |
|
if test -f "$dir/lib$name.$libext"; then |
1185 |
|
found_dir="$dir" |
1186 |
|
found_a="$dir/lib$name.$libext" |
1187 |
|
if test -f "$dir/lib$name.la"; then |
1188 |
|
found_la="$dir/lib$name.la" |
1189 |
|
fi |
1190 |
|
fi |
1191 |
|
fi |
1192 |
|
;; |
1193 |
|
esac |
1194 |
|
if test "X$found_dir" != "X"; then |
1195 |
|
break |
1196 |
|
fi |
1197 |
|
done |
1198 |
|
fi |
1199 |
|
if test "X$found_dir" != "X"; then |
1200 |
|
dnl Found the library. |
1201 |
|
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" |
1202 |
|
if test "X$found_so" != "X"; then |
1203 |
|
dnl Linking with a shared library. We attempt to hardcode its |
1204 |
|
dnl directory into the executable's runpath, unless it's the |
1205 |
|
dnl standard /usr/lib. |
1206 |
|
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
1207 |
|
dnl No hardcoding is needed. |
1208 |
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
1209 |
|
else |
1210 |
|
dnl Use an explicit option to hardcode DIR into the resulting |
1211 |
|
dnl binary. |
1212 |
|
dnl Potentially add DIR to ltrpathdirs. |
1213 |
|
dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. |
1214 |
|
haveit= |
1215 |
|
for x in $ltrpathdirs; do |
1216 |
|
if test "X$x" = "X$found_dir"; then |
1217 |
|
haveit=yes |
1218 |
|
break |
1219 |
|
fi |
1220 |
|
done |
1221 |
|
if test -z "$haveit"; then |
1222 |
|
ltrpathdirs="$ltrpathdirs $found_dir" |
1223 |
|
fi |
1224 |
|
dnl The hardcoding into $LIBNAME is system dependent. |
1225 |
|
if test "$hardcode_direct" = yes; then |
1226 |
|
dnl Using DIR/libNAME.so during linking hardcodes DIR into the |
1227 |
|
dnl resulting binary. |
1228 |
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
1229 |
|
else |
1230 |
|
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
1231 |
|
dnl Use an explicit option to hardcode DIR into the resulting |
1232 |
|
dnl binary. |
1233 |
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
1234 |
|
dnl Potentially add DIR to rpathdirs. |
1235 |
|
dnl The rpathdirs will be appended to $LIBNAME at the end. |
1236 |
|
haveit= |
1237 |
|
for x in $rpathdirs; do |
1238 |
|
if test "X$x" = "X$found_dir"; then |
1239 |
|
haveit=yes |
1240 |
|
break |
1241 |
|
fi |
1242 |
|
done |
1243 |
|
if test -z "$haveit"; then |
1244 |
|
rpathdirs="$rpathdirs $found_dir" |
1245 |
|
fi |
1246 |
|
else |
1247 |
|
dnl Rely on "-L$found_dir". |
1248 |
|
dnl But don't add it if it's already contained in the LDFLAGS |
1249 |
|
dnl or the already constructed $LIBNAME |
1250 |
|
haveit= |
1251 |
|
for x in $LDFLAGS $LIB[]NAME; do |
1252 |
|
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
1253 |
|
if test "X$x" = "X-L$found_dir"; then |
1254 |
|
haveit=yes |
1255 |
|
break |
1256 |
|
fi |
1257 |
|
done |
1258 |
|
if test -z "$haveit"; then |
1259 |
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" |
1260 |
|
fi |
1261 |
|
if test "$hardcode_minus_L" != no; then |
1262 |
|
dnl FIXME: Not sure whether we should use |
1263 |
|
dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" |
1264 |
|
dnl here. |
1265 |
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
1266 |
|
else |
1267 |
|
dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH |
1268 |
|
dnl here, because this doesn't fit in flags passed to the |
1269 |
|
dnl compiler. So give up. No hardcoding. This affects only |
1270 |
|
dnl very old systems. |
1271 |
|
dnl FIXME: Not sure whether we should use |
1272 |
|
dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" |
1273 |
|
dnl here. |
1274 |
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" |
1275 |
|
fi |
1276 |
|
fi |
1277 |
|
fi |
1278 |
|
fi |
1279 |
|
else |
1280 |
|
if test "X$found_a" != "X"; then |
1281 |
|
dnl Linking with a static library. |
1282 |
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" |
1283 |
|
else |
1284 |
|
dnl We shouldn't come here, but anyway it's good to have a |
1285 |
|
dnl fallback. |
1286 |
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" |
1287 |
|
fi |
1288 |
|
fi |
1289 |
|
dnl Assume the include files are nearby. |
1290 |
|
additional_includedir= |
1291 |
|
case "$found_dir" in |
1292 |
|
*/lib | */lib/) |
1293 |
|
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
1294 |
|
additional_includedir="$basedir/include" |
1295 |
|
;; |
1296 |
|
esac |
1297 |
|
if test "X$additional_includedir" != "X"; then |
1298 |
|
dnl Potentially add $additional_includedir to $INCNAME. |
1299 |
|
dnl But don't add it |
1300 |
|
dnl 1. if it's the standard /usr/include, |
1301 |
|
dnl 2. if it's /usr/local/include and we are using GCC on Linux, |
1302 |
|
dnl 3. if it's already present in $CPPFLAGS or the already |
1303 |
|
dnl constructed $INCNAME, |
1304 |
|
dnl 4. if it doesn't exist as a directory. |
1305 |
|
if test "X$additional_includedir" != "X/usr/include"; then |
1306 |
|
haveit= |
1307 |
|
if test "X$additional_includedir" = "X/usr/local/include"; then |
1308 |
|
if test -n "$GCC"; then |
1309 |
|
case $host_os in |
1310 |
|
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
1311 |
|
esac |
1312 |
|
fi |
1313 |
|
fi |
1314 |
|
if test -z "$haveit"; then |
1315 |
|
for x in $CPPFLAGS $INC[]NAME; do |
1316 |
|
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
1317 |
|
if test "X$x" = "X-I$additional_includedir"; then |
1318 |
|
haveit=yes |
1319 |
|
break |
1320 |
|
fi |
1321 |
|
done |
1322 |
|
if test -z "$haveit"; then |
1323 |
|
if test -d "$additional_includedir"; then |
1324 |
|
dnl Really add $additional_includedir to $INCNAME. |
1325 |
|
INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" |
1326 |
|
fi |
1327 |
|
fi |
1328 |
|
fi |
1329 |
|
fi |
1330 |
|
fi |
1331 |
|
dnl Look for dependencies. |
1332 |
|
if test -n "$found_la"; then |
1333 |
|
dnl Read the .la file. It defines the variables |
1334 |
|
dnl dlname, library_names, old_library, dependency_libs, current, |
1335 |
|
dnl age, revision, installed, dlopen, dlpreopen, libdir. |
1336 |
|
save_libdir="$libdir" |
1337 |
|
case "$found_la" in |
1338 |
|
*/* | *\\*) . "$found_la" ;; |
1339 |
|
*) . "./$found_la" ;; |
1340 |
|
esac |
1341 |
|
libdir="$save_libdir" |
1342 |
|
dnl We use only dependency_libs. |
1343 |
|
for dep in $dependency_libs; do |
1344 |
|
case "$dep" in |
1345 |
|
-L*) |
1346 |
|
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
1347 |
|
dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. |
1348 |
|
dnl But don't add it |
1349 |
|
dnl 1. if it's the standard /usr/lib, |
1350 |
|
dnl 2. if it's /usr/local/lib and we are using GCC on Linux, |
1351 |
|
dnl 3. if it's already present in $LDFLAGS or the already |
1352 |
|
dnl constructed $LIBNAME, |
1353 |
|
dnl 4. if it doesn't exist as a directory. |
1354 |
|
if test "X$additional_libdir" != "X/usr/lib"; then |
1355 |
|
haveit= |
1356 |
|
if test "X$additional_libdir" = "X/usr/local/lib"; then |
1357 |
|
if test -n "$GCC"; then |
1358 |
|
case $host_os in |
1359 |
|
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
1360 |
|
esac |
1361 |
|
fi |
1362 |
|
fi |
1363 |
|
if test -z "$haveit"; then |
1364 |
|
haveit= |
1365 |
|
for x in $LDFLAGS $LIB[]NAME; do |
1366 |
|
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
1367 |
|
if test "X$x" = "X-L$additional_libdir"; then |
1368 |
|
haveit=yes |
1369 |
|
break |
1370 |
|
fi |
1371 |
|
done |
1372 |
|
if test -z "$haveit"; then |
1373 |
|
if test -d "$additional_libdir"; then |
1374 |
|
dnl Really add $additional_libdir to $LIBNAME. |
1375 |
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" |
1376 |
|
fi |
1377 |
|
fi |
1378 |
|
haveit= |
1379 |
|
for x in $LDFLAGS $LTLIB[]NAME; do |
1380 |
|
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
1381 |
|
if test "X$x" = "X-L$additional_libdir"; then |
1382 |
|
haveit=yes |
1383 |
|
break |
1384 |
|
fi |
1385 |
|
done |
1386 |
|
if test -z "$haveit"; then |
1387 |
|
if test -d "$additional_libdir"; then |
1388 |
|
dnl Really add $additional_libdir to $LTLIBNAME. |
1389 |
|
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" |
1390 |
|
fi |
1391 |
|
fi |
1392 |
|
fi |
1393 |
|
fi |
1394 |
|
;; |
1395 |
|
-R*) |
1396 |
|
dir=`echo "X$dep" | sed -e 's/^X-R//'` |
1397 |
|
if test "$enable_rpath" != no; then |
1398 |
|
dnl Potentially add DIR to rpathdirs. |
1399 |
|
dnl The rpathdirs will be appended to $LIBNAME at the end. |
1400 |
|
haveit= |
1401 |
|
for x in $rpathdirs; do |
1402 |
|
if test "X$x" = "X$dir"; then |
1403 |
|
haveit=yes |
1404 |
|
break |
1405 |
|
fi |
1406 |
|
done |
1407 |
|
if test -z "$haveit"; then |
1408 |
|
rpathdirs="$rpathdirs $dir" |
1409 |
|
fi |
1410 |
|
dnl Potentially add DIR to ltrpathdirs. |
1411 |
|
dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. |
1412 |
|
haveit= |
1413 |
|
for x in $ltrpathdirs; do |
1414 |
|
if test "X$x" = "X$dir"; then |
1415 |
|
haveit=yes |
1416 |
|
break |
1417 |
|
fi |
1418 |
|
done |
1419 |
|
if test -z "$haveit"; then |
1420 |
|
ltrpathdirs="$ltrpathdirs $dir" |
1421 |
|
fi |
1422 |
|
fi |
1423 |
|
;; |
1424 |
|
-l*) |
1425 |
|
dnl Handle this in the next round. |
1426 |
|
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
1427 |
|
;; |
1428 |
|
*.la) |
1429 |
|
dnl Handle this in the next round. Throw away the .la's |
1430 |
|
dnl directory; it is already contained in a preceding -L |
1431 |
|
dnl option. |
1432 |
|
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
1433 |
|
;; |
1434 |
|
*) |
1435 |
|
dnl Most likely an immediate library name. |
1436 |
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" |
1437 |
|
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" |
1438 |
|
;; |
1439 |
|
esac |
1440 |
|
done |
1441 |
|
fi |
1442 |
|
else |
1443 |
|
dnl Didn't find the library; assume it is in the system directories |
1444 |
|
dnl known to the linker and runtime loader. (All the system |
1445 |
|
dnl directories known to the linker should also be known to the |
1446 |
|
dnl runtime loader, otherwise the system is severely misconfigured.) |
1447 |
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" |
1448 |
|
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" |
1449 |
|
fi |
1450 |
|
fi |
1451 |
|
fi |
1452 |
|
done |
1453 |
|
done |
1454 |
|
if test "X$rpathdirs" != "X"; then |
1455 |
|
if test -n "$hardcode_libdir_separator"; then |
1456 |
|
dnl Weird platform: only the last -rpath option counts, the user must |
1457 |
|
dnl pass all path elements in one option. We can arrange that for a |
1458 |
|
dnl single library, but not when more than one $LIBNAMEs are used. |
1459 |
|
alldirs= |
1460 |
|
for found_dir in $rpathdirs; do |
1461 |
|
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
1462 |
|
done |
1463 |
|
dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. |
1464 |
|
acl_save_libdir="$libdir" |
1465 |
|
libdir="$alldirs" |
1466 |
|
eval flag=\"$hardcode_libdir_flag_spec\" |
1467 |
|
libdir="$acl_save_libdir" |
1468 |
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" |
1469 |
|
else |
1470 |
|
dnl The -rpath options are cumulative. |
1471 |
|
for found_dir in $rpathdirs; do |
1472 |
|
acl_save_libdir="$libdir" |
1473 |
|
libdir="$found_dir" |
1474 |
|
eval flag=\"$hardcode_libdir_flag_spec\" |
1475 |
|
libdir="$acl_save_libdir" |
1476 |
|
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" |
1477 |
|
done |
1478 |
|
fi |
1479 |
fi |
fi |
1480 |
if test "x$no_gtk" = x ; then |
if test "X$ltrpathdirs" != "X"; then |
1481 |
AC_MSG_RESULT(yes) |
dnl When using libtool, the option that works for both libraries and |
1482 |
ifelse([$2], , :, [$2]) |
dnl executables is -R. The -R options are cumulative. |
1483 |
|
for found_dir in $ltrpathdirs; do |
1484 |
|
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" |
1485 |
|
done |
1486 |
|
fi |
1487 |
|
]) |
1488 |
|
|
1489 |
|
dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, |
1490 |
|
dnl unless already present in VAR. |
1491 |
|
dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes |
1492 |
|
dnl contains two or three consecutive elements that belong together. |
1493 |
|
AC_DEFUN([AC_LIB_APPENDTOVAR], |
1494 |
|
[ |
1495 |
|
for element in [$2]; do |
1496 |
|
haveit= |
1497 |
|
for x in $[$1]; do |
1498 |
|
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
1499 |
|
if test "X$x" = "X$element"; then |
1500 |
|
haveit=yes |
1501 |
|
break |
1502 |
|
fi |
1503 |
|
done |
1504 |
|
if test -z "$haveit"; then |
1505 |
|
[$1]="${[$1]}${[$1]:+ }$element" |
1506 |
|
fi |
1507 |
|
done |
1508 |
|
]) |
1509 |
|
|
1510 |
|
# lib-prefix.m4 serial 4 (gettext-0.14.2) |
1511 |
|
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. |
1512 |
|
dnl This file is free software; the Free Software Foundation |
1513 |
|
dnl gives unlimited permission to copy and/or distribute it, |
1514 |
|
dnl with or without modifications, as long as this notice is preserved. |
1515 |
|
|
1516 |
|
dnl From Bruno Haible. |
1517 |
|
|
1518 |
|
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and |
1519 |
|
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't |
1520 |
|
dnl require excessive bracketing. |
1521 |
|
ifdef([AC_HELP_STRING], |
1522 |
|
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], |
1523 |
|
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) |
1524 |
|
|
1525 |
|
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed |
1526 |
|
dnl to access previously installed libraries. The basic assumption is that |
1527 |
|
dnl a user will want packages to use other packages he previously installed |
1528 |
|
dnl with the same --prefix option. |
1529 |
|
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate |
1530 |
|
dnl libraries, but is otherwise very convenient. |
1531 |
|
AC_DEFUN([AC_LIB_PREFIX], |
1532 |
|
[ |
1533 |
|
AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) |
1534 |
|
AC_REQUIRE([AC_PROG_CC]) |
1535 |
|
AC_REQUIRE([AC_CANONICAL_HOST]) |
1536 |
|
AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
1537 |
|
dnl By default, look in $includedir and $libdir. |
1538 |
|
use_additional=yes |
1539 |
|
AC_LIB_WITH_FINAL_PREFIX([ |
1540 |
|
eval additional_includedir=\"$includedir\" |
1541 |
|
eval additional_libdir=\"$libdir\" |
1542 |
|
]) |
1543 |
|
AC_LIB_ARG_WITH([lib-prefix], |
1544 |
|
[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib |
1545 |
|
--without-lib-prefix don't search for libraries in includedir and libdir], |
1546 |
|
[ |
1547 |
|
if test "X$withval" = "Xno"; then |
1548 |
|
use_additional=no |
1549 |
|
else |
1550 |
|
if test "X$withval" = "X"; then |
1551 |
|
AC_LIB_WITH_FINAL_PREFIX([ |
1552 |
|
eval additional_includedir=\"$includedir\" |
1553 |
|
eval additional_libdir=\"$libdir\" |
1554 |
|
]) |
1555 |
|
else |
1556 |
|
additional_includedir="$withval/include" |
1557 |
|
additional_libdir="$withval/lib" |
1558 |
|
fi |
1559 |
|
fi |
1560 |
|
]) |
1561 |
|
if test $use_additional = yes; then |
1562 |
|
dnl Potentially add $additional_includedir to $CPPFLAGS. |
1563 |
|
dnl But don't add it |
1564 |
|
dnl 1. if it's the standard /usr/include, |
1565 |
|
dnl 2. if it's already present in $CPPFLAGS, |
1566 |
|
dnl 3. if it's /usr/local/include and we are using GCC on Linux, |
1567 |
|
dnl 4. if it doesn't exist as a directory. |
1568 |
|
if test "X$additional_includedir" != "X/usr/include"; then |
1569 |
|
haveit= |
1570 |
|
for x in $CPPFLAGS; do |
1571 |
|
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
1572 |
|
if test "X$x" = "X-I$additional_includedir"; then |
1573 |
|
haveit=yes |
1574 |
|
break |
1575 |
|
fi |
1576 |
|
done |
1577 |
|
if test -z "$haveit"; then |
1578 |
|
if test "X$additional_includedir" = "X/usr/local/include"; then |
1579 |
|
if test -n "$GCC"; then |
1580 |
|
case $host_os in |
1581 |
|
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
1582 |
|
esac |
1583 |
|
fi |
1584 |
|
fi |
1585 |
|
if test -z "$haveit"; then |
1586 |
|
if test -d "$additional_includedir"; then |
1587 |
|
dnl Really add $additional_includedir to $CPPFLAGS. |
1588 |
|
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" |
1589 |
|
fi |
1590 |
|
fi |
1591 |
|
fi |
1592 |
|
fi |
1593 |
|
dnl Potentially add $additional_libdir to $LDFLAGS. |
1594 |
|
dnl But don't add it |
1595 |
|
dnl 1. if it's the standard /usr/lib, |
1596 |
|
dnl 2. if it's already present in $LDFLAGS, |
1597 |
|
dnl 3. if it's /usr/local/lib and we are using GCC on Linux, |
1598 |
|
dnl 4. if it doesn't exist as a directory. |
1599 |
|
if test "X$additional_libdir" != "X/usr/lib"; then |
1600 |
|
haveit= |
1601 |
|
for x in $LDFLAGS; do |
1602 |
|
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
1603 |
|
if test "X$x" = "X-L$additional_libdir"; then |
1604 |
|
haveit=yes |
1605 |
|
break |
1606 |
|
fi |
1607 |
|
done |
1608 |
|
if test -z "$haveit"; then |
1609 |
|
if test "X$additional_libdir" = "X/usr/local/lib"; then |
1610 |
|
if test -n "$GCC"; then |
1611 |
|
case $host_os in |
1612 |
|
linux*) haveit=yes;; |
1613 |
|
esac |
1614 |
|
fi |
1615 |
|
fi |
1616 |
|
if test -z "$haveit"; then |
1617 |
|
if test -d "$additional_libdir"; then |
1618 |
|
dnl Really add $additional_libdir to $LDFLAGS. |
1619 |
|
LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" |
1620 |
|
fi |
1621 |
|
fi |
1622 |
|
fi |
1623 |
|
fi |
1624 |
|
fi |
1625 |
|
]) |
1626 |
|
|
1627 |
|
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, |
1628 |
|
dnl acl_final_exec_prefix, containing the values to which $prefix and |
1629 |
|
dnl $exec_prefix will expand at the end of the configure script. |
1630 |
|
AC_DEFUN([AC_LIB_PREPARE_PREFIX], |
1631 |
|
[ |
1632 |
|
dnl Unfortunately, prefix and exec_prefix get only finally determined |
1633 |
|
dnl at the end of configure. |
1634 |
|
if test "X$prefix" = "XNONE"; then |
1635 |
|
acl_final_prefix="$ac_default_prefix" |
1636 |
else |
else |
1637 |
AC_MSG_RESULT(no) |
acl_final_prefix="$prefix" |
1638 |
if test "$GTK_CONFIG" = "no" ; then |
fi |
1639 |
echo "*** The gtk-config script installed by GTK could not be found" |
if test "X$exec_prefix" = "XNONE"; then |
1640 |
echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" |
acl_final_exec_prefix='${prefix}' |
1641 |
echo "*** your path, or set the GTK_CONFIG environment variable to the" |
else |
1642 |
echo "*** full path to gtk-config." |
acl_final_exec_prefix="$exec_prefix" |
|
else |
|
|
if test -f conf.gtktest ; then |
|
|
: |
|
|
else |
|
|
echo "*** Could not run GTK test program, checking why..." |
|
|
CFLAGS="$CFLAGS $GTK_CFLAGS" |
|
|
LIBS="$LIBS $GTK_LIBS" |
|
|
AC_TRY_LINK([ |
|
|
#include <gtk/gtk.h> |
|
|
#include <stdio.h> |
|
|
], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], |
|
|
[ echo "*** The test program compiled, but did not run. This usually means" |
|
|
echo "*** that the run-time linker is not finding GTK or finding the wrong" |
|
|
echo "*** version of GTK. If it is not finding GTK, you'll need to set your" |
|
|
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
|
|
echo "*** to the installed location Also, make sure you have run ldconfig if that" |
|
|
echo "*** is required on your system" |
|
|
echo "***" |
|
|
echo "*** If you have an old version installed, it is best to remove it, although" |
|
|
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
|
|
echo "***" |
|
|
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" |
|
|
echo "*** came with the system with the command" |
|
|
echo "***" |
|
|
echo "*** rpm --erase --nodeps gtk gtk-devel" ], |
|
|
[ echo "*** The test program failed to compile or link. See the file config.log for the" |
|
|
echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
|
|
echo "*** or that you have moved GTK since it was installed. In the latter case, you" |
|
|
echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ]) |
|
|
CFLAGS="$ac_save_CFLAGS" |
|
|
LIBS="$ac_save_LIBS" |
|
|
fi |
|
|
fi |
|
|
GTK_CFLAGS="" |
|
|
GTK_LIBS="" |
|
|
ifelse([$3], , :, [$3]) |
|
1643 |
fi |
fi |
1644 |
AC_SUBST(GTK_CFLAGS) |
acl_save_prefix="$prefix" |
1645 |
AC_SUBST(GTK_LIBS) |
prefix="$acl_final_prefix" |
1646 |
rm -f conf.gtktest |
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
1647 |
|
prefix="$acl_save_prefix" |
1648 |
|
]) |
1649 |
|
|
1650 |
|
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the |
1651 |
|
dnl variables prefix and exec_prefix bound to the values they will have |
1652 |
|
dnl at the end of the configure script. |
1653 |
|
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], |
1654 |
|
[ |
1655 |
|
acl_save_prefix="$prefix" |
1656 |
|
prefix="$acl_final_prefix" |
1657 |
|
acl_save_exec_prefix="$exec_prefix" |
1658 |
|
exec_prefix="$acl_final_exec_prefix" |
1659 |
|
$1 |
1660 |
|
exec_prefix="$acl_save_exec_prefix" |
1661 |
|
prefix="$acl_save_prefix" |
1662 |
]) |
]) |
1663 |
|
|
1664 |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
1665 |
|
|
1666 |
# serial 47 AC_PROG_LIBTOOL |
# serial 47 AC_PROG_LIBTOOL |
1667 |
|
# Debian $Rev: 214 $ |
1668 |
|
|
1669 |
|
|
1670 |
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
1842 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
1843 |
fi |
fi |
1844 |
|
|
|
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
|
|
|
|
1845 |
# Only perform the check for file, if the check method requires it |
# Only perform the check for file, if the check method requires it |
1846 |
case $deplibs_check_method in |
case $deplibs_check_method in |
1847 |
file_magic*) |
file_magic*) |
1959 |
|
|
1960 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
1961 |
# if CDPATH is set. |
# if CDPATH is set. |
1962 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
1963 |
|
|
1964 |
if test -z "$ECHO"; then |
if test -z "$ECHO"; then |
1965 |
if test "X${echo_test_string+set}" != Xset; then |
if test "X${echo_test_string+set}" != Xset; then |
2318 |
lt_cv_sys_max_cmd_len=8192; |
lt_cv_sys_max_cmd_len=8192; |
2319 |
;; |
;; |
2320 |
|
|
|
netbsd* | freebsd* | openbsd* | darwin* ) |
|
|
# This has been around since 386BSD, at least. Likely further. |
|
|
if test -x /sbin/sysctl; then |
|
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
|
|
elif test -x /usr/sbin/sysctl; then |
|
|
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
|
|
else |
|
|
lt_cv_sys_max_cmd_len=65536 # usable default for *BSD |
|
|
fi |
|
|
# And add a safety zone |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
|
;; |
|
|
|
|
2321 |
*) |
*) |
2322 |
# If test is not a shell built-in, we'll probably end up computing a |
# If test is not a shell built-in, we'll probably end up computing a |
2323 |
# maximum length that is only half of the actual maximum length, but |
# maximum length that is only half of the actual maximum length, but |
2324 |
# we can't tell. |
# we can't tell. |
2325 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
|
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
|
2326 |
= "XX$teststring") >/dev/null 2>&1 && |
= "XX$teststring") >/dev/null 2>&1 && |
2327 |
new_result=`expr "X$teststring" : ".*" 2>&1` && |
new_result=`expr "X$teststring" : ".*" 2>&1` && |
2328 |
lt_cv_sys_max_cmd_len=$new_result && |
lt_cv_sys_max_cmd_len=$new_result && |
2656 |
[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
2657 |
_LT_AC_TAGVAR(hardcode_action, $1)= |
_LT_AC_TAGVAR(hardcode_action, $1)= |
2658 |
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
2659 |
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |
test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ |
2660 |
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then |
2661 |
|
|
2662 |
# We can hardcode non-existant directories. |
# We can hardcode non-existant directories. |
2663 |
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
2824 |
shlibpath_var=LIBRARY_PATH |
shlibpath_var=LIBRARY_PATH |
2825 |
;; |
;; |
2826 |
|
|
2827 |
bsdi[[45]]*) |
bsdi4*) |
2828 |
version_type=linux |
version_type=linux |
2829 |
need_version=no |
need_version=no |
2830 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3098 |
dynamic_linker='GNU/Linux ld.so' |
dynamic_linker='GNU/Linux ld.so' |
3099 |
;; |
;; |
3100 |
|
|
3101 |
|
netbsdelf*-gnu) |
3102 |
|
version_type=linux |
3103 |
|
need_lib_prefix=no |
3104 |
|
need_version=no |
3105 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
3106 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
3107 |
|
shlibpath_var=LD_LIBRARY_PATH |
3108 |
|
shlibpath_overrides_runpath=no |
3109 |
|
hardcode_into_libs=yes |
3110 |
|
dynamic_linker='NetBSD ld.elf_so' |
3111 |
|
;; |
3112 |
|
|
3113 |
knetbsd*-gnu) |
knetbsd*-gnu) |
3114 |
version_type=linux |
version_type=linux |
3115 |
need_lib_prefix=no |
need_lib_prefix=no |
3160 |
openbsd*) |
openbsd*) |
3161 |
version_type=sunos |
version_type=sunos |
3162 |
need_lib_prefix=no |
need_lib_prefix=no |
3163 |
need_version=no |
need_version=yes |
3164 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
3165 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
3166 |
shlibpath_var=LD_LIBRARY_PATH |
shlibpath_var=LD_LIBRARY_PATH |
3326 |
|
|
3327 |
case $tagname in |
case $tagname in |
3328 |
CXX) |
CXX) |
3329 |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
if test -n "$CXX" && test "X$CXX" != "Xno"; then |
|
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
|
|
(test "X$CXX" != "Xg++"))) ; then |
|
3330 |
AC_LIBTOOL_LANG_CXX_CONFIG |
AC_LIBTOOL_LANG_CXX_CONFIG |
3331 |
else |
else |
3332 |
tagname="" |
tagname="" |
3731 |
*) reload_flag=" $reload_flag" ;; |
*) reload_flag=" $reload_flag" ;; |
3732 |
esac |
esac |
3733 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
case $host_os in |
|
|
darwin*) |
|
|
if test "$GCC" = yes; then |
|
|
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
|
|
else |
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
fi |
|
|
;; |
|
|
esac |
|
3734 |
])# AC_PROG_LD_RELOAD_FLAG |
])# AC_PROG_LD_RELOAD_FLAG |
3735 |
|
|
3736 |
|
|
3764 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
3765 |
;; |
;; |
3766 |
|
|
3767 |
bsdi[[45]]*) |
bsdi4*) |
3768 |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
3769 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
3770 |
lt_cv_file_magic_test_file=/shlib/libc.so |
lt_cv_file_magic_test_file=/shlib/libc.so |
3840 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
3841 |
;; |
;; |
3842 |
|
|
3843 |
netbsd*) |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
3844 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3845 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3846 |
else |
else |
3859 |
;; |
;; |
3860 |
|
|
3861 |
openbsd*) |
openbsd*) |
3862 |
|
lt_cv_file_magic_cmd=/usr/bin/file |
3863 |
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3864 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3865 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
3866 |
else |
else |
3867 |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
3868 |
fi |
fi |
3869 |
;; |
;; |
3870 |
|
|
4054 |
# --------------- |
# --------------- |
4055 |
AC_DEFUN([_LT_AC_LANG_CXX], |
AC_DEFUN([_LT_AC_LANG_CXX], |
4056 |
[AC_REQUIRE([AC_PROG_CXX]) |
[AC_REQUIRE([AC_PROG_CXX]) |
4057 |
AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
AC_REQUIRE([AC_PROG_CXXCPP]) |
4058 |
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
4059 |
])# _LT_AC_LANG_CXX |
])# _LT_AC_LANG_CXX |
4060 |
|
|
|
# _LT_AC_PROG_CXXCPP |
|
|
# --------------- |
|
|
AC_DEFUN([_LT_AC_PROG_CXXCPP], |
|
|
[ |
|
|
AC_REQUIRE([AC_PROG_CXX]) |
|
|
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
|
|
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
|
|
(test "X$CXX" != "Xg++"))) ; then |
|
|
AC_PROG_CXXCPP |
|
|
fi |
|
|
])# _LT_AC_PROG_CXXCPP |
|
4061 |
|
|
4062 |
# AC_LIBTOOL_F77 |
# AC_LIBTOOL_F77 |
4063 |
# -------------- |
# -------------- |
4193 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
4194 |
test "$enable_shared" = yes && enable_static=no |
test "$enable_shared" = yes && enable_static=no |
4195 |
fi |
fi |
4196 |
|
;; |
4197 |
|
darwin* | rhapsody*) |
4198 |
|
if test "$GCC" = yes; then |
4199 |
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4200 |
|
case "$host_os" in |
4201 |
|
rhapsody* | darwin1.[[012]]) |
4202 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
4203 |
|
;; |
4204 |
|
*) # Darwin 1.3 on |
4205 |
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
4206 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
4207 |
|
else |
4208 |
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
4209 |
|
10.[[012]]) |
4210 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
4211 |
|
;; |
4212 |
|
10.*) |
4213 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
4214 |
|
;; |
4215 |
|
esac |
4216 |
|
fi |
4217 |
|
;; |
4218 |
|
esac |
4219 |
|
output_verbose_link_cmd='echo' |
4220 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
4221 |
|
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
4222 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
4223 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
4224 |
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
4225 |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
4226 |
|
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
4227 |
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4228 |
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
4229 |
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4230 |
|
else |
4231 |
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4232 |
|
fi |
4233 |
;; |
;; |
4234 |
esac |
esac |
4235 |
AC_MSG_RESULT([$enable_shared]) |
AC_MSG_RESULT([$enable_shared]) |
4255 |
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
4256 |
[AC_LANG_PUSH(C++) |
[AC_LANG_PUSH(C++) |
4257 |
AC_REQUIRE([AC_PROG_CXX]) |
AC_REQUIRE([AC_PROG_CXX]) |
4258 |
AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
AC_REQUIRE([AC_PROG_CXXCPP]) |
4259 |
|
|
4260 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4261 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
4507 |
esac |
esac |
4508 |
;; |
;; |
4509 |
|
|
|
|
|
4510 |
cygwin* | mingw* | pw32*) |
cygwin* | mingw* | pw32*) |
4511 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
4512 |
# as there is no search path for DLLs. |
# as there is no search path for DLLs. |
4530 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4531 |
fi |
fi |
4532 |
;; |
;; |
|
darwin* | rhapsody*) |
|
|
case "$host_os" in |
|
|
rhapsody* | darwin1.[[012]]) |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
|
|
;; |
|
|
*) # Darwin 1.3 on |
|
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
else |
|
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
10.[[012]]) |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
;; |
|
|
10.*) |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
;; |
|
|
esac |
|
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
|
|
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
|
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
|
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
4533 |
|
|
4534 |
if test "$GXX" = yes ; then |
darwin* | rhapsody*) |
4535 |
lt_int_apple_cc_single_mod=no |
if test "$GXX" = yes; then |
4536 |
output_verbose_link_cmd='echo' |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4537 |
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
case "$host_os" in |
4538 |
lt_int_apple_cc_single_mod=yes |
rhapsody* | darwin1.[[012]]) |
4539 |
fi |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
4540 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
;; |
4541 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
*) # Darwin 1.3 on |
4542 |
else |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
4543 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
|
fi |
|
|
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
else |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
fi |
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
4544 |
else |
else |
4545 |
case "$cc_basename" in |
case ${MACOSX_DEPLOYMENT_TARGET} in |
4546 |
xlc*) |
10.[[012]]) |
4547 |
output_verbose_link_cmd='echo' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
4548 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
;; |
4549 |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10.*) |
4550 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
4551 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
;; |
4552 |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
esac |
|
;; |
|
|
*) |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
;; |
|
|
esac |
|
4553 |
fi |
fi |
4554 |
;; |
;; |
4555 |
|
esac |
4556 |
|
lt_int_apple_cc_single_mod=no |
4557 |
|
output_verbose_link_cmd='echo' |
4558 |
|
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
4559 |
|
lt_int_apple_cc_single_mod=yes |
4560 |
|
fi |
4561 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
4562 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
4563 |
|
else |
4564 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
4565 |
|
fi |
4566 |
|
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
4567 |
|
|
4568 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
4569 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
4570 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
4571 |
|
else |
4572 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
4573 |
|
fi |
4574 |
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
4575 |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
4576 |
|
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
4577 |
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4578 |
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
4579 |
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4580 |
|
else |
4581 |
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4582 |
|
fi |
4583 |
|
;; |
4584 |
|
|
4585 |
dgux*) |
dgux*) |
4586 |
case $cc_basename in |
case $cc_basename in |
4786 |
icpc) |
icpc) |
4787 |
# Intel C++ |
# Intel C++ |
4788 |
with_gnu_ld=yes |
with_gnu_ld=yes |
|
# version 8.0 and above of icpc choke on multiply defined symbols |
|
|
# if we add $predep_objects and $postdep_objects, however 7.1 and |
|
|
# earlier do not add the objects themselves. |
|
|
case `$CC -V 2>&1` in |
|
|
*"Version 7."*) |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
;; |
|
|
*) # Version 8.0 or newer |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
;; |
|
|
esac |
|
4789 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4790 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4791 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
4792 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4793 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4794 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
4834 |
;; |
;; |
4835 |
esac |
esac |
4836 |
;; |
;; |
4837 |
netbsd*) |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
4838 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
4839 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
4840 |
wlarc= |
wlarc= |
4845 |
# Workaround some broken pre-1.5 toolchains |
# Workaround some broken pre-1.5 toolchains |
4846 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
4847 |
;; |
;; |
|
openbsd2*) |
|
|
# C++ shared libraries are fairly broken |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
;; |
|
|
openbsd*) |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
|
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
fi |
|
|
output_verbose_link_cmd='echo' |
|
|
;; |
|
4848 |
osf3*) |
osf3*) |
4849 |
case $cc_basename in |
case $cc_basename in |
4850 |
KCC) |
KCC) |
5603 |
|
|
5604 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
5605 |
# if CDPATH is set. |
# if CDPATH is set. |
5606 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
5607 |
|
|
5608 |
# The names of the tagged configurations supported by this script. |
# The names of the tagged configurations supported by this script. |
5609 |
available_tags= |
available_tags= |
6008 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6009 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
6010 |
;; |
;; |
|
linux*) |
|
|
if test "$host_cpu" = ia64; then |
|
|
symcode='[[ABCDGIRSTW]]' |
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
|
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
|
fi |
|
|
;; |
|
6011 |
irix* | nonstopux*) |
irix* | nonstopux*) |
6012 |
symcode='[[BCDEGRST]]' |
symcode='[[BCDEGRST]]' |
6013 |
;; |
;; |
6235 |
;; |
;; |
6236 |
esac |
esac |
6237 |
;; |
;; |
|
darwin*) |
|
|
# PIC is the default on this platform |
|
|
# Common symbols not allowed in MH_DYLIB files |
|
|
case "$cc_basename" in |
|
|
xlc*) |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
|
;; |
|
|
esac |
|
|
;; |
|
6238 |
dgux*) |
dgux*) |
6239 |
case $cc_basename in |
case $cc_basename in |
6240 |
ec++) |
ec++) |
6324 |
;; |
;; |
6325 |
esac |
esac |
6326 |
;; |
;; |
6327 |
netbsd*) |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
6328 |
;; |
;; |
6329 |
osf3* | osf4* | osf5*) |
osf3* | osf4* | osf5*) |
6330 |
case $cc_basename in |
case $cc_basename in |
6488 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
6489 |
fi |
fi |
6490 |
;; |
;; |
|
darwin*) |
|
|
# PIC is the default on this platform |
|
|
# Common symbols not allowed in MH_DYLIB files |
|
|
case "$cc_basename" in |
|
|
xlc*) |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
|
;; |
|
|
esac |
|
|
;; |
|
6491 |
|
|
6492 |
mingw* | pw32* | os2*) |
mingw* | pw32* | os2*) |
6493 |
# This hack is so that the source file can tell whether it is being |
# This hack is so that the source file can tell whether it is being |
6635 |
cygwin* | mingw*) |
cygwin* | mingw*) |
6636 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
6637 |
;; |
;; |
6638 |
|
linux*) |
6639 |
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=no |
6640 |
|
;; |
6641 |
*) |
*) |
6642 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
6643 |
;; |
;; |
6767 |
fi |
fi |
6768 |
;; |
;; |
6769 |
|
|
6770 |
netbsd*) |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
6771 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
6772 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
6773 |
wlarc= |
wlarc= |
6825 |
else |
else |
6826 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" |
6827 |
fi |
fi |
6828 |
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=no |
6829 |
else |
else |
6830 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
6831 |
fi |
fi |
6993 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
6994 |
;; |
;; |
6995 |
|
|
6996 |
bsdi[[45]]*) |
bsdi4*) |
6997 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
6998 |
;; |
;; |
6999 |
|
|
7019 |
;; |
;; |
7020 |
|
|
7021 |
darwin* | rhapsody*) |
darwin* | rhapsody*) |
7022 |
|
if test "$GXX" = yes ; then |
7023 |
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
7024 |
case "$host_os" in |
case "$host_os" in |
7025 |
rhapsody* | darwin1.[[012]]) |
rhapsody* | darwin1.[[012]]) |
7026 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
7027 |
;; |
;; |
7028 |
*) # Darwin 1.3 on |
*) # Darwin 1.3 on |
7029 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
7030 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
7031 |
else |
else |
7032 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
case ${MACOSX_DEPLOYMENT_TARGET} in |
7033 |
10.[[012]]) |
10.[[012]]) |
7034 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
7035 |
;; |
;; |
7036 |
10.*) |
10.*) |
7037 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
7038 |
;; |
;; |
7039 |
esac |
esac |
7040 |
fi |
fi |
7041 |
;; |
;; |
7042 |
esac |
esac |
7043 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
lt_int_apple_cc_single_mod=no |
7044 |
|
output_verbose_link_cmd='echo' |
7045 |
|
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
7046 |
|
lt_int_apple_cc_single_mod=yes |
7047 |
|
fi |
7048 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
7049 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
7050 |
|
else |
7051 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
7052 |
|
fi |
7053 |
|
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7054 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
7055 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
7056 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7057 |
|
else |
7058 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7059 |
|
fi |
7060 |
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7061 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
7062 |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
7063 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
7064 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
7065 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
if test "$GCC" = yes ; then |
|
|
output_verbose_link_cmd='echo' |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
7066 |
else |
else |
7067 |
case "$cc_basename" in |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
xlc*) |
|
|
output_verbose_link_cmd='echo' |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
|
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
;; |
|
|
*) |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
;; |
|
|
esac |
|
7068 |
fi |
fi |
7069 |
;; |
;; |
7070 |
|
|
7185 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
7186 |
;; |
;; |
7187 |
|
|
7188 |
netbsd*) |
netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
7189 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7190 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
7191 |
else |
else |
7209 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
7210 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7211 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
7212 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
7213 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
7214 |
else |
else |
7572 |
fi |
fi |
7573 |
done |
done |
7574 |
done |
done |
|
]) |
|
7575 |
SED=$lt_cv_path_SED |
SED=$lt_cv_path_SED |
7576 |
|
]) |
7577 |
AC_MSG_RESULT([$SED]) |
AC_MSG_RESULT([$SED]) |
7578 |
]) |
]) |
7579 |
|
|
7580 |
|
# nls.m4 serial 2 (gettext-0.14.3) |
7581 |
|
dnl Copyright (C) 1995-2003, 2005 Free Software Foundation, Inc. |
7582 |
|
dnl This file is free software; the Free Software Foundation |
7583 |
|
dnl gives unlimited permission to copy and/or distribute it, |
7584 |
|
dnl with or without modifications, as long as this notice is preserved. |
7585 |
|
dnl |
7586 |
|
dnl This file can can be used in projects which are not available under |
7587 |
|
dnl the GNU General Public License or the GNU Library General Public |
7588 |
|
dnl License but which still want to provide support for the GNU gettext |
7589 |
|
dnl functionality. |
7590 |
|
dnl Please note that the actual code of the GNU gettext library is covered |
7591 |
|
dnl by the GNU Library General Public License, and the rest of the GNU |
7592 |
|
dnl gettext package package is covered by the GNU General Public License. |
7593 |
|
dnl They are *not* in the public domain. |
7594 |
|
|
7595 |
|
dnl Authors: |
7596 |
|
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
7597 |
|
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
7598 |
|
|
7599 |
|
AC_PREREQ(2.50) |
7600 |
|
|
7601 |
|
AC_DEFUN([AM_NLS], |
7602 |
|
[ |
7603 |
|
AC_MSG_CHECKING([whether NLS is requested]) |
7604 |
|
dnl Default is enabled NLS |
7605 |
|
AC_ARG_ENABLE(nls, |
7606 |
|
[ --disable-nls do not use Native Language Support], |
7607 |
|
USE_NLS=$enableval, USE_NLS=yes) |
7608 |
|
AC_MSG_RESULT($USE_NLS) |
7609 |
|
AC_SUBST(USE_NLS) |
7610 |
|
]) |
7611 |
|
|
7612 |
|
AC_DEFUN([AM_MKINSTALLDIRS], |
7613 |
|
[ |
7614 |
|
dnl Tell automake >= 1.10 to complain if mkinstalldirs is missing. |
7615 |
|
m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])]) |
7616 |
|
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly |
7617 |
|
dnl find the mkinstalldirs script in another subdir but $(top_srcdir). |
7618 |
|
dnl Try to locate it. |
7619 |
|
MKINSTALLDIRS= |
7620 |
|
if test -n "$ac_aux_dir"; then |
7621 |
|
case "$ac_aux_dir" in |
7622 |
|
/*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
7623 |
|
*) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
7624 |
|
esac |
7625 |
|
fi |
7626 |
|
if test -z "$MKINSTALLDIRS"; then |
7627 |
|
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
7628 |
|
fi |
7629 |
|
AC_SUBST(MKINSTALLDIRS) |
7630 |
|
]) |
7631 |
|
|
7632 |
|
# po.m4 serial 7 (gettext-0.14.3) |
7633 |
|
dnl Copyright (C) 1995-2005 Free Software Foundation, Inc. |
7634 |
|
dnl This file is free software; the Free Software Foundation |
7635 |
|
dnl gives unlimited permission to copy and/or distribute it, |
7636 |
|
dnl with or without modifications, as long as this notice is preserved. |
7637 |
|
dnl |
7638 |
|
dnl This file can can be used in projects which are not available under |
7639 |
|
dnl the GNU General Public License or the GNU Library General Public |
7640 |
|
dnl License but which still want to provide support for the GNU gettext |
7641 |
|
dnl functionality. |
7642 |
|
dnl Please note that the actual code of the GNU gettext library is covered |
7643 |
|
dnl by the GNU Library General Public License, and the rest of the GNU |
7644 |
|
dnl gettext package package is covered by the GNU General Public License. |
7645 |
|
dnl They are *not* in the public domain. |
7646 |
|
|
7647 |
|
dnl Authors: |
7648 |
|
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
7649 |
|
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
7650 |
|
|
7651 |
|
AC_PREREQ(2.50) |
7652 |
|
|
7653 |
|
dnl Checks for all prerequisites of the po subdirectory. |
7654 |
|
AC_DEFUN([AM_PO_SUBDIRS], |
7655 |
|
[ |
7656 |
|
AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
7657 |
|
AC_REQUIRE([AC_PROG_INSTALL])dnl |
7658 |
|
AC_REQUIRE([AM_MKINSTALLDIRS])dnl |
7659 |
|
AC_REQUIRE([AM_NLS])dnl |
7660 |
|
|
7661 |
|
dnl Perform the following tests also if --disable-nls has been given, |
7662 |
|
dnl because they are needed for "make dist" to work. |
7663 |
|
|
7664 |
|
dnl Search for GNU msgfmt in the PATH. |
7665 |
|
dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. |
7666 |
|
dnl The second test excludes FreeBSD msgfmt. |
7667 |
|
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
7668 |
|
[$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && |
7669 |
|
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], |
7670 |
|
:) |
7671 |
|
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
7672 |
|
|
7673 |
|
dnl Search for GNU xgettext 0.12 or newer in the PATH. |
7674 |
|
dnl The first test excludes Solaris xgettext and early GNU xgettext versions. |
7675 |
|
dnl The second test excludes FreeBSD xgettext. |
7676 |
|
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
7677 |
|
[$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && |
7678 |
|
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], |
7679 |
|
:) |
7680 |
|
dnl Remove leftover from FreeBSD xgettext call. |
7681 |
|
rm -f messages.po |
7682 |
|
|
7683 |
|
dnl Search for GNU msgmerge 0.11 or newer in the PATH. |
7684 |
|
AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, |
7685 |
|
[$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) |
7686 |
|
|
7687 |
|
dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. |
7688 |
|
dnl Test whether we really found GNU msgfmt. |
7689 |
|
if test "$GMSGFMT" != ":"; then |
7690 |
|
dnl If it is no GNU msgfmt we define it as : so that the |
7691 |
|
dnl Makefiles still can work. |
7692 |
|
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
7693 |
|
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
7694 |
|
: ; |
7695 |
|
else |
7696 |
|
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
7697 |
|
AC_MSG_RESULT( |
7698 |
|
[found $GMSGFMT program is not GNU msgfmt; ignore it]) |
7699 |
|
GMSGFMT=":" |
7700 |
|
fi |
7701 |
|
fi |
7702 |
|
|
7703 |
|
dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. |
7704 |
|
dnl Test whether we really found GNU xgettext. |
7705 |
|
if test "$XGETTEXT" != ":"; then |
7706 |
|
dnl If it is no GNU xgettext we define it as : so that the |
7707 |
|
dnl Makefiles still can work. |
7708 |
|
if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
7709 |
|
(if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
7710 |
|
: ; |
7711 |
|
else |
7712 |
|
AC_MSG_RESULT( |
7713 |
|
[found xgettext program is not GNU xgettext; ignore it]) |
7714 |
|
XGETTEXT=":" |
7715 |
|
fi |
7716 |
|
dnl Remove leftover from FreeBSD xgettext call. |
7717 |
|
rm -f messages.po |
7718 |
|
fi |
7719 |
|
|
7720 |
|
AC_OUTPUT_COMMANDS([ |
7721 |
|
for ac_file in $CONFIG_FILES; do |
7722 |
|
# Support "outfile[:infile[:infile...]]" |
7723 |
|
case "$ac_file" in |
7724 |
|
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
7725 |
|
esac |
7726 |
|
# PO directories have a Makefile.in generated from Makefile.in.in. |
7727 |
|
case "$ac_file" in */Makefile.in) |
7728 |
|
# Adjust a relative srcdir. |
7729 |
|
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
7730 |
|
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
7731 |
|
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
7732 |
|
# In autoconf-2.13 it is called $ac_given_srcdir. |
7733 |
|
# In autoconf-2.50 it is called $srcdir. |
7734 |
|
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
7735 |
|
case "$ac_given_srcdir" in |
7736 |
|
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
7737 |
|
/*) top_srcdir="$ac_given_srcdir" ;; |
7738 |
|
*) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
7739 |
|
esac |
7740 |
|
# Treat a directory as a PO directory if and only if it has a |
7741 |
|
# POTFILES.in file. This allows packages to have multiple PO |
7742 |
|
# directories under different names or in different locations. |
7743 |
|
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
7744 |
|
rm -f "$ac_dir/POTFILES" |
7745 |
|
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
7746 |
|
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
7747 |
|
POMAKEFILEDEPS="POTFILES.in" |
7748 |
|
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
7749 |
|
# on $ac_dir but don't depend on user-specified configuration |
7750 |
|
# parameters. |
7751 |
|
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
7752 |
|
# The LINGUAS file contains the set of available languages. |
7753 |
|
if test -n "$OBSOLETE_ALL_LINGUAS"; then |
7754 |
|
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
7755 |
|
fi |
7756 |
|
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
7757 |
|
# Hide the ALL_LINGUAS assigment from automake. |
7758 |
|
eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
7759 |
|
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
7760 |
|
else |
7761 |
|
# The set of available languages was given in configure.in. |
7762 |
|
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
7763 |
|
fi |
7764 |
|
# Compute POFILES |
7765 |
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
7766 |
|
# Compute UPDATEPOFILES |
7767 |
|
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
7768 |
|
# Compute DUMMYPOFILES |
7769 |
|
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
7770 |
|
# Compute GMOFILES |
7771 |
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
7772 |
|
case "$ac_given_srcdir" in |
7773 |
|
.) srcdirpre= ;; |
7774 |
|
*) srcdirpre='$(srcdir)/' ;; |
7775 |
|
esac |
7776 |
|
POFILES= |
7777 |
|
UPDATEPOFILES= |
7778 |
|
DUMMYPOFILES= |
7779 |
|
GMOFILES= |
7780 |
|
for lang in $ALL_LINGUAS; do |
7781 |
|
POFILES="$POFILES $srcdirpre$lang.po" |
7782 |
|
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
7783 |
|
DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
7784 |
|
GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
7785 |
|
done |
7786 |
|
# CATALOGS depends on both $ac_dir and the user's LINGUAS |
7787 |
|
# environment variable. |
7788 |
|
INST_LINGUAS= |
7789 |
|
if test -n "$ALL_LINGUAS"; then |
7790 |
|
for presentlang in $ALL_LINGUAS; do |
7791 |
|
useit=no |
7792 |
|
if test "%UNSET%" != "$LINGUAS"; then |
7793 |
|
desiredlanguages="$LINGUAS" |
7794 |
|
else |
7795 |
|
desiredlanguages="$ALL_LINGUAS" |
7796 |
|
fi |
7797 |
|
for desiredlang in $desiredlanguages; do |
7798 |
|
# Use the presentlang catalog if desiredlang is |
7799 |
|
# a. equal to presentlang, or |
7800 |
|
# b. a variant of presentlang (because in this case, |
7801 |
|
# presentlang can be used as a fallback for messages |
7802 |
|
# which are not translated in the desiredlang catalog). |
7803 |
|
case "$desiredlang" in |
7804 |
|
"$presentlang"*) useit=yes;; |
7805 |
|
esac |
7806 |
|
done |
7807 |
|
if test $useit = yes; then |
7808 |
|
INST_LINGUAS="$INST_LINGUAS $presentlang" |
7809 |
|
fi |
7810 |
|
done |
7811 |
|
fi |
7812 |
|
CATALOGS= |
7813 |
|
if test -n "$INST_LINGUAS"; then |
7814 |
|
for lang in $INST_LINGUAS; do |
7815 |
|
CATALOGS="$CATALOGS $lang.gmo" |
7816 |
|
done |
7817 |
|
fi |
7818 |
|
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
7819 |
|
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
7820 |
|
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
7821 |
|
if test -f "$f"; then |
7822 |
|
case "$f" in |
7823 |
|
*.orig | *.bak | *~) ;; |
7824 |
|
*) cat "$f" >> "$ac_dir/Makefile" ;; |
7825 |
|
esac |
7826 |
|
fi |
7827 |
|
done |
7828 |
|
fi |
7829 |
|
;; |
7830 |
|
esac |
7831 |
|
done], |
7832 |
|
[# Capture the value of obsolete ALL_LINGUAS because we need it to compute |
7833 |
|
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
7834 |
|
# from automake. |
7835 |
|
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
7836 |
|
# Capture the value of LINGUAS because we need it to compute CATALOGS. |
7837 |
|
LINGUAS="${LINGUAS-%UNSET%}" |
7838 |
|
]) |
7839 |
|
]) |
7840 |
|
|
7841 |
|
dnl Postprocesses a Makefile in a directory containing PO files. |
7842 |
|
AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], |
7843 |
|
[ |
7844 |
|
# When this code is run, in config.status, two variables have already been |
7845 |
|
# set: |
7846 |
|
# - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, |
7847 |
|
# - LINGUAS is the value of the environment variable LINGUAS at configure |
7848 |
|
# time. |
7849 |
|
|
7850 |
|
changequote(,)dnl |
7851 |
|
# Adjust a relative srcdir. |
7852 |
|
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
7853 |
|
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
7854 |
|
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
7855 |
|
# In autoconf-2.13 it is called $ac_given_srcdir. |
7856 |
|
# In autoconf-2.50 it is called $srcdir. |
7857 |
|
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
7858 |
|
case "$ac_given_srcdir" in |
7859 |
|
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
7860 |
|
/*) top_srcdir="$ac_given_srcdir" ;; |
7861 |
|
*) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
7862 |
|
esac |
7863 |
|
|
7864 |
|
# Find a way to echo strings without interpreting backslash. |
7865 |
|
if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then |
7866 |
|
gt_echo='echo' |
7867 |
|
else |
7868 |
|
if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then |
7869 |
|
gt_echo='printf %s\n' |
7870 |
|
else |
7871 |
|
echo_func () { |
7872 |
|
cat <<EOT |
7873 |
|
$* |
7874 |
|
EOT |
7875 |
|
} |
7876 |
|
gt_echo='echo_func' |
7877 |
|
fi |
7878 |
|
fi |
7879 |
|
|
7880 |
|
# A sed script that extracts the value of VARIABLE from a Makefile. |
7881 |
|
sed_x_variable=' |
7882 |
|
# Test if the hold space is empty. |
7883 |
|
x |
7884 |
|
s/P/P/ |
7885 |
|
x |
7886 |
|
ta |
7887 |
|
# Yes it was empty. Look if we have the expected variable definition. |
7888 |
|
/^[ ]*VARIABLE[ ]*=/{ |
7889 |
|
# Seen the first line of the variable definition. |
7890 |
|
s/^[ ]*VARIABLE[ ]*=// |
7891 |
|
ba |
7892 |
|
} |
7893 |
|
bd |
7894 |
|
:a |
7895 |
|
# Here we are processing a line from the variable definition. |
7896 |
|
# Remove comment, more precisely replace it with a space. |
7897 |
|
s/#.*$/ / |
7898 |
|
# See if the line ends in a backslash. |
7899 |
|
tb |
7900 |
|
:b |
7901 |
|
s/\\$// |
7902 |
|
# Print the line, without the trailing backslash. |
7903 |
|
p |
7904 |
|
tc |
7905 |
|
# There was no trailing backslash. The end of the variable definition is |
7906 |
|
# reached. Clear the hold space. |
7907 |
|
s/^.*$// |
7908 |
|
x |
7909 |
|
bd |
7910 |
|
:c |
7911 |
|
# A trailing backslash means that the variable definition continues in the |
7912 |
|
# next line. Put a nonempty string into the hold space to indicate this. |
7913 |
|
s/^.*$/P/ |
7914 |
|
x |
7915 |
|
:d |
7916 |
|
' |
7917 |
|
changequote([,])dnl |
7918 |
|
|
7919 |
|
# Set POTFILES to the value of the Makefile variable POTFILES. |
7920 |
|
sed_x_POTFILES="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`" |
7921 |
|
POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"` |
7922 |
|
# Compute POTFILES_DEPS as |
7923 |
|
# $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) |
7924 |
|
POTFILES_DEPS= |
7925 |
|
for file in $POTFILES; do |
7926 |
|
POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file" |
7927 |
|
done |
7928 |
|
POMAKEFILEDEPS="" |
7929 |
|
|
7930 |
|
if test -n "$OBSOLETE_ALL_LINGUAS"; then |
7931 |
|
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
7932 |
|
fi |
7933 |
|
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
7934 |
|
# The LINGUAS file contains the set of available languages. |
7935 |
|
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
7936 |
|
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
7937 |
|
else |
7938 |
|
# Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. |
7939 |
|
sed_x_LINGUAS="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`" |
7940 |
|
ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` |
7941 |
|
fi |
7942 |
|
# Hide the ALL_LINGUAS assigment from automake. |
7943 |
|
eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
7944 |
|
# Compute POFILES |
7945 |
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
7946 |
|
# Compute UPDATEPOFILES |
7947 |
|
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
7948 |
|
# Compute DUMMYPOFILES |
7949 |
|
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
7950 |
|
# Compute GMOFILES |
7951 |
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
7952 |
|
# Compute PROPERTIESFILES |
7953 |
|
# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties) |
7954 |
|
# Compute CLASSFILES |
7955 |
|
# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class) |
7956 |
|
# Compute QMFILES |
7957 |
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm) |
7958 |
|
# Compute MSGFILES |
7959 |
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg) |
7960 |
|
# Compute RESOURCESDLLFILES |
7961 |
|
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll) |
7962 |
|
case "$ac_given_srcdir" in |
7963 |
|
.) srcdirpre= ;; |
7964 |
|
*) srcdirpre='$(srcdir)/' ;; |
7965 |
|
esac |
7966 |
|
POFILES= |
7967 |
|
UPDATEPOFILES= |
7968 |
|
DUMMYPOFILES= |
7969 |
|
GMOFILES= |
7970 |
|
PROPERTIESFILES= |
7971 |
|
CLASSFILES= |
7972 |
|
QMFILES= |
7973 |
|
MSGFILES= |
7974 |
|
RESOURCESDLLFILES= |
7975 |
|
for lang in $ALL_LINGUAS; do |
7976 |
|
POFILES="$POFILES $srcdirpre$lang.po" |
7977 |
|
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
7978 |
|
DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
7979 |
|
GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
7980 |
|
PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties" |
7981 |
|
CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class" |
7982 |
|
QMFILES="$QMFILES $srcdirpre$lang.qm" |
7983 |
|
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
7984 |
|
MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" |
7985 |
|
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` |
7986 |
|
RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll" |
7987 |
|
done |
7988 |
|
# CATALOGS depends on both $ac_dir and the user's LINGUAS |
7989 |
|
# environment variable. |
7990 |
|
INST_LINGUAS= |
7991 |
|
if test -n "$ALL_LINGUAS"; then |
7992 |
|
for presentlang in $ALL_LINGUAS; do |
7993 |
|
useit=no |
7994 |
|
if test "%UNSET%" != "$LINGUAS"; then |
7995 |
|
desiredlanguages="$LINGUAS" |
7996 |
|
else |
7997 |
|
desiredlanguages="$ALL_LINGUAS" |
7998 |
|
fi |
7999 |
|
for desiredlang in $desiredlanguages; do |
8000 |
|
# Use the presentlang catalog if desiredlang is |
8001 |
|
# a. equal to presentlang, or |
8002 |
|
# b. a variant of presentlang (because in this case, |
8003 |
|
# presentlang can be used as a fallback for messages |
8004 |
|
# which are not translated in the desiredlang catalog). |
8005 |
|
case "$desiredlang" in |
8006 |
|
"$presentlang"*) useit=yes;; |
8007 |
|
esac |
8008 |
|
done |
8009 |
|
if test $useit = yes; then |
8010 |
|
INST_LINGUAS="$INST_LINGUAS $presentlang" |
8011 |
|
fi |
8012 |
|
done |
8013 |
|
fi |
8014 |
|
CATALOGS= |
8015 |
|
JAVACATALOGS= |
8016 |
|
QTCATALOGS= |
8017 |
|
TCLCATALOGS= |
8018 |
|
CSHARPCATALOGS= |
8019 |
|
if test -n "$INST_LINGUAS"; then |
8020 |
|
for lang in $INST_LINGUAS; do |
8021 |
|
CATALOGS="$CATALOGS $lang.gmo" |
8022 |
|
JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties" |
8023 |
|
QTCATALOGS="$QTCATALOGS $lang.qm" |
8024 |
|
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
8025 |
|
TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" |
8026 |
|
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` |
8027 |
|
CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" |
8028 |
|
done |
8029 |
|
fi |
8030 |
|
|
8031 |
|
sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp" |
8032 |
|
if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then |
8033 |
|
# Add dependencies that cannot be formulated as a simple suffix rule. |
8034 |
|
for lang in $ALL_LINGUAS; do |
8035 |
|
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
8036 |
|
cat >> "$ac_file.tmp" <<EOF |
8037 |
|
$frobbedlang.msg: $lang.po |
8038 |
|
@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ |
8039 |
|
\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } |
8040 |
|
EOF |
8041 |
|
done |
8042 |
|
fi |
8043 |
|
if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then |
8044 |
|
# Add dependencies that cannot be formulated as a simple suffix rule. |
8045 |
|
for lang in $ALL_LINGUAS; do |
8046 |
|
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` |
8047 |
|
cat >> "$ac_file.tmp" <<EOF |
8048 |
|
$frobbedlang/\$(DOMAIN).resources.dll: $lang.po |
8049 |
|
@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ |
8050 |
|
\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } |
8051 |
|
EOF |
8052 |
|
done |
8053 |
|
fi |
8054 |
|
if test -n "$POMAKEFILEDEPS"; then |
8055 |
|
cat >> "$ac_file.tmp" <<EOF |
8056 |
|
Makefile: $POMAKEFILEDEPS |
8057 |
|
EOF |
8058 |
|
fi |
8059 |
|
mv "$ac_file.tmp" "$ac_file" |
8060 |
|
]) |
8061 |
|
|
8062 |
|
# progtest.m4 serial 4 (gettext-0.14.2) |
8063 |
|
dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc. |
8064 |
|
dnl This file is free software; the Free Software Foundation |
8065 |
|
dnl gives unlimited permission to copy and/or distribute it, |
8066 |
|
dnl with or without modifications, as long as this notice is preserved. |
8067 |
|
dnl |
8068 |
|
dnl This file can can be used in projects which are not available under |
8069 |
|
dnl the GNU General Public License or the GNU Library General Public |
8070 |
|
dnl License but which still want to provide support for the GNU gettext |
8071 |
|
dnl functionality. |
8072 |
|
dnl Please note that the actual code of the GNU gettext library is covered |
8073 |
|
dnl by the GNU Library General Public License, and the rest of the GNU |
8074 |
|
dnl gettext package package is covered by the GNU General Public License. |
8075 |
|
dnl They are *not* in the public domain. |
8076 |
|
|
8077 |
|
dnl Authors: |
8078 |
|
dnl Ulrich Drepper <drepper@cygnus.com>, 1996. |
8079 |
|
|
8080 |
|
AC_PREREQ(2.50) |
8081 |
|
|
8082 |
|
# Search path for a program which passes the given test. |
8083 |
|
|
8084 |
|
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, |
8085 |
|
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) |
8086 |
|
AC_DEFUN([AM_PATH_PROG_WITH_TEST], |
8087 |
|
[ |
8088 |
|
# Prepare PATH_SEPARATOR. |
8089 |
|
# The user is always right. |
8090 |
|
if test "${PATH_SEPARATOR+set}" != set; then |
8091 |
|
echo "#! /bin/sh" >conf$$.sh |
8092 |
|
echo "exit 0" >>conf$$.sh |
8093 |
|
chmod +x conf$$.sh |
8094 |
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
8095 |
|
PATH_SEPARATOR=';' |
8096 |
|
else |
8097 |
|
PATH_SEPARATOR=: |
8098 |
|
fi |
8099 |
|
rm -f conf$$.sh |
8100 |
|
fi |
8101 |
|
|
8102 |
|
# Find out how to test for executable files. Don't use a zero-byte file, |
8103 |
|
# as systems may use methods other than mode bits to determine executability. |
8104 |
|
cat >conf$$.file <<_ASEOF |
8105 |
|
#! /bin/sh |
8106 |
|
exit 0 |
8107 |
|
_ASEOF |
8108 |
|
chmod +x conf$$.file |
8109 |
|
if test -x conf$$.file >/dev/null 2>&1; then |
8110 |
|
ac_executable_p="test -x" |
8111 |
|
else |
8112 |
|
ac_executable_p="test -f" |
8113 |
|
fi |
8114 |
|
rm -f conf$$.file |
8115 |
|
|
8116 |
|
# Extract the first word of "$2", so it can be a program name with args. |
8117 |
|
set dummy $2; ac_word=[$]2 |
8118 |
|
AC_MSG_CHECKING([for $ac_word]) |
8119 |
|
AC_CACHE_VAL(ac_cv_path_$1, |
8120 |
|
[case "[$]$1" in |
8121 |
|
[[\\/]]* | ?:[[\\/]]*) |
8122 |
|
ac_cv_path_$1="[$]$1" # Let the user override the test with a path. |
8123 |
|
;; |
8124 |
|
*) |
8125 |
|
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
8126 |
|
for ac_dir in ifelse([$5], , $PATH, [$5]); do |
8127 |
|
IFS="$ac_save_IFS" |
8128 |
|
test -z "$ac_dir" && ac_dir=. |
8129 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
8130 |
|
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
8131 |
|
echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD |
8132 |
|
if [$3]; then |
8133 |
|
ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" |
8134 |
|
break 2 |
8135 |
|
fi |
8136 |
|
fi |
8137 |
|
done |
8138 |
|
done |
8139 |
|
IFS="$ac_save_IFS" |
8140 |
|
dnl If no 4th arg is given, leave the cache variable unset, |
8141 |
|
dnl so AC_PATH_PROGS will keep looking. |
8142 |
|
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" |
8143 |
|
])dnl |
8144 |
|
;; |
8145 |
|
esac])dnl |
8146 |
|
$1="$ac_cv_path_$1" |
8147 |
|
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then |
8148 |
|
AC_MSG_RESULT([$]$1) |
8149 |
|
else |
8150 |
|
AC_MSG_RESULT(no) |
8151 |
|
fi |
8152 |
|
AC_SUBST($1)dnl |
8153 |
|
]) |
8154 |
|
|
8155 |
# Configure paths for SDL |
# Configure paths for SDL |
8156 |
# Sam Lantinga 9/21/99 |
# Sam Lantinga 9/21/99 |
8157 |
# stolen from Manish Singh |
# stolen from Manish Singh |
8336 |
dnl XIPH_PATH_VORBIS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) |
dnl XIPH_PATH_VORBIS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) |
8337 |
dnl Test for libvorbis, and define VORBIS_CFLAGS and VORBIS_LIBS |
dnl Test for libvorbis, and define VORBIS_CFLAGS and VORBIS_LIBS |
8338 |
dnl |
dnl |
8339 |
AC_DEFUN(XIPH_PATH_VORBIS, |
AC_DEFUN([XIPH_PATH_VORBIS], |
8340 |
[dnl |
[dnl |
8341 |
dnl Get the cflags and libraries |
dnl Get the cflags and libraries |
8342 |
dnl |
dnl |
8384 |
#include <stdlib.h> |
#include <stdlib.h> |
8385 |
#include <string.h> |
#include <string.h> |
8386 |
#include <vorbis/codec.h> |
#include <vorbis/codec.h> |
8387 |
|
#include <vorbis/vorbisenc.h> |
8388 |
|
|
8389 |
int main () |
int main () |
8390 |
{ |
{ |
8451 |
rm -f conf.vorbistest |
rm -f conf.vorbistest |
8452 |
]) |
]) |
8453 |
|
|
8454 |
# -*- Autoconf -*- |
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. |
8455 |
# Copyright (C) 2002, 2003 Free Software Foundation, Inc. |
# |
8456 |
# Generated from amversion.in; do not edit by hand. |
# This file is free software; the Free Software Foundation |
8457 |
|
# gives unlimited permission to copy and/or distribute it, |
8458 |
# This program is free software; you can redistribute it and/or modify |
# with or without modifications, as long as this notice is preserved. |
|
# it under the terms of the GNU General Public License as published by |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
|
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
8459 |
|
|
8460 |
# AM_AUTOMAKE_VERSION(VERSION) |
# AM_AUTOMAKE_VERSION(VERSION) |
8461 |
# ---------------------------- |
# ---------------------------- |
8468 |
# Call AM_AUTOMAKE_VERSION so it can be traced. |
# Call AM_AUTOMAKE_VERSION so it can be traced. |
8469 |
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
8470 |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
8471 |
[AM_AUTOMAKE_VERSION([1.9.2])]) |
[AM_AUTOMAKE_VERSION([1.9.5])]) |
|
|
|
|
# AM_AUX_DIR_EXPAND |
|
|
|
|
|
# Copyright (C) 2001, 2003 Free Software Foundation, Inc. |
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
# it under the terms of the GNU General Public License as published by |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
|
|
# any later version. |
|
8472 |
|
|
8473 |
# This program is distributed in the hope that it will be useful, |
# AM_AUX_DIR_EXPAND -*- Autoconf -*- |
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
8474 |
|
|
8475 |
# You should have received a copy of the GNU General Public License |
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
8476 |
# along with this program; if not, write to the Free Software |
# |
8477 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
# This file is free software; the Free Software Foundation |
8478 |
# 02111-1307, USA. |
# gives unlimited permission to copy and/or distribute it, |
8479 |
|
# with or without modifications, as long as this notice is preserved. |
8480 |
|
|
8481 |
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
8482 |
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
8523 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
am_aux_dir=`cd $ac_aux_dir && pwd` |
8524 |
]) |
]) |
8525 |
|
|
8526 |
# AM_CONDITIONAL -*- Autoconf -*- |
# AM_CONDITIONAL -*- Autoconf -*- |
8527 |
|
|
8528 |
# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc. |
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 |
8529 |
|
# Free Software Foundation, Inc. |
8530 |
# This program is free software; you can redistribute it and/or modify |
# |
8531 |
# it under the terms of the GNU General Public License as published by |
# This file is free software; the Free Software Foundation |
8532 |
# the Free Software Foundation; either version 2, or (at your option) |
# gives unlimited permission to copy and/or distribute it, |
8533 |
# any later version. |
# with or without modifications, as long as this notice is preserved. |
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
# 02111-1307, USA. |
|
8534 |
|
|
8535 |
# serial 6 |
# serial 7 |
8536 |
|
|
8537 |
# AM_CONDITIONAL(NAME, SHELL-CONDITION) |
# AM_CONDITIONAL(NAME, SHELL-CONDITION) |
8538 |
# ------------------------------------- |
# ------------------------------------- |
8556 |
Usually this means the macro was only invoked conditionally.]]) |
Usually this means the macro was only invoked conditionally.]]) |
8557 |
fi])]) |
fi])]) |
8558 |
|
|
|
# serial 7 -*- Autoconf -*- |
|
8559 |
|
|
8560 |
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 |
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
8561 |
# Free Software Foundation, Inc. |
# Free Software Foundation, Inc. |
8562 |
|
# |
8563 |
|
# This file is free software; the Free Software Foundation |
8564 |
|
# gives unlimited permission to copy and/or distribute it, |
8565 |
|
# with or without modifications, as long as this notice is preserved. |
8566 |
|
|
8567 |
# This program is free software; you can redistribute it and/or modify |
# serial 8 |
|
# it under the terms of the GNU General Public License as published by |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
|
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
# 02111-1307, USA. |
|
|
|
|
8568 |
|
|
8569 |
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
8570 |
# written in clear, in which case automake, when reading aclocal.m4, |
# written in clear, in which case automake, when reading aclocal.m4, |
8573 |
# CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
# CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
8574 |
|
|
8575 |
|
|
|
|
|
8576 |
# _AM_DEPENDENCIES(NAME) |
# _AM_DEPENDENCIES(NAME) |
8577 |
# ---------------------- |
# ---------------------- |
8578 |
# See how the compiler implements dependency checking. |
# See how the compiler implements dependency checking. |
8712 |
AC_SUBST([AMDEPBACKSLASH]) |
AC_SUBST([AMDEPBACKSLASH]) |
8713 |
]) |
]) |
8714 |
|
|
8715 |
# Generate code to set up dependency tracking. -*- Autoconf -*- |
# Generate code to set up dependency tracking. -*- Autoconf -*- |
|
|
|
|
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 |
|
|
# Free Software Foundation, Inc. |
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
# it under the terms of the GNU General Public License as published by |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
|
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
8716 |
|
|
8717 |
# You should have received a copy of the GNU General Public License |
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
8718 |
# along with this program; if not, write to the Free Software |
# Free Software Foundation, Inc. |
8719 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
# |
8720 |
# 02111-1307, USA. |
# This file is free software; the Free Software Foundation |
8721 |
|
# gives unlimited permission to copy and/or distribute it, |
8722 |
|
# with or without modifications, as long as this notice is preserved. |
8723 |
|
|
8724 |
#serial 2 |
#serial 3 |
8725 |
|
|
8726 |
# _AM_OUTPUT_DEPENDENCY_COMMANDS |
# _AM_OUTPUT_DEPENDENCY_COMMANDS |
8727 |
# ------------------------------ |
# ------------------------------ |
8780 |
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
8781 |
]) |
]) |
8782 |
|
|
8783 |
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- |
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
8784 |
|
# Free Software Foundation, Inc. |
8785 |
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. |
# |
8786 |
|
# This file is free software; the Free Software Foundation |
8787 |
# This program is free software; you can redistribute it and/or modify |
# gives unlimited permission to copy and/or distribute it, |
8788 |
# it under the terms of the GNU General Public License as published by |
# with or without modifications, as long as this notice is preserved. |
|
# the Free Software Foundation; either version 2, or (at your option) |
|
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
# 02111-1307, USA. |
|
8789 |
|
|
8790 |
# serial 7 |
# serial 8 |
8791 |
|
|
8792 |
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. |
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. |
8793 |
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) |
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) |
8794 |
|
|
8795 |
# Do all the work for Automake. -*- Autoconf -*- |
# Do all the work for Automake. -*- Autoconf -*- |
8796 |
|
|
8797 |
# This macro actually does too much some checks are only needed if |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
|
# your package does certain things. But this isn't really a big deal. |
|
|
|
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 |
|
8798 |
# Free Software Foundation, Inc. |
# Free Software Foundation, Inc. |
8799 |
|
# |
8800 |
|
# This file is free software; the Free Software Foundation |
8801 |
|
# gives unlimited permission to copy and/or distribute it, |
8802 |
|
# with or without modifications, as long as this notice is preserved. |
8803 |
|
|
8804 |
# This program is free software; you can redistribute it and/or modify |
# serial 12 |
|
# it under the terms of the GNU General Public License as published by |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
|
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
# 02111-1307, USA. |
|
8805 |
|
|
8806 |
# serial 11 |
# This macro actually does too much. Some checks are only needed if |
8807 |
|
# your package does certain things. But this isn't really a big deal. |
8808 |
|
|
8809 |
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
8810 |
# AM_INIT_AUTOMAKE([OPTIONS]) |
# AM_INIT_AUTOMAKE([OPTIONS]) |
8906 |
done |
done |
8907 |
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) |
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) |
8908 |
|
|
8909 |
|
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
8910 |
|
# |
8911 |
|
# This file is free software; the Free Software Foundation |
8912 |
|
# gives unlimited permission to copy and/or distribute it, |
8913 |
|
# with or without modifications, as long as this notice is preserved. |
8914 |
|
|
8915 |
# AM_PROG_INSTALL_SH |
# AM_PROG_INSTALL_SH |
8916 |
# ------------------ |
# ------------------ |
8917 |
# Define $install_sh. |
# Define $install_sh. |
|
|
|
|
# Copyright (C) 2001, 2003 Free Software Foundation, Inc. |
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
# it under the terms of the GNU General Public License as published by |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
|
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
# 02111-1307, USA. |
|
|
|
|
8918 |
AC_DEFUN([AM_PROG_INSTALL_SH], |
AC_DEFUN([AM_PROG_INSTALL_SH], |
8919 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
8920 |
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
8921 |
AC_SUBST(install_sh)]) |
AC_SUBST(install_sh)]) |
8922 |
|
|
8923 |
# -*- Autoconf -*- |
# Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
8924 |
# Copyright (C) 2003 Free Software Foundation, Inc. |
# |
8925 |
|
# This file is free software; the Free Software Foundation |
8926 |
# This program is free software; you can redistribute it and/or modify |
# gives unlimited permission to copy and/or distribute it, |
8927 |
# it under the terms of the GNU General Public License as published by |
# with or without modifications, as long as this notice is preserved. |
|
# the Free Software Foundation; either version 2, or (at your option) |
|
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
# 02111-1307, USA. |
|
8928 |
|
|
8929 |
# serial 1 |
# serial 2 |
8930 |
|
|
8931 |
# Check whether the underlying file-system supports filenames |
# Check whether the underlying file-system supports filenames |
8932 |
# with a leading dot. For instance MS-DOS doesn't. |
# with a leading dot. For instance MS-DOS doesn't. |
8941 |
rmdir .tst 2>/dev/null |
rmdir .tst 2>/dev/null |
8942 |
AC_SUBST([am__leading_dot])]) |
AC_SUBST([am__leading_dot])]) |
8943 |
|
|
8944 |
# Check to see how 'make' treats includes. -*- Autoconf -*- |
# Check to see how 'make' treats includes. -*- Autoconf -*- |
8945 |
|
|
8946 |
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. |
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
8947 |
|
# |
8948 |
# This program is free software; you can redistribute it and/or modify |
# This file is free software; the Free Software Foundation |
8949 |
# it under the terms of the GNU General Public License as published by |
# gives unlimited permission to copy and/or distribute it, |
8950 |
# the Free Software Foundation; either version 2, or (at your option) |
# with or without modifications, as long as this notice is preserved. |
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
# 02111-1307, USA. |
|
8951 |
|
|
8952 |
# serial 2 |
# serial 3 |
8953 |
|
|
8954 |
# AM_MAKE_INCLUDE() |
# AM_MAKE_INCLUDE() |
8955 |
# ----------------- |
# ----------------- |
8993 |
rm -f confinc confmf |
rm -f confinc confmf |
8994 |
]) |
]) |
8995 |
|
|
8996 |
# -*- Autoconf -*- |
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
|
|
|
|
|
|
|
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. |
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
# it under the terms of the GNU General Public License as published by |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
|
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
8997 |
|
|
8998 |
# You should have received a copy of the GNU General Public License |
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 |
8999 |
# along with this program; if not, write to the Free Software |
# Free Software Foundation, Inc. |
9000 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
# |
9001 |
# 02111-1307, USA. |
# This file is free software; the Free Software Foundation |
9002 |
|
# gives unlimited permission to copy and/or distribute it, |
9003 |
|
# with or without modifications, as long as this notice is preserved. |
9004 |
|
|
9005 |
# serial 3 |
# serial 4 |
9006 |
|
|
9007 |
# AM_MISSING_PROG(NAME, PROGRAM) |
# AM_MISSING_PROG(NAME, PROGRAM) |
9008 |
# ------------------------------ |
# ------------------------------ |
9028 |
fi |
fi |
9029 |
]) |
]) |
9030 |
|
|
9031 |
|
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. |
9032 |
|
# |
9033 |
|
# This file is free software; the Free Software Foundation |
9034 |
|
# gives unlimited permission to copy and/or distribute it, |
9035 |
|
# with or without modifications, as long as this notice is preserved. |
9036 |
|
|
9037 |
# AM_PROG_MKDIR_P |
# AM_PROG_MKDIR_P |
9038 |
# --------------- |
# --------------- |
9039 |
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. |
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. |
9040 |
|
# |
|
# Copyright (C) 2003, 2004 Free Software Foundation, Inc. |
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
# it under the terms of the GNU General Public License as published by |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
|
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
# 02111-1307, USA. |
|
|
|
|
9041 |
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories |
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories |
9042 |
# created by `make install' are always world readable, even if the |
# created by `make install' are always world readable, even if the |
9043 |
# installer happens to have an overly restrictive umask (e.g. 077). |
# installer happens to have an overly restrictive umask (e.g. 077). |
9091 |
fi |
fi |
9092 |
AC_SUBST([mkdir_p])]) |
AC_SUBST([mkdir_p])]) |
9093 |
|
|
9094 |
# Helper functions for option handling. -*- Autoconf -*- |
# Helper functions for option handling. -*- Autoconf -*- |
|
|
|
|
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. |
|
9095 |
|
|
9096 |
# This program is free software; you can redistribute it and/or modify |
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
9097 |
# it under the terms of the GNU General Public License as published by |
# |
9098 |
# the Free Software Foundation; either version 2, or (at your option) |
# This file is free software; the Free Software Foundation |
9099 |
# any later version. |
# gives unlimited permission to copy and/or distribute it, |
9100 |
|
# with or without modifications, as long as this notice is preserved. |
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
# 02111-1307, USA. |
|
9101 |
|
|
9102 |
# serial 2 |
# serial 3 |
9103 |
|
|
9104 |
# _AM_MANGLE_OPTION(NAME) |
# _AM_MANGLE_OPTION(NAME) |
9105 |
# ----------------------- |
# ----------------------- |
9124 |
AC_DEFUN([_AM_IF_OPTION], |
AC_DEFUN([_AM_IF_OPTION], |
9125 |
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
9126 |
|
|
9127 |
# |
# Check to make sure that the build environment is sane. -*- Autoconf -*- |
|
# Check to make sure that the build environment is sane. |
|
|
# |
|
|
|
|
|
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. |
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
# it under the terms of the GNU General Public License as published by |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
|
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
9128 |
|
|
9129 |
# You should have received a copy of the GNU General Public License |
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
9130 |
# along with this program; if not, write to the Free Software |
# Free Software Foundation, Inc. |
9131 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
# |
9132 |
# 02111-1307, USA. |
# This file is free software; the Free Software Foundation |
9133 |
|
# gives unlimited permission to copy and/or distribute it, |
9134 |
|
# with or without modifications, as long as this notice is preserved. |
9135 |
|
|
9136 |
# serial 3 |
# serial 4 |
9137 |
|
|
9138 |
# AM_SANITY_CHECK |
# AM_SANITY_CHECK |
9139 |
# --------------- |
# --------------- |
9176 |
fi |
fi |
9177 |
AC_MSG_RESULT(yes)]) |
AC_MSG_RESULT(yes)]) |
9178 |
|
|
9179 |
# AM_PROG_INSTALL_STRIP |
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
9180 |
|
# |
9181 |
# Copyright (C) 2001, 2003 Free Software Foundation, Inc. |
# This file is free software; the Free Software Foundation |
9182 |
|
# gives unlimited permission to copy and/or distribute it, |
9183 |
# This program is free software; you can redistribute it and/or modify |
# with or without modifications, as long as this notice is preserved. |
|
# it under the terms of the GNU General Public License as published by |
|
|
# the Free Software Foundation; either version 2, or (at your option) |
|
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
# 02111-1307, USA. |
|
9184 |
|
|
9185 |
|
# AM_PROG_INSTALL_STRIP |
9186 |
|
# --------------------- |
9187 |
# One issue with vendor `install' (even GNU) is that you can't |
# One issue with vendor `install' (even GNU) is that you can't |
9188 |
# specify the program used to strip binaries. This is especially |
# specify the program used to strip binaries. This is especially |
9189 |
# annoying in cross-compiling environments, where the build's strip |
# annoying in cross-compiling environments, where the build's strip |
9206 |
|
|
9207 |
# Check how to create a tarball. -*- Autoconf -*- |
# Check how to create a tarball. -*- Autoconf -*- |
9208 |
|
|
9209 |
# Copyright (C) 2004 Free Software Foundation, Inc. |
# Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
9210 |
|
# |
9211 |
# This program is free software; you can redistribute it and/or modify |
# This file is free software; the Free Software Foundation |
9212 |
# it under the terms of the GNU General Public License as published by |
# gives unlimited permission to copy and/or distribute it, |
9213 |
# the Free Software Foundation; either version 2, or (at your option) |
# with or without modifications, as long as this notice is preserved. |
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
# 02111-1307, USA. |
|
|
|
|
|
# serial 1 |
|
9214 |
|
|
9215 |
|
# serial 2 |
9216 |
|
|
9217 |
# _AM_PROG_TAR(FORMAT) |
# _AM_PROG_TAR(FORMAT) |
9218 |
# -------------------- |
# -------------------- |
9300 |
AC_SUBST([am__untar]) |
AC_SUBST([am__untar]) |
9301 |
]) # _AM_PROG_TAR |
]) # _AM_PROG_TAR |
9302 |
|
|
|
m4_include([m4/gettext.m4]) |
|
|
m4_include([m4/iconv.m4]) |
|
|
m4_include([m4/lib-ld.m4]) |
|
|
m4_include([m4/lib-link.m4]) |
|
|
m4_include([m4/lib-prefix.m4]) |
|
|
m4_include([m4/nls.m4]) |
|
|
m4_include([m4/po.m4]) |
|
|
m4_include([m4/progtest.m4]) |
|