Changeset 220

Show
Ignore:
Timestamp:
02/04/08 22:26:27 (4 years ago)
Author:
ath
Message:

Enable configure summary for fm_gui.

Location:
trunk
Files:
16 modified

Legend:

Unmodified
Added
Removed
  • trunk/fm_gui/Makefile.in

    r213 r220  
    4040        install-sh ltmain.sh missing mkinstalldirs 
    4141ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
    42 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     42am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 
     43        $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 
     44        $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 
     45        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 
     46        $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 
    4347        $(top_srcdir)/configure.ac 
    4448am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
  • trunk/fm_gui/aclocal.m4

    r213 r220  
    1616You have another version of autoconf.  If you want to use that, 
    1717you should regenerate the build system entirely.], [63])]) 
    18  
    19 # gettext.m4 serial 59 (gettext-0.16.1) 
    20 dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. 
    21 dnl This file is free software; the Free Software Foundation 
    22 dnl gives unlimited permission to copy and/or distribute it, 
    23 dnl with or without modifications, as long as this notice is preserved. 
    24 dnl 
    25 dnl This file can can be used in projects which are not available under 
    26 dnl the GNU General Public License or the GNU Library General Public 
    27 dnl License but which still want to provide support for the GNU gettext 
    28 dnl functionality. 
    29 dnl Please note that the actual code of the GNU gettext library is covered 
    30 dnl by the GNU Library General Public License, and the rest of the GNU 
    31 dnl gettext package package is covered by the GNU General Public License. 
    32 dnl They are *not* in the public domain. 
    33  
    34 dnl Authors: 
    35 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 
    36 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2006. 
    37  
    38 dnl Macro to add for using GNU gettext. 
    39  
    40 dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). 
    41 dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The 
    42 dnl    default (if it is not specified or empty) is 'no-libtool'. 
    43 dnl    INTLSYMBOL should be 'external' for packages with no intl directory, 
    44 dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory. 
    45 dnl    If INTLSYMBOL is 'use-libtool', then a libtool library 
    46 dnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static, 
    47 dnl    depending on --{enable,disable}-{shared,static} and on the presence of 
    48 dnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library 
    49 dnl    $(top_builddir)/intl/libintl.a will be created. 
    50 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext 
    51 dnl    implementations (in libc or libintl) without the ngettext() function 
    52 dnl    will be ignored.  If NEEDSYMBOL is specified and is 
    53 dnl    'need-formatstring-macros', then GNU gettext implementations that don't 
    54 dnl    support the ISO C 99 <inttypes.h> formatstring macros will be ignored. 
    55 dnl INTLDIR is used to find the intl libraries.  If empty, 
    56 dnl    the value `$(top_builddir)/intl/' is used. 
    57 dnl 
    58 dnl The result of the configuration is one of three cases: 
    59 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled 
    60 dnl    and used. 
    61 dnl    Catalog format: GNU --> install in $(datadir) 
    62 dnl    Catalog extension: .mo after installation, .gmo in source tree 
    63 dnl 2) GNU gettext has been found in the system's C library. 
    64 dnl    Catalog format: GNU --> install in $(datadir) 
    65 dnl    Catalog extension: .mo after installation, .gmo in source tree 
    66 dnl 3) No internationalization, always use English msgid. 
    67 dnl    Catalog format: none 
    68 dnl    Catalog extension: none 
    69 dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. 
    70 dnl The use of .gmo is historical (it was needed to avoid overwriting the 
    71 dnl GNU format catalogs when building on a platform with an X/Open gettext), 
    72 dnl but we keep it in order not to force irrelevant filename changes on the 
    73 dnl maintainers. 
    74 dnl 
    75 AC_DEFUN([AM_GNU_GETTEXT], 
    76 [ 
    77   dnl Argument checking. 
    78   ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , 
    79     [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT 
    80 ])])])])]) 
    81   ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , 
    82     [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT 
    83 ])])])]) 
    84   define([gt_included_intl], 
    85     ifelse([$1], [external], 
    86       ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), 
    87       [yes])) 
    88   define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) 
    89   gt_NEEDS_INIT 
    90   AM_GNU_GETTEXT_NEED([$2]) 
    91  
    92   AC_REQUIRE([AM_PO_SUBDIRS])dnl 
    93   ifelse(gt_included_intl, yes, [ 
    94     AC_REQUIRE([AM_INTL_SUBDIR])dnl 
    95   ]) 
    96  
    97   dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. 
    98   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    99   AC_REQUIRE([AC_LIB_RPATH]) 
    100  
    101   dnl Sometimes libintl requires libiconv, so first search for libiconv. 
    102   dnl Ideally we would do this search only after the 
    103   dnl      if test "$USE_NLS" = "yes"; then 
    104   dnl        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 
    105   dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT 
    106   dnl the configure script would need to contain the same shell code 
    107   dnl again, outside any 'if'. There are two solutions: 
    108   dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. 
    109   dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. 
    110   dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not 
    111   dnl documented, we avoid it. 
    112   ifelse(gt_included_intl, yes, , [ 
    113     AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) 
    114   ]) 
    115  
    116   dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. 
    117   gt_INTL_MACOSX 
    118  
    119   dnl Set USE_NLS. 
    120   AC_REQUIRE([AM_NLS]) 
    121  
    122   ifelse(gt_included_intl, yes, [ 
    123     BUILD_INCLUDED_LIBINTL=no 
    124     USE_INCLUDED_LIBINTL=no 
    125   ]) 
    126   LIBINTL= 
    127   LTLIBINTL= 
    128   POSUB= 
    129  
    130   dnl Add a version number to the cache macros. 
    131   case " $gt_needs " in 
    132     *" need-formatstring-macros "*) gt_api_version=3 ;; 
    133     *" need-ngettext "*) gt_api_version=2 ;; 
    134     *) gt_api_version=1 ;; 
    135   esac 
    136   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 
    137   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 
    138  
    139   dnl If we use NLS figure out what method 
    140   if test "$USE_NLS" = "yes"; then 
    141     gt_use_preinstalled_gnugettext=no 
    142     ifelse(gt_included_intl, yes, [ 
    143       AC_MSG_CHECKING([whether included gettext is requested]) 
    144       AC_ARG_WITH(included-gettext, 
    145         [  --with-included-gettext use the GNU gettext library included here], 
    146         nls_cv_force_use_gnu_gettext=$withval, 
    147         nls_cv_force_use_gnu_gettext=no) 
    148       AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) 
    149  
    150       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 
    151       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 
    152     ]) 
    153         dnl User does not insist on using GNU NLS library.  Figure out what 
    154         dnl to use.  If GNU gettext is available we use this.  Else we have 
    155         dnl to fall back to GNU NLS library. 
    156  
    157         if test $gt_api_version -ge 3; then 
    158           gt_revision_test_code=' 
    159 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 
    160 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 
    161 #endif 
    162 changequote(,)dnl 
    163 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 
    164 changequote([,])dnl 
    165 ' 
    166         else 
    167           gt_revision_test_code= 
    168         fi 
    169         if test $gt_api_version -ge 2; then 
    170           gt_expression_test_code=' + * ngettext ("", "", 0)' 
    171         else 
    172           gt_expression_test_code= 
    173         fi 
    174  
    175         AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], 
    176          [AC_TRY_LINK([#include <libintl.h> 
    177 $gt_revision_test_code 
    178 extern int _nl_msg_cat_cntr; 
    179 extern int *_nl_domain_bindings;], 
    180             [bindtextdomain ("", ""); 
    181 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], 
    182             [eval "$gt_func_gnugettext_libc=yes"], 
    183             [eval "$gt_func_gnugettext_libc=no"])]) 
    184  
    185         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 
    186           dnl Sometimes libintl requires libiconv, so first search for libiconv. 
    187           ifelse(gt_included_intl, yes, , [ 
    188             AM_ICONV_LINK 
    189           ]) 
    190           dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL 
    191           dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) 
    192           dnl because that would add "-liconv" to LIBINTL and LTLIBINTL 
    193           dnl even if libiconv doesn't exist. 
    194           AC_LIB_LINKFLAGS_BODY([intl]) 
    195           AC_CACHE_CHECK([for GNU gettext in libintl], 
    196             [$gt_func_gnugettext_libintl], 
    197            [gt_save_CPPFLAGS="$CPPFLAGS" 
    198             CPPFLAGS="$CPPFLAGS $INCINTL" 
    199             gt_save_LIBS="$LIBS" 
    200             LIBS="$LIBS $LIBINTL" 
    201             dnl Now see whether libintl exists and does not depend on libiconv. 
    202             AC_TRY_LINK([#include <libintl.h> 
    203 $gt_revision_test_code 
    204 extern int _nl_msg_cat_cntr; 
    205 extern 
    206 #ifdef __cplusplus 
    207 "C" 
    208 #endif 
    209 const char *_nl_expand_alias (const char *);], 
    210               [bindtextdomain ("", ""); 
    211 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], 
    212               [eval "$gt_func_gnugettext_libintl=yes"], 
    213               [eval "$gt_func_gnugettext_libintl=no"]) 
    214             dnl Now see whether libintl exists and depends on libiconv. 
    215             if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 
    216               LIBS="$LIBS $LIBICONV" 
    217               AC_TRY_LINK([#include <libintl.h> 
    218 $gt_revision_test_code 
    219 extern int _nl_msg_cat_cntr; 
    220 extern 
    221 #ifdef __cplusplus 
    222 "C" 
    223 #endif 
    224 const char *_nl_expand_alias (const char *);], 
    225                 [bindtextdomain ("", ""); 
    226 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], 
    227                [LIBINTL="$LIBINTL $LIBICONV" 
    228                 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 
    229                 eval "$gt_func_gnugettext_libintl=yes" 
    230                ]) 
    231             fi 
    232             CPPFLAGS="$gt_save_CPPFLAGS" 
    233             LIBS="$gt_save_LIBS"]) 
    234         fi 
    235  
    236         dnl If an already present or preinstalled GNU gettext() is found, 
    237         dnl use it.  But if this macro is used in GNU gettext, and GNU 
    238         dnl gettext is already preinstalled in libintl, we update this 
    239         dnl libintl.  (Cf. the install rule in intl/Makefile.in.) 
    240         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 
    241            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 
    242                 && test "$PACKAGE" != gettext-runtime \ 
    243                 && test "$PACKAGE" != gettext-tools; }; then 
    244           gt_use_preinstalled_gnugettext=yes 
    245         else 
    246           dnl Reset the values set by searching for libintl. 
    247           LIBINTL= 
    248           LTLIBINTL= 
    249           INCINTL= 
    250         fi 
    251  
    252     ifelse(gt_included_intl, yes, [ 
    253         if test "$gt_use_preinstalled_gnugettext" != "yes"; then 
    254           dnl GNU gettext is not found in the C library. 
    255           dnl Fall back on included GNU gettext library. 
    256           nls_cv_use_gnu_gettext=yes 
    257         fi 
    258       fi 
    259  
    260       if test "$nls_cv_use_gnu_gettext" = "yes"; then 
    261         dnl Mark actions used to generate GNU NLS library. 
    262         BUILD_INCLUDED_LIBINTL=yes 
    263         USE_INCLUDED_LIBINTL=yes 
    264         LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" 
    265         LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" 
    266         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 
    267       fi 
    268  
    269       CATOBJEXT= 
    270       if test "$gt_use_preinstalled_gnugettext" = "yes" \ 
    271          || test "$nls_cv_use_gnu_gettext" = "yes"; then 
    272         dnl Mark actions to use GNU gettext tools. 
    273         CATOBJEXT=.gmo 
    274       fi 
    275     ]) 
    276  
    277     if test -n "$INTL_MACOSX_LIBS"; then 
    278       if test "$gt_use_preinstalled_gnugettext" = "yes" \ 
    279          || test "$nls_cv_use_gnu_gettext" = "yes"; then 
    280         dnl Some extra flags are needed during linking. 
    281         LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 
    282         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 
    283       fi 
    284     fi 
    285  
    286     if test "$gt_use_preinstalled_gnugettext" = "yes" \ 
    287        || test "$nls_cv_use_gnu_gettext" = "yes"; then 
    288       AC_DEFINE(ENABLE_NLS, 1, 
    289         [Define to 1 if translation of program messages to the user's native language 
    290    is requested.]) 
    291     else 
    292       USE_NLS=no 
    293     fi 
    294   fi 
    295  
    296   AC_MSG_CHECKING([whether to use NLS]) 
    297   AC_MSG_RESULT([$USE_NLS]) 
    298   if test "$USE_NLS" = "yes"; then 
    299     AC_MSG_CHECKING([where the gettext function comes from]) 
    300     if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
    301       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 
    302         gt_source="external libintl" 
    303       else 
    304         gt_source="libc" 
    305       fi 
    306     else 
    307       gt_source="included intl directory" 
    308     fi 
    309     AC_MSG_RESULT([$gt_source]) 
    310   fi 
    311  
    312   if test "$USE_NLS" = "yes"; then 
    313  
    314     if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
    315       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 
    316         AC_MSG_CHECKING([how to link with libintl]) 
    317         AC_MSG_RESULT([$LIBINTL]) 
    318         AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) 
    319       fi 
    320  
    321       dnl For backward compatibility. Some packages may be using this. 
    322       AC_DEFINE(HAVE_GETTEXT, 1, 
    323        [Define if the GNU gettext() function is already present or preinstalled.]) 
    324       AC_DEFINE(HAVE_DCGETTEXT, 1, 
    325        [Define if the GNU dcgettext() function is already present or preinstalled.]) 
    326     fi 
    327  
    328     dnl We need to process the po/ directory. 
    329     POSUB=po 
    330   fi 
    331  
    332   ifelse(gt_included_intl, yes, [ 
    333     dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL 
    334     dnl to 'yes' because some of the testsuite requires it. 
    335     if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 
    336       BUILD_INCLUDED_LIBINTL=yes 
    337     fi 
    338  
    339     dnl Make all variables we use known to autoconf. 
    340     AC_SUBST(BUILD_INCLUDED_LIBINTL) 
    341     AC_SUBST(USE_INCLUDED_LIBINTL) 
    342     AC_SUBST(CATOBJEXT) 
    343  
    344     dnl For backward compatibility. Some configure.ins may be using this. 
    345     nls_cv_header_intl= 
    346     nls_cv_header_libgt= 
    347  
    348     dnl For backward compatibility. Some Makefiles may be using this. 
    349     DATADIRNAME=share 
    350     AC_SUBST(DATADIRNAME) 
    351  
    352     dnl For backward compatibility. Some Makefiles may be using this. 
    353     INSTOBJEXT=.mo 
    354     AC_SUBST(INSTOBJEXT) 
    355  
    356     dnl For backward compatibility. Some Makefiles may be using this. 
    357     GENCAT=gencat 
    358     AC_SUBST(GENCAT) 
    359  
    360     dnl For backward compatibility. Some Makefiles may be using this. 
    361     INTLOBJS= 
    362     if test "$USE_INCLUDED_LIBINTL" = yes; then 
    363       INTLOBJS="\$(GETTOBJS)" 
    364     fi 
    365     AC_SUBST(INTLOBJS) 
    366  
    367     dnl Enable libtool support if the surrounding package wishes it. 
    368     INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix 
    369     AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) 
    370   ]) 
    371  
    372   dnl For backward compatibility. Some Makefiles may be using this. 
    373   INTLLIBS="$LIBINTL" 
    374   AC_SUBST(INTLLIBS) 
    375  
    376   dnl Make all documented variables known to autoconf. 
    377   AC_SUBST(LIBINTL) 
    378   AC_SUBST(LTLIBINTL) 
    379   AC_SUBST(POSUB) 
    380 ]) 
    381  
    382  
    383 dnl Checks for special options needed on MacOS X. 
    384 dnl Defines INTL_MACOSX_LIBS. 
    385 AC_DEFUN([gt_INTL_MACOSX], 
    386 [ 
    387   dnl Check for API introduced in MacOS X 10.2. 
    388   AC_CACHE_CHECK([for CFPreferencesCopyAppValue], 
    389     gt_cv_func_CFPreferencesCopyAppValue, 
    390     [gt_save_LIBS="$LIBS" 
    391      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 
    392      AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>], 
    393        [CFPreferencesCopyAppValue(NULL, NULL)], 
    394        [gt_cv_func_CFPreferencesCopyAppValue=yes], 
    395        [gt_cv_func_CFPreferencesCopyAppValue=no]) 
    396      LIBS="$gt_save_LIBS"]) 
    397   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 
    398     AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, 
    399       [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) 
    400   fi 
    401   dnl Check for API introduced in MacOS X 10.3. 
    402   AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, 
    403     [gt_save_LIBS="$LIBS" 
    404      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 
    405      AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();], 
    406        [gt_cv_func_CFLocaleCopyCurrent=yes], 
    407        [gt_cv_func_CFLocaleCopyCurrent=no]) 
    408      LIBS="$gt_save_LIBS"]) 
    409   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 
    410     AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, 
    411       [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) 
    412   fi 
    413   INTL_MACOSX_LIBS= 
    414   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 
    415     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 
    416   fi 
    417   AC_SUBST([INTL_MACOSX_LIBS]) 
    418 ]) 
    419  
    420  
    421 dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. 
    422 m4_define([gt_NEEDS_INIT], 
    423 [ 
    424   m4_divert_text([DEFAULTS], [gt_needs=]) 
    425   m4_define([gt_NEEDS_INIT], []) 
    426 ]) 
    427  
    428  
    429 dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) 
    430 AC_DEFUN([AM_GNU_GETTEXT_NEED], 
    431 [ 
    432   m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) 
    433 ]) 
    434  
    435  
    436 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) 
    437 AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) 
    438  
    439 # iconv.m4 serial AM4 (gettext-0.11.3) 
    440 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. 
    441 dnl This file is free software; the Free Software Foundation 
    442 dnl gives unlimited permission to copy and/or distribute it, 
    443 dnl with or without modifications, as long as this notice is preserved. 
    444  
    445 dnl From Bruno Haible. 
    446  
    447 AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], 
    448 [ 
    449   dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. 
    450   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    451   AC_REQUIRE([AC_LIB_RPATH]) 
    452  
    453   dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 
    454   dnl accordingly. 
    455   AC_LIB_LINKFLAGS_BODY([iconv]) 
    456 ]) 
    457  
    458 AC_DEFUN([AM_ICONV_LINK], 
    459 [ 
    460   dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and 
    461   dnl those with the standalone portable GNU libiconv installed). 
    462  
    463   dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 
    464   dnl accordingly. 
    465   AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) 
    466  
    467   dnl Add $INCICONV to CPPFLAGS before performing the following checks, 
    468   dnl because if the user has installed libiconv and not disabled its use 
    469   dnl via --without-libiconv-prefix, he wants to use it. The first 
    470   dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. 
    471   am_save_CPPFLAGS="$CPPFLAGS" 
    472   AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) 
    473  
    474   AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ 
    475     am_cv_func_iconv="no, consider installing GNU libiconv" 
    476     am_cv_lib_iconv=no 
    477     AC_TRY_LINK([#include <stdlib.h> 
    478 #include <iconv.h>], 
    479       [iconv_t cd = iconv_open("",""); 
    480        iconv(cd,NULL,NULL,NULL,NULL); 
    481        iconv_close(cd);], 
    482       am_cv_func_iconv=yes) 
    483     if test "$am_cv_func_iconv" != yes; then 
    484       am_save_LIBS="$LIBS" 
    485       LIBS="$LIBS $LIBICONV" 
    486       AC_TRY_LINK([#include <stdlib.h> 
    487 #include <iconv.h>], 
    488         [iconv_t cd = iconv_open("",""); 
    489          iconv(cd,NULL,NULL,NULL,NULL); 
    490          iconv_close(cd);], 
    491         am_cv_lib_iconv=yes 
    492         am_cv_func_iconv=yes) 
    493       LIBS="$am_save_LIBS" 
    494     fi 
    495   ]) 
    496   if test "$am_cv_func_iconv" = yes; then 
    497     AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) 
    498   fi 
    499   if test "$am_cv_lib_iconv" = yes; then 
    500     AC_MSG_CHECKING([how to link with libiconv]) 
    501     AC_MSG_RESULT([$LIBICONV]) 
    502   else 
    503     dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV 
    504     dnl either. 
    505     CPPFLAGS="$am_save_CPPFLAGS" 
    506     LIBICONV= 
    507     LTLIBICONV= 
    508   fi 
    509   AC_SUBST(LIBICONV) 
    510   AC_SUBST(LTLIBICONV) 
    511 ]) 
    512  
    513 AC_DEFUN([AM_ICONV], 
    514 [ 
    515   AM_ICONV_LINK 
    516   if test "$am_cv_func_iconv" = yes; then 
    517     AC_MSG_CHECKING([for iconv declaration]) 
    518     AC_CACHE_VAL(am_cv_proto_iconv, [ 
    519       AC_TRY_COMPILE([ 
    520 #include <stdlib.h> 
    521 #include <iconv.h> 
    522 extern 
    523 #ifdef __cplusplus 
    524 "C" 
    525 #endif 
    526 #if defined(__STDC__) || defined(__cplusplus) 
    527 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 
    528 #else 
    529 size_t iconv(); 
    530 #endif 
    531 ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") 
    532       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);"]) 
    533     am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 
    534     AC_MSG_RESULT([$]{ac_t:- 
    535          }[$]am_cv_proto_iconv) 
    536     AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, 
    537       [Define as const if the declaration of iconv() needs const.]) 
    538   fi 
    539 ]) 
    540  
    541 # lib-ld.m4 serial 3 (gettext-0.13) 
    542 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. 
    543 dnl This file is free software; the Free Software Foundation 
    544 dnl gives unlimited permission to copy and/or distribute it, 
    545 dnl with or without modifications, as long as this notice is preserved. 
    546  
    547 dnl Subroutines of libtool.m4, 
    548 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision 
    549 dnl with libtool.m4. 
    550  
    551 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. 
    552 AC_DEFUN([AC_LIB_PROG_LD_GNU], 
    553 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, 
    554 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. 
    555 case `$LD -v 2>&1 </dev/null` in 
    556 *GNU* | *'with BFD'*) 
    557   acl_cv_prog_gnu_ld=yes ;; 
    558 *) 
    559   acl_cv_prog_gnu_ld=no ;; 
    560 esac]) 
    561 with_gnu_ld=$acl_cv_prog_gnu_ld 
    562 ]) 
    563  
    564 dnl From libtool-1.4. Sets the variable LD. 
    565 AC_DEFUN([AC_LIB_PROG_LD], 
    566 [AC_ARG_WITH(gnu-ld, 
    567 [  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]], 
    568 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) 
    569 AC_REQUIRE([AC_PROG_CC])dnl 
    570 AC_REQUIRE([AC_CANONICAL_HOST])dnl 
    571 # Prepare PATH_SEPARATOR. 
    572 # The user is always right. 
    573 if test "${PATH_SEPARATOR+set}" != set; then 
    574   echo "#! /bin/sh" >conf$$.sh 
    575   echo  "exit 0"   >>conf$$.sh 
    576   chmod +x conf$$.sh 
    577   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 
    578     PATH_SEPARATOR=';' 
    579   else 
    580     PATH_SEPARATOR=: 
    581   fi 
    582   rm -f conf$$.sh 
    583 fi 
    584 ac_prog=ld 
    585 if test "$GCC" = yes; then 
    586   # Check if gcc -print-prog-name=ld gives a path. 
    587   AC_MSG_CHECKING([for ld used by GCC]) 
    588   case $host in 
    589   *-*-mingw*) 
    590     # gcc leaves a trailing carriage return which upsets mingw 
    591     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 
    592   *) 
    593     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 
    594   esac 
    595   case $ac_prog in 
    596     # Accept absolute paths. 
    597     [[\\/]* | [A-Za-z]:[\\/]*)] 
    598       [re_direlt='/[^/][^/]*/\.\./'] 
    599       # Canonicalize the path of ld 
    600       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 
    601       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 
    602         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 
    603       done 
    604       test -z "$LD" && LD="$ac_prog" 
    605       ;; 
    606   "") 
    607     # If it fails, then pretend we aren't using GCC. 
    608     ac_prog=ld 
    609     ;; 
    610   *) 
    611     # If it is relative, then search for the first ld in PATH. 
    612     with_gnu_ld=unknown 
    613     ;; 
    614   esac 
    615 elif test "$with_gnu_ld" = yes; then 
    616   AC_MSG_CHECKING([for GNU ld]) 
    617 else 
    618   AC_MSG_CHECKING([for non-GNU ld]) 
    619 fi 
    620 AC_CACHE_VAL(acl_cv_path_LD, 
    621 [if test -z "$LD"; then 
    622   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 
    623   for ac_dir in $PATH; do 
    624     test -z "$ac_dir" && ac_dir=. 
    625     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 
    626       acl_cv_path_LD="$ac_dir/$ac_prog" 
    627       # Check to see if the program is GNU ld.  I'd rather use --version, 
    628       # but apparently some GNU ld's only accept -v. 
    629       # Break only if it was the GNU/non-GNU ld that we prefer. 
    630       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 
    631       *GNU* | *'with BFD'*) 
    632         test "$with_gnu_ld" != no && break ;; 
    633       *) 
    634         test "$with_gnu_ld" != yes && break ;; 
    635       esac 
    636     fi 
    637   done 
    638   IFS="$ac_save_ifs" 
    639 else 
    640   acl_cv_path_LD="$LD" # Let the user override the test with a path. 
    641 fi]) 
    642 LD="$acl_cv_path_LD" 
    643 if test -n "$LD"; then 
    644   AC_MSG_RESULT($LD) 
    645 else 
    646   AC_MSG_RESULT(no) 
    647 fi 
    648 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 
    649 AC_LIB_PROG_LD_GNU 
    650 ]) 
    651  
    652 # lib-link.m4 serial 9 (gettext-0.16) 
    653 dnl Copyright (C) 2001-2006 Free Software Foundation, Inc. 
    654 dnl This file is free software; the Free Software Foundation 
    655 dnl gives unlimited permission to copy and/or distribute it, 
    656 dnl with or without modifications, as long as this notice is preserved. 
    657  
    658 dnl From Bruno Haible. 
    659  
    660 AC_PREREQ(2.50) 
    661  
    662 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and 
    663 dnl the libraries corresponding to explicit and implicit dependencies. 
    664 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and 
    665 dnl augments the CPPFLAGS variable. 
    666 AC_DEFUN([AC_LIB_LINKFLAGS], 
    667 [ 
    668   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    669   AC_REQUIRE([AC_LIB_RPATH]) 
    670   define([Name],[translit([$1],[./-], [___])]) 
    671   define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 
    672                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 
    673   AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ 
    674     AC_LIB_LINKFLAGS_BODY([$1], [$2]) 
    675     ac_cv_lib[]Name[]_libs="$LIB[]NAME" 
    676     ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" 
    677     ac_cv_lib[]Name[]_cppflags="$INC[]NAME" 
    678   ]) 
    679   LIB[]NAME="$ac_cv_lib[]Name[]_libs" 
    680   LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" 
    681   INC[]NAME="$ac_cv_lib[]Name[]_cppflags" 
    682   AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) 
    683   AC_SUBST([LIB]NAME) 
    684   AC_SUBST([LTLIB]NAME) 
    685   dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the 
    686   dnl results of this search when this library appears as a dependency. 
    687   HAVE_LIB[]NAME=yes 
    688   undefine([Name]) 
    689   undefine([NAME]) 
    690 ]) 
    691  
    692 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) 
    693 dnl searches for libname and the libraries corresponding to explicit and 
    694 dnl implicit dependencies, together with the specified include files and 
    695 dnl the ability to compile and link the specified testcode. If found, it 
    696 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and 
    697 dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and 
    698 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs 
    699 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. 
    700 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], 
    701 [ 
    702   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    703   AC_REQUIRE([AC_LIB_RPATH]) 
    704   define([Name],[translit([$1],[./-], [___])]) 
    705   define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 
    706                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 
    707  
    708   dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME 
    709   dnl accordingly. 
    710   AC_LIB_LINKFLAGS_BODY([$1], [$2]) 
    711  
    712   dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, 
    713   dnl because if the user has installed lib[]Name and not disabled its use 
    714   dnl via --without-lib[]Name-prefix, he wants to use it. 
    715   ac_save_CPPFLAGS="$CPPFLAGS" 
    716   AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) 
    717  
    718   AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ 
    719     ac_save_LIBS="$LIBS" 
    720     LIBS="$LIBS $LIB[]NAME" 
    721     AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) 
    722     LIBS="$ac_save_LIBS" 
    723   ]) 
    724   if test "$ac_cv_lib[]Name" = yes; then 
    725     HAVE_LIB[]NAME=yes 
    726     AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) 
    727     AC_MSG_CHECKING([how to link with lib[]$1]) 
    728     AC_MSG_RESULT([$LIB[]NAME]) 
    729   else 
    730     HAVE_LIB[]NAME=no 
    731     dnl If $LIB[]NAME didn't lead to a usable library, we don't need 
    732     dnl $INC[]NAME either. 
    733     CPPFLAGS="$ac_save_CPPFLAGS" 
    734     LIB[]NAME= 
    735     LTLIB[]NAME= 
    736   fi 
    737   AC_SUBST([HAVE_LIB]NAME) 
    738   AC_SUBST([LIB]NAME) 
    739   AC_SUBST([LTLIB]NAME) 
    740   undefine([Name]) 
    741   undefine([NAME]) 
    742 ]) 
    743  
    744 dnl Determine the platform dependent parameters needed to use rpath: 
    745 dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, 
    746 dnl hardcode_direct, hardcode_minus_L. 
    747 AC_DEFUN([AC_LIB_RPATH], 
    748 [ 
    749   dnl Tell automake >= 1.10 to complain if config.rpath is missing. 
    750   m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) 
    751   AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS 
    752   AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld 
    753   AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host 
    754   AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir 
    755   AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ 
    756     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 
    757     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 
    758     . ./conftest.sh 
    759     rm -f ./conftest.sh 
    760     acl_cv_rpath=done 
    761   ]) 
    762   wl="$acl_cv_wl" 
    763   libext="$acl_cv_libext" 
    764   shlibext="$acl_cv_shlibext" 
    765   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 
    766   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 
    767   hardcode_direct="$acl_cv_hardcode_direct" 
    768   hardcode_minus_L="$acl_cv_hardcode_minus_L" 
    769   dnl Determine whether the user wants rpath handling at all. 
    770   AC_ARG_ENABLE(rpath, 
    771     [  --disable-rpath         do not hardcode runtime library paths], 
    772     :, enable_rpath=yes) 
    773 ]) 
    774  
    775 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and 
    776 dnl the libraries corresponding to explicit and implicit dependencies. 
    777 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. 
    778 AC_DEFUN([AC_LIB_LINKFLAGS_BODY], 
    779 [ 
    780   AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 
    781   define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 
    782                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 
    783   dnl By default, look in $includedir and $libdir. 
    784   use_additional=yes 
    785   AC_LIB_WITH_FINAL_PREFIX([ 
    786     eval additional_includedir=\"$includedir\" 
    787     eval additional_libdir=\"$libdir\" 
    788   ]) 
    789   AC_LIB_ARG_WITH([lib$1-prefix], 
    790 [  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib 
    791   --without-lib$1-prefix     don't search for lib$1 in includedir and libdir], 
    792 [ 
    793     if test "X$withval" = "Xno"; then 
    794       use_additional=no 
    795     else 
    796       if test "X$withval" = "X"; then 
    797         AC_LIB_WITH_FINAL_PREFIX([ 
    798           eval additional_includedir=\"$includedir\" 
    799           eval additional_libdir=\"$libdir\" 
    800         ]) 
    801       else 
    802         additional_includedir="$withval/include" 
    803         additional_libdir="$withval/$acl_libdirstem" 
    804       fi 
    805     fi 
    806 ]) 
    807   dnl Search the library and its dependencies in $additional_libdir and 
    808   dnl $LDFLAGS. Using breadth-first-seach. 
    809   LIB[]NAME= 
    810   LTLIB[]NAME= 
    811   INC[]NAME= 
    812   rpathdirs= 
    813   ltrpathdirs= 
    814   names_already_handled= 
    815   names_next_round='$1 $2' 
    816   while test -n "$names_next_round"; do 
    817     names_this_round="$names_next_round" 
    818     names_next_round= 
    819     for name in $names_this_round; do 
    820       already_handled= 
    821       for n in $names_already_handled; do 
    822         if test "$n" = "$name"; then 
    823           already_handled=yes 
    824           break 
    825         fi 
    826       done 
    827       if test -z "$already_handled"; then 
    828         names_already_handled="$names_already_handled $name" 
    829         dnl See if it was already located by an earlier AC_LIB_LINKFLAGS 
    830         dnl or AC_LIB_HAVE_LINKFLAGS call. 
    831         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 
    832         eval value=\"\$HAVE_LIB$uppername\" 
    833         if test -n "$value"; then 
    834           if test "$value" = yes; then 
    835             eval value=\"\$LIB$uppername\" 
    836             test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" 
    837             eval value=\"\$LTLIB$uppername\" 
    838             test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" 
    839           else 
    840             dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined 
    841             dnl that this library doesn't exist. So just drop it. 
    842             : 
    843           fi 
    844         else 
    845           dnl Search the library lib$name in $additional_libdir and $LDFLAGS 
    846           dnl and the already constructed $LIBNAME/$LTLIBNAME. 
    847           found_dir= 
    848           found_la= 
    849           found_so= 
    850           found_a= 
    851           if test $use_additional = yes; then 
    852             if test -n "$shlibext" \ 
    853                && { test -f "$additional_libdir/lib$name.$shlibext" \ 
    854                     || { test "$shlibext" = dll \ 
    855                          && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 
    856               found_dir="$additional_libdir" 
    857               if test -f "$additional_libdir/lib$name.$shlibext"; then 
    858                 found_so="$additional_libdir/lib$name.$shlibext" 
    859               else 
    860                 found_so="$additional_libdir/lib$name.dll.a" 
    861               fi 
    862               if test -f "$additional_libdir/lib$name.la"; then 
    863                 found_la="$additional_libdir/lib$name.la" 
    864               fi 
    865             else 
    866               if test -f "$additional_libdir/lib$name.$libext"; then 
    867                 found_dir="$additional_libdir" 
    868                 found_a="$additional_libdir/lib$name.$libext" 
    869                 if test -f "$additional_libdir/lib$name.la"; then 
    870                   found_la="$additional_libdir/lib$name.la" 
    871                 fi 
    872               fi 
    873             fi 
    874           fi 
    875           if test "X$found_dir" = "X"; then 
    876             for x in $LDFLAGS $LTLIB[]NAME; do 
    877               AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    878               case "$x" in 
    879                 -L*) 
    880                   dir=`echo "X$x" | sed -e 's/^X-L//'` 
    881                   if test -n "$shlibext" \ 
    882                      && { test -f "$dir/lib$name.$shlibext" \ 
    883                           || { test "$shlibext" = dll \ 
    884                                && test -f "$dir/lib$name.dll.a"; }; }; then 
    885                     found_dir="$dir" 
    886                     if test -f "$dir/lib$name.$shlibext"; then 
    887                       found_so="$dir/lib$name.$shlibext" 
    888                     else 
    889                       found_so="$dir/lib$name.dll.a" 
    890                     fi 
    891                     if test -f "$dir/lib$name.la"; then 
    892                       found_la="$dir/lib$name.la" 
    893                     fi 
    894                   else 
    895                     if test -f "$dir/lib$name.$libext"; then 
    896                       found_dir="$dir" 
    897                       found_a="$dir/lib$name.$libext" 
    898                       if test -f "$dir/lib$name.la"; then 
    899                         found_la="$dir/lib$name.la" 
    900                       fi 
    901                     fi 
    902                   fi 
    903                   ;; 
    904               esac 
    905               if test "X$found_dir" != "X"; then 
    906                 break 
    907               fi 
    908             done 
    909           fi 
    910           if test "X$found_dir" != "X"; then 
    911             dnl Found the library. 
    912             LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" 
    913             if test "X$found_so" != "X"; then 
    914               dnl Linking with a shared library. We attempt to hardcode its 
    915               dnl directory into the executable's runpath, unless it's the 
    916               dnl standard /usr/lib. 
    917               if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 
    918                 dnl No hardcoding is needed. 
    919                 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
    920               else 
    921                 dnl Use an explicit option to hardcode DIR into the resulting 
    922                 dnl binary. 
    923                 dnl Potentially add DIR to ltrpathdirs. 
    924                 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. 
    925                 haveit= 
    926                 for x in $ltrpathdirs; do 
    927                   if test "X$x" = "X$found_dir"; then 
    928                     haveit=yes 
    929                     break 
    930                   fi 
    931                 done 
    932                 if test -z "$haveit"; then 
    933                   ltrpathdirs="$ltrpathdirs $found_dir" 
    934                 fi 
    935                 dnl The hardcoding into $LIBNAME is system dependent. 
    936                 if test "$hardcode_direct" = yes; then 
    937                   dnl Using DIR/libNAME.so during linking hardcodes DIR into the 
    938                   dnl resulting binary. 
    939                   LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
    940                 else 
    941                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 
    942                     dnl Use an explicit option to hardcode DIR into the resulting 
    943                     dnl binary. 
    944                     LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
    945                     dnl Potentially add DIR to rpathdirs. 
    946                     dnl The rpathdirs will be appended to $LIBNAME at the end. 
    947                     haveit= 
    948                     for x in $rpathdirs; do 
    949                       if test "X$x" = "X$found_dir"; then 
    950                         haveit=yes 
    951                         break 
    952                       fi 
    953                     done 
    954                     if test -z "$haveit"; then 
    955                       rpathdirs="$rpathdirs $found_dir" 
    956                     fi 
    957                   else 
    958                     dnl Rely on "-L$found_dir". 
    959                     dnl But don't add it if it's already contained in the LDFLAGS 
    960                     dnl or the already constructed $LIBNAME 
    961                     haveit= 
    962                     for x in $LDFLAGS $LIB[]NAME; do 
    963                       AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    964                       if test "X$x" = "X-L$found_dir"; then 
    965                         haveit=yes 
    966                         break 
    967                       fi 
    968                     done 
    969                     if test -z "$haveit"; then 
    970                       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" 
    971                     fi 
    972                     if test "$hardcode_minus_L" != no; then 
    973                       dnl FIXME: Not sure whether we should use 
    974                       dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" 
    975                       dnl here. 
    976                       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
    977                     else 
    978                       dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH 
    979                       dnl here, because this doesn't fit in flags passed to the 
    980                       dnl compiler. So give up. No hardcoding. This affects only 
    981                       dnl very old systems. 
    982                       dnl FIXME: Not sure whether we should use 
    983                       dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" 
    984                       dnl here. 
    985                       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" 
    986                     fi 
    987                   fi 
    988                 fi 
    989               fi 
    990             else 
    991               if test "X$found_a" != "X"; then 
    992                 dnl Linking with a static library. 
    993                 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" 
    994               else 
    995                 dnl We shouldn't come here, but anyway it's good to have a 
    996                 dnl fallback. 
    997                 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" 
    998               fi 
    999             fi 
    1000             dnl Assume the include files are nearby. 
    1001             additional_includedir= 
    1002             case "$found_dir" in 
    1003               */$acl_libdirstem | */$acl_libdirstem/) 
    1004                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 
    1005                 additional_includedir="$basedir/include" 
    1006                 ;; 
    1007             esac 
    1008             if test "X$additional_includedir" != "X"; then 
    1009               dnl Potentially add $additional_includedir to $INCNAME. 
    1010               dnl But don't add it 
    1011               dnl   1. if it's the standard /usr/include, 
    1012               dnl   2. if it's /usr/local/include and we are using GCC on Linux, 
    1013               dnl   3. if it's already present in $CPPFLAGS or the already 
    1014               dnl      constructed $INCNAME, 
    1015               dnl   4. if it doesn't exist as a directory. 
    1016               if test "X$additional_includedir" != "X/usr/include"; then 
    1017                 haveit= 
    1018                 if test "X$additional_includedir" = "X/usr/local/include"; then 
    1019                   if test -n "$GCC"; then 
    1020                     case $host_os in 
    1021                       linux* | gnu* | k*bsd*-gnu) haveit=yes;; 
    1022                     esac 
    1023                   fi 
    1024                 fi 
    1025                 if test -z "$haveit"; then 
    1026                   for x in $CPPFLAGS $INC[]NAME; do 
    1027                     AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    1028                     if test "X$x" = "X-I$additional_includedir"; then 
    1029                       haveit=yes 
    1030                       break 
    1031                     fi 
    1032                   done 
    1033                   if test -z "$haveit"; then 
    1034                     if test -d "$additional_includedir"; then 
    1035                       dnl Really add $additional_includedir to $INCNAME. 
    1036                       INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" 
    1037                     fi 
    1038                   fi 
    1039                 fi 
    1040               fi 
    1041             fi 
    1042             dnl Look for dependencies. 
    1043             if test -n "$found_la"; then 
    1044               dnl Read the .la file. It defines the variables 
    1045               dnl dlname, library_names, old_library, dependency_libs, current, 
    1046               dnl age, revision, installed, dlopen, dlpreopen, libdir. 
    1047               save_libdir="$libdir" 
    1048               case "$found_la" in 
    1049                 */* | *\\*) . "$found_la" ;; 
    1050                 *) . "./$found_la" ;; 
    1051               esac 
    1052               libdir="$save_libdir" 
    1053               dnl We use only dependency_libs. 
    1054               for dep in $dependency_libs; do 
    1055                 case "$dep" in 
    1056                   -L*) 
    1057                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 
    1058                     dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. 
    1059                     dnl But don't add it 
    1060                     dnl   1. if it's the standard /usr/lib, 
    1061                     dnl   2. if it's /usr/local/lib and we are using GCC on Linux, 
    1062                     dnl   3. if it's already present in $LDFLAGS or the already 
    1063                     dnl      constructed $LIBNAME, 
    1064                     dnl   4. if it doesn't exist as a directory. 
    1065                     if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 
    1066                       haveit= 
    1067                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 
    1068                         if test -n "$GCC"; then 
    1069                           case $host_os in 
    1070                             linux* | gnu* | k*bsd*-gnu) haveit=yes;; 
    1071                           esac 
    1072                         fi 
    1073                       fi 
    1074                       if test -z "$haveit"; then 
    1075                         haveit= 
    1076                         for x in $LDFLAGS $LIB[]NAME; do 
    1077                           AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    1078                           if test "X$x" = "X-L$additional_libdir"; then 
    1079                             haveit=yes 
    1080                             break 
    1081                           fi 
    1082                         done 
    1083                         if test -z "$haveit"; then 
    1084                           if test -d "$additional_libdir"; then 
    1085                             dnl Really add $additional_libdir to $LIBNAME. 
    1086                             LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" 
    1087                           fi 
    1088                         fi 
    1089                         haveit= 
    1090                         for x in $LDFLAGS $LTLIB[]NAME; do 
    1091                           AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    1092                           if test "X$x" = "X-L$additional_libdir"; then 
    1093                             haveit=yes 
    1094                             break 
    1095                           fi 
    1096                         done 
    1097                         if test -z "$haveit"; then 
    1098                           if test -d "$additional_libdir"; then 
    1099                             dnl Really add $additional_libdir to $LTLIBNAME. 
    1100                             LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" 
    1101                           fi 
    1102                         fi 
    1103                       fi 
    1104                     fi 
    1105                     ;; 
    1106                   -R*) 
    1107                     dir=`echo "X$dep" | sed -e 's/^X-R//'` 
    1108                     if test "$enable_rpath" != no; then 
    1109                       dnl Potentially add DIR to rpathdirs. 
    1110                       dnl The rpathdirs will be appended to $LIBNAME at the end. 
    1111                       haveit= 
    1112                       for x in $rpathdirs; do 
    1113                         if test "X$x" = "X$dir"; then 
    1114                           haveit=yes 
    1115                           break 
    1116                         fi 
    1117                       done 
    1118                       if test -z "$haveit"; then 
    1119                         rpathdirs="$rpathdirs $dir" 
    1120                       fi 
    1121                       dnl Potentially add DIR to ltrpathdirs. 
    1122                       dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. 
    1123                       haveit= 
    1124                       for x in $ltrpathdirs; do 
    1125                         if test "X$x" = "X$dir"; then 
    1126                           haveit=yes 
    1127                           break 
    1128                         fi 
    1129                       done 
    1130                       if test -z "$haveit"; then 
    1131                         ltrpathdirs="$ltrpathdirs $dir" 
    1132                       fi 
    1133                     fi 
    1134                     ;; 
    1135                   -l*) 
    1136                     dnl Handle this in the next round. 
    1137                     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 
    1138                     ;; 
    1139                   *.la) 
    1140                     dnl Handle this in the next round. Throw away the .la's 
    1141                     dnl directory; it is already contained in a preceding -L 
    1142                     dnl option. 
    1143                     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 
    1144                     ;; 
    1145                   *) 
    1146                     dnl Most likely an immediate library name. 
    1147                     LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" 
    1148                     LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" 
    1149                     ;; 
    1150                 esac 
    1151               done 
    1152             fi 
    1153           else 
    1154             dnl Didn't find the library; assume it is in the system directories 
    1155             dnl known to the linker and runtime loader. (All the system 
    1156             dnl directories known to the linker should also be known to the 
    1157             dnl runtime loader, otherwise the system is severely misconfigured.) 
    1158             LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" 
    1159             LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" 
    1160           fi 
    1161         fi 
    1162       fi 
    1163     done 
    1164   done 
    1165   if test "X$rpathdirs" != "X"; then 
    1166     if test -n "$hardcode_libdir_separator"; then 
    1167       dnl Weird platform: only the last -rpath option counts, the user must 
    1168       dnl pass all path elements in one option. We can arrange that for a 
    1169       dnl single library, but not when more than one $LIBNAMEs are used. 
    1170       alldirs= 
    1171       for found_dir in $rpathdirs; do 
    1172         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 
    1173       done 
    1174       dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. 
    1175       acl_save_libdir="$libdir" 
    1176       libdir="$alldirs" 
    1177       eval flag=\"$hardcode_libdir_flag_spec\" 
    1178       libdir="$acl_save_libdir" 
    1179       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" 
    1180     else 
    1181       dnl The -rpath options are cumulative. 
    1182       for found_dir in $rpathdirs; do 
    1183         acl_save_libdir="$libdir" 
    1184         libdir="$found_dir" 
    1185         eval flag=\"$hardcode_libdir_flag_spec\" 
    1186         libdir="$acl_save_libdir" 
    1187         LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" 
    1188       done 
    1189     fi 
    1190   fi 
    1191   if test "X$ltrpathdirs" != "X"; then 
    1192     dnl When using libtool, the option that works for both libraries and 
    1193     dnl executables is -R. The -R options are cumulative. 
    1194     for found_dir in $ltrpathdirs; do 
    1195       LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" 
    1196     done 
    1197   fi 
    1198 ]) 
    1199  
    1200 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, 
    1201 dnl unless already present in VAR. 
    1202 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes 
    1203 dnl contains two or three consecutive elements that belong together. 
    1204 AC_DEFUN([AC_LIB_APPENDTOVAR], 
    1205 [ 
    1206   for element in [$2]; do 
    1207     haveit= 
    1208     for x in $[$1]; do 
    1209       AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    1210       if test "X$x" = "X$element"; then 
    1211         haveit=yes 
    1212         break 
    1213       fi 
    1214     done 
    1215     if test -z "$haveit"; then 
    1216       [$1]="${[$1]}${[$1]:+ }$element" 
    1217     fi 
    1218   done 
    1219 ]) 
    1220  
    1221 dnl For those cases where a variable contains several -L and -l options 
    1222 dnl referring to unknown libraries and directories, this macro determines the 
    1223 dnl necessary additional linker options for the runtime path. 
    1224 dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) 
    1225 dnl sets LDADDVAR to linker options needed together with LIBSVALUE. 
    1226 dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, 
    1227 dnl otherwise linking without libtool is assumed. 
    1228 AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], 
    1229 [ 
    1230   AC_REQUIRE([AC_LIB_RPATH]) 
    1231   AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 
    1232   $1= 
    1233   if test "$enable_rpath" != no; then 
    1234     if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 
    1235       dnl Use an explicit option to hardcode directories into the resulting 
    1236       dnl binary. 
    1237       rpathdirs= 
    1238       next= 
    1239       for opt in $2; do 
    1240         if test -n "$next"; then 
    1241           dir="$next" 
    1242           dnl No need to hardcode the standard /usr/lib. 
    1243           if test "X$dir" != "X/usr/$acl_libdirstem"; then 
    1244             rpathdirs="$rpathdirs $dir" 
    1245           fi 
    1246           next= 
    1247         else 
    1248           case $opt in 
    1249             -L) next=yes ;; 
    1250             -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` 
    1251                  dnl No need to hardcode the standard /usr/lib. 
    1252                  if test "X$dir" != "X/usr/$acl_libdirstem"; then 
    1253                    rpathdirs="$rpathdirs $dir" 
    1254                  fi 
    1255                  next= ;; 
    1256             *) next= ;; 
    1257           esac 
    1258         fi 
    1259       done 
    1260       if test "X$rpathdirs" != "X"; then 
    1261         if test -n ""$3""; then 
    1262           dnl libtool is used for linking. Use -R options. 
    1263           for dir in $rpathdirs; do 
    1264             $1="${$1}${$1:+ }-R$dir" 
    1265           done 
    1266         else 
    1267           dnl The linker is used for linking directly. 
    1268           if test -n "$hardcode_libdir_separator"; then 
    1269             dnl Weird platform: only the last -rpath option counts, the user 
    1270             dnl must pass all path elements in one option. 
    1271             alldirs= 
    1272             for dir in $rpathdirs; do 
    1273               alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir" 
    1274             done 
    1275             acl_save_libdir="$libdir" 
    1276             libdir="$alldirs" 
    1277             eval flag=\"$hardcode_libdir_flag_spec\" 
    1278             libdir="$acl_save_libdir" 
    1279             $1="$flag" 
    1280           else 
    1281             dnl The -rpath options are cumulative. 
    1282             for dir in $rpathdirs; do 
    1283               acl_save_libdir="$libdir" 
    1284               libdir="$dir" 
    1285               eval flag=\"$hardcode_libdir_flag_spec\" 
    1286               libdir="$acl_save_libdir" 
    1287               $1="${$1}${$1:+ }$flag" 
    1288             done 
    1289           fi 
    1290         fi 
    1291       fi 
    1292     fi 
    1293   fi 
    1294   AC_SUBST([$1]) 
    1295 ]) 
    1296  
    1297 # lib-prefix.m4 serial 5 (gettext-0.15) 
    1298 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. 
    1299 dnl This file is free software; the Free Software Foundation 
    1300 dnl gives unlimited permission to copy and/or distribute it, 
    1301 dnl with or without modifications, as long as this notice is preserved. 
    1302  
    1303 dnl From Bruno Haible. 
    1304  
    1305 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and 
    1306 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't 
    1307 dnl require excessive bracketing. 
    1308 ifdef([AC_HELP_STRING], 
    1309 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], 
    1310 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) 
    1311  
    1312 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed 
    1313 dnl to access previously installed libraries. The basic assumption is that 
    1314 dnl a user will want packages to use other packages he previously installed 
    1315 dnl with the same --prefix option. 
    1316 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate 
    1317 dnl libraries, but is otherwise very convenient. 
    1318 AC_DEFUN([AC_LIB_PREFIX], 
    1319 [ 
    1320   AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) 
    1321   AC_REQUIRE([AC_PROG_CC]) 
    1322   AC_REQUIRE([AC_CANONICAL_HOST]) 
    1323   AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 
    1324   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    1325   dnl By default, look in $includedir and $libdir. 
    1326   use_additional=yes 
    1327   AC_LIB_WITH_FINAL_PREFIX([ 
    1328     eval additional_includedir=\"$includedir\" 
    1329     eval additional_libdir=\"$libdir\" 
    1330   ]) 
    1331   AC_LIB_ARG_WITH([lib-prefix], 
    1332 [  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib 
    1333   --without-lib-prefix    don't search for libraries in includedir and libdir], 
    1334 [ 
    1335     if test "X$withval" = "Xno"; then 
    1336       use_additional=no 
    1337     else 
    1338       if test "X$withval" = "X"; then 
    1339         AC_LIB_WITH_FINAL_PREFIX([ 
    1340           eval additional_includedir=\"$includedir\" 
    1341           eval additional_libdir=\"$libdir\" 
    1342         ]) 
    1343       else 
    1344         additional_includedir="$withval/include" 
    1345         additional_libdir="$withval/$acl_libdirstem" 
    1346       fi 
    1347     fi 
    1348 ]) 
    1349   if test $use_additional = yes; then 
    1350     dnl Potentially add $additional_includedir to $CPPFLAGS. 
    1351     dnl But don't add it 
    1352     dnl   1. if it's the standard /usr/include, 
    1353     dnl   2. if it's already present in $CPPFLAGS, 
    1354     dnl   3. if it's /usr/local/include and we are using GCC on Linux, 
    1355     dnl   4. if it doesn't exist as a directory. 
    1356     if test "X$additional_includedir" != "X/usr/include"; then 
    1357       haveit= 
    1358       for x in $CPPFLAGS; do 
    1359         AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    1360         if test "X$x" = "X-I$additional_includedir"; then 
    1361           haveit=yes 
    1362           break 
    1363         fi 
    1364       done 
    1365       if test -z "$haveit"; then 
    1366         if test "X$additional_includedir" = "X/usr/local/include"; then 
    1367           if test -n "$GCC"; then 
    1368             case $host_os in 
    1369               linux* | gnu* | k*bsd*-gnu) haveit=yes;; 
    1370             esac 
    1371           fi 
    1372         fi 
    1373         if test -z "$haveit"; then 
    1374           if test -d "$additional_includedir"; then 
    1375             dnl Really add $additional_includedir to $CPPFLAGS. 
    1376             CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" 
    1377           fi 
    1378         fi 
    1379       fi 
    1380     fi 
    1381     dnl Potentially add $additional_libdir to $LDFLAGS. 
    1382     dnl But don't add it 
    1383     dnl   1. if it's the standard /usr/lib, 
    1384     dnl   2. if it's already present in $LDFLAGS, 
    1385     dnl   3. if it's /usr/local/lib and we are using GCC on Linux, 
    1386     dnl   4. if it doesn't exist as a directory. 
    1387     if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 
    1388       haveit= 
    1389       for x in $LDFLAGS; do 
    1390         AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    1391         if test "X$x" = "X-L$additional_libdir"; then 
    1392           haveit=yes 
    1393           break 
    1394         fi 
    1395       done 
    1396       if test -z "$haveit"; then 
    1397         if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 
    1398           if test -n "$GCC"; then 
    1399             case $host_os in 
    1400               linux*) haveit=yes;; 
    1401             esac 
    1402           fi 
    1403         fi 
    1404         if test -z "$haveit"; then 
    1405           if test -d "$additional_libdir"; then 
    1406             dnl Really add $additional_libdir to $LDFLAGS. 
    1407             LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" 
    1408           fi 
    1409         fi 
    1410       fi 
    1411     fi 
    1412   fi 
    1413 ]) 
    1414  
    1415 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, 
    1416 dnl acl_final_exec_prefix, containing the values to which $prefix and 
    1417 dnl $exec_prefix will expand at the end of the configure script. 
    1418 AC_DEFUN([AC_LIB_PREPARE_PREFIX], 
    1419 [ 
    1420   dnl Unfortunately, prefix and exec_prefix get only finally determined 
    1421   dnl at the end of configure. 
    1422   if test "X$prefix" = "XNONE"; then 
    1423     acl_final_prefix="$ac_default_prefix" 
    1424   else 
    1425     acl_final_prefix="$prefix" 
    1426   fi 
    1427   if test "X$exec_prefix" = "XNONE"; then 
    1428     acl_final_exec_prefix='${prefix}' 
    1429   else 
    1430     acl_final_exec_prefix="$exec_prefix" 
    1431   fi 
    1432   acl_save_prefix="$prefix" 
    1433   prefix="$acl_final_prefix" 
    1434   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 
    1435   prefix="$acl_save_prefix" 
    1436 ]) 
    1437  
    1438 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the 
    1439 dnl variables prefix and exec_prefix bound to the values they will have 
    1440 dnl at the end of the configure script. 
    1441 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], 
    1442 [ 
    1443   acl_save_prefix="$prefix" 
    1444   prefix="$acl_final_prefix" 
    1445   acl_save_exec_prefix="$exec_prefix" 
    1446   exec_prefix="$acl_final_exec_prefix" 
    1447   $1 
    1448   exec_prefix="$acl_save_exec_prefix" 
    1449   prefix="$acl_save_prefix" 
    1450 ]) 
    1451  
    1452 dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing 
    1453 dnl the basename of the libdir, either "lib" or "lib64". 
    1454 AC_DEFUN([AC_LIB_PREPARE_MULTILIB], 
    1455 [ 
    1456   dnl There is no formal standard regarding lib and lib64. The current 
    1457   dnl practice is that on a system supporting 32-bit and 64-bit instruction 
    1458   dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit 
    1459   dnl libraries go under $prefix/lib. We determine the compiler's default 
    1460   dnl mode by looking at the compiler's library search path. If at least 
    1461   dnl of its elements ends in /lib64 or points to a directory whose absolute 
    1462   dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the 
    1463   dnl default, namely "lib". 
    1464   acl_libdirstem=lib 
    1465   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 
    1466   if test -n "$searchpath"; then 
    1467     acl_save_IFS="${IFS=        }"; IFS=":" 
    1468     for searchdir in $searchpath; do 
    1469       if test -d "$searchdir"; then 
    1470         case "$searchdir" in 
    1471           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 
    1472           *) searchdir=`cd "$searchdir" && pwd` 
    1473              case "$searchdir" in 
    1474                */lib64 ) acl_libdirstem=lib64 ;; 
    1475              esac ;; 
    1476         esac 
    1477       fi 
    1478     done 
    1479     IFS="$acl_save_IFS" 
    1480   fi 
    1481 ]) 
    148218 
    148319# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 
     
    80626598]) 
    80636599 
    8064 # nls.m4 serial 3 (gettext-0.15) 
    8065 dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. 
    8066 dnl This file is free software; the Free Software Foundation 
    8067 dnl gives unlimited permission to copy and/or distribute it, 
    8068 dnl with or without modifications, as long as this notice is preserved. 
    8069 dnl 
    8070 dnl This file can can be used in projects which are not available under 
    8071 dnl the GNU General Public License or the GNU Library General Public 
    8072 dnl License but which still want to provide support for the GNU gettext 
    8073 dnl functionality. 
    8074 dnl Please note that the actual code of the GNU gettext library is covered 
    8075 dnl by the GNU Library General Public License, and the rest of the GNU 
    8076 dnl gettext package package is covered by the GNU General Public License. 
    8077 dnl They are *not* in the public domain. 
    8078  
    8079 dnl Authors: 
    8080 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 
    8081 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003. 
    8082  
    8083 AC_PREREQ(2.50) 
    8084  
    8085 AC_DEFUN([AM_NLS], 
    8086 [ 
    8087   AC_MSG_CHECKING([whether NLS is requested]) 
    8088   dnl Default is enabled NLS 
    8089   AC_ARG_ENABLE(nls, 
    8090     [  --disable-nls           do not use Native Language Support], 
    8091     USE_NLS=$enableval, USE_NLS=yes) 
    8092   AC_MSG_RESULT($USE_NLS) 
    8093   AC_SUBST(USE_NLS) 
    8094 ]) 
    8095  
    80966600# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*- 
    80976601#  
     
    82516755fi[]dnl 
    82526756])# PKG_CHECK_MODULES 
    8253  
    8254 # po.m4 serial 13 (gettext-0.15) 
    8255 dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. 
    8256 dnl This file is free software; the Free Software Foundation 
    8257 dnl gives unlimited permission to copy and/or distribute it, 
    8258 dnl with or without modifications, as long as this notice is preserved. 
    8259 dnl 
    8260 dnl This file can can be used in projects which are not available under 
    8261 dnl the GNU General Public License or the GNU Library General Public 
    8262 dnl License but which still want to provide support for the GNU gettext 
    8263 dnl functionality. 
    8264 dnl Please note that the actual code of the GNU gettext library is covered 
    8265 dnl by the GNU Library General Public License, and the rest of the GNU 
    8266 dnl gettext package package is covered by the GNU General Public License. 
    8267 dnl They are *not* in the public domain. 
    8268  
    8269 dnl Authors: 
    8270 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 
    8271 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003. 
    8272  
    8273 AC_PREREQ(2.50) 
    8274  
    8275 dnl Checks for all prerequisites of the po subdirectory. 
    8276 AC_DEFUN([AM_PO_SUBDIRS], 
    8277 [ 
    8278   AC_REQUIRE([AC_PROG_MAKE_SET])dnl 
    8279   AC_REQUIRE([AC_PROG_INSTALL])dnl 
    8280   AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake 
    8281   AC_REQUIRE([AM_NLS])dnl 
    8282  
    8283   dnl Perform the following tests also if --disable-nls has been given, 
    8284   dnl because they are needed for "make dist" to work. 
    8285  
    8286   dnl Search for GNU msgfmt in the PATH. 
    8287   dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. 
    8288   dnl The second test excludes FreeBSD msgfmt. 
    8289   AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, 
    8290     [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && 
    8291      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], 
    8292     :) 
    8293   AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 
    8294  
    8295   dnl Test whether it is GNU msgfmt >= 0.15. 
    8296 changequote(,)dnl 
    8297   case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 
    8298     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 
    8299     *) MSGFMT_015=$MSGFMT ;; 
    8300   esac 
    8301 changequote([,])dnl 
    8302   AC_SUBST([MSGFMT_015]) 
    8303 changequote(,)dnl 
    8304   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 
    8305     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 
    8306     *) GMSGFMT_015=$GMSGFMT ;; 
    8307   esac 
    8308 changequote([,])dnl 
    8309   AC_SUBST([GMSGFMT_015]) 
    8310  
    8311   dnl Search for GNU xgettext 0.12 or newer in the PATH. 
    8312   dnl The first test excludes Solaris xgettext and early GNU xgettext versions. 
    8313   dnl The second test excludes FreeBSD xgettext. 
    8314   AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, 
    8315     [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && 
    8316      (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)], 
    8317     :) 
    8318   dnl Remove leftover from FreeBSD xgettext call. 
    8319   rm -f messages.po 
    8320  
    8321   dnl Test whether it is GNU xgettext >= 0.15. 
    8322 changequote(,)dnl 
    8323   case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 
    8324     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 
    8325     *) XGETTEXT_015=$XGETTEXT ;; 
    8326   esac 
    8327 changequote([,])dnl 
    8328   AC_SUBST([XGETTEXT_015]) 
    8329  
    8330   dnl Search for GNU msgmerge 0.11 or newer in the PATH. 
    8331   AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, 
    8332     [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) 
    8333  
    8334   dnl Installation directories. 
    8335   dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we 
    8336   dnl have to define it here, so that it can be used in po/Makefile. 
    8337   test -n "$localedir" || localedir='${datadir}/locale' 
    8338   AC_SUBST([localedir]) 
    8339  
    8340   AC_CONFIG_COMMANDS([po-directories], [[ 
    8341     for ac_file in $CONFIG_FILES; do 
    8342       # Support "outfile[:infile[:infile...]]" 
    8343       case "$ac_file" in 
    8344         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 
    8345       esac 
    8346       # PO directories have a Makefile.in generated from Makefile.in.in. 
    8347       case "$ac_file" in */Makefile.in) 
    8348         # Adjust a relative srcdir. 
    8349         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 
    8350         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 
    8351         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 
    8352         # In autoconf-2.13 it is called $ac_given_srcdir. 
    8353         # In autoconf-2.50 it is called $srcdir. 
    8354         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 
    8355         case "$ac_given_srcdir" in 
    8356           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 
    8357           /*) top_srcdir="$ac_given_srcdir" ;; 
    8358           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;; 
    8359         esac 
    8360         # Treat a directory as a PO directory if and only if it has a 
    8361         # POTFILES.in file. This allows packages to have multiple PO 
    8362         # directories under different names or in different locations. 
    8363         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 
    8364           rm -f "$ac_dir/POTFILES" 
    8365           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 
    8366           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 
    8367           POMAKEFILEDEPS="POTFILES.in" 
    8368           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 
    8369           # on $ac_dir but don't depend on user-specified configuration 
    8370           # parameters. 
    8371           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 
    8372             # The LINGUAS file contains the set of available languages. 
    8373             if test -n "$OBSOLETE_ALL_LINGUAS"; then 
    8374               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 
    8375             fi 
    8376             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 
    8377             # Hide the ALL_LINGUAS assigment from automake < 1.5. 
    8378             eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 
    8379             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 
    8380           else 
    8381             # The set of available languages was given in configure.in. 
    8382             # Hide the ALL_LINGUAS assigment from automake < 1.5. 
    8383             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 
    8384           fi 
    8385           # Compute POFILES 
    8386           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 
    8387           # Compute UPDATEPOFILES 
    8388           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 
    8389           # Compute DUMMYPOFILES 
    8390           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 
    8391           # Compute GMOFILES 
    8392           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 
    8393           case "$ac_given_srcdir" in 
    8394             .) srcdirpre= ;; 
    8395             *) srcdirpre='$(srcdir)/' ;; 
    8396           esac 
    8397           POFILES= 
    8398           UPDATEPOFILES= 
    8399           DUMMYPOFILES= 
    8400           GMOFILES= 
    8401           for lang in $ALL_LINGUAS; do 
    8402             POFILES="$POFILES $srcdirpre$lang.po" 
    8403             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 
    8404             DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 
    8405             GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 
    8406           done 
    8407           # CATALOGS depends on both $ac_dir and the user's LINGUAS 
    8408           # environment variable. 
    8409           INST_LINGUAS= 
    8410           if test -n "$ALL_LINGUAS"; then 
    8411             for presentlang in $ALL_LINGUAS; do 
    8412               useit=no 
    8413               if test "%UNSET%" != "$LINGUAS"; then 
    8414                 desiredlanguages="$LINGUAS" 
    8415               else 
    8416                 desiredlanguages="$ALL_LINGUAS" 
    8417               fi 
    8418               for desiredlang in $desiredlanguages; do 
    8419                 # Use the presentlang catalog if desiredlang is 
    8420                 #   a. equal to presentlang, or 
    8421                 #   b. a variant of presentlang (because in this case, 
    8422                 #      presentlang can be used as a fallback for messages 
    8423                 #      which are not translated in the desiredlang catalog). 
    8424                 case "$desiredlang" in 
    8425                   "$presentlang"*) useit=yes;; 
    8426                 esac 
    8427               done 
    8428               if test $useit = yes; then 
    8429                 INST_LINGUAS="$INST_LINGUAS $presentlang" 
    8430               fi 
    8431             done 
    8432           fi 
    8433           CATALOGS= 
    8434           if test -n "$INST_LINGUAS"; then 
    8435             for lang in $INST_LINGUAS; do 
    8436               CATALOGS="$CATALOGS $lang.gmo" 
    8437             done 
    8438           fi 
    8439           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 
    8440           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" 
    8441           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 
    8442             if test -f "$f"; then 
    8443               case "$f" in 
    8444                 *.orig | *.bak | *~) ;; 
    8445                 *) cat "$f" >> "$ac_dir/Makefile" ;; 
    8446               esac 
    8447             fi 
    8448           done 
    8449         fi 
    8450         ;; 
    8451       esac 
    8452     done]], 
    8453    [# Capture the value of obsolete ALL_LINGUAS because we need it to compute 
    8454     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 
    8455     # from automake < 1.5. 
    8456     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 
    8457     # Capture the value of LINGUAS because we need it to compute CATALOGS. 
    8458     LINGUAS="${LINGUAS-%UNSET%}" 
    8459    ]) 
    8460 ]) 
    8461  
    8462 dnl Postprocesses a Makefile in a directory containing PO files. 
    8463 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], 
    8464 [ 
    8465   # When this code is run, in config.status, two variables have already been 
    8466   # set: 
    8467   # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, 
    8468   # - LINGUAS is the value of the environment variable LINGUAS at configure 
    8469   #   time. 
    8470  
    8471 changequote(,)dnl 
    8472   # Adjust a relative srcdir. 
    8473   ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 
    8474   ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 
    8475   ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 
    8476   # In autoconf-2.13 it is called $ac_given_srcdir. 
    8477   # In autoconf-2.50 it is called $srcdir. 
    8478   test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 
    8479   case "$ac_given_srcdir" in 
    8480     .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 
    8481     /*) top_srcdir="$ac_given_srcdir" ;; 
    8482     *)  top_srcdir="$ac_dots$ac_given_srcdir" ;; 
    8483   esac 
    8484  
    8485   # Find a way to echo strings without interpreting backslash. 
    8486   if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then 
    8487     gt_echo='echo' 
    8488   else 
    8489     if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then 
    8490       gt_echo='printf %s\n' 
    8491     else 
    8492       echo_func () { 
    8493         cat <<EOT 
    8494 $* 
    8495 EOT 
    8496       } 
    8497       gt_echo='echo_func' 
    8498     fi 
    8499   fi 
    8500  
    8501   # A sed script that extracts the value of VARIABLE from a Makefile. 
    8502   sed_x_variable=' 
    8503 # Test if the hold space is empty. 
    8504 x 
    8505 s/P/P/ 
    8506 x 
    8507 ta 
    8508 # Yes it was empty. Look if we have the expected variable definition. 
    8509 /^[      ]*VARIABLE[     ]*=/{ 
    8510   # Seen the first line of the variable definition. 
    8511   s/^[   ]*VARIABLE[     ]*=// 
    8512   ba 
    8513 } 
    8514 bd 
    8515 :a 
    8516 # Here we are processing a line from the variable definition. 
    8517 # Remove comment, more precisely replace it with a space. 
    8518 s/#.*$/ / 
    8519 # See if the line ends in a backslash. 
    8520 tb 
    8521 :b 
    8522 s/\\$// 
    8523 # Print the line, without the trailing backslash. 
    8524 p 
    8525 tc 
    8526 # There was no trailing backslash. The end of the variable definition is 
    8527 # reached. Clear the hold space. 
    8528 s/^.*$// 
    8529 x 
    8530 bd 
    8531 :c 
    8532 # A trailing backslash means that the variable definition continues in the 
    8533 # next line. Put a nonempty string into the hold space to indicate this. 
    8534 s/^.*$/P/ 
    8535 x 
    8536 :d 
    8537 ' 
    8538 changequote([,])dnl 
    8539  
    8540   # Set POTFILES to the value of the Makefile variable POTFILES. 
    8541   sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'` 
    8542   POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"` 
    8543   # Compute POTFILES_DEPS as 
    8544   #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) 
    8545   POTFILES_DEPS= 
    8546   for file in $POTFILES; do 
    8547     POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file" 
    8548   done 
    8549   POMAKEFILEDEPS="" 
    8550  
    8551   if test -n "$OBSOLETE_ALL_LINGUAS"; then 
    8552     test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 
    8553   fi 
    8554   if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 
    8555     # The LINGUAS file contains the set of available languages. 
    8556     ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 
    8557     POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 
    8558   else 
    8559     # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. 
    8560     sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'` 
    8561     ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` 
    8562   fi 
    8563   # Hide the ALL_LINGUAS assigment from automake < 1.5. 
    8564   eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 
    8565   # Compute POFILES 
    8566   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 
    8567   # Compute UPDATEPOFILES 
    8568   # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 
    8569   # Compute DUMMYPOFILES 
    8570   # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 
    8571   # Compute GMOFILES 
    8572   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 
    8573   # Compute PROPERTIESFILES 
    8574   # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties) 
    8575   # Compute CLASSFILES 
    8576   # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class) 
    8577   # Compute QMFILES 
    8578   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm) 
    8579   # Compute MSGFILES 
    8580   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg) 
    8581   # Compute RESOURCESDLLFILES 
    8582   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll) 
    8583   case "$ac_given_srcdir" in 
    8584     .) srcdirpre= ;; 
    8585     *) srcdirpre='$(srcdir)/' ;; 
    8586   esac 
    8587   POFILES= 
    8588   UPDATEPOFILES= 
    8589   DUMMYPOFILES= 
    8590   GMOFILES= 
    8591   PROPERTIESFILES= 
    8592   CLASSFILES= 
    8593   QMFILES= 
    8594   MSGFILES= 
    8595   RESOURCESDLLFILES= 
    8596   for lang in $ALL_LINGUAS; do 
    8597     POFILES="$POFILES $srcdirpre$lang.po" 
    8598     UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 
    8599     DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 
    8600     GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 
    8601     PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties" 
    8602     CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class" 
    8603     QMFILES="$QMFILES $srcdirpre$lang.qm" 
    8604     frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 
    8605     MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" 
    8606     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/'` 
    8607     RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll" 
    8608   done 
    8609   # CATALOGS depends on both $ac_dir and the user's LINGUAS 
    8610   # environment variable. 
    8611   INST_LINGUAS= 
    8612   if test -n "$ALL_LINGUAS"; then 
    8613     for presentlang in $ALL_LINGUAS; do 
    8614       useit=no 
    8615       if test "%UNSET%" != "$LINGUAS"; then 
    8616         desiredlanguages="$LINGUAS" 
    8617       else 
    8618         desiredlanguages="$ALL_LINGUAS" 
    8619       fi 
    8620       for desiredlang in $desiredlanguages; do 
    8621         # Use the presentlang catalog if desiredlang is 
    8622         #   a. equal to presentlang, or 
    8623         #   b. a variant of presentlang (because in this case, 
    8624         #      presentlang can be used as a fallback for messages 
    8625         #      which are not translated in the desiredlang catalog). 
    8626         case "$desiredlang" in 
    8627           "$presentlang"*) useit=yes;; 
    8628         esac 
    8629       done 
    8630       if test $useit = yes; then 
    8631         INST_LINGUAS="$INST_LINGUAS $presentlang" 
    8632       fi 
    8633     done 
    8634   fi 
    8635   CATALOGS= 
    8636   JAVACATALOGS= 
    8637   QTCATALOGS= 
    8638   TCLCATALOGS= 
    8639   CSHARPCATALOGS= 
    8640   if test -n "$INST_LINGUAS"; then 
    8641     for lang in $INST_LINGUAS; do 
    8642       CATALOGS="$CATALOGS $lang.gmo" 
    8643       JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties" 
    8644       QTCATALOGS="$QTCATALOGS $lang.qm" 
    8645       frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 
    8646       TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" 
    8647       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/'` 
    8648       CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" 
    8649     done 
    8650   fi 
    8651  
    8652   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" 
    8653   if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then 
    8654     # Add dependencies that cannot be formulated as a simple suffix rule. 
    8655     for lang in $ALL_LINGUAS; do 
    8656       frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 
    8657       cat >> "$ac_file.tmp" <<EOF 
    8658 $frobbedlang.msg: $lang.po 
    8659         @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ 
    8660         \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } 
    8661 EOF 
    8662     done 
    8663   fi 
    8664   if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then 
    8665     # Add dependencies that cannot be formulated as a simple suffix rule. 
    8666     for lang in $ALL_LINGUAS; do 
    8667       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/'` 
    8668       cat >> "$ac_file.tmp" <<EOF 
    8669 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po 
    8670         @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ 
    8671         \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } 
    8672 EOF 
    8673     done 
    8674   fi 
    8675   if test -n "$POMAKEFILEDEPS"; then 
    8676     cat >> "$ac_file.tmp" <<EOF 
    8677 Makefile: $POMAKEFILEDEPS 
    8678 EOF 
    8679   fi 
    8680   mv "$ac_file.tmp" "$ac_file" 
    8681 ]) 
    8682  
    8683 # progtest.m4 serial 4 (gettext-0.14.2) 
    8684 dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc. 
    8685 dnl This file is free software; the Free Software Foundation 
    8686 dnl gives unlimited permission to copy and/or distribute it, 
    8687 dnl with or without modifications, as long as this notice is preserved. 
    8688 dnl 
    8689 dnl This file can can be used in projects which are not available under 
    8690 dnl the GNU General Public License or the GNU Library General Public 
    8691 dnl License but which still want to provide support for the GNU gettext 
    8692 dnl functionality. 
    8693 dnl Please note that the actual code of the GNU gettext library is covered 
    8694 dnl by the GNU Library General Public License, and the rest of the GNU 
    8695 dnl gettext package package is covered by the GNU General Public License. 
    8696 dnl They are *not* in the public domain. 
    8697  
    8698 dnl Authors: 
    8699 dnl   Ulrich Drepper <drepper@cygnus.com>, 1996. 
    8700  
    8701 AC_PREREQ(2.50) 
    8702  
    8703 # Search path for a program which passes the given test. 
    8704  
    8705 dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 
    8706 dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 
    8707 AC_DEFUN([AM_PATH_PROG_WITH_TEST], 
    8708 [ 
    8709 # Prepare PATH_SEPARATOR. 
    8710 # The user is always right. 
    8711 if test "${PATH_SEPARATOR+set}" != set; then 
    8712   echo "#! /bin/sh" >conf$$.sh 
    8713   echo  "exit 0"   >>conf$$.sh 
    8714   chmod +x conf$$.sh 
    8715   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 
    8716     PATH_SEPARATOR=';' 
    8717   else 
    8718     PATH_SEPARATOR=: 
    8719   fi 
    8720   rm -f conf$$.sh 
    8721 fi 
    8722  
    8723 # Find out how to test for executable files. Don't use a zero-byte file, 
    8724 # as systems may use methods other than mode bits to determine executability. 
    8725 cat >conf$$.file <<_ASEOF 
    8726 #! /bin/sh 
    8727 exit 0 
    8728 _ASEOF 
    8729 chmod +x conf$$.file 
    8730 if test -x conf$$.file >/dev/null 2>&1; then 
    8731   ac_executable_p="test -x" 
    8732 else 
    8733   ac_executable_p="test -f" 
    8734 fi 
    8735 rm -f conf$$.file 
    8736  
    8737 # Extract the first word of "$2", so it can be a program name with args. 
    8738 set dummy $2; ac_word=[$]2 
    8739 AC_MSG_CHECKING([for $ac_word]) 
    8740 AC_CACHE_VAL(ac_cv_path_$1, 
    8741 [case "[$]$1" in 
    8742   [[\\/]]* | ?:[[\\/]]*) 
    8743     ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 
    8744     ;; 
    8745   *) 
    8746     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 
    8747     for ac_dir in ifelse([$5], , $PATH, [$5]); do 
    8748       IFS="$ac_save_IFS" 
    8749       test -z "$ac_dir" && ac_dir=. 
    8750       for ac_exec_ext in '' $ac_executable_extensions; do 
    8751         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 
    8752           echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD 
    8753           if [$3]; then 
    8754             ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" 
    8755             break 2 
    8756           fi 
    8757         fi 
    8758       done 
    8759     done 
    8760     IFS="$ac_save_IFS" 
    8761 dnl If no 4th arg is given, leave the cache variable unset, 
    8762 dnl so AC_PATH_PROGS will keep looking. 
    8763 ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 
    8764 ])dnl 
    8765     ;; 
    8766 esac])dnl 
    8767 $1="$ac_cv_path_$1" 
    8768 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 
    8769   AC_MSG_RESULT([$]$1) 
    8770 else 
    8771   AC_MSG_RESULT(no) 
    8772 fi 
    8773 AC_SUBST($1)dnl 
    8774 ]) 
    87756757 
    87766758# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc. 
     
    96187600]) # _AM_PROG_TAR 
    96197601 
     7602m4_include([m4/gettext.m4]) 
     7603m4_include([m4/iconv.m4]) 
     7604m4_include([m4/lib-ld.m4]) 
     7605m4_include([m4/lib-link.m4]) 
     7606m4_include([m4/lib-prefix.m4]) 
     7607m4_include([m4/nls.m4]) 
     7608m4_include([m4/po.m4]) 
     7609m4_include([m4/progtest.m4]) 
    96207610m4_include([acinclude.m4]) 
  • trunk/fm_gui/configure

    r213 r220  
    770770#endif" 
    771771 
    772 gt_needs= 
    773772ac_subst_vars='SHELL 
    774773PATH_SEPARATOR 
     
    19121911fi 
    19131912 
    1914 gt_needs="$gt_needs " 
    19151913# Check that the precious variables saved in the cache have kept the same 
    19161914# value. 
     
    43794377*-*-irix6*) 
    43804378  # Find out which ABI we are using. 
    4381   echo '#line 4381 "configure"' > conftest.$ac_ext 
     4379  echo '#line 4379 "configure"' > conftest.$ac_ext 
    43824380  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
    43834381  (eval $ac_compile) 2>&5 
     
    74117409   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    74127410   -e 's:$: $lt_compiler_flag:'` 
    7413    (eval echo "\"\$as_me:7413: $lt_compile\"" >&5) 
     7411   (eval echo "\"\$as_me:7411: $lt_compile\"" >&5) 
    74147412   (eval "$lt_compile" 2>conftest.err) 
    74157413   ac_status=$? 
    74167414   cat conftest.err >&5 
    7417    echo "$as_me:7417: \$? = $ac_status" >&5 
     7415   echo "$as_me:7415: \$? = $ac_status" >&5 
    74187416   if (exit $ac_status) && test -s "$ac_outfile"; then 
    74197417     # The compiler can only warn and ignore the option if not recognized 
     
    77017699   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    77027700   -e 's:$: $lt_compiler_flag:'` 
    7703    (eval echo "\"\$as_me:7703: $lt_compile\"" >&5) 
     7701   (eval echo "\"\$as_me:7701: $lt_compile\"" >&5) 
    77047702   (eval "$lt_compile" 2>conftest.err) 
    77057703   ac_status=$? 
    77067704   cat conftest.err >&5 
    7707    echo "$as_me:7707: \$? = $ac_status" >&5 
     7705   echo "$as_me:7705: \$? = $ac_status" >&5 
    77087706   if (exit $ac_status) && test -s "$ac_outfile"; then 
    77097707     # The compiler can only warn and ignore the option if not recognized 
     
    78057803   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    78067804   -e 's:$: $lt_compiler_flag:'` 
    7807    (eval echo "\"\$as_me:7807: $lt_compile\"" >&5) 
     7805   (eval echo "\"\$as_me:7805: $lt_compile\"" >&5) 
    78087806   (eval "$lt_compile" 2>out/conftest.err) 
    78097807   ac_status=$? 
    78107808   cat out/conftest.err >&5 
    7811    echo "$as_me:7811: \$? = $ac_status" >&5 
     7809   echo "$as_me:7809: \$? = $ac_status" >&5 
    78127810   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    78137811   then 
     
    1016710165  lt_status=$lt_dlunknown 
    1016810166  cat > conftest.$ac_ext <<EOF 
    10169 #line 10169 "configure" 
     10167#line 10167 "configure" 
    1017010168#include "confdefs.h" 
    1017110169 
     
    1026710265  lt_status=$lt_dlunknown 
    1026810266  cat > conftest.$ac_ext <<EOF 
    10269 #line 10269 "configure" 
     10267#line 10267 "configure" 
    1027010268#include "confdefs.h" 
    1027110269 
     
    1268712685   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1268812686   -e 's:$: $lt_compiler_flag:'` 
    12689    (eval echo "\"\$as_me:12689: $lt_compile\"" >&5) 
     12687   (eval echo "\"\$as_me:12687: $lt_compile\"" >&5) 
    1269012688   (eval "$lt_compile" 2>conftest.err) 
    1269112689   ac_status=$? 
    1269212690   cat conftest.err >&5 
    12693    echo "$as_me:12693: \$? = $ac_status" >&5 
     12691   echo "$as_me:12691: \$? = $ac_status" >&5 
    1269412692   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1269512693     # The compiler can only warn and ignore the option if not recognized 
     
    1279112789   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1279212790   -e 's:$: $lt_compiler_flag:'` 
    12793    (eval echo "\"\$as_me:12793: $lt_compile\"" >&5) 
     12791   (eval echo "\"\$as_me:12791: $lt_compile\"" >&5) 
    1279412792   (eval "$lt_compile" 2>out/conftest.err) 
    1279512793   ac_status=$? 
    1279612794   cat out/conftest.err >&5 
    12797    echo "$as_me:12797: \$? = $ac_status" >&5 
     12795   echo "$as_me:12795: \$? = $ac_status" >&5 
    1279812796   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1279912797   then 
     
    1436814366   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1436914367   -e 's:$: $lt_compiler_flag:'` 
    14370    (eval echo "\"\$as_me:14370: $lt_compile\"" >&5) 
     14368   (eval echo "\"\$as_me:14368: $lt_compile\"" >&5) 
    1437114369   (eval "$lt_compile" 2>conftest.err) 
    1437214370   ac_status=$? 
    1437314371   cat conftest.err >&5 
    14374    echo "$as_me:14374: \$? = $ac_status" >&5 
     14372   echo "$as_me:14372: \$? = $ac_status" >&5 
    1437514373   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1437614374     # The compiler can only warn and ignore the option if not recognized 
     
    1447214470   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1447314471   -e 's:$: $lt_compiler_flag:'` 
    14474    (eval echo "\"\$as_me:14474: $lt_compile\"" >&5) 
     14472   (eval echo "\"\$as_me:14472: $lt_compile\"" >&5) 
    1447514473   (eval "$lt_compile" 2>out/conftest.err) 
    1447614474   ac_status=$? 
    1447714475   cat out/conftest.err >&5 
    14478    echo "$as_me:14478: \$? = $ac_status" >&5 
     14476   echo "$as_me:14476: \$? = $ac_status" >&5 
    1447914477   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1448014478   then 
     
    1667216670   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1667316671   -e 's:$: $lt_compiler_flag:'` 
    16674    (eval echo "\"\$as_me:16674: $lt_compile\"" >&5) 
     16672   (eval echo "\"\$as_me:16672: $lt_compile\"" >&5) 
    1667516673   (eval "$lt_compile" 2>conftest.err) 
    1667616674   ac_status=$? 
    1667716675   cat conftest.err >&5 
    16678    echo "$as_me:16678: \$? = $ac_status" >&5 
     16676   echo "$as_me:16676: \$? = $ac_status" >&5 
    1667916677   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1668016678     # The compiler can only warn and ignore the option if not recognized 
     
    1696216960   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1696316961   -e 's:$: $lt_compiler_flag:'` 
    16964    (eval echo "\"\$as_me:16964: $lt_compile\"" >&5) 
     16962   (eval echo "\"\$as_me:16962: $lt_compile\"" >&5) 
    1696516963   (eval "$lt_compile" 2>conftest.err) 
    1696616964   ac_status=$? 
    1696716965   cat conftest.err >&5 
    16968    echo "$as_me:16968: \$? = $ac_status" >&5 
     16966   echo "$as_me:16966: \$? = $ac_status" >&5 
    1696916967   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1697016968     # The compiler can only warn and ignore the option if not recognized 
     
    1706617064   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1706717065   -e 's:$: $lt_compiler_flag:'` 
    17068    (eval echo "\"\$as_me:17068: $lt_compile\"" >&5) 
     17066   (eval echo "\"\$as_me:17066: $lt_compile\"" >&5) 
    1706917067   (eval "$lt_compile" 2>out/conftest.err) 
    1707017068   ac_status=$? 
    1707117069   cat out/conftest.err >&5 
    17072    echo "$as_me:17072: \$? = $ac_status" >&5 
     17070   echo "$as_me:17070: \$? = $ac_status" >&5 
    1707317071   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1707417072   then 
     
    2029220290          found_a= 
    2029320291          if test $use_additional = yes; then 
    20294             if test -n "$shlibext" \ 
    20295                && { test -f "$additional_libdir/lib$name.$shlibext" \ 
    20296                     || { test "$shlibext" = dll \ 
    20297                          && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 
     20292            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 
    2029820293              found_dir="$additional_libdir" 
    20299               if test -f "$additional_libdir/lib$name.$shlibext"; then 
    20300                 found_so="$additional_libdir/lib$name.$shlibext" 
    20301               else 
    20302                 found_so="$additional_libdir/lib$name.dll.a" 
    20303               fi 
     20294              found_so="$additional_libdir/lib$name.$shlibext" 
    2030420295              if test -f "$additional_libdir/lib$name.la"; then 
    2030520296                found_la="$additional_libdir/lib$name.la" 
     
    2032920320                -L*) 
    2033020321                  dir=`echo "X$x" | sed -e 's/^X-L//'` 
    20331                   if test -n "$shlibext" \ 
    20332                      && { test -f "$dir/lib$name.$shlibext" \ 
    20333                           || { test "$shlibext" = dll \ 
    20334                                && test -f "$dir/lib$name.dll.a"; }; }; then 
     20322                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 
    2033520323                    found_dir="$dir" 
    20336                     if test -f "$dir/lib$name.$shlibext"; then 
    20337                       found_so="$dir/lib$name.$shlibext" 
    20338                     else 
    20339                       found_so="$dir/lib$name.dll.a" 
    20340                     fi 
     20324                    found_so="$dir/lib$name.$shlibext" 
    2034120325                    if test -f "$dir/lib$name.la"; then 
    2034220326                      found_la="$dir/lib$name.la" 
     
    2062120605 
    2062220606 
    20623  
    20624  
    20625  
    20626  
    20627  
    20628  
    20629  
    2063020607    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 
    2063120608echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } 
     
    2076420741  POSUB= 
    2076520742 
    20766     case " $gt_needs " in 
    20767     *" need-formatstring-macros "*) gt_api_version=3 ;; 
    20768     *" need-ngettext "*) gt_api_version=2 ;; 
    20769     *) gt_api_version=1 ;; 
    20770   esac 
    20771   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 
    20772   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 
    20773  
    2077420743    if test "$USE_NLS" = "yes"; then 
    2077520744    gt_use_preinstalled_gnugettext=no 
    2077620745 
    2077720746 
    20778         if test $gt_api_version -ge 3; then 
    20779           gt_revision_test_code=' 
    20780 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 
    20781 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 
    20782 #endif 
    20783 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 
    20784 ' 
    20785         else 
    20786           gt_revision_test_code= 
    20787         fi 
    20788         if test $gt_api_version -ge 2; then 
    20789           gt_expression_test_code=' + * ngettext ("", "", 0)' 
    20790         else 
    20791           gt_expression_test_code= 
    20792         fi 
     20747 
     20748 
     20749 
    2079320750 
    2079420751        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 
    2079520752echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } 
    20796 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then 
     20753if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 
    2079720754  echo $ECHO_N "(cached) $ECHO_C" >&6 
    2079820755else 
     
    2080420761/* end confdefs.h.  */ 
    2080520762#include <libintl.h> 
    20806 $gt_revision_test_code 
    2080720763extern int _nl_msg_cat_cntr; 
    2080820764extern int *_nl_domain_bindings; 
     
    2081120767{ 
    2081220768bindtextdomain ("", ""); 
    20813 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 
     20769return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 
    2081420770  ; 
    2081520771  return 0; 
     
    2083420790       } && test -s conftest$ac_exeext && 
    2083520791       $as_test_x conftest$ac_exeext; then 
    20836   eval "$gt_func_gnugettext_libc=yes" 
     20792  gt_cv_func_gnugettext1_libc=yes 
    2083720793else 
    2083820794  echo "$as_me: failed program was:" >&5 
    2083920795sed 's/^/| /' conftest.$ac_ext >&5 
    2084020796 
    20841         eval "$gt_func_gnugettext_libc=no" 
     20797        gt_cv_func_gnugettext1_libc=no 
    2084220798fi 
    2084320799 
     
    2084520801      conftest$ac_exeext conftest.$ac_ext 
    2084620802fi 
    20847 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'` 
    20848                { echo "$as_me:$LINENO: result: $ac_res" >&5 
    20849 echo "${ECHO_T}$ac_res" >&6; } 
    20850  
    20851         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 
     20803{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 
     20804echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } 
     20805 
     20806        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 
    2085220807 
    2085320808 
     
    2109221047          found_a= 
    2109321048          if test $use_additional = yes; then 
    21094             if test -n "$shlibext" \ 
    21095                && { test -f "$additional_libdir/lib$name.$shlibext" \ 
    21096                     || { test "$shlibext" = dll \ 
    21097                          && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 
     21049            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 
    2109821050              found_dir="$additional_libdir" 
    21099               if test -f "$additional_libdir/lib$name.$shlibext"; then 
    21100                 found_so="$additional_libdir/lib$name.$shlibext" 
    21101               else 
    21102                 found_so="$additional_libdir/lib$name.dll.a" 
    21103               fi 
     21051              found_so="$additional_libdir/lib$name.$shlibext" 
    2110421052              if test -f "$additional_libdir/lib$name.la"; then 
    2110521053                found_la="$additional_libdir/lib$name.la" 
     
    2112921077                -L*) 
    2113021078                  dir=`echo "X$x" | sed -e 's/^X-L//'` 
    21131                   if test -n "$shlibext" \ 
    21132                      && { test -f "$dir/lib$name.$shlibext" \ 
    21133                           || { test "$shlibext" = dll \ 
    21134                                && test -f "$dir/lib$name.dll.a"; }; }; then 
     21079                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 
    2113521080                    found_dir="$dir" 
    21136                     if test -f "$dir/lib$name.$shlibext"; then 
    21137                       found_so="$dir/lib$name.$shlibext" 
    21138                     else 
    21139                       found_so="$dir/lib$name.dll.a" 
    21140                     fi 
     21081                    found_so="$dir/lib$name.$shlibext" 
    2114121082                    if test -f "$dir/lib$name.la"; then 
    2114221083                      found_la="$dir/lib$name.la" 
     
    2140621347          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 
    2140721348echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } 
    21408 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then 
     21349if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 
    2140921350  echo $ECHO_N "(cached) $ECHO_C" >&6 
    2141021351else 
     
    2142021361/* end confdefs.h.  */ 
    2142121362#include <libintl.h> 
    21422 $gt_revision_test_code 
    2142321363extern int _nl_msg_cat_cntr; 
    2142421364extern 
     
    2143121371{ 
    2143221372bindtextdomain ("", ""); 
    21433 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 
     21373return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 
    2143421374  ; 
    2143521375  return 0; 
     
    2145421394       } && test -s conftest$ac_exeext && 
    2145521395       $as_test_x conftest$ac_exeext; then 
    21456   eval "$gt_func_gnugettext_libintl=yes" 
     21396  gt_cv_func_gnugettext1_libintl=yes 
    2145721397else 
    2145821398  echo "$as_me: failed program was:" >&5 
    2145921399sed 's/^/| /' conftest.$ac_ext >&5 
    2146021400 
    21461         eval "$gt_func_gnugettext_libintl=no" 
     21401        gt_cv_func_gnugettext1_libintl=no 
    2146221402fi 
    2146321403 
    2146421404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
    2146521405      conftest$ac_exeext conftest.$ac_ext 
    21466                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 
     21406                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 
    2146721407              LIBS="$LIBS $LIBICONV" 
    2146821408              cat >conftest.$ac_ext <<_ACEOF 
     
    2147321413/* end confdefs.h.  */ 
    2147421414#include <libintl.h> 
    21475 $gt_revision_test_code 
    2147621415extern int _nl_msg_cat_cntr; 
    2147721416extern 
     
    2148421423{ 
    2148521424bindtextdomain ("", ""); 
    21486 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 
     21425return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 
    2148721426  ; 
    2148821427  return 0; 
     
    2150921448  LIBINTL="$LIBINTL $LIBICONV" 
    2151021449                LTLIBINTL="$LTLIBINTL $LTLIBICONV" 
    21511                 eval "$gt_func_gnugettext_libintl=yes" 
     21450                gt_cv_func_gnugettext1_libintl=yes 
    2151221451 
    2151321452else 
     
    2152421463            LIBS="$gt_save_LIBS" 
    2152521464fi 
    21526 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'` 
    21527                { echo "$as_me:$LINENO: result: $ac_res" >&5 
    21528 echo "${ECHO_T}$ac_res" >&6; } 
     21465{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 
     21466echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } 
    2152921467        fi 
    2153021468 
    21531                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 
    21532            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 
     21469                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 
     21470           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 
    2153321471                && test "$PACKAGE" != gettext-runtime \ 
    2153421472                && test "$PACKAGE" != gettext-tools; }; then 
     
    2157021508echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } 
    2157121509    if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
    21572       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 
     21510      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 
    2157321511        gt_source="external libintl" 
    2157421512      else 
     
    2158521523 
    2158621524    if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
    21587       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 
     21525      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 
    2158821526        { echo "$as_me:$LINENO: checking how to link with libintl" >&5 
    2158921527echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } 
     
    2601425952echo "" 
    2601525953echo "" 
     25954echo "Build options:" 
     25955if test "$br_cv_binreloc" = "yes"; then 
     25956echo "        binreloc support: yes" 
     25957else 
     25958echo "        binreloc support: no" 
     25959fi 
     25960echo "" 
    2601625961echo "Installation options:" 
    2601725962echo "        fm_gui will be installed to ${prefix}" 
  • trunk/fm_gui/configure.ac

    r213 r220  
    154154echo "" 
    155155echo "" 
     156echo "Build options:" 
     157if test "$br_cv_binreloc" = "yes"; then 
     158echo "        binreloc support: yes" 
     159else 
     160echo "        binreloc support: no" 
     161fi 
     162echo "" 
    156163echo "Installation options:" 
    157164echo "        fm_gui will be installed to ${prefix}" 
  • trunk/fm_gui/data/Makefile.in

    r213 r220  
    3636DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
    3737ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
    38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     38am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 
     39        $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 
     40        $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 
     41        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 
     42        $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 
    3943        $(top_srcdir)/configure.ac 
    4044am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
  • trunk/fm_gui/data/icons/Makefile.in

    r213 r220  
    3636DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
    3737ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
    38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     38am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 
     39        $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 
     40        $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 
     41        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 
     42        $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 
    3943        $(top_srcdir)/configure.ac 
    4044am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
  • trunk/fm_gui/src/Makefile.in

    r213 r220  
    3737DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
    3838ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
    39 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     39am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 
     40        $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 
     41        $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 
     42        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 
     43        $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 
    4044        $(top_srcdir)/configure.ac 
    4145am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
  • trunk/fm_gui/src/tx_widgets/Makefile.in

    r213 r220  
    3636DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
    3737ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
    38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     38am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 
     39        $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 
     40        $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 
     41        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 
     42        $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 
    3943        $(top_srcdir)/configure.ac 
    4044am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
  • trunk/fm_gui/src/tx_widgets/icons/Makefile.in

    r213 r220  
    3535DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
    3636ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
    37 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     37am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 
     38        $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 
     39        $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 
     40        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 
     41        $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 
    3842        $(top_srcdir)/configure.ac 
    3943am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
  • trunk/fm_server/Makefile.in

    r217 r220  
    4040        install-sh ltmain.sh missing mkinstalldirs 
    4141ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
    42 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     42am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 
     43        $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 
     44        $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 
     45        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 
     46        $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 
    4347        $(top_srcdir)/configure.ac 
    4448am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
  • trunk/fm_server/aclocal.m4

    r217 r220  
    1616You have another version of autoconf.  If you want to use that, 
    1717you should regenerate the build system entirely.], [63])]) 
    18  
    19 # gettext.m4 serial 59 (gettext-0.16.1) 
    20 dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. 
    21 dnl This file is free software; the Free Software Foundation 
    22 dnl gives unlimited permission to copy and/or distribute it, 
    23 dnl with or without modifications, as long as this notice is preserved. 
    24 dnl 
    25 dnl This file can can be used in projects which are not available under 
    26 dnl the GNU General Public License or the GNU Library General Public 
    27 dnl License but which still want to provide support for the GNU gettext 
    28 dnl functionality. 
    29 dnl Please note that the actual code of the GNU gettext library is covered 
    30 dnl by the GNU Library General Public License, and the rest of the GNU 
    31 dnl gettext package package is covered by the GNU General Public License. 
    32 dnl They are *not* in the public domain. 
    33  
    34 dnl Authors: 
    35 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 
    36 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2006. 
    37  
    38 dnl Macro to add for using GNU gettext. 
    39  
    40 dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). 
    41 dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The 
    42 dnl    default (if it is not specified or empty) is 'no-libtool'. 
    43 dnl    INTLSYMBOL should be 'external' for packages with no intl directory, 
    44 dnl    and 'no-libtool' or 'use-libtool' for packages with an intl directory. 
    45 dnl    If INTLSYMBOL is 'use-libtool', then a libtool library 
    46 dnl    $(top_builddir)/intl/libintl.la will be created (shared and/or static, 
    47 dnl    depending on --{enable,disable}-{shared,static} and on the presence of 
    48 dnl    AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library 
    49 dnl    $(top_builddir)/intl/libintl.a will be created. 
    50 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext 
    51 dnl    implementations (in libc or libintl) without the ngettext() function 
    52 dnl    will be ignored.  If NEEDSYMBOL is specified and is 
    53 dnl    'need-formatstring-macros', then GNU gettext implementations that don't 
    54 dnl    support the ISO C 99 <inttypes.h> formatstring macros will be ignored. 
    55 dnl INTLDIR is used to find the intl libraries.  If empty, 
    56 dnl    the value `$(top_builddir)/intl/' is used. 
    57 dnl 
    58 dnl The result of the configuration is one of three cases: 
    59 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled 
    60 dnl    and used. 
    61 dnl    Catalog format: GNU --> install in $(datadir) 
    62 dnl    Catalog extension: .mo after installation, .gmo in source tree 
    63 dnl 2) GNU gettext has been found in the system's C library. 
    64 dnl    Catalog format: GNU --> install in $(datadir) 
    65 dnl    Catalog extension: .mo after installation, .gmo in source tree 
    66 dnl 3) No internationalization, always use English msgid. 
    67 dnl    Catalog format: none 
    68 dnl    Catalog extension: none 
    69 dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. 
    70 dnl The use of .gmo is historical (it was needed to avoid overwriting the 
    71 dnl GNU format catalogs when building on a platform with an X/Open gettext), 
    72 dnl but we keep it in order not to force irrelevant filename changes on the 
    73 dnl maintainers. 
    74 dnl 
    75 AC_DEFUN([AM_GNU_GETTEXT], 
    76 [ 
    77   dnl Argument checking. 
    78   ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , 
    79     [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT 
    80 ])])])])]) 
    81   ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , 
    82     [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT 
    83 ])])])]) 
    84   define([gt_included_intl], 
    85     ifelse([$1], [external], 
    86       ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), 
    87       [yes])) 
    88   define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) 
    89   gt_NEEDS_INIT 
    90   AM_GNU_GETTEXT_NEED([$2]) 
    91  
    92   AC_REQUIRE([AM_PO_SUBDIRS])dnl 
    93   ifelse(gt_included_intl, yes, [ 
    94     AC_REQUIRE([AM_INTL_SUBDIR])dnl 
    95   ]) 
    96  
    97   dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. 
    98   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    99   AC_REQUIRE([AC_LIB_RPATH]) 
    100  
    101   dnl Sometimes libintl requires libiconv, so first search for libiconv. 
    102   dnl Ideally we would do this search only after the 
    103   dnl      if test "$USE_NLS" = "yes"; then 
    104   dnl        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 
    105   dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT 
    106   dnl the configure script would need to contain the same shell code 
    107   dnl again, outside any 'if'. There are two solutions: 
    108   dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. 
    109   dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. 
    110   dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not 
    111   dnl documented, we avoid it. 
    112   ifelse(gt_included_intl, yes, , [ 
    113     AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) 
    114   ]) 
    115  
    116   dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. 
    117   gt_INTL_MACOSX 
    118  
    119   dnl Set USE_NLS. 
    120   AC_REQUIRE([AM_NLS]) 
    121  
    122   ifelse(gt_included_intl, yes, [ 
    123     BUILD_INCLUDED_LIBINTL=no 
    124     USE_INCLUDED_LIBINTL=no 
    125   ]) 
    126   LIBINTL= 
    127   LTLIBINTL= 
    128   POSUB= 
    129  
    130   dnl Add a version number to the cache macros. 
    131   case " $gt_needs " in 
    132     *" need-formatstring-macros "*) gt_api_version=3 ;; 
    133     *" need-ngettext "*) gt_api_version=2 ;; 
    134     *) gt_api_version=1 ;; 
    135   esac 
    136   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 
    137   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 
    138  
    139   dnl If we use NLS figure out what method 
    140   if test "$USE_NLS" = "yes"; then 
    141     gt_use_preinstalled_gnugettext=no 
    142     ifelse(gt_included_intl, yes, [ 
    143       AC_MSG_CHECKING([whether included gettext is requested]) 
    144       AC_ARG_WITH(included-gettext, 
    145         [  --with-included-gettext use the GNU gettext library included here], 
    146         nls_cv_force_use_gnu_gettext=$withval, 
    147         nls_cv_force_use_gnu_gettext=no) 
    148       AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) 
    149  
    150       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 
    151       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 
    152     ]) 
    153         dnl User does not insist on using GNU NLS library.  Figure out what 
    154         dnl to use.  If GNU gettext is available we use this.  Else we have 
    155         dnl to fall back to GNU NLS library. 
    156  
    157         if test $gt_api_version -ge 3; then 
    158           gt_revision_test_code=' 
    159 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 
    160 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 
    161 #endif 
    162 changequote(,)dnl 
    163 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 
    164 changequote([,])dnl 
    165 ' 
    166         else 
    167           gt_revision_test_code= 
    168         fi 
    169         if test $gt_api_version -ge 2; then 
    170           gt_expression_test_code=' + * ngettext ("", "", 0)' 
    171         else 
    172           gt_expression_test_code= 
    173         fi 
    174  
    175         AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], 
    176          [AC_TRY_LINK([#include <libintl.h> 
    177 $gt_revision_test_code 
    178 extern int _nl_msg_cat_cntr; 
    179 extern int *_nl_domain_bindings;], 
    180             [bindtextdomain ("", ""); 
    181 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], 
    182             [eval "$gt_func_gnugettext_libc=yes"], 
    183             [eval "$gt_func_gnugettext_libc=no"])]) 
    184  
    185         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 
    186           dnl Sometimes libintl requires libiconv, so first search for libiconv. 
    187           ifelse(gt_included_intl, yes, , [ 
    188             AM_ICONV_LINK 
    189           ]) 
    190           dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL 
    191           dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) 
    192           dnl because that would add "-liconv" to LIBINTL and LTLIBINTL 
    193           dnl even if libiconv doesn't exist. 
    194           AC_LIB_LINKFLAGS_BODY([intl]) 
    195           AC_CACHE_CHECK([for GNU gettext in libintl], 
    196             [$gt_func_gnugettext_libintl], 
    197            [gt_save_CPPFLAGS="$CPPFLAGS" 
    198             CPPFLAGS="$CPPFLAGS $INCINTL" 
    199             gt_save_LIBS="$LIBS" 
    200             LIBS="$LIBS $LIBINTL" 
    201             dnl Now see whether libintl exists and does not depend on libiconv. 
    202             AC_TRY_LINK([#include <libintl.h> 
    203 $gt_revision_test_code 
    204 extern int _nl_msg_cat_cntr; 
    205 extern 
    206 #ifdef __cplusplus 
    207 "C" 
    208 #endif 
    209 const char *_nl_expand_alias (const char *);], 
    210               [bindtextdomain ("", ""); 
    211 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], 
    212               [eval "$gt_func_gnugettext_libintl=yes"], 
    213               [eval "$gt_func_gnugettext_libintl=no"]) 
    214             dnl Now see whether libintl exists and depends on libiconv. 
    215             if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 
    216               LIBS="$LIBS $LIBICONV" 
    217               AC_TRY_LINK([#include <libintl.h> 
    218 $gt_revision_test_code 
    219 extern int _nl_msg_cat_cntr; 
    220 extern 
    221 #ifdef __cplusplus 
    222 "C" 
    223 #endif 
    224 const char *_nl_expand_alias (const char *);], 
    225                 [bindtextdomain ("", ""); 
    226 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], 
    227                [LIBINTL="$LIBINTL $LIBICONV" 
    228                 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 
    229                 eval "$gt_func_gnugettext_libintl=yes" 
    230                ]) 
    231             fi 
    232             CPPFLAGS="$gt_save_CPPFLAGS" 
    233             LIBS="$gt_save_LIBS"]) 
    234         fi 
    235  
    236         dnl If an already present or preinstalled GNU gettext() is found, 
    237         dnl use it.  But if this macro is used in GNU gettext, and GNU 
    238         dnl gettext is already preinstalled in libintl, we update this 
    239         dnl libintl.  (Cf. the install rule in intl/Makefile.in.) 
    240         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 
    241            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 
    242                 && test "$PACKAGE" != gettext-runtime \ 
    243                 && test "$PACKAGE" != gettext-tools; }; then 
    244           gt_use_preinstalled_gnugettext=yes 
    245         else 
    246           dnl Reset the values set by searching for libintl. 
    247           LIBINTL= 
    248           LTLIBINTL= 
    249           INCINTL= 
    250         fi 
    251  
    252     ifelse(gt_included_intl, yes, [ 
    253         if test "$gt_use_preinstalled_gnugettext" != "yes"; then 
    254           dnl GNU gettext is not found in the C library. 
    255           dnl Fall back on included GNU gettext library. 
    256           nls_cv_use_gnu_gettext=yes 
    257         fi 
    258       fi 
    259  
    260       if test "$nls_cv_use_gnu_gettext" = "yes"; then 
    261         dnl Mark actions used to generate GNU NLS library. 
    262         BUILD_INCLUDED_LIBINTL=yes 
    263         USE_INCLUDED_LIBINTL=yes 
    264         LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" 
    265         LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" 
    266         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 
    267       fi 
    268  
    269       CATOBJEXT= 
    270       if test "$gt_use_preinstalled_gnugettext" = "yes" \ 
    271          || test "$nls_cv_use_gnu_gettext" = "yes"; then 
    272         dnl Mark actions to use GNU gettext tools. 
    273         CATOBJEXT=.gmo 
    274       fi 
    275     ]) 
    276  
    277     if test -n "$INTL_MACOSX_LIBS"; then 
    278       if test "$gt_use_preinstalled_gnugettext" = "yes" \ 
    279          || test "$nls_cv_use_gnu_gettext" = "yes"; then 
    280         dnl Some extra flags are needed during linking. 
    281         LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 
    282         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 
    283       fi 
    284     fi 
    285  
    286     if test "$gt_use_preinstalled_gnugettext" = "yes" \ 
    287        || test "$nls_cv_use_gnu_gettext" = "yes"; then 
    288       AC_DEFINE(ENABLE_NLS, 1, 
    289         [Define to 1 if translation of program messages to the user's native language 
    290    is requested.]) 
    291     else 
    292       USE_NLS=no 
    293     fi 
    294   fi 
    295  
    296   AC_MSG_CHECKING([whether to use NLS]) 
    297   AC_MSG_RESULT([$USE_NLS]) 
    298   if test "$USE_NLS" = "yes"; then 
    299     AC_MSG_CHECKING([where the gettext function comes from]) 
    300     if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
    301       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 
    302         gt_source="external libintl" 
    303       else 
    304         gt_source="libc" 
    305       fi 
    306     else 
    307       gt_source="included intl directory" 
    308     fi 
    309     AC_MSG_RESULT([$gt_source]) 
    310   fi 
    311  
    312   if test "$USE_NLS" = "yes"; then 
    313  
    314     if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
    315       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 
    316         AC_MSG_CHECKING([how to link with libintl]) 
    317         AC_MSG_RESULT([$LIBINTL]) 
    318         AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) 
    319       fi 
    320  
    321       dnl For backward compatibility. Some packages may be using this. 
    322       AC_DEFINE(HAVE_GETTEXT, 1, 
    323        [Define if the GNU gettext() function is already present or preinstalled.]) 
    324       AC_DEFINE(HAVE_DCGETTEXT, 1, 
    325        [Define if the GNU dcgettext() function is already present or preinstalled.]) 
    326     fi 
    327  
    328     dnl We need to process the po/ directory. 
    329     POSUB=po 
    330   fi 
    331  
    332   ifelse(gt_included_intl, yes, [ 
    333     dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL 
    334     dnl to 'yes' because some of the testsuite requires it. 
    335     if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 
    336       BUILD_INCLUDED_LIBINTL=yes 
    337     fi 
    338  
    339     dnl Make all variables we use known to autoconf. 
    340     AC_SUBST(BUILD_INCLUDED_LIBINTL) 
    341     AC_SUBST(USE_INCLUDED_LIBINTL) 
    342     AC_SUBST(CATOBJEXT) 
    343  
    344     dnl For backward compatibility. Some configure.ins may be using this. 
    345     nls_cv_header_intl= 
    346     nls_cv_header_libgt= 
    347  
    348     dnl For backward compatibility. Some Makefiles may be using this. 
    349     DATADIRNAME=share 
    350     AC_SUBST(DATADIRNAME) 
    351  
    352     dnl For backward compatibility. Some Makefiles may be using this. 
    353     INSTOBJEXT=.mo 
    354     AC_SUBST(INSTOBJEXT) 
    355  
    356     dnl For backward compatibility. Some Makefiles may be using this. 
    357     GENCAT=gencat 
    358     AC_SUBST(GENCAT) 
    359  
    360     dnl For backward compatibility. Some Makefiles may be using this. 
    361     INTLOBJS= 
    362     if test "$USE_INCLUDED_LIBINTL" = yes; then 
    363       INTLOBJS="\$(GETTOBJS)" 
    364     fi 
    365     AC_SUBST(INTLOBJS) 
    366  
    367     dnl Enable libtool support if the surrounding package wishes it. 
    368     INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix 
    369     AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) 
    370   ]) 
    371  
    372   dnl For backward compatibility. Some Makefiles may be using this. 
    373   INTLLIBS="$LIBINTL" 
    374   AC_SUBST(INTLLIBS) 
    375  
    376   dnl Make all documented variables known to autoconf. 
    377   AC_SUBST(LIBINTL) 
    378   AC_SUBST(LTLIBINTL) 
    379   AC_SUBST(POSUB) 
    380 ]) 
    381  
    382  
    383 dnl Checks for special options needed on MacOS X. 
    384 dnl Defines INTL_MACOSX_LIBS. 
    385 AC_DEFUN([gt_INTL_MACOSX], 
    386 [ 
    387   dnl Check for API introduced in MacOS X 10.2. 
    388   AC_CACHE_CHECK([for CFPreferencesCopyAppValue], 
    389     gt_cv_func_CFPreferencesCopyAppValue, 
    390     [gt_save_LIBS="$LIBS" 
    391      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 
    392      AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>], 
    393        [CFPreferencesCopyAppValue(NULL, NULL)], 
    394        [gt_cv_func_CFPreferencesCopyAppValue=yes], 
    395        [gt_cv_func_CFPreferencesCopyAppValue=no]) 
    396      LIBS="$gt_save_LIBS"]) 
    397   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 
    398     AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, 
    399       [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) 
    400   fi 
    401   dnl Check for API introduced in MacOS X 10.3. 
    402   AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, 
    403     [gt_save_LIBS="$LIBS" 
    404      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 
    405      AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();], 
    406        [gt_cv_func_CFLocaleCopyCurrent=yes], 
    407        [gt_cv_func_CFLocaleCopyCurrent=no]) 
    408      LIBS="$gt_save_LIBS"]) 
    409   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 
    410     AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, 
    411       [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) 
    412   fi 
    413   INTL_MACOSX_LIBS= 
    414   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 
    415     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 
    416   fi 
    417   AC_SUBST([INTL_MACOSX_LIBS]) 
    418 ]) 
    419  
    420  
    421 dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. 
    422 m4_define([gt_NEEDS_INIT], 
    423 [ 
    424   m4_divert_text([DEFAULTS], [gt_needs=]) 
    425   m4_define([gt_NEEDS_INIT], []) 
    426 ]) 
    427  
    428  
    429 dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) 
    430 AC_DEFUN([AM_GNU_GETTEXT_NEED], 
    431 [ 
    432   m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) 
    433 ]) 
    434  
    435  
    436 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) 
    437 AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) 
    438  
    439 # iconv.m4 serial AM4 (gettext-0.11.3) 
    440 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. 
    441 dnl This file is free software; the Free Software Foundation 
    442 dnl gives unlimited permission to copy and/or distribute it, 
    443 dnl with or without modifications, as long as this notice is preserved. 
    444  
    445 dnl From Bruno Haible. 
    446  
    447 AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], 
    448 [ 
    449   dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. 
    450   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    451   AC_REQUIRE([AC_LIB_RPATH]) 
    452  
    453   dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 
    454   dnl accordingly. 
    455   AC_LIB_LINKFLAGS_BODY([iconv]) 
    456 ]) 
    457  
    458 AC_DEFUN([AM_ICONV_LINK], 
    459 [ 
    460   dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and 
    461   dnl those with the standalone portable GNU libiconv installed). 
    462  
    463   dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV 
    464   dnl accordingly. 
    465   AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) 
    466  
    467   dnl Add $INCICONV to CPPFLAGS before performing the following checks, 
    468   dnl because if the user has installed libiconv and not disabled its use 
    469   dnl via --without-libiconv-prefix, he wants to use it. The first 
    470   dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. 
    471   am_save_CPPFLAGS="$CPPFLAGS" 
    472   AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) 
    473  
    474   AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ 
    475     am_cv_func_iconv="no, consider installing GNU libiconv" 
    476     am_cv_lib_iconv=no 
    477     AC_TRY_LINK([#include <stdlib.h> 
    478 #include <iconv.h>], 
    479       [iconv_t cd = iconv_open("",""); 
    480        iconv(cd,NULL,NULL,NULL,NULL); 
    481        iconv_close(cd);], 
    482       am_cv_func_iconv=yes) 
    483     if test "$am_cv_func_iconv" != yes; then 
    484       am_save_LIBS="$LIBS" 
    485       LIBS="$LIBS $LIBICONV" 
    486       AC_TRY_LINK([#include <stdlib.h> 
    487 #include <iconv.h>], 
    488         [iconv_t cd = iconv_open("",""); 
    489          iconv(cd,NULL,NULL,NULL,NULL); 
    490          iconv_close(cd);], 
    491         am_cv_lib_iconv=yes 
    492         am_cv_func_iconv=yes) 
    493       LIBS="$am_save_LIBS" 
    494     fi 
    495   ]) 
    496   if test "$am_cv_func_iconv" = yes; then 
    497     AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) 
    498   fi 
    499   if test "$am_cv_lib_iconv" = yes; then 
    500     AC_MSG_CHECKING([how to link with libiconv]) 
    501     AC_MSG_RESULT([$LIBICONV]) 
    502   else 
    503     dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV 
    504     dnl either. 
    505     CPPFLAGS="$am_save_CPPFLAGS" 
    506     LIBICONV= 
    507     LTLIBICONV= 
    508   fi 
    509   AC_SUBST(LIBICONV) 
    510   AC_SUBST(LTLIBICONV) 
    511 ]) 
    512  
    513 AC_DEFUN([AM_ICONV], 
    514 [ 
    515   AM_ICONV_LINK 
    516   if test "$am_cv_func_iconv" = yes; then 
    517     AC_MSG_CHECKING([for iconv declaration]) 
    518     AC_CACHE_VAL(am_cv_proto_iconv, [ 
    519       AC_TRY_COMPILE([ 
    520 #include <stdlib.h> 
    521 #include <iconv.h> 
    522 extern 
    523 #ifdef __cplusplus 
    524 "C" 
    525 #endif 
    526 #if defined(__STDC__) || defined(__cplusplus) 
    527 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 
    528 #else 
    529 size_t iconv(); 
    530 #endif 
    531 ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") 
    532       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);"]) 
    533     am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 
    534     AC_MSG_RESULT([$]{ac_t:- 
    535          }[$]am_cv_proto_iconv) 
    536     AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, 
    537       [Define as const if the declaration of iconv() needs const.]) 
    538   fi 
    539 ]) 
    540  
    541 # lib-ld.m4 serial 3 (gettext-0.13) 
    542 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. 
    543 dnl This file is free software; the Free Software Foundation 
    544 dnl gives unlimited permission to copy and/or distribute it, 
    545 dnl with or without modifications, as long as this notice is preserved. 
    546  
    547 dnl Subroutines of libtool.m4, 
    548 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision 
    549 dnl with libtool.m4. 
    550  
    551 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. 
    552 AC_DEFUN([AC_LIB_PROG_LD_GNU], 
    553 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, 
    554 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. 
    555 case `$LD -v 2>&1 </dev/null` in 
    556 *GNU* | *'with BFD'*) 
    557   acl_cv_prog_gnu_ld=yes ;; 
    558 *) 
    559   acl_cv_prog_gnu_ld=no ;; 
    560 esac]) 
    561 with_gnu_ld=$acl_cv_prog_gnu_ld 
    562 ]) 
    563  
    564 dnl From libtool-1.4. Sets the variable LD. 
    565 AC_DEFUN([AC_LIB_PROG_LD], 
    566 [AC_ARG_WITH(gnu-ld, 
    567 [  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]], 
    568 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) 
    569 AC_REQUIRE([AC_PROG_CC])dnl 
    570 AC_REQUIRE([AC_CANONICAL_HOST])dnl 
    571 # Prepare PATH_SEPARATOR. 
    572 # The user is always right. 
    573 if test "${PATH_SEPARATOR+set}" != set; then 
    574   echo "#! /bin/sh" >conf$$.sh 
    575   echo  "exit 0"   >>conf$$.sh 
    576   chmod +x conf$$.sh 
    577   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 
    578     PATH_SEPARATOR=';' 
    579   else 
    580     PATH_SEPARATOR=: 
    581   fi 
    582   rm -f conf$$.sh 
    583 fi 
    584 ac_prog=ld 
    585 if test "$GCC" = yes; then 
    586   # Check if gcc -print-prog-name=ld gives a path. 
    587   AC_MSG_CHECKING([for ld used by GCC]) 
    588   case $host in 
    589   *-*-mingw*) 
    590     # gcc leaves a trailing carriage return which upsets mingw 
    591     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 
    592   *) 
    593     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 
    594   esac 
    595   case $ac_prog in 
    596     # Accept absolute paths. 
    597     [[\\/]* | [A-Za-z]:[\\/]*)] 
    598       [re_direlt='/[^/][^/]*/\.\./'] 
    599       # Canonicalize the path of ld 
    600       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 
    601       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 
    602         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 
    603       done 
    604       test -z "$LD" && LD="$ac_prog" 
    605       ;; 
    606   "") 
    607     # If it fails, then pretend we aren't using GCC. 
    608     ac_prog=ld 
    609     ;; 
    610   *) 
    611     # If it is relative, then search for the first ld in PATH. 
    612     with_gnu_ld=unknown 
    613     ;; 
    614   esac 
    615 elif test "$with_gnu_ld" = yes; then 
    616   AC_MSG_CHECKING([for GNU ld]) 
    617 else 
    618   AC_MSG_CHECKING([for non-GNU ld]) 
    619 fi 
    620 AC_CACHE_VAL(acl_cv_path_LD, 
    621 [if test -z "$LD"; then 
    622   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 
    623   for ac_dir in $PATH; do 
    624     test -z "$ac_dir" && ac_dir=. 
    625     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 
    626       acl_cv_path_LD="$ac_dir/$ac_prog" 
    627       # Check to see if the program is GNU ld.  I'd rather use --version, 
    628       # but apparently some GNU ld's only accept -v. 
    629       # Break only if it was the GNU/non-GNU ld that we prefer. 
    630       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 
    631       *GNU* | *'with BFD'*) 
    632         test "$with_gnu_ld" != no && break ;; 
    633       *) 
    634         test "$with_gnu_ld" != yes && break ;; 
    635       esac 
    636     fi 
    637   done 
    638   IFS="$ac_save_ifs" 
    639 else 
    640   acl_cv_path_LD="$LD" # Let the user override the test with a path. 
    641 fi]) 
    642 LD="$acl_cv_path_LD" 
    643 if test -n "$LD"; then 
    644   AC_MSG_RESULT($LD) 
    645 else 
    646   AC_MSG_RESULT(no) 
    647 fi 
    648 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 
    649 AC_LIB_PROG_LD_GNU 
    650 ]) 
    651  
    652 # lib-link.m4 serial 9 (gettext-0.16) 
    653 dnl Copyright (C) 2001-2006 Free Software Foundation, Inc. 
    654 dnl This file is free software; the Free Software Foundation 
    655 dnl gives unlimited permission to copy and/or distribute it, 
    656 dnl with or without modifications, as long as this notice is preserved. 
    657  
    658 dnl From Bruno Haible. 
    659  
    660 AC_PREREQ(2.50) 
    661  
    662 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and 
    663 dnl the libraries corresponding to explicit and implicit dependencies. 
    664 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and 
    665 dnl augments the CPPFLAGS variable. 
    666 AC_DEFUN([AC_LIB_LINKFLAGS], 
    667 [ 
    668   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    669   AC_REQUIRE([AC_LIB_RPATH]) 
    670   define([Name],[translit([$1],[./-], [___])]) 
    671   define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 
    672                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 
    673   AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ 
    674     AC_LIB_LINKFLAGS_BODY([$1], [$2]) 
    675     ac_cv_lib[]Name[]_libs="$LIB[]NAME" 
    676     ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" 
    677     ac_cv_lib[]Name[]_cppflags="$INC[]NAME" 
    678   ]) 
    679   LIB[]NAME="$ac_cv_lib[]Name[]_libs" 
    680   LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" 
    681   INC[]NAME="$ac_cv_lib[]Name[]_cppflags" 
    682   AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) 
    683   AC_SUBST([LIB]NAME) 
    684   AC_SUBST([LTLIB]NAME) 
    685   dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the 
    686   dnl results of this search when this library appears as a dependency. 
    687   HAVE_LIB[]NAME=yes 
    688   undefine([Name]) 
    689   undefine([NAME]) 
    690 ]) 
    691  
    692 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) 
    693 dnl searches for libname and the libraries corresponding to explicit and 
    694 dnl implicit dependencies, together with the specified include files and 
    695 dnl the ability to compile and link the specified testcode. If found, it 
    696 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and 
    697 dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and 
    698 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs 
    699 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. 
    700 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], 
    701 [ 
    702   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    703   AC_REQUIRE([AC_LIB_RPATH]) 
    704   define([Name],[translit([$1],[./-], [___])]) 
    705   define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 
    706                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 
    707  
    708   dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME 
    709   dnl accordingly. 
    710   AC_LIB_LINKFLAGS_BODY([$1], [$2]) 
    711  
    712   dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, 
    713   dnl because if the user has installed lib[]Name and not disabled its use 
    714   dnl via --without-lib[]Name-prefix, he wants to use it. 
    715   ac_save_CPPFLAGS="$CPPFLAGS" 
    716   AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) 
    717  
    718   AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ 
    719     ac_save_LIBS="$LIBS" 
    720     LIBS="$LIBS $LIB[]NAME" 
    721     AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) 
    722     LIBS="$ac_save_LIBS" 
    723   ]) 
    724   if test "$ac_cv_lib[]Name" = yes; then 
    725     HAVE_LIB[]NAME=yes 
    726     AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) 
    727     AC_MSG_CHECKING([how to link with lib[]$1]) 
    728     AC_MSG_RESULT([$LIB[]NAME]) 
    729   else 
    730     HAVE_LIB[]NAME=no 
    731     dnl If $LIB[]NAME didn't lead to a usable library, we don't need 
    732     dnl $INC[]NAME either. 
    733     CPPFLAGS="$ac_save_CPPFLAGS" 
    734     LIB[]NAME= 
    735     LTLIB[]NAME= 
    736   fi 
    737   AC_SUBST([HAVE_LIB]NAME) 
    738   AC_SUBST([LIB]NAME) 
    739   AC_SUBST([LTLIB]NAME) 
    740   undefine([Name]) 
    741   undefine([NAME]) 
    742 ]) 
    743  
    744 dnl Determine the platform dependent parameters needed to use rpath: 
    745 dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, 
    746 dnl hardcode_direct, hardcode_minus_L. 
    747 AC_DEFUN([AC_LIB_RPATH], 
    748 [ 
    749   dnl Tell automake >= 1.10 to complain if config.rpath is missing. 
    750   m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) 
    751   AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS 
    752   AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld 
    753   AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host 
    754   AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir 
    755   AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ 
    756     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 
    757     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 
    758     . ./conftest.sh 
    759     rm -f ./conftest.sh 
    760     acl_cv_rpath=done 
    761   ]) 
    762   wl="$acl_cv_wl" 
    763   libext="$acl_cv_libext" 
    764   shlibext="$acl_cv_shlibext" 
    765   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 
    766   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 
    767   hardcode_direct="$acl_cv_hardcode_direct" 
    768   hardcode_minus_L="$acl_cv_hardcode_minus_L" 
    769   dnl Determine whether the user wants rpath handling at all. 
    770   AC_ARG_ENABLE(rpath, 
    771     [  --disable-rpath         do not hardcode runtime library paths], 
    772     :, enable_rpath=yes) 
    773 ]) 
    774  
    775 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and 
    776 dnl the libraries corresponding to explicit and implicit dependencies. 
    777 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. 
    778 AC_DEFUN([AC_LIB_LINKFLAGS_BODY], 
    779 [ 
    780   AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 
    781   define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], 
    782                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) 
    783   dnl By default, look in $includedir and $libdir. 
    784   use_additional=yes 
    785   AC_LIB_WITH_FINAL_PREFIX([ 
    786     eval additional_includedir=\"$includedir\" 
    787     eval additional_libdir=\"$libdir\" 
    788   ]) 
    789   AC_LIB_ARG_WITH([lib$1-prefix], 
    790 [  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib 
    791   --without-lib$1-prefix     don't search for lib$1 in includedir and libdir], 
    792 [ 
    793     if test "X$withval" = "Xno"; then 
    794       use_additional=no 
    795     else 
    796       if test "X$withval" = "X"; then 
    797         AC_LIB_WITH_FINAL_PREFIX([ 
    798           eval additional_includedir=\"$includedir\" 
    799           eval additional_libdir=\"$libdir\" 
    800         ]) 
    801       else 
    802         additional_includedir="$withval/include" 
    803         additional_libdir="$withval/$acl_libdirstem" 
    804       fi 
    805     fi 
    806 ]) 
    807   dnl Search the library and its dependencies in $additional_libdir and 
    808   dnl $LDFLAGS. Using breadth-first-seach. 
    809   LIB[]NAME= 
    810   LTLIB[]NAME= 
    811   INC[]NAME= 
    812   rpathdirs= 
    813   ltrpathdirs= 
    814   names_already_handled= 
    815   names_next_round='$1 $2' 
    816   while test -n "$names_next_round"; do 
    817     names_this_round="$names_next_round" 
    818     names_next_round= 
    819     for name in $names_this_round; do 
    820       already_handled= 
    821       for n in $names_already_handled; do 
    822         if test "$n" = "$name"; then 
    823           already_handled=yes 
    824           break 
    825         fi 
    826       done 
    827       if test -z "$already_handled"; then 
    828         names_already_handled="$names_already_handled $name" 
    829         dnl See if it was already located by an earlier AC_LIB_LINKFLAGS 
    830         dnl or AC_LIB_HAVE_LINKFLAGS call. 
    831         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 
    832         eval value=\"\$HAVE_LIB$uppername\" 
    833         if test -n "$value"; then 
    834           if test "$value" = yes; then 
    835             eval value=\"\$LIB$uppername\" 
    836             test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" 
    837             eval value=\"\$LTLIB$uppername\" 
    838             test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" 
    839           else 
    840             dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined 
    841             dnl that this library doesn't exist. So just drop it. 
    842             : 
    843           fi 
    844         else 
    845           dnl Search the library lib$name in $additional_libdir and $LDFLAGS 
    846           dnl and the already constructed $LIBNAME/$LTLIBNAME. 
    847           found_dir= 
    848           found_la= 
    849           found_so= 
    850           found_a= 
    851           if test $use_additional = yes; then 
    852             if test -n "$shlibext" \ 
    853                && { test -f "$additional_libdir/lib$name.$shlibext" \ 
    854                     || { test "$shlibext" = dll \ 
    855                          && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 
    856               found_dir="$additional_libdir" 
    857               if test -f "$additional_libdir/lib$name.$shlibext"; then 
    858                 found_so="$additional_libdir/lib$name.$shlibext" 
    859               else 
    860                 found_so="$additional_libdir/lib$name.dll.a" 
    861               fi 
    862               if test -f "$additional_libdir/lib$name.la"; then 
    863                 found_la="$additional_libdir/lib$name.la" 
    864               fi 
    865             else 
    866               if test -f "$additional_libdir/lib$name.$libext"; then 
    867                 found_dir="$additional_libdir" 
    868                 found_a="$additional_libdir/lib$name.$libext" 
    869                 if test -f "$additional_libdir/lib$name.la"; then 
    870                   found_la="$additional_libdir/lib$name.la" 
    871                 fi 
    872               fi 
    873             fi 
    874           fi 
    875           if test "X$found_dir" = "X"; then 
    876             for x in $LDFLAGS $LTLIB[]NAME; do 
    877               AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    878               case "$x" in 
    879                 -L*) 
    880                   dir=`echo "X$x" | sed -e 's/^X-L//'` 
    881                   if test -n "$shlibext" \ 
    882                      && { test -f "$dir/lib$name.$shlibext" \ 
    883                           || { test "$shlibext" = dll \ 
    884                                && test -f "$dir/lib$name.dll.a"; }; }; then 
    885                     found_dir="$dir" 
    886                     if test -f "$dir/lib$name.$shlibext"; then 
    887                       found_so="$dir/lib$name.$shlibext" 
    888                     else 
    889                       found_so="$dir/lib$name.dll.a" 
    890                     fi 
    891                     if test -f "$dir/lib$name.la"; then 
    892                       found_la="$dir/lib$name.la" 
    893                     fi 
    894                   else 
    895                     if test -f "$dir/lib$name.$libext"; then 
    896                       found_dir="$dir" 
    897                       found_a="$dir/lib$name.$libext" 
    898                       if test -f "$dir/lib$name.la"; then 
    899                         found_la="$dir/lib$name.la" 
    900                       fi 
    901                     fi 
    902                   fi 
    903                   ;; 
    904               esac 
    905               if test "X$found_dir" != "X"; then 
    906                 break 
    907               fi 
    908             done 
    909           fi 
    910           if test "X$found_dir" != "X"; then 
    911             dnl Found the library. 
    912             LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" 
    913             if test "X$found_so" != "X"; then 
    914               dnl Linking with a shared library. We attempt to hardcode its 
    915               dnl directory into the executable's runpath, unless it's the 
    916               dnl standard /usr/lib. 
    917               if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 
    918                 dnl No hardcoding is needed. 
    919                 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
    920               else 
    921                 dnl Use an explicit option to hardcode DIR into the resulting 
    922                 dnl binary. 
    923                 dnl Potentially add DIR to ltrpathdirs. 
    924                 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. 
    925                 haveit= 
    926                 for x in $ltrpathdirs; do 
    927                   if test "X$x" = "X$found_dir"; then 
    928                     haveit=yes 
    929                     break 
    930                   fi 
    931                 done 
    932                 if test -z "$haveit"; then 
    933                   ltrpathdirs="$ltrpathdirs $found_dir" 
    934                 fi 
    935                 dnl The hardcoding into $LIBNAME is system dependent. 
    936                 if test "$hardcode_direct" = yes; then 
    937                   dnl Using DIR/libNAME.so during linking hardcodes DIR into the 
    938                   dnl resulting binary. 
    939                   LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
    940                 else 
    941                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 
    942                     dnl Use an explicit option to hardcode DIR into the resulting 
    943                     dnl binary. 
    944                     LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
    945                     dnl Potentially add DIR to rpathdirs. 
    946                     dnl The rpathdirs will be appended to $LIBNAME at the end. 
    947                     haveit= 
    948                     for x in $rpathdirs; do 
    949                       if test "X$x" = "X$found_dir"; then 
    950                         haveit=yes 
    951                         break 
    952                       fi 
    953                     done 
    954                     if test -z "$haveit"; then 
    955                       rpathdirs="$rpathdirs $found_dir" 
    956                     fi 
    957                   else 
    958                     dnl Rely on "-L$found_dir". 
    959                     dnl But don't add it if it's already contained in the LDFLAGS 
    960                     dnl or the already constructed $LIBNAME 
    961                     haveit= 
    962                     for x in $LDFLAGS $LIB[]NAME; do 
    963                       AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    964                       if test "X$x" = "X-L$found_dir"; then 
    965                         haveit=yes 
    966                         break 
    967                       fi 
    968                     done 
    969                     if test -z "$haveit"; then 
    970                       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" 
    971                     fi 
    972                     if test "$hardcode_minus_L" != no; then 
    973                       dnl FIXME: Not sure whether we should use 
    974                       dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" 
    975                       dnl here. 
    976                       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" 
    977                     else 
    978                       dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH 
    979                       dnl here, because this doesn't fit in flags passed to the 
    980                       dnl compiler. So give up. No hardcoding. This affects only 
    981                       dnl very old systems. 
    982                       dnl FIXME: Not sure whether we should use 
    983                       dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" 
    984                       dnl here. 
    985                       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" 
    986                     fi 
    987                   fi 
    988                 fi 
    989               fi 
    990             else 
    991               if test "X$found_a" != "X"; then 
    992                 dnl Linking with a static library. 
    993                 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" 
    994               else 
    995                 dnl We shouldn't come here, but anyway it's good to have a 
    996                 dnl fallback. 
    997                 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" 
    998               fi 
    999             fi 
    1000             dnl Assume the include files are nearby. 
    1001             additional_includedir= 
    1002             case "$found_dir" in 
    1003               */$acl_libdirstem | */$acl_libdirstem/) 
    1004                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 
    1005                 additional_includedir="$basedir/include" 
    1006                 ;; 
    1007             esac 
    1008             if test "X$additional_includedir" != "X"; then 
    1009               dnl Potentially add $additional_includedir to $INCNAME. 
    1010               dnl But don't add it 
    1011               dnl   1. if it's the standard /usr/include, 
    1012               dnl   2. if it's /usr/local/include and we are using GCC on Linux, 
    1013               dnl   3. if it's already present in $CPPFLAGS or the already 
    1014               dnl      constructed $INCNAME, 
    1015               dnl   4. if it doesn't exist as a directory. 
    1016               if test "X$additional_includedir" != "X/usr/include"; then 
    1017                 haveit= 
    1018                 if test "X$additional_includedir" = "X/usr/local/include"; then 
    1019                   if test -n "$GCC"; then 
    1020                     case $host_os in 
    1021                       linux* | gnu* | k*bsd*-gnu) haveit=yes;; 
    1022                     esac 
    1023                   fi 
    1024                 fi 
    1025                 if test -z "$haveit"; then 
    1026                   for x in $CPPFLAGS $INC[]NAME; do 
    1027                     AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    1028                     if test "X$x" = "X-I$additional_includedir"; then 
    1029                       haveit=yes 
    1030                       break 
    1031                     fi 
    1032                   done 
    1033                   if test -z "$haveit"; then 
    1034                     if test -d "$additional_includedir"; then 
    1035                       dnl Really add $additional_includedir to $INCNAME. 
    1036                       INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" 
    1037                     fi 
    1038                   fi 
    1039                 fi 
    1040               fi 
    1041             fi 
    1042             dnl Look for dependencies. 
    1043             if test -n "$found_la"; then 
    1044               dnl Read the .la file. It defines the variables 
    1045               dnl dlname, library_names, old_library, dependency_libs, current, 
    1046               dnl age, revision, installed, dlopen, dlpreopen, libdir. 
    1047               save_libdir="$libdir" 
    1048               case "$found_la" in 
    1049                 */* | *\\*) . "$found_la" ;; 
    1050                 *) . "./$found_la" ;; 
    1051               esac 
    1052               libdir="$save_libdir" 
    1053               dnl We use only dependency_libs. 
    1054               for dep in $dependency_libs; do 
    1055                 case "$dep" in 
    1056                   -L*) 
    1057                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 
    1058                     dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. 
    1059                     dnl But don't add it 
    1060                     dnl   1. if it's the standard /usr/lib, 
    1061                     dnl   2. if it's /usr/local/lib and we are using GCC on Linux, 
    1062                     dnl   3. if it's already present in $LDFLAGS or the already 
    1063                     dnl      constructed $LIBNAME, 
    1064                     dnl   4. if it doesn't exist as a directory. 
    1065                     if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 
    1066                       haveit= 
    1067                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 
    1068                         if test -n "$GCC"; then 
    1069                           case $host_os in 
    1070                             linux* | gnu* | k*bsd*-gnu) haveit=yes;; 
    1071                           esac 
    1072                         fi 
    1073                       fi 
    1074                       if test -z "$haveit"; then 
    1075                         haveit= 
    1076                         for x in $LDFLAGS $LIB[]NAME; do 
    1077                           AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    1078                           if test "X$x" = "X-L$additional_libdir"; then 
    1079                             haveit=yes 
    1080                             break 
    1081                           fi 
    1082                         done 
    1083                         if test -z "$haveit"; then 
    1084                           if test -d "$additional_libdir"; then 
    1085                             dnl Really add $additional_libdir to $LIBNAME. 
    1086                             LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" 
    1087                           fi 
    1088                         fi 
    1089                         haveit= 
    1090                         for x in $LDFLAGS $LTLIB[]NAME; do 
    1091                           AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    1092                           if test "X$x" = "X-L$additional_libdir"; then 
    1093                             haveit=yes 
    1094                             break 
    1095                           fi 
    1096                         done 
    1097                         if test -z "$haveit"; then 
    1098                           if test -d "$additional_libdir"; then 
    1099                             dnl Really add $additional_libdir to $LTLIBNAME. 
    1100                             LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" 
    1101                           fi 
    1102                         fi 
    1103                       fi 
    1104                     fi 
    1105                     ;; 
    1106                   -R*) 
    1107                     dir=`echo "X$dep" | sed -e 's/^X-R//'` 
    1108                     if test "$enable_rpath" != no; then 
    1109                       dnl Potentially add DIR to rpathdirs. 
    1110                       dnl The rpathdirs will be appended to $LIBNAME at the end. 
    1111                       haveit= 
    1112                       for x in $rpathdirs; do 
    1113                         if test "X$x" = "X$dir"; then 
    1114                           haveit=yes 
    1115                           break 
    1116                         fi 
    1117                       done 
    1118                       if test -z "$haveit"; then 
    1119                         rpathdirs="$rpathdirs $dir" 
    1120                       fi 
    1121                       dnl Potentially add DIR to ltrpathdirs. 
    1122                       dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. 
    1123                       haveit= 
    1124                       for x in $ltrpathdirs; do 
    1125                         if test "X$x" = "X$dir"; then 
    1126                           haveit=yes 
    1127                           break 
    1128                         fi 
    1129                       done 
    1130                       if test -z "$haveit"; then 
    1131                         ltrpathdirs="$ltrpathdirs $dir" 
    1132                       fi 
    1133                     fi 
    1134                     ;; 
    1135                   -l*) 
    1136                     dnl Handle this in the next round. 
    1137                     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 
    1138                     ;; 
    1139                   *.la) 
    1140                     dnl Handle this in the next round. Throw away the .la's 
    1141                     dnl directory; it is already contained in a preceding -L 
    1142                     dnl option. 
    1143                     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 
    1144                     ;; 
    1145                   *) 
    1146                     dnl Most likely an immediate library name. 
    1147                     LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" 
    1148                     LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" 
    1149                     ;; 
    1150                 esac 
    1151               done 
    1152             fi 
    1153           else 
    1154             dnl Didn't find the library; assume it is in the system directories 
    1155             dnl known to the linker and runtime loader. (All the system 
    1156             dnl directories known to the linker should also be known to the 
    1157             dnl runtime loader, otherwise the system is severely misconfigured.) 
    1158             LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" 
    1159             LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" 
    1160           fi 
    1161         fi 
    1162       fi 
    1163     done 
    1164   done 
    1165   if test "X$rpathdirs" != "X"; then 
    1166     if test -n "$hardcode_libdir_separator"; then 
    1167       dnl Weird platform: only the last -rpath option counts, the user must 
    1168       dnl pass all path elements in one option. We can arrange that for a 
    1169       dnl single library, but not when more than one $LIBNAMEs are used. 
    1170       alldirs= 
    1171       for found_dir in $rpathdirs; do 
    1172         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 
    1173       done 
    1174       dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. 
    1175       acl_save_libdir="$libdir" 
    1176       libdir="$alldirs" 
    1177       eval flag=\"$hardcode_libdir_flag_spec\" 
    1178       libdir="$acl_save_libdir" 
    1179       LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" 
    1180     else 
    1181       dnl The -rpath options are cumulative. 
    1182       for found_dir in $rpathdirs; do 
    1183         acl_save_libdir="$libdir" 
    1184         libdir="$found_dir" 
    1185         eval flag=\"$hardcode_libdir_flag_spec\" 
    1186         libdir="$acl_save_libdir" 
    1187         LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" 
    1188       done 
    1189     fi 
    1190   fi 
    1191   if test "X$ltrpathdirs" != "X"; then 
    1192     dnl When using libtool, the option that works for both libraries and 
    1193     dnl executables is -R. The -R options are cumulative. 
    1194     for found_dir in $ltrpathdirs; do 
    1195       LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" 
    1196     done 
    1197   fi 
    1198 ]) 
    1199  
    1200 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, 
    1201 dnl unless already present in VAR. 
    1202 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes 
    1203 dnl contains two or three consecutive elements that belong together. 
    1204 AC_DEFUN([AC_LIB_APPENDTOVAR], 
    1205 [ 
    1206   for element in [$2]; do 
    1207     haveit= 
    1208     for x in $[$1]; do 
    1209       AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    1210       if test "X$x" = "X$element"; then 
    1211         haveit=yes 
    1212         break 
    1213       fi 
    1214     done 
    1215     if test -z "$haveit"; then 
    1216       [$1]="${[$1]}${[$1]:+ }$element" 
    1217     fi 
    1218   done 
    1219 ]) 
    1220  
    1221 dnl For those cases where a variable contains several -L and -l options 
    1222 dnl referring to unknown libraries and directories, this macro determines the 
    1223 dnl necessary additional linker options for the runtime path. 
    1224 dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) 
    1225 dnl sets LDADDVAR to linker options needed together with LIBSVALUE. 
    1226 dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, 
    1227 dnl otherwise linking without libtool is assumed. 
    1228 AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], 
    1229 [ 
    1230   AC_REQUIRE([AC_LIB_RPATH]) 
    1231   AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 
    1232   $1= 
    1233   if test "$enable_rpath" != no; then 
    1234     if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 
    1235       dnl Use an explicit option to hardcode directories into the resulting 
    1236       dnl binary. 
    1237       rpathdirs= 
    1238       next= 
    1239       for opt in $2; do 
    1240         if test -n "$next"; then 
    1241           dir="$next" 
    1242           dnl No need to hardcode the standard /usr/lib. 
    1243           if test "X$dir" != "X/usr/$acl_libdirstem"; then 
    1244             rpathdirs="$rpathdirs $dir" 
    1245           fi 
    1246           next= 
    1247         else 
    1248           case $opt in 
    1249             -L) next=yes ;; 
    1250             -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` 
    1251                  dnl No need to hardcode the standard /usr/lib. 
    1252                  if test "X$dir" != "X/usr/$acl_libdirstem"; then 
    1253                    rpathdirs="$rpathdirs $dir" 
    1254                  fi 
    1255                  next= ;; 
    1256             *) next= ;; 
    1257           esac 
    1258         fi 
    1259       done 
    1260       if test "X$rpathdirs" != "X"; then 
    1261         if test -n ""$3""; then 
    1262           dnl libtool is used for linking. Use -R options. 
    1263           for dir in $rpathdirs; do 
    1264             $1="${$1}${$1:+ }-R$dir" 
    1265           done 
    1266         else 
    1267           dnl The linker is used for linking directly. 
    1268           if test -n "$hardcode_libdir_separator"; then 
    1269             dnl Weird platform: only the last -rpath option counts, the user 
    1270             dnl must pass all path elements in one option. 
    1271             alldirs= 
    1272             for dir in $rpathdirs; do 
    1273               alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir" 
    1274             done 
    1275             acl_save_libdir="$libdir" 
    1276             libdir="$alldirs" 
    1277             eval flag=\"$hardcode_libdir_flag_spec\" 
    1278             libdir="$acl_save_libdir" 
    1279             $1="$flag" 
    1280           else 
    1281             dnl The -rpath options are cumulative. 
    1282             for dir in $rpathdirs; do 
    1283               acl_save_libdir="$libdir" 
    1284               libdir="$dir" 
    1285               eval flag=\"$hardcode_libdir_flag_spec\" 
    1286               libdir="$acl_save_libdir" 
    1287               $1="${$1}${$1:+ }$flag" 
    1288             done 
    1289           fi 
    1290         fi 
    1291       fi 
    1292     fi 
    1293   fi 
    1294   AC_SUBST([$1]) 
    1295 ]) 
    1296  
    1297 # lib-prefix.m4 serial 5 (gettext-0.15) 
    1298 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. 
    1299 dnl This file is free software; the Free Software Foundation 
    1300 dnl gives unlimited permission to copy and/or distribute it, 
    1301 dnl with or without modifications, as long as this notice is preserved. 
    1302  
    1303 dnl From Bruno Haible. 
    1304  
    1305 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and 
    1306 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't 
    1307 dnl require excessive bracketing. 
    1308 ifdef([AC_HELP_STRING], 
    1309 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], 
    1310 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) 
    1311  
    1312 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed 
    1313 dnl to access previously installed libraries. The basic assumption is that 
    1314 dnl a user will want packages to use other packages he previously installed 
    1315 dnl with the same --prefix option. 
    1316 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate 
    1317 dnl libraries, but is otherwise very convenient. 
    1318 AC_DEFUN([AC_LIB_PREFIX], 
    1319 [ 
    1320   AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) 
    1321   AC_REQUIRE([AC_PROG_CC]) 
    1322   AC_REQUIRE([AC_CANONICAL_HOST]) 
    1323   AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) 
    1324   AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) 
    1325   dnl By default, look in $includedir and $libdir. 
    1326   use_additional=yes 
    1327   AC_LIB_WITH_FINAL_PREFIX([ 
    1328     eval additional_includedir=\"$includedir\" 
    1329     eval additional_libdir=\"$libdir\" 
    1330   ]) 
    1331   AC_LIB_ARG_WITH([lib-prefix], 
    1332 [  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib 
    1333   --without-lib-prefix    don't search for libraries in includedir and libdir], 
    1334 [ 
    1335     if test "X$withval" = "Xno"; then 
    1336       use_additional=no 
    1337     else 
    1338       if test "X$withval" = "X"; then 
    1339         AC_LIB_WITH_FINAL_PREFIX([ 
    1340           eval additional_includedir=\"$includedir\" 
    1341           eval additional_libdir=\"$libdir\" 
    1342         ]) 
    1343       else 
    1344         additional_includedir="$withval/include" 
    1345         additional_libdir="$withval/$acl_libdirstem" 
    1346       fi 
    1347     fi 
    1348 ]) 
    1349   if test $use_additional = yes; then 
    1350     dnl Potentially add $additional_includedir to $CPPFLAGS. 
    1351     dnl But don't add it 
    1352     dnl   1. if it's the standard /usr/include, 
    1353     dnl   2. if it's already present in $CPPFLAGS, 
    1354     dnl   3. if it's /usr/local/include and we are using GCC on Linux, 
    1355     dnl   4. if it doesn't exist as a directory. 
    1356     if test "X$additional_includedir" != "X/usr/include"; then 
    1357       haveit= 
    1358       for x in $CPPFLAGS; do 
    1359         AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    1360         if test "X$x" = "X-I$additional_includedir"; then 
    1361           haveit=yes 
    1362           break 
    1363         fi 
    1364       done 
    1365       if test -z "$haveit"; then 
    1366         if test "X$additional_includedir" = "X/usr/local/include"; then 
    1367           if test -n "$GCC"; then 
    1368             case $host_os in 
    1369               linux* | gnu* | k*bsd*-gnu) haveit=yes;; 
    1370             esac 
    1371           fi 
    1372         fi 
    1373         if test -z "$haveit"; then 
    1374           if test -d "$additional_includedir"; then 
    1375             dnl Really add $additional_includedir to $CPPFLAGS. 
    1376             CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" 
    1377           fi 
    1378         fi 
    1379       fi 
    1380     fi 
    1381     dnl Potentially add $additional_libdir to $LDFLAGS. 
    1382     dnl But don't add it 
    1383     dnl   1. if it's the standard /usr/lib, 
    1384     dnl   2. if it's already present in $LDFLAGS, 
    1385     dnl   3. if it's /usr/local/lib and we are using GCC on Linux, 
    1386     dnl   4. if it doesn't exist as a directory. 
    1387     if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 
    1388       haveit= 
    1389       for x in $LDFLAGS; do 
    1390         AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) 
    1391         if test "X$x" = "X-L$additional_libdir"; then 
    1392           haveit=yes 
    1393           break 
    1394         fi 
    1395       done 
    1396       if test -z "$haveit"; then 
    1397         if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 
    1398           if test -n "$GCC"; then 
    1399             case $host_os in 
    1400               linux*) haveit=yes;; 
    1401             esac 
    1402           fi 
    1403         fi 
    1404         if test -z "$haveit"; then 
    1405           if test -d "$additional_libdir"; then 
    1406             dnl Really add $additional_libdir to $LDFLAGS. 
    1407             LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" 
    1408           fi 
    1409         fi 
    1410       fi 
    1411     fi 
    1412   fi 
    1413 ]) 
    1414  
    1415 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, 
    1416 dnl acl_final_exec_prefix, containing the values to which $prefix and 
    1417 dnl $exec_prefix will expand at the end of the configure script. 
    1418 AC_DEFUN([AC_LIB_PREPARE_PREFIX], 
    1419 [ 
    1420   dnl Unfortunately, prefix and exec_prefix get only finally determined 
    1421   dnl at the end of configure. 
    1422   if test "X$prefix" = "XNONE"; then 
    1423     acl_final_prefix="$ac_default_prefix" 
    1424   else 
    1425     acl_final_prefix="$prefix" 
    1426   fi 
    1427   if test "X$exec_prefix" = "XNONE"; then 
    1428     acl_final_exec_prefix='${prefix}' 
    1429   else 
    1430     acl_final_exec_prefix="$exec_prefix" 
    1431   fi 
    1432   acl_save_prefix="$prefix" 
    1433   prefix="$acl_final_prefix" 
    1434   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 
    1435   prefix="$acl_save_prefix" 
    1436 ]) 
    1437  
    1438 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the 
    1439 dnl variables prefix and exec_prefix bound to the values they will have 
    1440 dnl at the end of the configure script. 
    1441 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], 
    1442 [ 
    1443   acl_save_prefix="$prefix" 
    1444   prefix="$acl_final_prefix" 
    1445   acl_save_exec_prefix="$exec_prefix" 
    1446   exec_prefix="$acl_final_exec_prefix" 
    1447   $1 
    1448   exec_prefix="$acl_save_exec_prefix" 
    1449   prefix="$acl_save_prefix" 
    1450 ]) 
    1451  
    1452 dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing 
    1453 dnl the basename of the libdir, either "lib" or "lib64". 
    1454 AC_DEFUN([AC_LIB_PREPARE_MULTILIB], 
    1455 [ 
    1456   dnl There is no formal standard regarding lib and lib64. The current 
    1457   dnl practice is that on a system supporting 32-bit and 64-bit instruction 
    1458   dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit 
    1459   dnl libraries go under $prefix/lib. We determine the compiler's default 
    1460   dnl mode by looking at the compiler's library search path. If at least 
    1461   dnl of its elements ends in /lib64 or points to a directory whose absolute 
    1462   dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the 
    1463   dnl default, namely "lib". 
    1464   acl_libdirstem=lib 
    1465   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 
    1466   if test -n "$searchpath"; then 
    1467     acl_save_IFS="${IFS=        }"; IFS=":" 
    1468     for searchdir in $searchpath; do 
    1469       if test -d "$searchdir"; then 
    1470         case "$searchdir" in 
    1471           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 
    1472           *) searchdir=`cd "$searchdir" && pwd` 
    1473              case "$searchdir" in 
    1474                */lib64 ) acl_libdirstem=lib64 ;; 
    1475              esac ;; 
    1476         esac 
    1477       fi 
    1478     done 
    1479     IFS="$acl_save_IFS" 
    1480   fi 
    1481 ]) 
    148218 
    148319# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 
     
    80626598]) 
    80636599 
    8064 # nls.m4 serial 3 (gettext-0.15) 
    8065 dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. 
    8066 dnl This file is free software; the Free Software Foundation 
    8067 dnl gives unlimited permission to copy and/or distribute it, 
    8068 dnl with or without modifications, as long as this notice is preserved. 
    8069 dnl 
    8070 dnl This file can can be used in projects which are not available under 
    8071 dnl the GNU General Public License or the GNU Library General Public 
    8072 dnl License but which still want to provide support for the GNU gettext 
    8073 dnl functionality. 
    8074 dnl Please note that the actual code of the GNU gettext library is covered 
    8075 dnl by the GNU Library General Public License, and the rest of the GNU 
    8076 dnl gettext package package is covered by the GNU General Public License. 
    8077 dnl They are *not* in the public domain. 
    8078  
    8079 dnl Authors: 
    8080 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 
    8081 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003. 
    8082  
    8083 AC_PREREQ(2.50) 
    8084  
    8085 AC_DEFUN([AM_NLS], 
    8086 [ 
    8087   AC_MSG_CHECKING([whether NLS is requested]) 
    8088   dnl Default is enabled NLS 
    8089   AC_ARG_ENABLE(nls, 
    8090     [  --disable-nls           do not use Native Language Support], 
    8091     USE_NLS=$enableval, USE_NLS=yes) 
    8092   AC_MSG_RESULT($USE_NLS) 
    8093   AC_SUBST(USE_NLS) 
    8094 ]) 
    8095  
    80966600# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*- 
    80976601#  
     
    82516755fi[]dnl 
    82526756])# PKG_CHECK_MODULES 
    8253  
    8254 # po.m4 serial 13 (gettext-0.15) 
    8255 dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. 
    8256 dnl This file is free software; the Free Software Foundation 
    8257 dnl gives unlimited permission to copy and/or distribute it, 
    8258 dnl with or without modifications, as long as this notice is preserved. 
    8259 dnl 
    8260 dnl This file can can be used in projects which are not available under 
    8261 dnl the GNU General Public License or the GNU Library General Public 
    8262 dnl License but which still want to provide support for the GNU gettext 
    8263 dnl functionality. 
    8264 dnl Please note that the actual code of the GNU gettext library is covered 
    8265 dnl by the GNU Library General Public License, and the rest of the GNU 
    8266 dnl gettext package package is covered by the GNU General Public License. 
    8267 dnl They are *not* in the public domain. 
    8268  
    8269 dnl Authors: 
    8270 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 
    8271 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003. 
    8272  
    8273 AC_PREREQ(2.50) 
    8274  
    8275 dnl Checks for all prerequisites of the po subdirectory. 
    8276 AC_DEFUN([AM_PO_SUBDIRS], 
    8277 [ 
    8278   AC_REQUIRE([AC_PROG_MAKE_SET])dnl 
    8279   AC_REQUIRE([AC_PROG_INSTALL])dnl 
    8280   AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake 
    8281   AC_REQUIRE([AM_NLS])dnl 
    8282  
    8283   dnl Perform the following tests also if --disable-nls has been given, 
    8284   dnl because they are needed for "make dist" to work. 
    8285  
    8286   dnl Search for GNU msgfmt in the PATH. 
    8287   dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. 
    8288   dnl The second test excludes FreeBSD msgfmt. 
    8289   AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, 
    8290     [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && 
    8291      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], 
    8292     :) 
    8293   AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 
    8294  
    8295   dnl Test whether it is GNU msgfmt >= 0.15. 
    8296 changequote(,)dnl 
    8297   case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 
    8298     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 
    8299     *) MSGFMT_015=$MSGFMT ;; 
    8300   esac 
    8301 changequote([,])dnl 
    8302   AC_SUBST([MSGFMT_015]) 
    8303 changequote(,)dnl 
    8304   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 
    8305     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 
    8306     *) GMSGFMT_015=$GMSGFMT ;; 
    8307   esac 
    8308 changequote([,])dnl 
    8309   AC_SUBST([GMSGFMT_015]) 
    8310  
    8311   dnl Search for GNU xgettext 0.12 or newer in the PATH. 
    8312   dnl The first test excludes Solaris xgettext and early GNU xgettext versions. 
    8313   dnl The second test excludes FreeBSD xgettext. 
    8314   AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, 
    8315     [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && 
    8316      (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)], 
    8317     :) 
    8318   dnl Remove leftover from FreeBSD xgettext call. 
    8319   rm -f messages.po 
    8320  
    8321   dnl Test whether it is GNU xgettext >= 0.15. 
    8322 changequote(,)dnl 
    8323   case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 
    8324     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 
    8325     *) XGETTEXT_015=$XGETTEXT ;; 
    8326   esac 
    8327 changequote([,])dnl 
    8328   AC_SUBST([XGETTEXT_015]) 
    8329  
    8330   dnl Search for GNU msgmerge 0.11 or newer in the PATH. 
    8331   AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, 
    8332     [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) 
    8333  
    8334   dnl Installation directories. 
    8335   dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we 
    8336   dnl have to define it here, so that it can be used in po/Makefile. 
    8337   test -n "$localedir" || localedir='${datadir}/locale' 
    8338   AC_SUBST([localedir]) 
    8339  
    8340   AC_CONFIG_COMMANDS([po-directories], [[ 
    8341     for ac_file in $CONFIG_FILES; do 
    8342       # Support "outfile[:infile[:infile...]]" 
    8343       case "$ac_file" in 
    8344         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 
    8345       esac 
    8346       # PO directories have a Makefile.in generated from Makefile.in.in. 
    8347       case "$ac_file" in */Makefile.in) 
    8348         # Adjust a relative srcdir. 
    8349         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 
    8350         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 
    8351         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 
    8352         # In autoconf-2.13 it is called $ac_given_srcdir. 
    8353         # In autoconf-2.50 it is called $srcdir. 
    8354         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 
    8355         case "$ac_given_srcdir" in 
    8356           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 
    8357           /*) top_srcdir="$ac_given_srcdir" ;; 
    8358           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;; 
    8359         esac 
    8360         # Treat a directory as a PO directory if and only if it has a 
    8361         # POTFILES.in file. This allows packages to have multiple PO 
    8362         # directories under different names or in different locations. 
    8363         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 
    8364           rm -f "$ac_dir/POTFILES" 
    8365           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 
    8366           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 
    8367           POMAKEFILEDEPS="POTFILES.in" 
    8368           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 
    8369           # on $ac_dir but don't depend on user-specified configuration 
    8370           # parameters. 
    8371           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 
    8372             # The LINGUAS file contains the set of available languages. 
    8373             if test -n "$OBSOLETE_ALL_LINGUAS"; then 
    8374               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 
    8375             fi 
    8376             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 
    8377             # Hide the ALL_LINGUAS assigment from automake < 1.5. 
    8378             eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 
    8379             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 
    8380           else 
    8381             # The set of available languages was given in configure.in. 
    8382             # Hide the ALL_LINGUAS assigment from automake < 1.5. 
    8383             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 
    8384           fi 
    8385           # Compute POFILES 
    8386           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 
    8387           # Compute UPDATEPOFILES 
    8388           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 
    8389           # Compute DUMMYPOFILES 
    8390           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 
    8391           # Compute GMOFILES 
    8392           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 
    8393           case "$ac_given_srcdir" in 
    8394             .) srcdirpre= ;; 
    8395             *) srcdirpre='$(srcdir)/' ;; 
    8396           esac 
    8397           POFILES= 
    8398           UPDATEPOFILES= 
    8399           DUMMYPOFILES= 
    8400           GMOFILES= 
    8401           for lang in $ALL_LINGUAS; do 
    8402             POFILES="$POFILES $srcdirpre$lang.po" 
    8403             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 
    8404             DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 
    8405             GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 
    8406           done 
    8407           # CATALOGS depends on both $ac_dir and the user's LINGUAS 
    8408           # environment variable. 
    8409           INST_LINGUAS= 
    8410           if test -n "$ALL_LINGUAS"; then 
    8411             for presentlang in $ALL_LINGUAS; do 
    8412               useit=no 
    8413               if test "%UNSET%" != "$LINGUAS"; then 
    8414                 desiredlanguages="$LINGUAS" 
    8415               else 
    8416                 desiredlanguages="$ALL_LINGUAS" 
    8417               fi 
    8418               for desiredlang in $desiredlanguages; do 
    8419                 # Use the presentlang catalog if desiredlang is 
    8420                 #   a. equal to presentlang, or 
    8421                 #   b. a variant of presentlang (because in this case, 
    8422                 #      presentlang can be used as a fallback for messages 
    8423                 #      which are not translated in the desiredlang catalog). 
    8424                 case "$desiredlang" in 
    8425                   "$presentlang"*) useit=yes;; 
    8426                 esac 
    8427               done 
    8428               if test $useit = yes; then 
    8429                 INST_LINGUAS="$INST_LINGUAS $presentlang" 
    8430               fi 
    8431             done 
    8432           fi 
    8433           CATALOGS= 
    8434           if test -n "$INST_LINGUAS"; then 
    8435             for lang in $INST_LINGUAS; do 
    8436               CATALOGS="$CATALOGS $lang.gmo" 
    8437             done 
    8438           fi 
    8439           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 
    8440           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" 
    8441           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 
    8442             if test -f "$f"; then 
    8443               case "$f" in 
    8444                 *.orig | *.bak | *~) ;; 
    8445                 *) cat "$f" >> "$ac_dir/Makefile" ;; 
    8446               esac 
    8447             fi 
    8448           done 
    8449         fi 
    8450         ;; 
    8451       esac 
    8452     done]], 
    8453    [# Capture the value of obsolete ALL_LINGUAS because we need it to compute 
    8454     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 
    8455     # from automake < 1.5. 
    8456     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 
    8457     # Capture the value of LINGUAS because we need it to compute CATALOGS. 
    8458     LINGUAS="${LINGUAS-%UNSET%}" 
    8459    ]) 
    8460 ]) 
    8461  
    8462 dnl Postprocesses a Makefile in a directory containing PO files. 
    8463 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], 
    8464 [ 
    8465   # When this code is run, in config.status, two variables have already been 
    8466   # set: 
    8467   # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, 
    8468   # - LINGUAS is the value of the environment variable LINGUAS at configure 
    8469   #   time. 
    8470  
    8471 changequote(,)dnl 
    8472   # Adjust a relative srcdir. 
    8473   ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 
    8474   ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 
    8475   ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 
    8476   # In autoconf-2.13 it is called $ac_given_srcdir. 
    8477   # In autoconf-2.50 it is called $srcdir. 
    8478   test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 
    8479   case "$ac_given_srcdir" in 
    8480     .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 
    8481     /*) top_srcdir="$ac_given_srcdir" ;; 
    8482     *)  top_srcdir="$ac_dots$ac_given_srcdir" ;; 
    8483   esac 
    8484  
    8485   # Find a way to echo strings without interpreting backslash. 
    8486   if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then 
    8487     gt_echo='echo' 
    8488   else 
    8489     if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then 
    8490       gt_echo='printf %s\n' 
    8491     else 
    8492       echo_func () { 
    8493         cat <<EOT 
    8494 $* 
    8495 EOT 
    8496       } 
    8497       gt_echo='echo_func' 
    8498     fi 
    8499   fi 
    8500  
    8501   # A sed script that extracts the value of VARIABLE from a Makefile. 
    8502   sed_x_variable=' 
    8503 # Test if the hold space is empty. 
    8504 x 
    8505 s/P/P/ 
    8506 x 
    8507 ta 
    8508 # Yes it was empty. Look if we have the expected variable definition. 
    8509 /^[      ]*VARIABLE[     ]*=/{ 
    8510   # Seen the first line of the variable definition. 
    8511   s/^[   ]*VARIABLE[     ]*=// 
    8512   ba 
    8513 } 
    8514 bd 
    8515 :a 
    8516 # Here we are processing a line from the variable definition. 
    8517 # Remove comment, more precisely replace it with a space. 
    8518 s/#.*$/ / 
    8519 # See if the line ends in a backslash. 
    8520 tb 
    8521 :b 
    8522 s/\\$// 
    8523 # Print the line, without the trailing backslash. 
    8524 p 
    8525 tc 
    8526 # There was no trailing backslash. The end of the variable definition is 
    8527 # reached. Clear the hold space. 
    8528 s/^.*$// 
    8529 x 
    8530 bd 
    8531 :c 
    8532 # A trailing backslash means that the variable definition continues in the 
    8533 # next line. Put a nonempty string into the hold space to indicate this. 
    8534 s/^.*$/P/ 
    8535 x 
    8536 :d 
    8537 ' 
    8538 changequote([,])dnl 
    8539  
    8540   # Set POTFILES to the value of the Makefile variable POTFILES. 
    8541   sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'` 
    8542   POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"` 
    8543   # Compute POTFILES_DEPS as 
    8544   #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) 
    8545   POTFILES_DEPS= 
    8546   for file in $POTFILES; do 
    8547     POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file" 
    8548   done 
    8549   POMAKEFILEDEPS="" 
    8550  
    8551   if test -n "$OBSOLETE_ALL_LINGUAS"; then 
    8552     test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 
    8553   fi 
    8554   if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 
    8555     # The LINGUAS file contains the set of available languages. 
    8556     ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 
    8557     POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 
    8558   else 
    8559     # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. 
    8560     sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'` 
    8561     ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` 
    8562   fi 
    8563   # Hide the ALL_LINGUAS assigment from automake < 1.5. 
    8564   eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 
    8565   # Compute POFILES 
    8566   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 
    8567   # Compute UPDATEPOFILES 
    8568   # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 
    8569   # Compute DUMMYPOFILES 
    8570   # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 
    8571   # Compute GMOFILES 
    8572   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 
    8573   # Compute PROPERTIESFILES 
    8574   # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties) 
    8575   # Compute CLASSFILES 
    8576   # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class) 
    8577   # Compute QMFILES 
    8578   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm) 
    8579   # Compute MSGFILES 
    8580   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg) 
    8581   # Compute RESOURCESDLLFILES 
    8582   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll) 
    8583   case "$ac_given_srcdir" in 
    8584     .) srcdirpre= ;; 
    8585     *) srcdirpre='$(srcdir)/' ;; 
    8586   esac 
    8587   POFILES= 
    8588   UPDATEPOFILES= 
    8589   DUMMYPOFILES= 
    8590   GMOFILES= 
    8591   PROPERTIESFILES= 
    8592   CLASSFILES= 
    8593   QMFILES= 
    8594   MSGFILES= 
    8595   RESOURCESDLLFILES= 
    8596   for lang in $ALL_LINGUAS; do 
    8597     POFILES="$POFILES $srcdirpre$lang.po" 
    8598     UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 
    8599     DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 
    8600     GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 
    8601     PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties" 
    8602     CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class" 
    8603     QMFILES="$QMFILES $srcdirpre$lang.qm" 
    8604     frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 
    8605     MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" 
    8606     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/'` 
    8607     RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll" 
    8608   done 
    8609   # CATALOGS depends on both $ac_dir and the user's LINGUAS 
    8610   # environment variable. 
    8611   INST_LINGUAS= 
    8612   if test -n "$ALL_LINGUAS"; then 
    8613     for presentlang in $ALL_LINGUAS; do 
    8614       useit=no 
    8615       if test "%UNSET%" != "$LINGUAS"; then 
    8616         desiredlanguages="$LINGUAS" 
    8617       else 
    8618         desiredlanguages="$ALL_LINGUAS" 
    8619       fi 
    8620       for desiredlang in $desiredlanguages; do 
    8621         # Use the presentlang catalog if desiredlang is 
    8622         #   a. equal to presentlang, or 
    8623         #   b. a variant of presentlang (because in this case, 
    8624         #      presentlang can be used as a fallback for messages 
    8625         #      which are not translated in the desiredlang catalog). 
    8626         case "$desiredlang" in 
    8627           "$presentlang"*) useit=yes;; 
    8628         esac 
    8629       done 
    8630       if test $useit = yes; then 
    8631         INST_LINGUAS="$INST_LINGUAS $presentlang" 
    8632       fi 
    8633     done 
    8634   fi 
    8635   CATALOGS= 
    8636   JAVACATALOGS= 
    8637   QTCATALOGS= 
    8638   TCLCATALOGS= 
    8639   CSHARPCATALOGS= 
    8640   if test -n "$INST_LINGUAS"; then 
    8641     for lang in $INST_LINGUAS; do 
    8642       CATALOGS="$CATALOGS $lang.gmo" 
    8643       JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties" 
    8644       QTCATALOGS="$QTCATALOGS $lang.qm" 
    8645       frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 
    8646       TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" 
    8647       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/'` 
    8648       CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" 
    8649     done 
    8650   fi 
    8651  
    8652   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" 
    8653   if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then 
    8654     # Add dependencies that cannot be formulated as a simple suffix rule. 
    8655     for lang in $ALL_LINGUAS; do 
    8656       frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 
    8657       cat >> "$ac_file.tmp" <<EOF 
    8658 $frobbedlang.msg: $lang.po 
    8659         @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \ 
    8660         \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } 
    8661 EOF 
    8662     done 
    8663   fi 
    8664   if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then 
    8665     # Add dependencies that cannot be formulated as a simple suffix rule. 
    8666     for lang in $ALL_LINGUAS; do 
    8667       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/'` 
    8668       cat >> "$ac_file.tmp" <<EOF 
    8669 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po 
    8670         @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ 
    8671         \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } 
    8672 EOF 
    8673     done 
    8674   fi 
    8675   if test -n "$POMAKEFILEDEPS"; then 
    8676     cat >> "$ac_file.tmp" <<EOF 
    8677 Makefile: $POMAKEFILEDEPS 
    8678 EOF 
    8679   fi 
    8680   mv "$ac_file.tmp" "$ac_file" 
    8681 ]) 
    8682  
    8683 # progtest.m4 serial 4 (gettext-0.14.2) 
    8684 dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc. 
    8685 dnl This file is free software; the Free Software Foundation 
    8686 dnl gives unlimited permission to copy and/or distribute it, 
    8687 dnl with or without modifications, as long as this notice is preserved. 
    8688 dnl 
    8689 dnl This file can can be used in projects which are not available under 
    8690 dnl the GNU General Public License or the GNU Library General Public 
    8691 dnl License but which still want to provide support for the GNU gettext 
    8692 dnl functionality. 
    8693 dnl Please note that the actual code of the GNU gettext library is covered 
    8694 dnl by the GNU Library General Public License, and the rest of the GNU 
    8695 dnl gettext package package is covered by the GNU General Public License. 
    8696 dnl They are *not* in the public domain. 
    8697  
    8698 dnl Authors: 
    8699 dnl   Ulrich Drepper <drepper@cygnus.com>, 1996. 
    8700  
    8701 AC_PREREQ(2.50) 
    8702  
    8703 # Search path for a program which passes the given test. 
    8704  
    8705 dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 
    8706 dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 
    8707 AC_DEFUN([AM_PATH_PROG_WITH_TEST], 
    8708 [ 
    8709 # Prepare PATH_SEPARATOR. 
    8710 # The user is always right. 
    8711 if test "${PATH_SEPARATOR+set}" != set; then 
    8712   echo "#! /bin/sh" >conf$$.sh 
    8713   echo  "exit 0"   >>conf$$.sh 
    8714   chmod +x conf$$.sh 
    8715   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 
    8716     PATH_SEPARATOR=';' 
    8717   else 
    8718     PATH_SEPARATOR=: 
    8719   fi 
    8720   rm -f conf$$.sh 
    8721 fi 
    8722  
    8723 # Find out how to test for executable files. Don't use a zero-byte file, 
    8724 # as systems may use methods other than mode bits to determine executability. 
    8725 cat >conf$$.file <<_ASEOF 
    8726 #! /bin/sh 
    8727 exit 0 
    8728 _ASEOF 
    8729 chmod +x conf$$.file 
    8730 if test -x conf$$.file >/dev/null 2>&1; then 
    8731   ac_executable_p="test -x" 
    8732 else 
    8733   ac_executable_p="test -f" 
    8734 fi 
    8735 rm -f conf$$.file 
    8736  
    8737 # Extract the first word of "$2", so it can be a program name with args. 
    8738 set dummy $2; ac_word=[$]2 
    8739 AC_MSG_CHECKING([for $ac_word]) 
    8740 AC_CACHE_VAL(ac_cv_path_$1, 
    8741 [case "[$]$1" in 
    8742   [[\\/]]* | ?:[[\\/]]*) 
    8743     ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 
    8744     ;; 
    8745   *) 
    8746     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 
    8747     for ac_dir in ifelse([$5], , $PATH, [$5]); do 
    8748       IFS="$ac_save_IFS" 
    8749       test -z "$ac_dir" && ac_dir=. 
    8750       for ac_exec_ext in '' $ac_executable_extensions; do 
    8751         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 
    8752           echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD 
    8753           if [$3]; then 
    8754             ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" 
    8755             break 2 
    8756           fi 
    8757         fi 
    8758       done 
    8759     done 
    8760     IFS="$ac_save_IFS" 
    8761 dnl If no 4th arg is given, leave the cache variable unset, 
    8762 dnl so AC_PATH_PROGS will keep looking. 
    8763 ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 
    8764 ])dnl 
    8765     ;; 
    8766 esac])dnl 
    8767 $1="$ac_cv_path_$1" 
    8768 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 
    8769   AC_MSG_RESULT([$]$1) 
    8770 else 
    8771   AC_MSG_RESULT(no) 
    8772 fi 
    8773 AC_SUBST($1)dnl 
    8774 ]) 
    87756757 
    87766758# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc. 
     
    96187600]) # _AM_PROG_TAR 
    96197601 
     7602m4_include([m4/gettext.m4]) 
     7603m4_include([m4/iconv.m4]) 
     7604m4_include([m4/lib-ld.m4]) 
     7605m4_include([m4/lib-link.m4]) 
     7606m4_include([m4/lib-prefix.m4]) 
     7607m4_include([m4/nls.m4]) 
     7608m4_include([m4/po.m4]) 
     7609m4_include([m4/progtest.m4]) 
    96207610m4_include([acinclude.m4]) 
  • trunk/fm_server/configure

    r217 r220  
    770770#endif" 
    771771 
    772 gt_needs= 
    773772ac_subst_vars='SHELL 
    774773PATH_SEPARATOR 
     
    19381937fi 
    19391938 
    1940 gt_needs="$gt_needs " 
    19411939# Check that the precious variables saved in the cache have kept the same 
    19421940# value. 
     
    44054403*-*-irix6*) 
    44064404  # Find out which ABI we are using. 
    4407   echo '#line 4407 "configure"' > conftest.$ac_ext 
     4405  echo '#line 4405 "configure"' > conftest.$ac_ext 
    44084406  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
    44094407  (eval $ac_compile) 2>&5 
     
    74377435   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    74387436   -e 's:$: $lt_compiler_flag:'` 
    7439    (eval echo "\"\$as_me:7439: $lt_compile\"" >&5) 
     7437   (eval echo "\"\$as_me:7437: $lt_compile\"" >&5) 
    74407438   (eval "$lt_compile" 2>conftest.err) 
    74417439   ac_status=$? 
    74427440   cat conftest.err >&5 
    7443    echo "$as_me:7443: \$? = $ac_status" >&5 
     7441   echo "$as_me:7441: \$? = $ac_status" >&5 
    74447442   if (exit $ac_status) && test -s "$ac_outfile"; then 
    74457443     # The compiler can only warn and ignore the option if not recognized 
     
    77277725   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    77287726   -e 's:$: $lt_compiler_flag:'` 
    7729    (eval echo "\"\$as_me:7729: $lt_compile\"" >&5) 
     7727   (eval echo "\"\$as_me:7727: $lt_compile\"" >&5) 
    77307728   (eval "$lt_compile" 2>conftest.err) 
    77317729   ac_status=$? 
    77327730   cat conftest.err >&5 
    7733    echo "$as_me:7733: \$? = $ac_status" >&5 
     7731   echo "$as_me:7731: \$? = $ac_status" >&5 
    77347732   if (exit $ac_status) && test -s "$ac_outfile"; then 
    77357733     # The compiler can only warn and ignore the option if not recognized 
     
    78317829   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    78327830   -e 's:$: $lt_compiler_flag:'` 
    7833    (eval echo "\"\$as_me:7833: $lt_compile\"" >&5) 
     7831   (eval echo "\"\$as_me:7831: $lt_compile\"" >&5) 
    78347832   (eval "$lt_compile" 2>out/conftest.err) 
    78357833   ac_status=$? 
    78367834   cat out/conftest.err >&5 
    7837    echo "$as_me:7837: \$? = $ac_status" >&5 
     7835   echo "$as_me:7835: \$? = $ac_status" >&5 
    78387836   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    78397837   then 
     
    1019310191  lt_status=$lt_dlunknown 
    1019410192  cat > conftest.$ac_ext <<EOF 
    10195 #line 10195 "configure" 
     10193#line 10193 "configure" 
    1019610194#include "confdefs.h" 
    1019710195 
     
    1029310291  lt_status=$lt_dlunknown 
    1029410292  cat > conftest.$ac_ext <<EOF 
    10295 #line 10295 "configure" 
     10293#line 10293 "configure" 
    1029610294#include "confdefs.h" 
    1029710295 
     
    1271312711   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1271412712   -e 's:$: $lt_compiler_flag:'` 
    12715    (eval echo "\"\$as_me:12715: $lt_compile\"" >&5) 
     12713   (eval echo "\"\$as_me:12713: $lt_compile\"" >&5) 
    1271612714   (eval "$lt_compile" 2>conftest.err) 
    1271712715   ac_status=$? 
    1271812716   cat conftest.err >&5 
    12719    echo "$as_me:12719: \$? = $ac_status" >&5 
     12717   echo "$as_me:12717: \$? = $ac_status" >&5 
    1272012718   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1272112719     # The compiler can only warn and ignore the option if not recognized 
     
    1281712815   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1281812816   -e 's:$: $lt_compiler_flag:'` 
    12819    (eval echo "\"\$as_me:12819: $lt_compile\"" >&5) 
     12817   (eval echo "\"\$as_me:12817: $lt_compile\"" >&5) 
    1282012818   (eval "$lt_compile" 2>out/conftest.err) 
    1282112819   ac_status=$? 
    1282212820   cat out/conftest.err >&5 
    12823    echo "$as_me:12823: \$? = $ac_status" >&5 
     12821   echo "$as_me:12821: \$? = $ac_status" >&5 
    1282412822   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1282512823   then 
     
    1439414392   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1439514393   -e 's:$: $lt_compiler_flag:'` 
    14396    (eval echo "\"\$as_me:14396: $lt_compile\"" >&5) 
     14394   (eval echo "\"\$as_me:14394: $lt_compile\"" >&5) 
    1439714395   (eval "$lt_compile" 2>conftest.err) 
    1439814396   ac_status=$? 
    1439914397   cat conftest.err >&5 
    14400    echo "$as_me:14400: \$? = $ac_status" >&5 
     14398   echo "$as_me:14398: \$? = $ac_status" >&5 
    1440114399   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1440214400     # The compiler can only warn and ignore the option if not recognized 
     
    1449814496   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1449914497   -e 's:$: $lt_compiler_flag:'` 
    14500    (eval echo "\"\$as_me:14500: $lt_compile\"" >&5) 
     14498   (eval echo "\"\$as_me:14498: $lt_compile\"" >&5) 
    1450114499   (eval "$lt_compile" 2>out/conftest.err) 
    1450214500   ac_status=$? 
    1450314501   cat out/conftest.err >&5 
    14504    echo "$as_me:14504: \$? = $ac_status" >&5 
     14502   echo "$as_me:14502: \$? = $ac_status" >&5 
    1450514503   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1450614504   then 
     
    1669816696   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1669916697   -e 's:$: $lt_compiler_flag:'` 
    16700    (eval echo "\"\$as_me:16700: $lt_compile\"" >&5) 
     16698   (eval echo "\"\$as_me:16698: $lt_compile\"" >&5) 
    1670116699   (eval "$lt_compile" 2>conftest.err) 
    1670216700   ac_status=$? 
    1670316701   cat conftest.err >&5 
    16704    echo "$as_me:16704: \$? = $ac_status" >&5 
     16702   echo "$as_me:16702: \$? = $ac_status" >&5 
    1670516703   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1670616704     # The compiler can only warn and ignore the option if not recognized 
     
    1698816986   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1698916987   -e 's:$: $lt_compiler_flag:'` 
    16990    (eval echo "\"\$as_me:16990: $lt_compile\"" >&5) 
     16988   (eval echo "\"\$as_me:16988: $lt_compile\"" >&5) 
    1699116989   (eval "$lt_compile" 2>conftest.err) 
    1699216990   ac_status=$? 
    1699316991   cat conftest.err >&5 
    16994    echo "$as_me:16994: \$? = $ac_status" >&5 
     16992   echo "$as_me:16992: \$? = $ac_status" >&5 
    1699516993   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1699616994     # The compiler can only warn and ignore the option if not recognized 
     
    1709217090   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1709317091   -e 's:$: $lt_compiler_flag:'` 
    17094    (eval echo "\"\$as_me:17094: $lt_compile\"" >&5) 
     17092   (eval echo "\"\$as_me:17092: $lt_compile\"" >&5) 
    1709517093   (eval "$lt_compile" 2>out/conftest.err) 
    1709617094   ac_status=$? 
    1709717095   cat out/conftest.err >&5 
    17098    echo "$as_me:17098: \$? = $ac_status" >&5 
     17096   echo "$as_me:17096: \$? = $ac_status" >&5 
    1709917097   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1710017098   then 
     
    2031820316          found_a= 
    2031920317          if test $use_additional = yes; then 
    20320             if test -n "$shlibext" \ 
    20321                && { test -f "$additional_libdir/lib$name.$shlibext" \ 
    20322                     || { test "$shlibext" = dll \ 
    20323                          && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 
     20318            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 
    2032420319              found_dir="$additional_libdir" 
    20325               if test -f "$additional_libdir/lib$name.$shlibext"; then 
    20326                 found_so="$additional_libdir/lib$name.$shlibext" 
    20327               else 
    20328                 found_so="$additional_libdir/lib$name.dll.a" 
    20329               fi 
     20320              found_so="$additional_libdir/lib$name.$shlibext" 
    2033020321              if test -f "$additional_libdir/lib$name.la"; then 
    2033120322                found_la="$additional_libdir/lib$name.la" 
     
    2035520346                -L*) 
    2035620347                  dir=`echo "X$x" | sed -e 's/^X-L//'` 
    20357                   if test -n "$shlibext" \ 
    20358                      && { test -f "$dir/lib$name.$shlibext" \ 
    20359                           || { test "$shlibext" = dll \ 
    20360                                && test -f "$dir/lib$name.dll.a"; }; }; then 
     20348                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 
    2036120349                    found_dir="$dir" 
    20362                     if test -f "$dir/lib$name.$shlibext"; then 
    20363                       found_so="$dir/lib$name.$shlibext" 
    20364                     else 
    20365                       found_so="$dir/lib$name.dll.a" 
    20366                     fi 
     20350                    found_so="$dir/lib$name.$shlibext" 
    2036720351                    if test -f "$dir/lib$name.la"; then 
    2036820352                      found_la="$dir/lib$name.la" 
     
    2064720631 
    2064820632 
    20649  
    20650  
    20651  
    20652  
    20653  
    20654  
    20655  
    2065620633    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 
    2065720634echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } 
     
    2079020767  POSUB= 
    2079120768 
    20792     case " $gt_needs " in 
    20793     *" need-formatstring-macros "*) gt_api_version=3 ;; 
    20794     *" need-ngettext "*) gt_api_version=2 ;; 
    20795     *) gt_api_version=1 ;; 
    20796   esac 
    20797   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 
    20798   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 
    20799  
    2080020769    if test "$USE_NLS" = "yes"; then 
    2080120770    gt_use_preinstalled_gnugettext=no 
    2080220771 
    2080320772 
    20804         if test $gt_api_version -ge 3; then 
    20805           gt_revision_test_code=' 
    20806 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 
    20807 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 
    20808 #endif 
    20809 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 
    20810 ' 
    20811         else 
    20812           gt_revision_test_code= 
    20813         fi 
    20814         if test $gt_api_version -ge 2; then 
    20815           gt_expression_test_code=' + * ngettext ("", "", 0)' 
    20816         else 
    20817           gt_expression_test_code= 
    20818         fi 
     20773 
     20774 
     20775 
    2081920776 
    2082020777        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 
    2082120778echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } 
    20822 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then 
     20779if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 
    2082320780  echo $ECHO_N "(cached) $ECHO_C" >&6 
    2082420781else 
     
    2083020787/* end confdefs.h.  */ 
    2083120788#include <libintl.h> 
    20832 $gt_revision_test_code 
    2083320789extern int _nl_msg_cat_cntr; 
    2083420790extern int *_nl_domain_bindings; 
     
    2083720793{ 
    2083820794bindtextdomain ("", ""); 
    20839 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 
     20795return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 
    2084020796  ; 
    2084120797  return 0; 
     
    2086020816       } && test -s conftest$ac_exeext && 
    2086120817       $as_test_x conftest$ac_exeext; then 
    20862   eval "$gt_func_gnugettext_libc=yes" 
     20818  gt_cv_func_gnugettext1_libc=yes 
    2086320819else 
    2086420820  echo "$as_me: failed program was:" >&5 
    2086520821sed 's/^/| /' conftest.$ac_ext >&5 
    2086620822 
    20867         eval "$gt_func_gnugettext_libc=no" 
     20823        gt_cv_func_gnugettext1_libc=no 
    2086820824fi 
    2086920825 
     
    2087120827      conftest$ac_exeext conftest.$ac_ext 
    2087220828fi 
    20873 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'` 
    20874                { echo "$as_me:$LINENO: result: $ac_res" >&5 
    20875 echo "${ECHO_T}$ac_res" >&6; } 
    20876  
    20877         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 
     20829{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 
     20830echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } 
     20831 
     20832        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 
    2087820833 
    2087920834 
     
    2111821073          found_a= 
    2111921074          if test $use_additional = yes; then 
    21120             if test -n "$shlibext" \ 
    21121                && { test -f "$additional_libdir/lib$name.$shlibext" \ 
    21122                     || { test "$shlibext" = dll \ 
    21123                          && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 
     21075            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 
    2112421076              found_dir="$additional_libdir" 
    21125               if test -f "$additional_libdir/lib$name.$shlibext"; then 
    21126                 found_so="$additional_libdir/lib$name.$shlibext" 
    21127               else 
    21128                 found_so="$additional_libdir/lib$name.dll.a" 
    21129               fi 
     21077              found_so="$additional_libdir/lib$name.$shlibext" 
    2113021078              if test -f "$additional_libdir/lib$name.la"; then 
    2113121079                found_la="$additional_libdir/lib$name.la" 
     
    2115521103                -L*) 
    2115621104                  dir=`echo "X$x" | sed -e 's/^X-L//'` 
    21157                   if test -n "$shlibext" \ 
    21158                      && { test -f "$dir/lib$name.$shlibext" \ 
    21159                           || { test "$shlibext" = dll \ 
    21160                                && test -f "$dir/lib$name.dll.a"; }; }; then 
     21105                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 
    2116121106                    found_dir="$dir" 
    21162                     if test -f "$dir/lib$name.$shlibext"; then 
    21163                       found_so="$dir/lib$name.$shlibext" 
    21164                     else 
    21165                       found_so="$dir/lib$name.dll.a" 
    21166                     fi 
     21107                    found_so="$dir/lib$name.$shlibext" 
    2116721108                    if test -f "$dir/lib$name.la"; then 
    2116821109                      found_la="$dir/lib$name.la" 
     
    2143221373          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 
    2143321374echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } 
    21434 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then 
     21375if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 
    2143521376  echo $ECHO_N "(cached) $ECHO_C" >&6 
    2143621377else 
     
    2144621387/* end confdefs.h.  */ 
    2144721388#include <libintl.h> 
    21448 $gt_revision_test_code 
    2144921389extern int _nl_msg_cat_cntr; 
    2145021390extern 
     
    2145721397{ 
    2145821398bindtextdomain ("", ""); 
    21459 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 
     21399return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 
    2146021400  ; 
    2146121401  return 0; 
     
    2148021420       } && test -s conftest$ac_exeext && 
    2148121421       $as_test_x conftest$ac_exeext; then 
    21482   eval "$gt_func_gnugettext_libintl=yes" 
     21422  gt_cv_func_gnugettext1_libintl=yes 
    2148321423else 
    2148421424  echo "$as_me: failed program was:" >&5 
    2148521425sed 's/^/| /' conftest.$ac_ext >&5 
    2148621426 
    21487         eval "$gt_func_gnugettext_libintl=no" 
     21427        gt_cv_func_gnugettext1_libintl=no 
    2148821428fi 
    2148921429 
    2149021430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
    2149121431      conftest$ac_exeext conftest.$ac_ext 
    21492                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 
     21432                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 
    2149321433              LIBS="$LIBS $LIBICONV" 
    2149421434              cat >conftest.$ac_ext <<_ACEOF 
     
    2149921439/* end confdefs.h.  */ 
    2150021440#include <libintl.h> 
    21501 $gt_revision_test_code 
    2150221441extern int _nl_msg_cat_cntr; 
    2150321442extern 
     
    2151021449{ 
    2151121450bindtextdomain ("", ""); 
    21512 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 
     21451return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 
    2151321452  ; 
    2151421453  return 0; 
     
    2153521474  LIBINTL="$LIBINTL $LIBICONV" 
    2153621475                LTLIBINTL="$LTLIBINTL $LTLIBICONV" 
    21537                 eval "$gt_func_gnugettext_libintl=yes" 
     21476                gt_cv_func_gnugettext1_libintl=yes 
    2153821477 
    2153921478else 
     
    2155021489            LIBS="$gt_save_LIBS" 
    2155121490fi 
    21552 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'` 
    21553                { echo "$as_me:$LINENO: result: $ac_res" >&5 
    21554 echo "${ECHO_T}$ac_res" >&6; } 
     21491{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 
     21492echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } 
    2155521493        fi 
    2155621494 
    21557                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 
    21558            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 
     21495                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 
     21496           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 
    2155921497                && test "$PACKAGE" != gettext-runtime \ 
    2156021498                && test "$PACKAGE" != gettext-tools; }; then 
     
    2159621534echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } 
    2159721535    if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
    21598       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 
     21536      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 
    2159921537        gt_source="external libintl" 
    2160021538      else 
     
    2161121549 
    2161221550    if test "$gt_use_preinstalled_gnugettext" = "yes"; then 
    21613       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 
     21551      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 
    2161421552        { echo "$as_me:$LINENO: checking how to link with libintl" >&5 
    2161521553echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } 
  • trunk/fm_server/src/Makefile.in

    r217 r220  
    4949DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
    5050ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
    51 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     51am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 
     52        $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 
     53        $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 
     54        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 
     55        $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 
    5256        $(top_srcdir)/configure.ac 
    5357am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
  • trunk/fm_server/src/fm_input_gst/Makefile.in

    r217 r220  
    3636DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
    3737ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
    38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     38am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 
     39        $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 
     40        $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 
     41        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 
     42        $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 
    3943        $(top_srcdir)/configure.ac 
    4044am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
  • trunk/fm_server/src/fm_song_db/Makefile.in

    r217 r220  
    3636DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
    3737ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
    38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     38am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 
     39        $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 
     40        $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 
     41        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 
     42        $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 
    3943        $(top_srcdir)/configure.ac 
    4044am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 
  • trunk/fm_server/test/Makefile.in

    r217 r220  
    3838DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
    3939ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 
    40 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 
     40am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ 
     41        $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ 
     42        $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ 
     43        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ 
     44        $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/acinclude.m4 \ 
    4145        $(top_srcdir)/configure.ac 
    4246am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \